The ImageTaskSceneManager manages the scenes representing the graphical state of the shapes It mostly works to synchronize their state and provide a single interface for handling scene events.
More...
#include <imagetaskscenemanager.h>
|
void | signal_onTargetImageTabletEvent (const geometrize::scene::CustomTabletEvent &event) |
|
void | signal_onTargetImageHoverMoveEvent (double lastX, double lastY, double x, double y, bool ctrlModifier) |
|
void | signal_onTargetImageMousePressEvent (double x, double y, bool ctrlModifier) |
|
void | signal_onTargetImageMouseMoveEvent (double lastX, double lastY, double x, double y, bool ctrlModifier) |
|
void | signal_onTargetImageMouseReleaseEvent (double x, double y, bool ctrlModifier) |
|
void | signal_onTargetImageWheelEvent (double x, double y, int amount, bool ctrlModifier) |
|
void | signal_onTargetImageKeyPressEvent (int key, bool ctrlModifier) |
|
void | signal_onTargetImageKeyReleaseEvent (int key, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeHoverMoveEvent (double lastX, double lastY, double x, double y, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeMousePressEvent (double x, double y, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeMouseMoveEvent (double lastX, double lastY, double x, double y, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeMouseReleaseEvent (double x, double y, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeMouseWheelEvent (double x, double y, int amount, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeKeyPressEvent (int key, bool ctrlModifier) |
|
void | signal_onAreaOfInfluenceShapeKeyReleaseEvent (int key, bool ctrlModifier) |
|
The ImageTaskSceneManager manages the scenes representing the graphical state of the shapes It mostly works to synchronize their state and provide a single interface for handling scene events.
geometrize::scene::ImageTaskSceneManager::ImageTaskSceneManager |
( |
| ) |
|
145 :
d{std::make_unique<ImageTaskSceneManager::ImageTaskSceneManagerImpl>(
this)}
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
geometrize::scene::ImageTaskSceneManager::~ImageTaskSceneManager |
( |
| ) |
|
|
virtual |
void geometrize::scene::ImageTaskSceneManager::fitPixmapSceneInView |
( |
ImageTaskGraphicsView & |
pixmapView | ) |
|
fitPixmapSceneInView Fits the pixmap scene into the given view.
- Parameters
-
pixmapView | The view to fit the scene into. |
180 d->fitPixmapSceneInView(pixmapView);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
fitScenesInViews Fits the scenes into their respective views.
- Parameters
-
pixmapView | The pixmap-based view. |
svgView | The vector/SVG-based view. |
190 d->fitScenesInViews(pixmapView, svgView);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
fitVectorSceneInView Fits the SVG/vector scene into the given view.
- Parameters
-
svgView | The view to fit the scene into. |
185 d->fitVectorSceneInView(svgView);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
void geometrize::scene::ImageTaskSceneManager::reset |
( |
| ) |
|
reset Resets the state of the scenes, removing shapes etc.
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
void geometrize::scene::ImageTaskSceneManager::setAreaOfInfluenceShape |
( |
const geometrize::Shape & |
shape | ) |
|
setAreaOfInfluenceShape Sets up a area of influence visual for the given shape.
- Parameters
-
shape | The area of influence shape. |
195 d->setAreaOfInfluenceShape(shape);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
void geometrize::scene::ImageTaskSceneManager::setTargetPixmap |
( |
const QPixmap & |
pixmap | ) |
|
setTargetPixmap Sets the pixmap that provides the target/goal image visualization.
- Parameters
-
pixmap | The pixmap to set as the target/goal image visualization. |
160 d->setTargetPixmap(pixmap);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
void geometrize::scene::ImageTaskSceneManager::setTargetPixmapOpacity |
( |
float |
opacity | ) |
|
setTargetPixmapOpacity Sets the opacity of the target pixmap.
- Parameters
-
opacity | The opacity value. |
165 d->setTargetPixmapOpacity(opacity);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
setViews Associates the given views with the scenes managed by this class.
- Parameters
-
pixmapView | The pixmap view that will display the pixmap-based view. |
svgView | The svg-based view that will display the vector graphics-based SVG view. |
155 d->setViews(pixmapView, svgView);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeHoverMoveEvent |
( |
double |
lastX, |
|
|
double |
lastY, |
|
|
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeKeyPressEvent |
( |
int |
key, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeKeyReleaseEvent |
( |
int |
key, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeMouseMoveEvent |
( |
double |
lastX, |
|
|
double |
lastY, |
|
|
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeMousePressEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeMouseReleaseEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onAreaOfInfluenceShapeMouseWheelEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
int |
amount, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageHoverMoveEvent |
( |
double |
lastX, |
|
|
double |
lastY, |
|
|
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageKeyPressEvent |
( |
int |
key, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageKeyReleaseEvent |
( |
int |
key, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageMouseMoveEvent |
( |
double |
lastX, |
|
|
double |
lastY, |
|
|
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageMousePressEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageMouseReleaseEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::signal_onTargetImageWheelEvent |
( |
double |
x, |
|
|
double |
y, |
|
|
int |
amount, |
|
|
bool |
ctrlModifier |
|
) |
| |
|
signal |
void geometrize::scene::ImageTaskSceneManager::updateScenes |
( |
const QPixmap & |
pixmap, |
|
|
const std::vector< geometrize::ShapeResult > & |
shapes |
|
) |
| |
updateScenes Updates the scenes to show the latest image/shapes.
- Parameters
-
pixmap | The target pixmap. |
shapes | The shapes added to the scene. |
170 d->updateScenes(pixmap, shapes);
std::unique_ptr< ImageTaskSceneManagerImpl > d
Definition: imagetaskscenemanager.h:119
The documentation for this class was generated from the following files: