VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtCreateLineHandler Class Reference

This handler creates entities. More...

Inheritance diagram for DtCreateLineHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtCreateLineHandler ()
 Default Constructor.
virtual ~DtCreateLineHandler ()
 Destructor.

Static Public Member Functions

static DtEventHandlercreate (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 DtSymbolcreateSymbol (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

Detailed Description

This handler creates entities.


Constructor & Destructor Documentation

Default Constructor.

Destructor.


Member Function Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)