VR-Forces 4.1 Class Documentation
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtLineSymbol Class Reference

class DtLineSymbol: More...

Inheritance diagram for DtLineSymbol:
Inheritance graph
[legend]

Public Types

enum  DtLineSelectionMode { DtLineSelected_None = -2, DtLineSelected_Line = -1, DtLineSelected_Point }
enum  DtArrowStyle {
  DtStyle_NoArrow = 0, DtStyle_Simple, DtStyle_Main, DtStyle_Double,
  DtStyle_Capped, DtStyle_Triangle, DtStyle_2525DispTail, DtStyle_Thick,
  DtStyle_ThickDouble, DtStyle_Feint, DtStyle_Bridge, DtStyle_AirAxis,
  DtStyle_SegmentMode, DtStyle_NoArrowDrawLine, DtStyle_ArrowStyle_MAX
}

Public Member Functions

 DtLineSymbol (DtSymbolDrawer &drawer)
 Constructors / assignment operator / destructor.
 DtLineSymbol (DtSymbolDrawer &drawer, const QPoint &startPoint, const QPoint &endPoint)
 DtLineSymbol (DtNullDrawer &drawer)
 DtLineSymbol (const DtLineSymbol &orig)
DtLineSymboloperator= (const DtLineSymbol &orig)
virtual ~DtLineSymbol ()
virtual DtSymbolclone () const
 Returns an instance of a symbol which is a copy of this.
virtual unsigned width () const
 Width of arrow that can be on the end of the line.
virtual void setWidth (unsigned w)
virtual void setLineWidth (int i)
 Width of line. Set to -1 to use drawer default.
virtual const DtDisplayPoint centerPoint () const
 The real visual center of the symbol in display coordinates.
virtual void shift (QPoint p)
 Move the center of this object by p amount.
virtual void setStartPosition (const QPoint &position)
 Set/get the location of the start of the symbol.
virtual QPoint startPosition () const
virtual void setEndPosition (const QPoint &position)
 Set/get the location of the end of the symbol.
virtual QPoint endPosition () const
virtual void setNumPoints (const int num)
virtual int getNumPoints () const
virtual void addPoint (const QPoint *pnt)
virtual void insertPoint (int iIndex, const QPoint *pnt)
virtual void removePoint (int iIndex)
virtual const QPoint getPoint (int pointNum) const
virtual void setPoint (int pointNum, const QPoint *pnt)
virtual bool setLocationData (const QPolygon *pts)
 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 bool select (const QPoint &aPoint)
 -— Mouse selecting options
virtual bool selected () const
virtual bool select (const QPoint &aPoint, const QSize &rectangleSize)
 Returns true if the rectangle intersects the symbol, if the symbol is selectable.
virtual void reverseLine ()
 Invert the direction of this line.
virtual void setKnobSize (int i)
 Accessors for point knob size (if this line can be modified)
virtual int knobSize () const
virtual void setHighlight (const bool highlight)
 Set/get the highlight flag (whether the symbol should be drawn highlighted).
virtual bool pointHighlighted () const
 Returns true if there is a point selected.
virtual int pointSelected () const
 Return the selected point.
virtual void selectPoint (int iPoint)
virtual void clearSelection ()
virtual bool pointSelected (const QPoint &pnt)
 Checks to see if the point supplied is in our knob area.
virtual void setLineSelected (bool b, int iSegment=-1)
 Sets whether or not the line portion has been selected.
virtual int segmentSelected () const
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 void setCanAddPoint (bool b)
 Set to false if cannot add or delete point.
virtual bool canAddPoint () const
virtual bool setAndCalculatePoint (int iIndex, const QPoint &pnt)
 Given a screen point, return a point on the line that will draw exactly to the screen.
virtual bool setAndCalculatePoint (int iIndex, const DtPoint &pnt, QVector< DtPoint > *list)
 No-op.
virtual void setFixedLength (int iLen)
 Sets the fixed length of the line that will be used when calculating a point on the line.
virtual DtArrowStyle arrowStyle () const
virtual void setArrowStyle (DtArrowStyle style)
 Set the style of the lines being drawn.
virtual void setDrawVertexPoints (const QVector< int > pnts)
 Sets which vertex points to draw.
virtual int getVertexOffset (int index) const
 Returns the index of the point selected.
virtual int mapPointSelectedToIndex (int iPointSelected) const
 Returns the true index of the point selected based on whether or not there is a vertex draw list.
virtual void setPenStyle (Qt::PenStyle style)
 Accessors for pen style. By default SolidLine is the style.
virtual Qt::PenStyle penStyle () const
virtual bool isSkipPoint (int pointNum) const
 Returns true if point indicated is a skip point (0xFFFFFFFF, 0xFFFFFFFF)
virtual bool freehand () const
 Sets whether or not this symbol should be treated in initial drawing in freehand mode.
virtual void setFreehand (bool b)
bool operator== (const DtLineSymbol &orig) const
bool operator!= (const DtLineSymbol &orig) const
virtual bool transparentCacheChanged () const
virtual bool keepAspectRatio () const
 Returns true if all points need to be kept in line. By default, returns false.
virtual bool originIsCenterOfMass () const
 Returns true.
- Public Member Functions inherited from DtColorizedSymbol
 DtColorizedSymbol (DtSymbolDrawer &d)
 Constructor.
virtual ~DtColorizedSymbol ()
 Destructor.
 DtColorizedSymbol (const DtColorizedSymbol &orig)
 Copy Constructor.
DtColorizedSymboloperator= (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.
- Public Member Functions inherited from DtSymbol
virtual ~DtSymbol ()
 destructor
 DtSymbol (const DtSymbol &orig)
 copy constructor
DtSymboloperator= (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 topLeftPoint () const
 The real visual top left corner of the symbol in display coordinates.
virtual void setOrigin (const QPoint &center)
 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 draw (QPainter &paint) const
virtual void drawHidden (QPainter &paint) const
virtual const DtSymbolDrawerdrawer () 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 DtSymbolparent () 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 DtStaticAnimDatastaticAnimData () 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 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 DtSymboldragClone () 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 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 DtSymbolDrawersymbolDrawer ()
 Sets the new drawer to be the supplied drawer.
virtual DtSymbolDrawersetDrawer (const DtSymbolDrawer &)
virtual DtSymbolDrawerbackupDrawer () 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 DtSymbolDisplayOptionssymbolDisplayOptions ()
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 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 double calculateLineAngle (const QPoint &origin, const QPoint &end)
 Returns angle of line (in radians) between 2 points.
- Static Public Member Functions inherited from DtColorizedSymbol
static DtSymbolcreate (DtSymbolDrawer &drawer)
- Static Public Member Functions inherited from DtSymbol
static DtNullDrawernullDrawer ()

Protected Member Functions

virtual const DtDisplayPoint calcCenterPoint () const
virtual const DtDisplayPoint calcCenterPoint (QPoint &pnt) const

Protected Attributes

QPolygon * myPoints
unsigned myWidth
int myKnobSize
int mySegmentSelected
DtLineSelectionMode mySelection
QVector< int > myDrawVertexPoints
bool myCanAddPoint
int myFixedLength
DtArrowStyle myArrowStyle
Qt::PenStyle myPenStyle
bool myFreehand
- Protected Attributes inherited from DtColorizedSymbol
QColor * myColor
int myLineWidth
- Protected Attributes inherited from DtSymbol
DtSymbolDrawermySymbolDrawer
DtSymbolDrawermyBackupDrawer
QPoint myOrigin
bool myActiveOffsetToParent
QPoint myOffsetToParent
bool myHighlight
bool myIsShown
bool myIsSelectable
bool myEditable
bool myInternalSelectable
QString myName
QString myCategoryTag
DtSymbolGeometry myGeometry
DtSymbolmyParent
DtSymbolmyDragClone
 If this symbol is being dragged, then this will point to the symbol that was cloned for the drag.
bool myIsOriginal
bool myAllowEditOnSelection
bool myAddToDrawOrder
double myScaleFactor
DtStaticAnimDatamyStaticAnimData
bool myEmitVisibilityChange
DtSymbol_DrawOrder myDrawOrder
QTimer * myTimer
DtSymbolCompositeDrawOptions myDrawOnComposite
bool myShouldSelect
 Set to true if part of a composite and a user has selected a part of the composite that should be selected.
int myTransparencyLevel
 Information for symbol transparency and transparent drawing.
QPixmap * myTransparentImage
DtSymbolmyTransparentCachedSymbol
DtSymbolDisplayOptionsmySymbolDisplayOptions
bool myAdjustPoints
QVector< DtShowHideContextmyHiddenByModules
QVector< DtShowHideContextmyIgnoreContexts
bool myRemoveIfOffscreen
bool myCacheSymbolAsBitmap
bool myEditMode
QString mySymbolBitmapCacheKey

Private Member Functions

 DtLineSymbol ()
 Not implemented. Private to ensure it is only constructed with a drawer.

Additional Inherited Members

- Public Slots inherited from DtSymbol
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 inherited from DtSymbol
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()
- Static Protected Attributes inherited from DtSymbol
static DtNullDrawer theNullDrawer

Detailed Description

class DtLineSymbol:

Instances of DtLineSymbol are arrows

Member Enumeration Documentation

Enumerator:
DtLineSelected_None 
DtLineSelected_Line 
DtLineSelected_Point 
Enumerator:
DtStyle_NoArrow 

Line, no arrow.

DtStyle_Simple 

simple arrow.

DtStyle_Main 

double arrow on one end.

DtStyle_Double 

simple arrow on both ends.

DtStyle_Capped 

capped line on both ends.

DtStyle_Triangle 

triangle

DtStyle_2525DispTail 

MilStd 2525 tail.

DtStyle_Thick 

thick arrow (Overlaylib style)

DtStyle_ThickDouble 

thick double arrow (Overlaylib style)

DtStyle_Feint 

thick arrow (Overlaylib style)

DtStyle_Bridge 

Bridge Symbol

DtStyle_AirAxis 

A air axis arrow (Overlaylib style)

DtStyle_SegmentMode 

Draws lines as a series of segments

DtStyle_NoArrowDrawLine 

Draws the line using more efficient drawLine rather than drawClippedLine. Good for lines that are not going to scale

DtStyle_ArrowStyle_MAX 

Hook for derived class extensions.

Constructor & Destructor Documentation

DtLineSymbol::DtLineSymbol ( DtSymbolDrawer drawer)

Constructors / assignment operator / destructor.

DtLineSymbol::DtLineSymbol ( DtSymbolDrawer drawer,
const QPoint &  startPoint,
const QPoint &  endPoint 
)
DtLineSymbol::DtLineSymbol ( DtNullDrawer drawer)
DtLineSymbol::DtLineSymbol ( const DtLineSymbol orig)
virtual DtLineSymbol::~DtLineSymbol ( )
virtual
DtLineSymbol::DtLineSymbol ( )
private

Not implemented. Private to ensure it is only constructed with a drawer.

Member Function Documentation

DtLineSymbol& DtLineSymbol::operator= ( const DtLineSymbol orig)
virtual DtSymbol* DtLineSymbol::clone ( ) const
virtual

Returns an instance of a symbol which is a copy of this.

The caller is responsible for freeing the memory.

Reimplemented from DtColorizedSymbol.

Reimplemented in DtPolygonSymbol, and DtBoxSymbol.

virtual unsigned DtLineSymbol::width ( ) const
virtual

Width of arrow that can be on the end of the line.

virtual void DtLineSymbol::setWidth ( unsigned  w)
virtual
virtual void DtLineSymbol::setLineWidth ( int  i)
virtual

Width of line. Set to -1 to use drawer default.

Reimplemented from DtColorizedSymbol.

virtual const DtDisplayPoint DtLineSymbol::centerPoint ( ) const
virtual

The real visual center of the symbol in display coordinates.

Reimplemented from DtSymbol.

Reimplemented in DtPolygonSymbol.

virtual void DtLineSymbol::shift ( QPoint  p)
virtual

Move the center of this object by p amount.

Reimplemented from DtSymbol.

Reimplemented in DtPolygonSymbol.

virtual void DtLineSymbol::setStartPosition ( const QPoint &  position)
virtual

Set/get the location of the start of the symbol.

virtual QPoint DtLineSymbol::startPosition ( ) const
virtual
virtual void DtLineSymbol::setEndPosition ( const QPoint &  position)
virtual

Set/get the location of the end of the symbol.

virtual QPoint DtLineSymbol::endPosition ( ) const
virtual
virtual void DtLineSymbol::setNumPoints ( const int  num)
virtual
virtual int DtLineSymbol::getNumPoints ( ) const
virtual
virtual void DtLineSymbol::addPoint ( const QPoint *  pnt)
virtual
virtual void DtLineSymbol::insertPoint ( int  iIndex,
const QPoint *  pnt 
)
virtual
virtual void DtLineSymbol::removePoint ( int  iIndex)
virtual
virtual const QPoint DtLineSymbol::getPoint ( int  pointNum) const
virtual

Reimplemented in DtPolygonSymbol.

virtual void DtLineSymbol::setPoint ( int  pointNum,
const QPoint *  pnt 
)
virtual
virtual bool DtLineSymbol::setLocationData ( const QPolygon *  )
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 from DtSymbol.

virtual const QPolygon* DtLineSymbol::getLocationData ( ) const
virtual

Provided for a simpler interface to subclasses.

Since there is only one point (the origin), this routine will return NULL

Reimplemented from DtSymbol.

virtual bool DtLineSymbol::select ( const QPoint &  aPoint)
virtual

-— Mouse selecting options

Returns true if the point intersects the symbol, if the symbol is selectable.

Reimplemented from DtSymbol.

Reimplemented in DtPolygonSymbol.

virtual bool DtLineSymbol::selected ( ) const
virtual

Reimplemented from DtSymbol.

virtual bool DtLineSymbol::select ( const QPoint &  aPoint,
const QSize &  rectangleSize 
)
virtual

Returns true if the rectangle intersects the symbol, if the symbol is selectable.

Reimplemented from DtSymbol.

virtual void DtLineSymbol::reverseLine ( )
virtual

Invert the direction of this line.

virtual void DtLineSymbol::setKnobSize ( int  i)
virtual

Accessors for point knob size (if this line can be modified)

virtual int DtLineSymbol::knobSize ( ) const
virtual
virtual void DtLineSymbol::setHighlight ( const bool  highlight)
virtual

Set/get the highlight flag (whether the symbol should be drawn highlighted).

Reimplemented from DtSymbol.

virtual bool DtLineSymbol::pointHighlighted ( ) const
virtual

Returns true if there is a point selected.

virtual int DtLineSymbol::pointSelected ( ) const
virtual

Return the selected point.

virtual void DtLineSymbol::selectPoint ( int  iPoint)
virtual
virtual void DtLineSymbol::clearSelection ( )
virtual
virtual bool DtLineSymbol::pointSelected ( const QPoint &  pnt)
virtual

Checks to see if the point supplied is in our knob area.

virtual void DtLineSymbol::setLineSelected ( bool  b,
int  iSegment = -1 
)
virtual

Sets whether or not the line portion has been selected.

The segment is the segment of the line selected

virtual int DtLineSymbol::segmentSelected ( ) const
virtual
virtual int DtLineSymbol::getNumVertexPoints ( ) const
virtual

In vertex drawing mode, returns the number of vertex points to draw and the vertex point at the particular index.

By default simple defers to getNumPoints and getPoint

virtual const QPoint DtLineSymbol::getVertexPoint ( int  pointNum) const
virtual
virtual void DtLineSymbol::setCanAddPoint ( bool  b)
virtual

Set to false if cannot add or delete point.

virtual bool DtLineSymbol::canAddPoint ( ) const
virtual
virtual bool DtLineSymbol::setAndCalculatePoint ( int  iIndex,
const QPoint &  pnt 
)
virtual

Given a screen point, return a point on the line that will draw exactly to the screen.

Will modify by fixed length if set

Reimplemented in DtBoxSymbol.

virtual bool DtLineSymbol::setAndCalculatePoint ( int  iIndex,
const DtPoint pnt,
QVector< DtPoint > *  list 
)
virtual

No-op.

Reimplemented in DtBoxSymbol.

virtual void DtLineSymbol::setFixedLength ( int  iLen)
virtual

Sets the fixed length of the line that will be used when calculating a point on the line.

Really only useful for a line that has two points. Set to 0 to not use

static double DtLineSymbol::calculateLineAngle ( const QPoint &  origin,
const QPoint &  end 
)
static

Returns angle of line (in radians) between 2 points.

virtual DtArrowStyle DtLineSymbol::arrowStyle ( ) const
virtual
Returns
the style of the lines being drawn.
virtual void DtLineSymbol::setArrowStyle ( DtArrowStyle  style)
virtual

Set the style of the lines being drawn.

virtual void DtLineSymbol::setDrawVertexPoints ( const QVector< int >  pnts)
virtual

Sets which vertex points to draw.

When getNumVertexPoints() or getVertexPoint() is called, and this member has been set, it will reference the myDrawVertexPoints to figure out which vertex to draw

virtual int DtLineSymbol::getVertexOffset ( int  index) const
virtual

Returns the index of the point selected.

If there is a vertex list, returns the offset in that list

virtual int DtLineSymbol::mapPointSelectedToIndex ( int  iPointSelected) const
virtual

Returns the true index of the point selected based on whether or not there is a vertex draw list.

virtual void DtLineSymbol::setPenStyle ( Qt::PenStyle  style)
virtual

Accessors for pen style. By default SolidLine is the style.

virtual Qt::PenStyle DtLineSymbol::penStyle ( ) const
virtual
virtual bool DtLineSymbol::isSkipPoint ( int  pointNum) const
virtual

Returns true if point indicated is a skip point (0xFFFFFFFF, 0xFFFFFFFF)

virtual bool DtLineSymbol::freehand ( ) const
virtual

Sets whether or not this symbol should be treated in initial drawing in freehand mode.

Freehand mode tracks mouse movement and adds a point for every mouse position change. By default, this mode is false

virtual void DtLineSymbol::setFreehand ( bool  b)
virtual
bool DtLineSymbol::operator== ( const DtLineSymbol orig) const
bool DtLineSymbol::operator!= ( const DtLineSymbol orig) const
virtual bool DtLineSymbol::transparentCacheChanged ( ) const
virtual

Reimplemented from DtColorizedSymbol.

Reimplemented in DtPolygonSymbol.

virtual bool DtLineSymbol::keepAspectRatio ( ) const
virtual

Returns true if all points need to be kept in line. By default, returns false.

Reimplemented in DtBoxSymbol.

virtual bool DtLineSymbol::originIsCenterOfMass ( ) const
virtual

Returns true.

Reimplemented from DtSymbol.

virtual const DtDisplayPoint DtLineSymbol::calcCenterPoint ( ) const
protectedvirtual

Reimplemented in DtPolygonSymbol.

virtual const DtDisplayPoint DtLineSymbol::calcCenterPoint ( QPoint &  pnt) const
protectedvirtual

Member Data Documentation

QPolygon* DtLineSymbol::myPoints
protected
unsigned DtLineSymbol::myWidth
protected
int DtLineSymbol::myKnobSize
protected
int DtLineSymbol::mySegmentSelected
protected
DtLineSelectionMode DtLineSymbol::mySelection
protected
QVector<int> DtLineSymbol::myDrawVertexPoints
protected
bool DtLineSymbol::myCanAddPoint
protected
int DtLineSymbol::myFixedLength
protected
DtArrowStyle DtLineSymbol::myArrowStyle
protected
Qt::PenStyle DtLineSymbol::myPenStyle
protected
bool DtLineSymbol::myFreehand
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)