VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtNameLabelSymbol Class Reference
Inheritance diagram for DtNameLabelSymbol:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtNameLabelSymbol ()
 Constructor.
 DtNameLabelSymbol (DtSymbolDrawer &d)
virtual ~DtNameLabelSymbol ()
 Destructor.
 DtNameLabelSymbol (const DtNameLabelSymbol &orig)
 Copy Constructor.
DtNameLabelSymboloperator= (const DtNameLabelSymbol &rhs)
 Assignment Operator.
virtual DtSymbolclone () const
 Returns an instance of a symbol which is a copy of this.
virtual DtTTSSymbolname ()
virtual void setName (DtTTSSymbol *s)
virtual DtTTSSymbollabel ()
virtual void setLabel (DtTTSSymbol *s)
virtual DtTTSSymbollayer ()
virtual void setLayer (DtTTSSymbol *s)
virtual int resetLabelPositions () const
virtual bool offsetFromBottom () const
 Return true if you want to offset labels from bottom of symbol.
virtual void setOffsetFromBottom (bool b)
virtual void setColor (const QColor &col)
 Sets the color of the main symbol and name/label.
virtual void setMainSymbolColor (const QColor &col)
 Set the color of the main symbol if it is a DtColorizedSymbol.
virtual QColor * mainSymbolColor () const
virtual void setPenColor (const QColor &col)
 Sets the pen color for both name and label symbol (if exist)
virtual QColor penColor () const
virtual void setNeedsLabelUpdate (bool b)
virtual bool needsLabelUpdate () const
virtual bool addNameLabel () const
virtual bool addLabelLabel () const
virtual bool addLayerLabel () const
virtual bool canChangeFont () const
 Return true if the dialog (point dialog only) should show a font change section rather than the default height above terrain section.
virtual void setName (const QString &name)
 The specific name of this symbol.
virtual QString getName () const
virtual void setLabel (const QString &label)
virtual QString getLabel () const
virtual void setLayer (const QString &label)
virtual QString getLayer () const
virtual const QFont * font () const
virtual void setFontname (const QString &font)
virtual bool adjustPoints (QPolygon &pnts, bool constrain)
 Opportunity to adjust the point array to some desired other points.
virtual void setEditable (bool b)
 Accessors for whether or not this line can be edited.
virtual bool editable () const
virtual void setAllowEditOnSelection (bool b)
 Set in main symbol as well.
virtual bool supportsRightClickDialog () const
 Returns true as to whether or not dialogs can be shown on right clicks.
virtual bool freehand () const
 Returns true if main symbol is in freehand mode.
virtual DtTTSSymbolcreateNameSymbol ()
 Must set drawer to draw labels before being able to create.
virtual DtTTSSymbolcreateLabelSymbol ()
virtual void setLabelDrawer (DtSymbolDrawer *drawer)
void setPositionLabelChildren (bool)
bool positionLabelChildren () const
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 clearColor ()
 Noop function to allow subclasses to clear out any color information.
virtual void clearMainSymbolColor ()

Static Public Member Functions

static DtSymbolcreate (DtSymbolDrawer &drawer)

Protected Member Functions

virtual DtTTSSymbolcreateTextSymbol ()

Protected Attributes

DtTTSSymbolmyName
DtTTSSymbolmyLabel
DtTTSSymbolmyLayer
QColor myLabelColor
bool myNeedsLabelUpdate
bool myOffsetFromBottom
QString myFontname
DtSymbolDrawermyLabelDrawer
bool myPositionLabelChildren

Constructor & Destructor Documentation

Constructor.

Destructor.

Copy Constructor.


Member Function Documentation

DtNameLabelSymbol& DtNameLabelSymbol::operator= ( const DtNameLabelSymbol rhs)

Assignment Operator.

virtual DtSymbol* DtNameLabelSymbol::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 DtCompositeSymbol.

Reimplemented in DtMovingObjectSymbol, DtEntitySymbol, DtPointObjectSymbol, DtLineObjectSymbol, DtCircleObjectSymbol, and DtAreaObjectSymbol.

virtual DtTTSSymbol* DtNameLabelSymbol::name ( ) [virtual]
virtual void DtNameLabelSymbol::setName ( DtTTSSymbol s) [virtual]
virtual DtTTSSymbol* DtNameLabelSymbol::label ( ) [virtual]
virtual void DtNameLabelSymbol::setLabel ( DtTTSSymbol s) [virtual]
virtual DtTTSSymbol* DtNameLabelSymbol::layer ( ) [virtual]
virtual void DtNameLabelSymbol::setLayer ( DtTTSSymbol s) [virtual]
virtual int DtNameLabelSymbol::resetLabelPositions ( ) const [virtual]
virtual bool DtNameLabelSymbol::offsetFromBottom ( ) const [virtual]

Return true if you want to offset labels from bottom of symbol.

virtual void DtNameLabelSymbol::setOffsetFromBottom ( bool  b) [virtual]
virtual void DtNameLabelSymbol::setColor ( const QColor &  col) [virtual]

Sets the color of the main symbol and name/label.

Reimplemented from DtSymbol.

virtual void DtNameLabelSymbol::setMainSymbolColor ( const QColor &  col) [virtual]

Set the color of the main symbol if it is a DtColorizedSymbol.

virtual QColor* DtNameLabelSymbol::mainSymbolColor ( ) const [virtual]
virtual void DtNameLabelSymbol::setPenColor ( const QColor &  col) [virtual]

Sets the pen color for both name and label symbol (if exist)

Reimplemented in DtMovingObjectSymbol, and DtEntitySymbol.

virtual QColor DtNameLabelSymbol::penColor ( ) const [virtual]
virtual void DtNameLabelSymbol::setNeedsLabelUpdate ( bool  b) [virtual]
virtual bool DtNameLabelSymbol::needsLabelUpdate ( ) const [virtual]
virtual bool DtNameLabelSymbol::addNameLabel ( ) const [virtual]
virtual bool DtNameLabelSymbol::addLabelLabel ( ) const [virtual]
virtual bool DtNameLabelSymbol::addLayerLabel ( ) const [virtual]
virtual bool DtNameLabelSymbol::canChangeFont ( ) const [virtual]

Return true if the dialog (point dialog only) should show a font change section rather than the default height above terrain section.

By default returns false

virtual void DtNameLabelSymbol::setName ( const QString &  name) [virtual]

The specific name of this symbol.

Reimplemented from DtSymbol.

virtual QString DtNameLabelSymbol::getName ( ) const [virtual]
virtual void DtNameLabelSymbol::setLabel ( const QString &  label) [virtual]
virtual QString DtNameLabelSymbol::getLabel ( ) const [virtual]
virtual void DtNameLabelSymbol::setLayer ( const QString &  label) [virtual]
virtual QString DtNameLabelSymbol::getLayer ( ) const [virtual]
virtual const QFont* DtNameLabelSymbol::font ( ) const [virtual]
virtual void DtNameLabelSymbol::setFontname ( const QString &  font) [virtual]
virtual bool DtNameLabelSymbol::adjustPoints ( QPolygon &  pnts,
bool  constrain 
) [virtual]

Opportunity to adjust the point array to some desired other points.

By default call setLocationData(). Return true if points have been modified

Reimplemented from DtSymbol.

Reimplemented in DtPointObjectSymbol, and DtLineObjectSymbol.

virtual void DtNameLabelSymbol::setEditable ( bool  b) [virtual]

Accessors for whether or not this line can be edited.

By default it is not

Reimplemented from DtSymbol.

virtual bool DtNameLabelSymbol::editable ( ) const [virtual]

Reimplemented from DtSymbol.

virtual void DtNameLabelSymbol::setAllowEditOnSelection ( bool  b) [virtual]

Set in main symbol as well.

Reimplemented from DtSymbol.

Returns true as to whether or not dialogs can be shown on right clicks.

By default is true

Reimplemented in DtPointObjectSymbol.

virtual bool DtNameLabelSymbol::freehand ( ) const [virtual]

Returns true if main symbol is in freehand mode.

Must set drawer to draw labels before being able to create.

virtual void DtNameLabelSymbol::setLabelDrawer ( DtSymbolDrawer drawer) [virtual]
virtual void DtNameLabelSymbol::copyDataFrom ( const DtSymbol symbol) [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 from DtSymbol.

Reimplemented in DtEntitySymbol, and DtMovingObjectSymbol.

virtual void DtNameLabelSymbol::clearColor ( ) [virtual]

Noop function to allow subclasses to clear out any color information.

Reimplemented from DtSymbol.

virtual void DtNameLabelSymbol::clearMainSymbolColor ( ) [virtual]
static DtSymbol* DtNameLabelSymbol::create ( DtSymbolDrawer drawer) [static]
virtual DtTTSSymbol* DtNameLabelSymbol::createTextSymbol ( ) [protected, virtual]

Member Data Documentation

Reimplemented from DtSymbol.

QColor DtNameLabelSymbol::myLabelColor [protected]
QString DtNameLabelSymbol::myFontname [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)