![]() |
VR-Forces 4.0.4 Class Documentation
|
This handler creates entities. More...

Public Member Functions | |
| DtCreateLineHandler () | |
| Default Constructor. | |
| virtual | ~DtCreateLineHandler () |
| Destructor. | |
Static Public Member Functions | |
| static DtEventHandler * | create (DtEventController *owner, void *usr) |
| Static creator. | |
Protected Member Functions | |
| virtual void | initDialog (QWidget *w) |
| Initializes dialog with default values. | |
| virtual void | initDialogConnections () |
| Uses myEventDlg pointer to init connections. | |
| virtual void | setWorkingName () |
| Sets the working name of the temp symbol. | |
| virtual DtSymbol * | createSymbol (DtTMMapArea *area) |
| Subclasses need to create temp symbol. | |
| virtual bool | finishOnCreate () const |
| Return true if want to finish on create by default. Default is false. | |
| virtual void | initFreehandMode () |
| If symbol being created is in freehand mode, hide dialog and set freehand mode. | |
| virtual bool | mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt) |
| Override to check if in freehand mode, and, if so, when the mouse move event comes through, add a point. | |
| virtual void | freehandDraw (const DtPoint &pnt, bool end=false) |
| Called to add the point to the line for freehand draw mode. | |
| virtual QString | workingTitle () const |
| Override this method to return a different working point name than "working line". | |
| virtual const char * | eventSignalName () |
| virtual void | setEmitCreateSignal (bool) |
| Emits signal when create, not actually do the creation. Default is false. | |
Protected Attributes | |
| bool | myFreehand |
| bool | myInFreehandDraw |
This handler creates entities.
Default Constructor.
| virtual DtCreateLineHandler::~DtCreateLineHandler | ( | ) | [virtual] |
Destructor.
| static DtEventHandler* DtCreateLineHandler::create | ( | DtEventController * | owner, |
| void * | usr | ||
| ) | [static] |
Static creator.
Reimplemented in DtCreateAreaHandler, and DtTerrainCreateLineHandler.
| virtual void DtCreateLineHandler::initDialog | ( | QWidget * | w | ) | [protected, virtual] |
Initializes dialog with default values.
Reimplemented from DtCreateControlObjectHandler.
Reimplemented in DtTerrainCreateLineHandler.
| virtual void DtCreateLineHandler::initDialogConnections | ( | ) | [protected, virtual] |
Uses myEventDlg pointer to init connections.
Set as function of calling createWidgetForCategory from createDialog. Common connections plus call to edit or create connections depending on mode
Reimplemented from DtCreateControlObjectHandler.
| virtual void DtCreateLineHandler::setWorkingName | ( | ) | [protected, virtual] |
Sets the working name of the temp symbol.
Implements DtCreateControlObjectHandler.
Reimplemented in DtCreateAreaHandler.
| virtual DtSymbol* DtCreateLineHandler::createSymbol | ( | DtTMMapArea * | area | ) | [protected, virtual] |
Subclasses need to create temp symbol.
Reimplemented from DtCreateControlObjectHandler.
| virtual bool DtCreateLineHandler::finishOnCreate | ( | ) | const [protected, virtual] |
Return true if want to finish on create by default. Default is false.
Reimplemented from DtCreateControlObjectHandler.
| virtual void DtCreateLineHandler::initFreehandMode | ( | ) | [protected, virtual] |
If symbol being created is in freehand mode, hide dialog and set freehand mode.
| virtual bool DtCreateLineHandler::mouseEvent | ( | DtTMMapArea * | area, |
| QMouseEvent * | evnt, | ||
| const DtPoint & | pnt | ||
| ) | [protected, virtual] |
Override to check if in freehand mode, and, if so, when the mouse move event comes through, add a point.
Reimplemented from DtCreateControlObjectHandler.
| virtual void DtCreateLineHandler::freehandDraw | ( | const DtPoint & | pnt, |
| bool | end = false |
||
| ) | [protected, virtual] |
Called to add the point to the line for freehand draw mode.
| virtual QString DtCreateLineHandler::workingTitle | ( | ) | const [protected, virtual] |
Override this method to return a different working point name than "working line".
Reimplemented in DtCreateAreaHandler.
| virtual const char* DtCreateLineHandler::eventSignalName | ( | ) | [inline, protected, virtual] |
Reimplemented from DtCreateControlObjectHandler.
Reimplemented in DtCreateAreaHandler.
References DtCreateLineWidgetEvent.
| virtual void DtCreateLineHandler::setEmitCreateSignal | ( | bool | b | ) | [protected, virtual] |
Emits signal when create, not actually do the creation. Default is false.
Reimplemented from DtCreationHandler.
bool DtCreateLineHandler::myFreehand [protected] |
bool DtCreateLineHandler::myInFreehandDraw [protected] |