Engauge Digitizer 2
|
Class for showing points and lines for all coordinate systems simultaneously, even though the code normally only allows graphical items for once coordinate system to be visible at a time. More...
#include <Ghosts.h>
Public Member Functions | |
Ghosts (unsigned int coordSystemIndexToBeRestored) | |
Single constructor. | |
~Ghosts () | |
unsigned int | coordSystemIndexToBeRestored () const |
Coordinate system index that was active before the ghosts. | |
void | captureGraphicsItems (QGraphicsScene &scene) |
Take a snapshot of the graphics items. | |
void | createGhosts (QGraphicsScene &scene) |
Create ghosts from the path/rect/polygon lists. | |
void | destroyGhosts (QGraphicsScene &scene) |
Destory ghosts. Called at end of algorithm. | |
Class for showing points and lines for all coordinate systems simultaneously, even though the code normally only allows graphical items for once coordinate system to be visible at a time.
QGraphicsLineItems are ignored since those are just used for the AxesChecker, and QGraphicsPixmapItems are ignored since those are just used for the background. The other QGraphicsItem subclasses are captured and converted into ghosts.
Single constructor.
Definition at line 17 of file Ghosts.cpp.
Ghosts::~Ghosts | ( | ) |
Definition at line 22 of file Ghosts.cpp.
void Ghosts::captureGraphicsItems | ( | QGraphicsScene & | scene | ) |
Take a snapshot of the graphics items.
Definition at line 26 of file Ghosts.cpp.
Coordinate system index that was active before the ghosts.
Definition at line 73 of file Ghosts.cpp.
void Ghosts::createGhosts | ( | QGraphicsScene & | scene | ) |
Create ghosts from the path/rect/polygon lists.
Definition at line 78 of file Ghosts.cpp.
void Ghosts::destroyGhosts | ( | QGraphicsScene & | scene | ) |
Destory ghosts. Called at end of algorithm.
Definition at line 119 of file Ghosts.cpp.