![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtNameLabelSymbol () | |
| Constructor. | |
| DtNameLabelSymbol (DtSymbolDrawer &d) | |
| virtual | ~DtNameLabelSymbol () |
| Destructor. | |
| DtNameLabelSymbol (const DtNameLabelSymbol &orig) | |
| Copy Constructor. | |
| DtNameLabelSymbol & | operator= (const DtNameLabelSymbol &rhs) |
| Assignment Operator. | |
| virtual DtSymbol * | clone () const |
| Returns an instance of a symbol which is a copy of this. | |
| virtual DtTTSSymbol * | name () |
| virtual void | setName (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | label () |
| virtual void | setLabel (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | layer () |
| 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 DtTTSSymbol * | createNameSymbol () |
| Must set drawer to draw labels before being able to create. | |
| virtual DtTTSSymbol * | createLabelSymbol () |
| 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 DtSymbol * | create (DtSymbolDrawer &drawer) |
Protected Member Functions | |
| virtual DtTTSSymbol * | createTextSymbol () |
Protected Attributes | |
| DtTTSSymbol * | myName |
| DtTTSSymbol * | myLabel |
| DtTTSSymbol * | myLayer |
| QColor | myLabelColor |
| bool | myNeedsLabelUpdate |
| bool | myOffsetFromBottom |
| QString | myFontname |
| DtSymbolDrawer * | myLabelDrawer |
| bool | myPositionLabelChildren |
Constructor.
| virtual DtNameLabelSymbol::~DtNameLabelSymbol | ( | ) | [virtual] |
Destructor.
| DtNameLabelSymbol::DtNameLabelSymbol | ( | const DtNameLabelSymbol & | orig | ) |
Copy Constructor.
| 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] |
Reimplemented in DtMovingObjectSymbol, DtEntitySymbol, DtLineObjectSymbol, and DtCircleObjectSymbol.
| 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.
| virtual bool DtNameLabelSymbol::supportsRightClickDialog | ( | ) | const [virtual] |
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.
| virtual DtTTSSymbol* DtNameLabelSymbol::createNameSymbol | ( | ) | [virtual] |
Must set drawer to draw labels before being able to create.
| virtual DtTTSSymbol* DtNameLabelSymbol::createLabelSymbol | ( | ) | [virtual] |
| virtual void DtNameLabelSymbol::setLabelDrawer | ( | DtSymbolDrawer * | drawer | ) | [virtual] |
| void DtNameLabelSymbol::setPositionLabelChildren | ( | bool | b | ) | [inline] |
References myPositionLabelChildren.
| bool DtNameLabelSymbol::positionLabelChildren | ( | ) | const [inline] |
References myPositionLabelChildren.
| 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] |
Reimplemented from DtCompositeSymbol.
Reimplemented in DtPointObjectSymbol, DtLineObjectSymbol, DtAreaObjectSymbol, and DtCircleObjectSymbol.
| virtual DtTTSSymbol* DtNameLabelSymbol::createTextSymbol | ( | ) | [protected, virtual] |
DtTTSSymbol* DtNameLabelSymbol::myName [protected] |
Reimplemented from DtSymbol.
DtTTSSymbol* DtNameLabelSymbol::myLabel [protected] |
DtTTSSymbol* DtNameLabelSymbol::myLayer [protected] |
QColor DtNameLabelSymbol::myLabelColor [protected] |
bool DtNameLabelSymbol::myNeedsLabelUpdate [protected] |
bool DtNameLabelSymbol::myOffsetFromBottom [protected] |
QString DtNameLabelSymbol::myFontname [protected] |
DtSymbolDrawer* DtNameLabelSymbol::myLabelDrawer [protected] |
bool DtNameLabelSymbol::myPositionLabelChildren [protected] |
Referenced by positionLabelChildren(), and setPositionLabelChildren().