VR-Forces 4.2 Class Documentation
List of all members | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtCircleResizingHandler Class Reference

Allows for the resizing of a circle by grabbing the outer rim and moving the cursor. More...

Inheritance diagram for DtCircleResizingHandler:
Inheritance graph
[legend]

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 Slots inherited from DtEventHandler
virtual bool mouseEvent (DtTMMapArea *, QMouseEvent *evnt, const DtPoint &pnt)
virtual bool keyboardEvent (DtTMMapArea *, QKeyEvent *evnt)
virtual bool symbolsSelected (DtTMMapArea *area, DtSymbolList *sl)
virtual bool selectionUpdated (DtTMMapArea *area, const QVector< DtModelKey > &d)
virtual bool selectionInProgress (DtTMMapArea *area, DtSymbolSelector &d)
virtual bool focusEvent (DtTMMapArea *, QEvent *evnt)
virtual bool enterEvent (DtTMMapArea *area, QEvent *evnt)
virtual bool leaveEvent (DtTMMapArea *area, QEvent *evnt)
virtual bool dropEvent (DtTMMapArea *area, QDropEvent *evnt)
virtual bool dragEnterEvent (DtTMMapArea *area, QDragEnterEvent *evnt)
virtual bool dragMoveEvent (DtTMMapArea *area, QDragMoveEvent *evnt)
virtual bool dragLeaveEvent (DtTMMapArea *area, QDragLeaveEvent *evnt)
virtual bool userDefinedAction (DtUserDefinedType iAction, void *usr)
virtual bool aboutToDraw (DtTMMapArea *area, QPainter *)
virtual bool mapActivated (DtTMMapArea *area)
virtual bool selectedModelDataUpdated (DtTMMapArea *area)
virtual bool symbolAdded (DtTMMapArea *area, const DtModelKey &)
virtual bool symbolRemoved (DtTMMapArea *area, const DtModelKey &)
virtual bool disconnecting (DtTMMapArea *area)
 Called when a map is being disconnect from an event handler.
virtual bool connecting (DtTMMapArea *area)
 Called when a map is being connected to an event handler.
virtual void tick ()
virtual void clearDialog ()

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)
- Public Member Functions inherited from DtEventHandler
 DtEventHandler ()
 Default Constructor.
virtual ~DtEventHandler ()
 Destructor.
virtual void setEventController (DtEventController *)
virtual void setInitialSelection (const QVector< DtModelKey > &d)
virtual void showDialog (bool b)
virtual QWidgetcreateDialog (QWidget *w)
 Creates the dialog associated with this handler (if there is one)
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 activate ()
 Called when this event handler first becomes active.
virtual void deactivate ()
 Called when this event handler is removed as the current event.
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
virtual void dialogDestroyedEvent ()
 Called when dialog is destroyed.
- 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 bool cancelSizing ()
virtual void resizeObject (const QPoint *origin, const QPoint *endPt)
virtual DtResizableCircleSymbolcircleSymbol (DtTMMapArea *, const DtModelKey &)
virtual DtResizableCircleSymbolcircleSymbol (DtSymbol *sym)
virtual DtSymbolcreateTempSymbol (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

DtTMMapAreamyMapArea
DtModelDatamyModelData
DtSymbolmyResizeSymbol
DtSymbolmyHideSymbol
QVector< DtPoint > myBackupPoints
bool myBackupIsModelData
bool myAccepted
- Protected Attributes inherited from DtEventHandler
QWidgetmyEventDlg
DtEventControllermyEventController
bool mySuspended
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Additional Inherited Members

- Signals inherited from DtEventHandler
void closedDialog ()

Detailed Description

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

Constructor & Destructor Documentation

DtCircleResizingHandler::DtCircleResizingHandler ( )

Default Constructor.

virtual DtCircleResizingHandler::~DtCircleResizingHandler ( )
virtual

Destructor.

Member Function Documentation

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 
)
virtualslot
virtual bool DtCircleResizingHandler::keyboardEvent ( DtTMMapArea area,
QKeyEvent *  evnt 
)
virtualslot
virtual void DtCircleResizingHandler::originalDestroyed ( )
virtualslot
virtual void DtCircleResizingHandler::resizeSymbolDestroyed ( )
virtualslot
virtual void DtCircleResizingHandler::removeTempSymbol ( )
virtualslot
virtual void DtCircleResizingHandler::done ( )
virtualslot
virtual bool DtCircleResizingHandler::cancelSizing ( )
protectedvirtual
virtual void DtCircleResizingHandler::resizeObject ( const QPoint *  origin,
const QPoint *  endPt 
)
protectedvirtual
virtual DtResizableCircleSymbol* DtCircleResizingHandler::circleSymbol ( DtTMMapArea ,
const DtModelKey  
)
protectedvirtual
virtual DtResizableCircleSymbol* DtCircleResizingHandler::circleSymbol ( DtSymbol sym)
protectedvirtual
virtual DtSymbol* DtCircleResizingHandler::createTempSymbol ( DtSymbol symbol)
protectedvirtual
virtual void DtCircleResizingHandler::initializeResize ( DtTMMapArea area,
DtModelData data 
)
protectedvirtual
virtual void DtCircleResizingHandler::backup ( )
protectedvirtual

Backs up/restores sizing data (basically, just the end point of the circle)

virtual void DtCircleResizingHandler::restore ( )
protectedvirtual
virtual void DtCircleResizingHandler::acceptChanges ( bool  completeToMapArea = true)
protectedvirtual

Accepts changes by modifying model data with final point information.

virtual void DtCircleResizingHandler::setModelDataFromSymbol ( const QList< int > *  indices = NULL)
protectedvirtual

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 
)
protectedvirtual

Member Data Documentation

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().


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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)