![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtPointObjectSymbol: More...

Public Types | |
| enum | DtPointObjectAlignment { DtPointObjectCentered = 0, DtPointObjectBottomCentered = 1 } |
Public Member Functions | |
| DtPointObjectSymbol (DtSymbolDrawer &d) | |
| Constructor. | |
| virtual | ~DtPointObjectSymbol () |
| Destructor. | |
| DtPointObjectSymbol (const DtPointObjectSymbol &orig) | |
| Copy Constructor. | |
| DtPointObjectSymbol & | operator= (const DtPointObjectSymbol &rhs) |
| Assignment Operator. | |
| virtual void | setHighlight (const bool highlight) |
| Set/get the highlight flag (whether the symbol should be drawn highlighted). | |
| virtual bool | highlight () const |
| 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 DtDisplayPoint | centerPoint () const |
| Set/get the location of the center of the symbol. | |
| virtual const QPoint | origin () const |
| returns the display origin for the symbol. | |
| virtual bool | select (const QPoint &point) |
| Checks to see if any children symbols intersect. | |
| virtual bool | select (const QPoint &point, const QSize &s) |
| Returns true if the rectangle intersects the symbol, if the symbol is selectable. | |
| virtual QRect | selBbox () const |
| Get the selection box (area where you can select an item) | |
| virtual void | shift (QPoint p) |
| Move the center of this object by p amount. | |
| virtual DtSymbol * | clone () const |
| Returns an instance of a symbol which is a copy of this. | |
| virtual bool | adjustPoints (QPolygon &pnts, bool constrain) |
| Returns true if point array has been changed. | |
| virtual bool | supportsRightClickDialog () const |
| Returns true as to whether or not dialogs can be shown on right clicks. | |
| void | setAlignment (DtPointObjectAlignment) |
| DtPointObjectAlignment | alignment () const |
| virtual void | draw (DtSymbol *symbol, QPainter &paint) const |
| Draws the symbol. | |
| virtual void | setRotateToHeading (bool b) |
| virtual bool | rotateToHeading () const |
| virtual void | setRotationValue (double d) |
| virtual double | rotationValue () const |
Static Public Member Functions | |
| static DtSymbol * | create (DtSymbolDrawer &drawer) |
Protected Attributes | |
| DtPointObjectAlignment | myAlignment |
| double | myRotationValue |
| bool | myRotateToHeading |
Private Member Functions | |
| DtPointObjectSymbol () | |
| Not implemented. Private to ensure it is only constructed with a drawer. | |
class DtPointObjectSymbol:
Instances of DtPointObjectSymbol are
Constructor.
| virtual DtPointObjectSymbol::~DtPointObjectSymbol | ( | ) | [virtual] |
Destructor.
| DtPointObjectSymbol::DtPointObjectSymbol | ( | const DtPointObjectSymbol & | orig | ) |
Copy Constructor.
| DtPointObjectSymbol::DtPointObjectSymbol | ( | ) | [private] |
Not implemented. Private to ensure it is only constructed with a drawer.
| DtPointObjectSymbol& DtPointObjectSymbol::operator= | ( | const DtPointObjectSymbol & | rhs | ) |
Assignment Operator.
| virtual void DtPointObjectSymbol::setHighlight | ( | const bool | highlight | ) | [virtual] |
Set/get the highlight flag (whether the symbol should be drawn highlighted).
Reimplemented from DtCompositeSymbol.
| virtual bool DtPointObjectSymbol::highlight | ( | ) | const [virtual] |
Reimplemented from DtSymbol.
| virtual void DtPointObjectSymbol::setOrigin | ( | const QPoint & | center | ) | [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 from DtSymbol.
| virtual void DtPointObjectSymbol::setOrigin | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Same as above.
Reimplemented from DtSymbol.
| virtual const DtDisplayPoint DtPointObjectSymbol::centerPoint | ( | ) | const [virtual] |
Set/get the location of the center of the symbol.
Also set the children if they have the offset variable
Reimplemented from DtCompositeSymbol.
| virtual const QPoint DtPointObjectSymbol::origin | ( | ) | const [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 from DtSymbol.
| virtual bool DtPointObjectSymbol::select | ( | const QPoint & | point | ) | [virtual] |
Checks to see if any children symbols intersect.
Reimplemented from DtCompositeSymbol.
| virtual bool DtPointObjectSymbol::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 QRect DtPointObjectSymbol::selBbox | ( | ) | const [virtual] |
Get the selection box (area where you can select an item)
Reimplemented from DtCompositeSymbol.
| virtual void DtPointObjectSymbol::shift | ( | QPoint | p | ) | [virtual] |
Move the center of this object by p amount.
Reimplemented from DtCompositeSymbol.
| virtual DtSymbol* DtPointObjectSymbol::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 DtNameLabelSymbol.
| virtual bool DtPointObjectSymbol::adjustPoints | ( | QPolygon & | pnts, |
| bool | constrain | ||
| ) | [virtual] |
Returns true if point array has been changed.
Reimplemented from DtNameLabelSymbol.
| virtual bool DtPointObjectSymbol::supportsRightClickDialog | ( | ) | const [virtual] |
Returns true as to whether or not dialogs can be shown on right clicks.
By default is true
Reimplemented from DtNameLabelSymbol.
| void DtPointObjectSymbol::setAlignment | ( | DtPointObjectAlignment | i | ) | [inline] |
References myAlignment.
| DtPointObjectSymbol::DtPointObjectAlignment DtPointObjectSymbol::alignment | ( | ) | const [inline] |
References myAlignment.
| virtual void DtPointObjectSymbol::draw | ( | DtSymbol * | symbol, |
| QPainter & | paint | ||
| ) | const [virtual] |
Draws the symbol.
Override for any specific drawing. Called for each symbol to be drawn
Reimplemented from DtCompositeSymbol.
| virtual void DtPointObjectSymbol::setRotateToHeading | ( | bool | b | ) | [virtual] |
| virtual bool DtPointObjectSymbol::rotateToHeading | ( | ) | const [virtual] |
| virtual void DtPointObjectSymbol::setRotationValue | ( | double | d | ) | [virtual] |
| virtual double DtPointObjectSymbol::rotationValue | ( | ) | const [virtual] |
| static DtSymbol* DtPointObjectSymbol::create | ( | DtSymbolDrawer & | drawer | ) | [static] |
Reimplemented from DtNameLabelSymbol.
Referenced by alignment(), and setAlignment().
double DtPointObjectSymbol::myRotationValue [protected] |
bool DtPointObjectSymbol::myRotateToHeading [protected] |