![]() |
VR-Forces 4.1 Class Documentation
|
class from which all other symbol types are derived. More...

Public Types | |
| enum | DtSymbol_OverlapTest { DtSymbol_BoundingSphere = 0, DtSymbol_BoundingBox = 1, DtSymbol_SpherePieces = 2, DtSymbol_BoxPieces = 3, DtSymbol_Exact = 4 } |
| Type of overlap test. More... | |
| enum | DtSymbol_DrawOrder { DtSymbol_DrawAsEntered = 0, DtSymbol_DrawFirst = 1, DtSymbol_DrawLast = 2 } |
| enum | DtSymbolCompositeDrawOptions { DtSymbol_Always = 0, DtSymbol_Never = 1, DtSymbol_OnlyIfCloned = 2 } |
Public Slots | |
| virtual void | invalidateStaticAnimData () |
| This gets called when modified symbols exist and the original symbol has been destroyed. | |
| virtual void | displayComplete () |
| Call when the display of this symbol is complete. | |
| virtual void | clearDragClone (QObject *) |
| Called when the drag clone is destroyed outside of this context, we will be notified in that case to clear out this symbols internal pointer. | |
Signals | |
| void | originalSymbolDestroyed () |
| Sent when an original symbol has been destroyed - (so that the drawer can remove that cache) | |
| void | destroyed (const DtSymbol *) |
| Called when we are destroyed, this will give our drawers a chance to update any cached information. | |
| void | originChanged (const DtSymbol *) |
| Sent when setOrigin is called with a different origin. | |
| void | visibilityChanged (const DtSymbol *) |
| Sent when visibility change sending is enabled and a symbol is shown or hidden when it wasn't before. | |
| void | displayComplete (const DtSymbol *) |
| Called from displayComplete() | |
Public Member Functions | |
| virtual | ~DtSymbol () |
| destructor | |
| DtSymbol (const DtSymbol &orig) | |
| copy constructor | |
| DtSymbol & | operator= (const DtSymbol &orig) |
| assignment operator Note that the copy constructor, by default, make the symbol non editable even if the source is editable | |
| DtSymbol (DtSymbolDrawer &drawer) | |
| Drawer is non-const since it does memory management. | |
| virtual void | copyDataFrom (const DtSymbol *symbol) |
| Differs from the equal operator in that this method could copy a different set of data than the = operator. | |
| virtual DtSymbol * | clone () const |
| Returns an instance of a symbol which is a copy of this. | |
| virtual void | setName (const QString &name) |
| The specific name of this symbol. | |
| virtual const QString & | name () const |
| virtual void | setHighlight (const bool highlight) |
| Set/get the highlight flag (whether the symbol should be drawn highlighted). | |
| virtual bool | highlight () const |
| virtual bool | selected () const |
| virtual const DtDisplayPoint | centerPoint () const |
| The real visual center of the symbol in display coordinates. | |
| virtual const DtDisplayPoint | topLeftPoint () const |
| The real visual top left corner of the symbol in display coordinates. | |
| virtual bool | setLocationData (const QPolygon *) |
| This function is used so that multipoint symbols have the same interface as single point symbols In the single point case, it takes the first value and sets the origin from that. | |
| virtual const QPolygon * | getLocationData () const |
| Provided for a simpler interface to subclasses. | |
| virtual void | setOrigin (const QPoint ¢er) |
| Set the display coordinate that will become the 0,0 point for drawing this symbol. | |
| virtual void | setOrigin (int x, int y) |
| Same as above. | |
| virtual const QPoint | origin () const |
| returns the display origin for the symbol. | |
| virtual void | shift (QPoint p) |
| Move the center of this object by p amount. | |
| virtual void | draw (QPainter &paint) const |
| virtual void | drawHidden (QPainter &paint) const |
| virtual const DtSymbolDrawer & | drawer () const |
| virtual QSize | bbox () const |
| the bounding box - this queries the drawer | |
| virtual QRect | brect () const |
| virtual QRect | selBbox () const |
| the selection box (area where you can select an item) | |
| virtual void | clearOffsetToParent () |
| Set/get the offset to the parent. | |
| virtual void | setOffsetToParent (const QPoint &offsetToParent) |
| virtual const QPoint * | offsetToParent () const |
| if the offsetToParent blit has been cleared, this returns null | |
| virtual bool | show (DtShowHideContext module) |
| Shows/hides the symbol. | |
| virtual bool | hide (DtShowHideContext module) |
| virtual void | show () |
| Use this method to show the symbol regardless of how many contexts have hidden it. | |
| virtual void | hide () |
| Use this method to hide a symbol without context. Same as hide(DtDefaultShowHideContext) | |
| virtual void | addIgnoreContext (DtShowHideContext) |
| Add/remove contexts for hide() to ignore. | |
| virtual void | removeIgnoreContext (DtShowHideContext) |
| const QVector < DtShowHideContext > & | ignoreContexts () const |
| virtual void | wasHidden (DtSymbol *) |
| The following two methods are only called if the parent is hidden Called when a child symbol of this symbol is hidden. | |
| virtual void | wasShown (DtSymbol *) |
| Called when a child symbol of this symbol is shown. | |
| virtual bool | isShown () const |
| virtual DtSymbol * | parent () const |
| virtual void | setParent (DtSymbol *dad) |
| virtual bool | isComposite () |
| -— Type information | |
| virtual DtSymbolGeometry | geometry () const |
| virtual void | setGeometry (DtSymbolGeometry geom) |
| virtual void | setCategoryTag (const QString &name) |
| A tag is the name of this type of symbol such as velocity vector name or force or whatever. | |
| virtual const QString & | categoryTag () const |
| virtual bool | select (const QPoint &aPoint) |
| -— Mouse selecting options | |
| virtual bool | select (const QPoint &aPoint, const QSize &rectangleSize) |
| Returns true if the rectangle intersects the symbol, if the symbol is selectable. | |
| virtual void | setSelectable (bool value) |
| Set/get the ability to select with this symbol. | |
| virtual bool | isSelectable () const |
| virtual void | setEditable (bool b) |
| Accessors for whether or not this line can be edited. | |
| virtual bool | editable () const |
| virtual void | setAllowEditOnSelection (bool b) |
| Sets the fact that even if this symbol is not marked editable, it can become editable upon selection (myHighlight is true) | |
| virtual bool | allowEditOnSelection () const |
| virtual void | setInternalSelectable (bool value) |
| The following two functions are internal values kept in order to make sure that if an object has been filter modified and not shown, that it will not be selectable. | |
| virtual bool | isInternalSelectable () const |
| virtual void | setAddToDrawOrder (bool b) |
| Add this item to the draw order regardless of whether or not it is visible on the screen. | |
| virtual bool | addToDrawOrder () const |
| virtual bool | overlapsSymbol (const DtSymbol &aSymbol, const DtSymbol_OverlapTest aTest=DtSymbol_BoxPieces, const float aTolerance=0) const |
| Returns true if the two symbols overlap Different intersection tests are available. | |
| virtual bool | overlapsAreaSymbol (const DtSymbol &aSymbol, const DtSymbol_OverlapTest aTest=DtSymbol_BoxPieces, const float aTolerance=0) const |
| handles the case when aSymbol spans an area, such as a bitmap or a text symbol. | |
| virtual bool | overlapsLineSymbol (DtSymbol &aSymbol, const float aTolerance=0) const |
| handles the case when aSymbol is composed of line segments, such as a line, polygon, or route. | |
| virtual bool | isOriginal () const |
| Returns true if this symbol is an original symbol, otherwise return false. | |
| virtual DtStaticAnimData * | staticAnimData () const |
| virtual void | setDrawOnComposite (DtSymbolCompositeDrawOptions opt) |
| If true, will not draw this symbol if it is part of a composite symbol. | |
| virtual bool | drawOnComposite () const |
| virtual DtSymbolCompositeDrawOptions | drawOnCompositeValue () const |
| virtual bool | drawFirst () const |
| If true, this symbol will always be drawn first. | |
| virtual void | setDrawFirst (bool b) |
| virtual bool | drawLast () const |
| If true, this symbol will always be drawn last. | |
| virtual void | setDrawLast (bool b) |
| virtual bool | selectAdditionalSymbols (QList< DtSymbol * > &additionalSymbols) |
| This routine is called during symbol selection time to see if the selection of this symbol requires other symbols to be selected as well. | |
| virtual bool | forceUpdate () const |
| Override this function and return true if this symbol wants to update every tick regardless of performance enhancements. | |
| virtual void | setColor (const QColor &color) |
| Noop function to allow subclasses to override. | |
| virtual void | clearColor () |
| Noop function to allow subclasses to clear out any color information. | |
| virtual bool | adjustPoints (QPolygon &pnts, bool constrain) |
| Opportunity to adjust the point array to some desired other points. | |
| virtual void | setDragClone (DtSymbol *clone) |
| Contains the symbol that is being dragged that represents this symbol. | |
| virtual DtSymbol * | dragClone () const |
| virtual void | setScaleBy (double factor) |
| Scaling factors. | |
| virtual double | scaleBy () const |
| virtual bool | isScalable () const |
| Return true/false if this is a scalable symbol. By default returns false. | |
| virtual void | enableVisibilityChange (bool b) |
| virtual void | scheduleDisplayComplete (int) |
| Sets a QTimer for the specified amount of time to fire off and then call the displayComplete() slot. | |
| virtual void | setShouldSelect (bool) |
| virtual bool | shouldSelect () const |
| virtual void | setTransparencyLevel (int) |
| Transparency information. | |
| virtual int | transparencyLevel () const |
| virtual bool | needsTransparentRedraw () const |
| Will return true if there is no cached image or internal variables have changed such that the cached image needs a redraw. | |
| virtual QPixmap * | transparentImage () const |
| virtual QPixmap * | cacheTransparentImage (const QPixmap &pixmap) |
| virtual QPixmap * | cacheTransparentImage (const QImage &image) |
| virtual bool | transparentCacheChanged () const |
| virtual void | cacheTransparentVariables () |
| virtual bool | wantsTransparentDraw () const |
| Will return true if transparent percent is not 0 or 100. | |
| bool | operator== (const DtSymbol &orig) const |
| bool | operator!= (const DtSymbol &orig) const |
| virtual DtSymbolDrawer * | symbolDrawer () |
| Sets the new drawer to be the supplied drawer. | |
| virtual DtSymbolDrawer * | setDrawer (const DtSymbolDrawer &) |
| virtual DtSymbolDrawer & | backupDrawer () const |
| Returns the drawer that was set as a backup. | |
| virtual void | setBackupDrawer (DtSymbolDrawer *) |
| virtual bool | removeIfOffScreen () const |
| Return true/false if this symbol should be removed if it is off screen By default is true. | |
| void | setRemoveIfOffScreen (bool b) |
| Default is true. | |
| virtual void | setSymbolDisplayOptions (DtSymbolDisplayOptions *) |
| virtual const DtSymbolDisplayOptions * | symbolDisplayOptions () const |
| virtual DtSymbolDisplayOptions * | symbolDisplayOptions () |
| virtual int | displayOptionsCache () const |
| void | setAdjustPoints (bool) |
| bool | adjustPoints () const |
| const QVector < DtShowHideContext > & | hiddenByModules () const |
| Routines to access which modules this symbol is hidden by. | |
| bool | hiddenByModule (DtShowHideContext module) const |
| virtual void | blockSignals (bool) |
| Blocks signals from being emitted from this symbol. | |
| virtual bool | originIsCenterOfMass () const |
| Returns true if the origin is the center of mass (center of all points) in the symbol. | |
| virtual void | setCacheSymbolAsBitmap (bool) |
| Get/set whether or not the drawer should cache this symbol as a bitmap. | |
| bool | cacheSymbolAsBitmap () const |
| virtual const QString & | bitmapSymbolCacheKey () const |
| Returns a cache key that can be used to lookup in a bitmap cache. | |
| virtual void | reset () |
| Resets any relevant information associated with this symbol. | |
| virtual bool | editMode () |
| Set/get the edit mode option to enable update properties when hidden because of edition. | |
| virtual void | setEditMode (bool onOff) |
Static Public Member Functions | |
| static DtNullDrawer * | nullDrawer () |
Protected Member Functions | |
| bool | overlapsBoundingSphere (const DtSymbol &aSymbol, const float aTolerance) const |
| Returns true if the bounding spheres of the symbols intersect and the symbols are intersectable. | |
| bool | overlapsBoundingBox (const DtSymbol &aSymbol, const float aTolerance) const |
| Returns true if the bounding boxes of the symbols intersect and the symbols are intersectable. | |
Static Protected Attributes | |
| static DtNullDrawer | theNullDrawer |
class from which all other symbol types are derived.
This class can also double as a Point symbol type.
Type of overlap test.
Ranges from fastest with most false positive overlaps to slowest but most exact.
|
virtual |
destructor
| DtSymbol::DtSymbol | ( | const DtSymbol & | orig | ) |
copy constructor
| DtSymbol::DtSymbol | ( | DtSymbolDrawer & | drawer | ) |
Drawer is non-const since it does memory management.
assignment operator Note that the copy constructor, by default, make the symbol non editable even if the source is editable
|
virtual |
Differs from the equal operator in that this method could copy a different set of data than the = operator.
Subclasses will handle most of the burden here, but this class will just copy the origin
Reimplemented in DtNameLabelSymbol, DtEntitySymbol, and DtMovingObjectSymbol.
|
virtual |
Returns an instance of a symbol which is a copy of this.
The caller is responsible for freeing the memory.
Reimplemented in DtMovingObjectSymbol, DtEntitySymbol, DtPointObjectSymbol, DtCircleSymbol, DtTTSSymbol, DtLineObjectSymbol, DtMMMSymbol, DtPolygonSymbol, DtCompositeSymbol, DtTTFUnitSymbol, DtBMPSymbol, DtAggregateSymbol, DtCircleObjectSymbol, DtResizableCircleSymbol, DtLineSymbol, DtNameLabelSymbol, DtAreaObjectSymbol, DtColorizedSymbol, DtBoxSymbol, and DtCompositeLabelSymbol.
|
virtual |
The specific name of this symbol.
Reimplemented in DtNameLabelSymbol.
|
virtual |
|
virtual |
Set/get the highlight flag (whether the symbol should be drawn highlighted).
Reimplemented in DtCompositeSymbol, DtTTSSymbol, DtLineSymbol, DtResizableCircleSymbol, DtPointObjectSymbol, DtLineObjectSymbol, DtMovingObjectSymbol, and DtCircleObjectSymbol.
|
virtual |
Reimplemented in DtLineObjectSymbol, DtPointObjectSymbol, DtMovingObjectSymbol, and DtCircleObjectSymbol.
|
virtual |
Reimplemented in DtResizableCircleSymbol, and DtLineSymbol.
|
virtual |
The real visual center of the symbol in display coordinates.
Reimplemented in DtLineSymbol, DtCompositeSymbol, DtPolygonSymbol, DtPointObjectSymbol, DtAggregateSymbol, and DtMovingObjectSymbol.
|
virtual |
The real visual top left corner of the symbol in display coordinates.
|
virtual |
This function is used so that multipoint symbols have the same interface as single point symbols In the single point case, it takes the first value and sets the origin from that.
Reimplemented in DtLineSymbol, DtResizableCircleSymbol, DtCompositeSymbol, and DtCircleObjectSymbol.
|
virtual |
Provided for a simpler interface to subclasses.
Since there is only one point (the origin), this routine will return NULL
Reimplemented in DtLineSymbol, DtResizableCircleSymbol, and DtLineObjectSymbol.
|
virtual |
Set the display coordinate that will become the 0,0 point for drawing this symbol.
On most symbols, this will be the same as the center point, but this doesn not need to be the case
Reimplemented in DtResizableCircleSymbol, DtPointObjectSymbol, DtAggregateSymbol, and DtMovingObjectSymbol.
|
virtual |
Same as above.
Reimplemented in DtPointObjectSymbol, DtResizableCircleSymbol, DtAggregateSymbol, and DtMovingObjectSymbol.
|
virtual |
returns the display origin for the symbol.
On most symbols, this will be the same as the center point, but this doesn not need to be the case
Reimplemented in DtPointObjectSymbol, DtAggregateSymbol, and DtMovingObjectSymbol.
|
virtual |
Move the center of this object by p amount.
Reimplemented in DtResizableCircleSymbol, DtMovingObjectSymbol, DtLineSymbol, DtPointObjectSymbol, DtPolygonSymbol, DtCompositeSymbol, and DtAggregateSymbol.
|
virtual |
Reimplemented in DtAggregateSymbol, and DtCompositeSymbol.
|
virtual |
Reimplemented in DtCompositeSymbol.
|
virtual |
|
virtual |
the bounding box - this queries the drawer
Reimplemented in DtCompositeSymbol, DtAggregateSymbol, and DtMovingObjectSymbol.
|
virtual |
|
virtual |
the selection box (area where you can select an item)
Reimplemented in DtCompositeSymbol, DtAggregateSymbol, DtMovingObjectSymbol, and DtPointObjectSymbol.
|
virtual |
Set/get the offset to the parent.
Set this if you want your child to always stay a constant distance from its parent. The offset is devined as the vector from the parent to its child
|
virtual |
|
virtual |
if the offsetToParent blit has been cleared, this returns null
|
virtual |
Shows/hides the symbol.
A symbol which is hidden is not drawn when the symbol manager goes to draw the symbol. Returns true if show/hide state changed. Supply a context to allow the control of when a symbol is ultimately shown. A symbol will not be shown until all hidden contexts are removed.
Reimplemented in DtCompositeSymbol.
|
virtual |
Reimplemented in DtCompositeSymbol.
|
virtual |
Use this method to show the symbol regardless of how many contexts have hidden it.
Same as show(DtDefaultShowHideContext)
|
virtual |
Use this method to hide a symbol without context. Same as hide(DtDefaultShowHideContext)
|
virtual |
Add/remove contexts for hide() to ignore.
Note that if a context is added, and the object is hidden by that context, it will remain hidden
|
virtual |
|
inline |
References myIgnoreContexts.
|
virtual |
The following two methods are only called if the parent is hidden Called when a child symbol of this symbol is hidden.
Reimplemented in DtCompositeSymbol.
|
virtual |
Called when a child symbol of this symbol is shown.
Reimplemented in DtCompositeSymbol.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
-— Type information
Returns true if this symbol is a combination of others (this returns false unless the class is inherited)
Reimplemented in DtCompositeSymbol.
|
virtual |
|
virtual |
|
virtual |
A tag is the name of this type of symbol such as velocity vector name or force or whatever.
|
virtual |
|
virtual |
-— Mouse selecting options
Returns true if the point intersects the symbol, if the symbol is selectable.
Reimplemented in DtResizableCircleSymbol, DtLineSymbol, DtCircleSymbol, DtPolygonSymbol, DtCompositeSymbol, DtPointObjectSymbol, DtMovingObjectSymbol, DtAreaObjectSymbol, DtLineObjectSymbol, and DtCircleObjectSymbol.
|
virtual |
Returns true if the rectangle intersects the symbol, if the symbol is selectable.
Reimplemented in DtLineSymbol, DtResizableCircleSymbol, DtCircleSymbol, DtPointObjectSymbol, DtMovingObjectSymbol, DtLineObjectSymbol, and DtCircleObjectSymbol.
|
virtual |
Set/get the ability to select with this symbol.
true by default. A Selectable symbol is a symbol that you can click on the screen using a mouse or keyboard
|
virtual |
|
virtual |
Accessors for whether or not this line can be edited.
By default it is not
Reimplemented in DtNameLabelSymbol.
|
virtual |
Reimplemented in DtNameLabelSymbol.
|
virtual |
Sets the fact that even if this symbol is not marked editable, it can become editable upon selection (myHighlight is true)
Reimplemented in DtNameLabelSymbol.
|
virtual |
|
virtual |
The following two functions are internal values kept in order to make sure that if an object has been filter modified and not shown, that it will not be selectable.
|
virtual |
|
virtual |
Add this item to the draw order regardless of whether or not it is visible on the screen.
By default this is false
|
virtual |
Reimplemented in DtEntitySymbol.
|
virtual |
Returns true if the two symbols overlap Different intersection tests are available.
Less exact tests are faster. Tolerance controls the overlap. Use the default of 0 for symbols which can touch but not overlap. Positive numbers force more space between symbols, negative numbers allow for overlap.
Reimplemented in DtCompositeSymbol, and DtAggregateSymbol.
|
virtual |
handles the case when aSymbol spans an area, such as a bitmap or a text symbol.
|
virtual |
handles the case when aSymbol is composed of line segments, such as a line, polygon, or route.
|
virtual |
Returns true if this symbol is an original symbol, otherwise return false.
|
virtual |
|
virtual |
If true, will not draw this symbol if it is part of a composite symbol.
Useful for wanting to attach symbols to composites that are hidden from view
|
virtual |
|
virtual |
|
virtual |
If true, this symbol will always be drawn first.
If more than one symbol has this property as true, they will be drawn first in the order added to the view list
|
virtual |
|
virtual |
If true, this symbol will always be drawn last.
If more than one symbol has this property as true, they will be drawn last in the order added to the view list
|
virtual |
This routine is called during symbol selection time to see if the selection of this symbol requires other symbols to be selected as well.
This routine will only be called if this symbol is scheduled to be selected. Return true if the symbols in that have been put into the supplied list are to be selected
|
virtual |
Override this function and return true if this symbol wants to update every tick regardless of performance enhancements.
Calls down to the drawer to see if this symbol needs to update
Reimplemented in DtCompositeSymbol.
|
virtual |
Noop function to allow subclasses to override.
As a base, symbols do not have color, but this routine will give an options to allow for a generic interface and have subclasses implement a color scheme
Reimplemented in DtNameLabelSymbol, and DtColorizedSymbol.
Referenced by DtSymbolDescriptor::setupOptionSymbolInformation().
|
virtual |
Noop function to allow subclasses to clear out any color information.
Reimplemented in DtNameLabelSymbol, and DtColorizedSymbol.
Opportunity to adjust the point array to some desired other points.
By default call setLocationData(). Return true if points have been modified
Reimplemented in DtResizableCircleSymbol, DtNameLabelSymbol, DtPointObjectSymbol, DtLineObjectSymbol, and DtBoxSymbol.
|
virtual |
Contains the symbol that is being dragged that represents this symbol.
The myParent variable also contains this information, however, since the parent can either be the parent in a composite symbol or a drag, this member function should be used to be sure
|
virtual |
|
virtual |
Scaling factors.
Reimplemented in DtCompositeSymbol, and DtTTFUnitSymbol.
|
virtual |
|
virtual |
Return true/false if this is a scalable symbol. By default returns false.
Reimplemented in DtCompositeSymbol, DtCircleSymbol, DtTTSSymbol, and DtBMPSymbol.
|
virtual |
|
virtual |
Sets a QTimer for the specified amount of time to fire off and then call the displayComplete() slot.
|
virtual |
|
virtual |
|
virtual |
Transparency information.
Reimplemented in DtCompositeSymbol.
Referenced by DtSymbolDescriptor::setupOptionSymbolInformation().
|
virtual |
|
virtual |
Will return true if there is no cached image or internal variables have changed such that the cached image needs a redraw.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in DtLineSymbol, DtCompositeSymbol, DtResizableCircleSymbol, DtTTSSymbol, DtCircleSymbol, DtPolygonSymbol, DtBMPSymbol, and DtColorizedSymbol.
|
virtual |
Reimplemented in DtCompositeSymbol.
|
virtual |
Will return true if transparent percent is not 0 or 100.
|
virtual |
Sets the new drawer to be the supplied drawer.
Returns a pointer to the last drawer contained
|
virtual |
|
virtual |
Returns the drawer that was set as a backup.
If there is no backup drawer, the current drawer is returned
|
virtual |
|
static |
|
virtual |
Return true/false if this symbol should be removed if it is off screen By default is true.
|
inline |
Default is true.
Note that subclasses can override this to keep the symbol onscreen even if this variable is false. This is a fallback in case subclasses do not implement this method
References myRemoveIfOffscreen.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Reimplemented in DtLineObjectSymbol.
References myAdjustPoints.
|
inline |
Reimplemented in DtLineObjectSymbol.
References myAdjustPoints.
|
inline |
Routines to access which modules this symbol is hidden by.
References myHiddenByModules.
|
inline |
References myHiddenByModules.
|
virtual |
Blocks signals from being emitted from this symbol.
Overridden to allow for possible recursive usage
Reimplemented in DtCompositeSymbol.
|
virtual |
Returns true if the origin is the center of mass (center of all points) in the symbol.
By default returns false (meaning the origin is the center)
Reimplemented in DtLineSymbol, and DtCompositeSymbol.
|
virtual |
Get/set whether or not the drawer should cache this symbol as a bitmap.
Currently only supported for font symbols. The drawer holds the image cache based on a cache key returned by the symbol. Default caching is false. Default cache key is "Symbol";
Reimplemented in DtCompositeSymbol.
|
inline |
References myCacheSymbolAsBitmap.
|
virtual |
Returns a cache key that can be used to lookup in a bitmap cache.
Default returns "Symbol". Might be recalculated when called
Reimplemented in DtTTSSymbol.
|
virtual |
Resets any relevant information associated with this symbol.
Currently only calls reset on any static animation data
Reimplemented in DtCompositeSymbol.
|
virtual |
Set/get the edit mode option to enable update properties when hidden because of edition.
Initially used to draw indicators when in edition bause the heading is being changed from the FE Indicators redrawed: Bounding box
Reimplemented in DtCompositeSymbol.
|
virtual |
Reimplemented in DtCompositeSymbol.
|
virtualslot |
This gets called when modified symbols exist and the original symbol has been destroyed.
In theory this should never happen, but just in case it does, I want to invalidate all shared data to avoid a crash.
|
virtualslot |
Call when the display of this symbol is complete.
Will emit displayComplete(const DtSymbol*) signal so others can determine what to do with this symbol
|
virtualslot |
Called when the drag clone is destroyed outside of this context, we will be notified in that case to clear out this symbols internal pointer.
|
signal |
Sent when an original symbol has been destroyed - (so that the drawer can remove that cache)
|
signal |
Called when we are destroyed, this will give our drawers a chance to update any cached information.
This differs from the above only in that it passes the "this" pointer as the symbol being destroyed
|
signal |
Sent when setOrigin is called with a different origin.
|
signal |
Sent when visibility change sending is enabled and a symbol is shown or hidden when it wasn't before.
|
signal |
Called from displayComplete()
|
protected |
Returns true if the bounding spheres of the symbols intersect and the symbols are intersectable.
|
protected |
Returns true if the bounding boxes of the symbols intersect and the symbols are intersectable.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
If this symbol is being dragged, then this will point to the symbol that was cloned for the drag.
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set to true if part of a composite and a user has selected a part of the composite that should be selected.
|
protected |
Information for symbol transparency and transparent drawing.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by adjustPoints(), and setAdjustPoints().
|
protected |
Referenced by hiddenByModule(), and hiddenByModules().
|
protected |
Referenced by ignoreContexts().
|
protected |
Referenced by setRemoveIfOffScreen().
|
protected |
Referenced by cacheSymbolAsBitmap().
|
protected |
|
mutableprotected |