Public Member Functions |
| | DtResizableCircleSymbol (DtSymbolDrawer &drawer) |
| | Constructor.
|
| | DtResizableCircleSymbol (DtNullDrawer &drawer) |
| | Constructor.
|
| | DtResizableCircleSymbol (const DtResizableCircleSymbol &orig) |
| | Copy Constructor.
|
| DtResizableCircleSymbol & | operator= (const DtResizableCircleSymbol &orig) |
| | Assignment Operator.
|
| virtual | ~DtResizableCircleSymbol () |
| | Destructor.
|
| virtual DtSymbol * | clone () const |
| | Create a clone of this symbol.
|
| virtual bool | originSelected () const |
| | The following methods will test the particular selection flags and return true if the particular flag is set.
|
| virtual bool | circleSelected () const |
| virtual bool | anythingSelected () const |
| virtual QPoint | xOriginPoint () const |
| | Returns xOriginPoint. Set when radius is set.
|
| virtual QPoint | endPoint () const |
| virtual void | setOrigin (int x, int y) |
| | Same as above.
|
| virtual void | setOrigin (const QPoint &origin) |
| | Set the display coordinate that will become the 0,0 point for drawing this symbol.
|
| virtual void | setRadius (const double r) |
| | Also sets the end point based on the radius.
|
| virtual void | setOriginRadius (double r) |
| | Sets the radius of the origin point. Initially 3 pixels.
|
| virtual double | originRadius () const |
| virtual void | setResizing (bool b) |
| | Sets whether or not this symbol is in the act of resizing.
|
| virtual bool | resizing () const |
| virtual void | setCreateFixed (bool b) |
| | If true, automatically adds second point to create a fixed size circle.
|
| virtual bool | createFixed () const |
| virtual int | pointSelected () const |
| | Returns the point selected.
|
| virtual bool | pointHighlighted () const |
| virtual bool | setLocationData (const QPolygon *pts) |
| | Use this routine to make sure we reflect any changes in viewport or movement.
|
| virtual const QPolygon * | getLocationData () const |
| | Provided for a simpler interface to subclasses.
|
| virtual int | getNumPoints () const |
| virtual QPoint | getPoint (int iIndex) const |
| virtual void | setKnobSize (int i) |
| | Accessors for point knob size (if this line can be modified)
|
| virtual int | knobSize () const |
| virtual QPoint | computeEndPointForOrigin (const QPoint &origin, const QPoint &end) |
| virtual void | setSelectedPoint (int i) |
| | Sets the point to be selected.
|
| virtual int | getNumVertexPoints () const |
| | In vertex drawing mode, returns the number of vertex points to draw and the vertex point at the particular index.
|
| virtual const QPoint | getVertexPoint (int pointNum) const |
| virtual int | setEndPoint (const QPoint &pnt) |
| | Sets the end point (x) radius of the circle. Simply calls setLocationData.
|
| virtual bool | select (const QPoint &aPoint) |
| | Check to see if the circle or origin is selected.
|
| virtual bool | select (const QPoint &aPoint, const QSize &aSize) |
| | Returns true if the rectangle intersects the symbol, if the symbol is selectable.
|
| virtual bool | selected () const |
| virtual int | modelPointSelected () const |
| | DtCircleSymbol (DtSymbolDrawer &drawer) |
| | Constructor.
|
| | DtCircleSymbol (DtNullDrawer &drawer) |
| | Constructor.
|
| | DtCircleSymbol (const DtCircleSymbol &orig) |
| | Copy Constructor.
|
| DtCircleSymbol & | operator= (const DtCircleSymbol &orig) |
| | Assignment Operatior.
|
| virtual | ~DtCircleSymbol () |
| | Destructor.
|
| virtual double | radius () const |
| | Get the radius of the circle.
|
| virtual void | setYRadius (const double r) |
| | Set the horizontal radius of an ellipse.
|
| virtual double | yRadius () const |
| | Get the horizontal radius of an ellipse.
|
| virtual void | setRotationDegrees (const double rot) |
| | Set the number of degrees to rotate the ellipse.
|
| virtual double | rotationDegrees () const |
| | Get the number of degrees to rotate the ellipse.
|
| virtual void | setCircleStyle (DtCircleStyle style) |
| | Style settings.
|
| virtual DtCircleStyle | circleStyle () const |
| virtual void | setBrushStyle (Qt::BrushStyle style) |
| virtual Qt::BrushStyle | brushStyle () const |
| virtual void | setPenStyle (Qt::PenStyle style) |
| virtual Qt::PenStyle | penStyle () const |
| virtual bool | pointInCircle (const QPoint &aPoint, QPoint ¢erPoint, float xRadius, float yRadius, int penThickness) |
| | See if the supplied point is within the given filled circle.
|
| virtual bool | rectInCircle (const QRect &aPoint, QPoint ¢erPoint, float xRadius, float yRadius, int penThickness) |
| | See if the supplied rectangle is within the given filled circle.
|
| virtual bool | rectInSmallerCircle (const QRect &aRect, QPoint ¢erPoint, float xRadius, float yRadius, int penThickness) |
| bool | operator== (const DtCircleSymbol &orig) const |
| bool | operator!= (const DtCircleSymbol &orig) const |
| virtual void | setArcInfo (double radius, int sweep, double arcStartAngle) |
| | Information for drawing arcs in circle drawer arcEnd is center point of arc end and sweep is the angle of sweep (0 to 360).
|
| virtual const DtArcInfo * | arcInfo () const |
| virtual void | clearArcInfo () |
| virtual Qt::PenStyle | crossHairStyle () const |
| virtual void | setCrossHairStyle (Qt::PenStyle style) |
| virtual bool | patternCacheChanged () const |
| virtual void | cachePatternVariables () |
| virtual bool | needsPatternRedraw () const |
| virtual QPixmap * | patternImage () const |
| virtual QPixmap * | cachePatternImage (const QPixmap &pixmap) |
| void | setScaleRadiusByScaleFactor (bool) |
| | If true, when returning radius, it will be scaled by the scaleBy() method.
|
| bool | scaleRadiusByScaleFactor () const |
| virtual bool | isScalable () const |
| | Return true/false if this is a scalable symbol. By default returns false.
|
| | DtColorizedSymbol (DtSymbolDrawer &d) |
| | Constructor.
|
| virtual | ~DtColorizedSymbol () |
| | Destructor.
|
| | DtColorizedSymbol (const DtColorizedSymbol &orig) |
| | Copy Constructor.
|
| DtColorizedSymbol & | operator= (const DtColorizedSymbol &rhs) |
| | Assignment Operator.
|
| virtual QColor * | color () const |
| virtual void | setColor (const QColor &col) |
| | Noop function to allow subclasses to override.
|
| virtual void | clearColor () |
| | Noop function to allow subclasses to clear out any color information.
|
| bool | operator== (const DtColorizedSymbol &orig) const |
| bool | operator!= (const DtColorizedSymbol &orig) const |
| virtual int | lineWidth () const |
| | Width of line. Set to -1 to use drawer default.
|
| virtual void | setLineWidth (int i) |
| 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 void | setName (const QString &name) |
| | The specific name of this symbol.
|
| virtual const QString & | name () const |
| virtual bool | highlight () 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 const QPoint | origin () const |
| | returns the display origin for the symbol.
|
| 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 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 | 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 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 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) |