VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtTerrainCreatePointHandler Class Reference

This handler creates entities. More...

Inheritance diagram for DtTerrainCreatePointHandler:
Inheritance graph
[legend]

Public Member Functions

 DtTerrainCreatePointHandler ()
 Default Constructor.
virtual ~DtTerrainCreatePointHandler ()
 Destructor.
- Public Member Functions inherited from DtCreatePointHandler
 DtCreatePointHandler ()
 Default Constructor.
virtual ~DtCreatePointHandler ()
 Destructor.
- Public Member Functions inherited from DtCreateControlObjectHandler
 DtCreateControlObjectHandler ()
 Default Constructor.
virtual ~DtCreateControlObjectHandler ()
 Destructor.
virtual QWidgetcreateDialog (QWidget *parent)
 Creates the dialog associated with this handler (if there is one)
virtual void setCreationObject (DtEntityMapperKey obj, int frc)
 Set the object you are creating.
virtual void setVertices (const QVector< DtPoint > &pnt)
 Sets the vertices used for creation.
virtual void setName (const QString &name)
- Public Member Functions inherited from DtCreationHandler
 DtCreationHandler ()
 Default Constructor.
virtual ~DtCreationHandler ()
 Destructor.
virtual void removeTempSymbol (DtTMMapArea *area)
virtual void setEditMode (bool b)
virtual void setModelData (DtModelData *d)
virtual void setShowDialog (DtShowDialogType type)
- Public Member Functions inherited from DtEventHandler
 DtEventHandler ()
 Default Constructor.
virtual ~DtEventHandler ()
 Destructor.
virtual void setEventController (DtEventController *)
virtual void setInitialSelection (const QVector< DtModelKey > &d)
virtual QWidgetdialog (bool createIfMissing=true, QWidget *parent=NULL)
 If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer.
virtual void reset ()
virtual DtBaseWindowbaseWindow () const
 Returns the base window of the event controller.
virtual void setBaseWindow (DtBaseWindow *w)
 Called when the base window is set for the event controller.
virtual void init ()
 Called when the handler is first created, initialize context.
void setSuspended (bool)
 Set when something wants to suspend some aspect of this handler without deactivating it.
bool suspended () const
- Public Member Functions inherited from DtArchivableObject
 DtArchivableObject (QString name, DtArchivableObjectCreator fcn)
 This constructor will add this object to the archivable object factory.
 DtArchivableObject (QString name)
 DtArchivableObject ()
virtual ~DtArchivableObject ()
virtual QString name () const
DtArchiverarchiver ()
 Returns the archiver of this object.
virtual void read (QTextStream &s)
 Reads/writes archiver.
virtual void write (QTextStream &s)
virtual void setLevel (int i)
virtual int level () const
virtual DtArchivableObjectclone ()
 Allows for cloning of this object.

Static Public Member Functions

static DtEventHandlercreate (DtEventController *owner, void *usr)
 Static creator.

Protected Member Functions

virtual void activate ()
 When activated, if in terrain selection mode and there are terrain nodes selected, ask the user if they want to create objects for each terrain node selected.
virtual void createObjectsFromSelection (DtTMMapArea *area)
virtual void createFromPoint (const DtPoint &origin)
- Protected Member Functions inherited from DtCreatePointHandler
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 void pointSelected (const DtPoint &p)
 Override to stop the movement of the point object if the left mouse button is pressed.
virtual void sendUserComplete (bool finish=false)
 Override to not send update message.
virtual QString workingTitle () const
 Override this method to return a different working point name than "working point".
virtual const char * eventSignalName ()
virtual void setEmitCreateSignal (bool b)
 Emits signal when create, not actually do the creation. Default is false.
- Protected Member Functions inherited from DtCreateControlObjectHandler
virtual QWidgetcreateWidgetFor (const DtEntityMapperKey &key, QWidget *parent)
 Dialog creation routines. Creates the dialog from internally added dialog creators.
virtual void additionalTempSymbolModifications (QPolygon &pts)
 Additional modifications to be made to the temp symbol by subclasses.
virtual void initCreateConnections ()
 Connections that are initialized when in create mode.
virtual void initEditConnections ()
 Connections that are are made when editing.
virtual void deactivate ()
 Called when we are decativated, acts as a cancel on the current event.
virtual void stop (const DtPoint &pnt)
virtual DtSymbolcreateTempSymbol (DtTMMapArea *area)
 Creates the temp symbol and sets the working name.
virtual void getVertices (QVector< DtPoint > &modelPoints) const
virtual bool canPublish () const
virtual bool isPublished () const
virtual void setCaption (QWidget *w)
 Sets the caption for the dialog based on mode and type.
virtual QString defaultName () const
 Default name of any item of a particular type.
virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
virtual bool complete () const
 Returns true if the item is complete by the number of points.
virtual bool finishOnCreate () const
 Return true if want to finish on create by default. Default is false.
virtual void disconnectDialogConnections ()
virtual void disconnectEditConnections ()
virtual void disconnectCreateConnections ()
virtual int publishedEditTimeout () const
 250 ms default, then, calls done to hide copied symbol
virtual QPixmap createCursor ()
 Creates/restores the override cusror to display that the handler is in creation mode.
virtual void dialogDestroyedEvent ()
 Called when dialog is destroyed.
- Protected Member Functions inherited from DtCreationHandler
virtual void cancel ()=0
 Handle the cancelling of this object creation.
virtual bool enterEvent (DtTMMapArea *area, QEvent *evnt)
 Handles when the mouse enters a particular map area.
virtual void switchActiveMap (DtTMMapArea *area)
 Switches to the new active map and also sets up mouse tracking by turning off from old and activating on new.
virtual void trackMouseFor (DtTMMapArea *area, bool enable)
 Enables/disables mouse tracking for requested area.
virtual void showDialog (bool b)
 Override to show dialog only is dialog show type is WhenStartCreate, else show dialog when the appropriate conditions are met.
virtual void createComplete (bool finalPointSelected)
 Called at end of creation, will let the controller know we are done.
virtual void restoreCursor ()
virtual bool keyboardEvent (DtTMMapArea *area, QKeyEvent *evnt)
 Add escape key cancel.

Additional Inherited Members

- Public Slots inherited from DtCreateControlObjectHandler
virtual void create (QVector< DtPoint > &points, QString name, QString label, QColor color, int forceType, int appearance, bool publish, QString attachTo, DtArchivableObject *userData, bool createDone=true)
 If createDone is false, dialog will not be removed and the create process can continue.
virtual void completeEdit (QString name, QString label, QColor color, int forceType, int appearance, bool publish, DtArchivableObject *userData)
virtual void cancel ()
virtual bool mouseEvent (DtTMMapArea *area, QMouseEvent *evnt, const DtPoint &pnt)
virtual void updateTempSymbol ()
virtual void redrawSymbol ()
virtual void clearHideSymbol ()
virtual void done ()
 Called when finished creating or editing (either by OK or cancel)
- Signals inherited from DtCreateControlObjectHandler
void selectedPoint (const DtPoint &p)
void userComplete (bool finish)
 Emitted when the user never wants to show the dialog, will tell the dialog that is hidden that the user has complete the operation.
- Protected Attributes inherited from DtCreateControlObjectHandler
QVector< DtPointmyPointList
QString myObjectName
QString myLabelName
bool myFinalPointSelected
DtSymbolmyHideSymbol
DtOverlaySymbolDescriptormyDescription
bool myDeleteDescription
bool myFirstClick
DtArchivableObjectmyUserData
 Set by the dialogs, this will be passed to create and edit routines for modification.
- Static Protected Attributes inherited from DtCreateControlObjectHandler
static QList
< DtDialogCreatorInfo * > 
myDialogCreators
 Dialog creators.
static QString theDefaultNameLabel

Detailed Description

This handler creates entities.

Constructor & Destructor Documentation

DtTerrainCreatePointHandler::DtTerrainCreatePointHandler ( )

Default Constructor.

virtual DtTerrainCreatePointHandler::~DtTerrainCreatePointHandler ( )
virtual

Destructor.

Member Function Documentation

static DtEventHandler* DtTerrainCreatePointHandler::create ( DtEventController owner,
void *  usr 
)
static

Static creator.

Reimplemented from DtCreatePointHandler.

virtual void DtTerrainCreatePointHandler::activate ( )
protectedvirtual

When activated, if in terrain selection mode and there are terrain nodes selected, ask the user if they want to create objects for each terrain node selected.

If not, then cancel out of this dialog

Reimplemented from DtCreateControlObjectHandler.

virtual void DtTerrainCreatePointHandler::createObjectsFromSelection ( DtTMMapArea area)
protectedvirtual
virtual void DtTerrainCreatePointHandler::createFromPoint ( const DtPoint origin)
protectedvirtual

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)