![]() |
VR-Forces 4.0.4 Class Documentation
|
Allows for the resizing of a circle by grabbing the outer rim and moving the cursor. More...

Public Slots | |
| virtual bool | mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt) |
| virtual bool | keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt) |
| virtual void | originalDestroyed () |
| virtual void | resizeSymbolDestroyed () |
| virtual void | removeTempSymbol () |
| virtual void | done () |
Public Member Functions | |
| DtCircleResizingHandler () | |
| Default Constructor. | |
| virtual | ~DtCircleResizingHandler () |
| Destructor. | |
| bool | accepted () const |
| virtual void | circleMove (DtTMMapArea *area, DtModelData *data, const DtPoint &delta) |
| Call to either move the circle (origin selected) or edge (rim selected) | |
Static Public Member Functions | |
| static DtEventHandler * | create (DtEventController *owner, void *usr) |
| Static creator. | |
Protected Member Functions | |
| virtual bool | cancelSizing () |
| virtual void | resizeObject (const QPoint *origin, const QPoint *endPt) |
| virtual DtResizableCircleSymbol * | circleSymbol (DtTMMapArea *, const DtModelKey &) |
| virtual DtResizableCircleSymbol * | circleSymbol (DtSymbol *sym) |
| virtual DtSymbol * | createTempSymbol (DtSymbol *symbol) |
| virtual void | initializeResize (DtTMMapArea *area, DtModelData *data) |
| virtual void | backup () |
| Backs up/restores sizing data (basically, just the end point of the circle) | |
| virtual void | restore () |
| virtual void | acceptChanges (bool completeToMapArea=true) |
| Accepts changes by modifying model data with final point information. | |
| virtual void | setModelDataFromSymbol (const QList< int > *indices=NULL) |
| Sets the data in the model based on the points in the circle symbol. | |
| virtual void | computeMovePoints (QPoint *points[2], DtTMMapArea *area, DtModelData *data, const DtPoint &delta) |
Protected Attributes | |
| DtTMMapArea * | myMapArea |
| DtModelData * | myModelData |
| DtSymbol * | myResizeSymbol |
| DtSymbol * | myHideSymbol |
| QVector< DtPoint > | myBackupPoints |
| bool | myBackupIsModelData |
| bool | myAccepted |
Allows for the resizing of a circle by grabbing the outer rim and moving the cursor.
Note this handler only works for circle resizing and not ellipse resizing
Default Constructor.
| virtual DtCircleResizingHandler::~DtCircleResizingHandler | ( | ) | [virtual] |
Destructor.
| static DtEventHandler* DtCircleResizingHandler::create | ( | DtEventController * | owner, |
| void * | usr | ||
| ) | [static] |
Static creator.
| bool DtCircleResizingHandler::accepted | ( | ) | const [inline] |
References myAccepted.
| virtual void DtCircleResizingHandler::circleMove | ( | DtTMMapArea * | area, |
| DtModelData * | data, | ||
| const DtPoint & | delta | ||
| ) | [virtual] |
Call to either move the circle (origin selected) or edge (rim selected)
| virtual bool DtCircleResizingHandler::mouseEvent | ( | DtTMMapArea * | area, |
| QMouseEvent * | evnt, | ||
| const DtPoint & | pnt | ||
| ) | [virtual, slot] |
Reimplemented from DtEventHandler.
| virtual bool DtCircleResizingHandler::keyboardEvent | ( | DtTMMapArea * | area, |
| QKeyEvent * | evnt | ||
| ) | [virtual, slot] |
Reimplemented from DtEventHandler.
| virtual void DtCircleResizingHandler::originalDestroyed | ( | ) | [virtual, slot] |
| virtual void DtCircleResizingHandler::resizeSymbolDestroyed | ( | ) | [virtual, slot] |
| virtual void DtCircleResizingHandler::removeTempSymbol | ( | ) | [virtual, slot] |
| virtual void DtCircleResizingHandler::done | ( | ) | [virtual, slot] |
| virtual bool DtCircleResizingHandler::cancelSizing | ( | ) | [protected, virtual] |
| virtual void DtCircleResizingHandler::resizeObject | ( | const QPoint * | origin, |
| const QPoint * | endPt | ||
| ) | [protected, virtual] |
| virtual DtResizableCircleSymbol* DtCircleResizingHandler::circleSymbol | ( | DtTMMapArea * | , |
| const DtModelKey & | |||
| ) | [protected, virtual] |
| virtual DtResizableCircleSymbol* DtCircleResizingHandler::circleSymbol | ( | DtSymbol * | sym | ) | [protected, virtual] |
| virtual DtSymbol* DtCircleResizingHandler::createTempSymbol | ( | DtSymbol * | symbol | ) | [protected, virtual] |
| virtual void DtCircleResizingHandler::initializeResize | ( | DtTMMapArea * | area, |
| DtModelData * | data | ||
| ) | [protected, virtual] |
| virtual void DtCircleResizingHandler::backup | ( | ) | [protected, virtual] |
Backs up/restores sizing data (basically, just the end point of the circle)
| virtual void DtCircleResizingHandler::restore | ( | ) | [protected, virtual] |
| virtual void DtCircleResizingHandler::acceptChanges | ( | bool | completeToMapArea = true | ) | [protected, virtual] |
Accepts changes by modifying model data with final point information.
| virtual void DtCircleResizingHandler::setModelDataFromSymbol | ( | const QList< int > * | indices = NULL | ) | [protected, virtual] |
Sets the data in the model based on the points in the circle symbol.
| virtual void DtCircleResizingHandler::computeMovePoints | ( | QPoint * | points[2], |
| DtTMMapArea * | area, | ||
| DtModelData * | data, | ||
| const DtPoint & | delta | ||
| ) | [protected, virtual] |
DtTMMapArea* DtCircleResizingHandler::myMapArea [protected] |
DtModelData* DtCircleResizingHandler::myModelData [protected] |
DtSymbol* DtCircleResizingHandler::myResizeSymbol [protected] |
DtSymbol* DtCircleResizingHandler::myHideSymbol [protected] |
QVector<DtPoint> DtCircleResizingHandler::myBackupPoints [protected] |
bool DtCircleResizingHandler::myBackupIsModelData [protected] |
bool DtCircleResizingHandler::myAccepted [protected] |
Referenced by accepted().