![]() |
VR-Forces 4.0.4 Class Documentation
|
A mocing symbol contains items that are common to symbols that move. More...

Public Member Functions | |
| DtMovingObjectSymbol (DtSymbolDrawer &d) | |
| Constructor. | |
| virtual | ~DtMovingObjectSymbol () |
| Destructor. | |
| DtMovingObjectSymbol (const DtMovingObjectSymbol &orig) | |
| Copy Constructor. | |
| DtMovingObjectSymbol & | operator= (const DtMovingObjectSymbol &rhs) |
| Assignment Operator. | |
| virtual void | copyDataFrom (const DtSymbol *symbol) |
| Copy specific heading, etc. information. | |
| virtual void | setHighlight (const bool highlight) |
| Draw -> draws the children not itself... | |
| virtual bool | highlight () const |
| virtual void | setOrigin (int x, int y) |
| Same as above. | |
| virtual void | setOrigin (const QPoint &position) |
| Set the display coordinate that will become the 0,0 point for drawing this symbol. | |
| 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 | selectPart (const QPoint &point) |
| See if something that is part of this entity symbol wants to be selected. | |
| virtual bool | select (const QPoint &point, const QSize &s) |
| Returns true if the rectangle intersects the symbol, if the symbol is selectable. | |
| virtual QSize | bbox () const |
| Calculates size of the composite based on its children. | |
| virtual QRect | selBbox () const |
| Get the selection box (area where you can select an item) | |
| virtual DtLineSymbol * | velocityIndicator () |
| virtual void | setVelocityIndicator (DtLineSymbol *s) |
| virtual DtLineSymbol * | headingIndicator () |
| virtual void | setHeadingIndicator (DtLineSymbol *s) |
| virtual DtSymbol * | damagedSymbol () |
| virtual void | setDamagedSymbol (DtSymbol *s) |
| virtual DtSymbol * | objectConsoleWarningIndicator () |
| virtual void | setObjectConsoleWarningIndicator (DtSymbol *s) |
| virtual DtTTSSymbol * | location () |
| virtual void | setLocation (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | velocity () |
| virtual void | setVelocity (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | acceleration () |
| virtual void | setAcceleration (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | heading () |
| virtual void | setHeading (DtTTSSymbol *s) |
| virtual DtTTSSymbol * | entityType () |
| virtual void | setEntityType (DtTTSSymbol *s) |
| virtual DtSymbol * | clone () const |
| Returns an instance of a symbol which is a copy of this. | |
| virtual int | resetLabelPositions () const |
| virtual void | setPenColor (const QColor &color) |
| Sets the color of all labels. | |
| virtual void | shift (QPoint p) |
| Move the center of this object by p amount. | |
| virtual void | setRotateToHeading (bool b) |
| Accessors for rotation. | |
| virtual bool | rotateToHeading () const |
| virtual void | setRotationValue (double d) |
| Value must be in degrees. | |
| virtual double | rotationValue () const |
Protected Types | |
| enum | DtPartSelected { DtPartSelected_None = 0, DtPartSelected_MainSymbol, DtPartSelected_HeadingIndicator } |
Protected Member Functions | |
| virtual DtSymbol * | editableSymbol () |
| Returns the heading indicator, if selected. | |
| virtual void | draw (DtSymbol *symbol, QPainter &paint) const |
| Draws the symbol. | |
Protected Attributes | |
| DtLineSymbol * | myVelocityIndicator |
| DtLineSymbol * | myHeadingIndicator |
| DtTTSSymbol * | myLocation |
| DtTTSSymbol * | myVelocity |
| DtTTSSymbol * | myAcceleration |
| DtTTSSymbol * | myHeading |
| DtTTSSymbol * | myEntityType |
| DtSymbol * | myDamagedSymbol |
| DtSymbol * | myObjectConsoleWarningIndicator |
| DtPartSelected | myPartSelected |
| bool | myRotateToHeading |
| double | myRotationValue |
| bool | myAllowHeadingEditOnSelection |
Private Member Functions | |
| DtMovingObjectSymbol () | |
| Not implemented. Private to ensure it is only constructed with a drawer. | |
A mocing symbol contains items that are common to symbols that move.
enum DtMovingObjectSymbol::DtPartSelected [protected] |
Constructor.
| virtual DtMovingObjectSymbol::~DtMovingObjectSymbol | ( | ) | [virtual] |
Destructor.
| DtMovingObjectSymbol::DtMovingObjectSymbol | ( | const DtMovingObjectSymbol & | orig | ) |
Copy Constructor.
| DtMovingObjectSymbol::DtMovingObjectSymbol | ( | ) | [private] |
Not implemented. Private to ensure it is only constructed with a drawer.
| DtMovingObjectSymbol& DtMovingObjectSymbol::operator= | ( | const DtMovingObjectSymbol & | rhs | ) |
Assignment Operator.
| virtual void DtMovingObjectSymbol::copyDataFrom | ( | const DtSymbol * | symbol | ) | [virtual] |
Copy specific heading, etc. information.
Reimplemented from DtNameLabelSymbol.
Reimplemented in DtEntitySymbol.
| virtual void DtMovingObjectSymbol::setHighlight | ( | const bool | highlight | ) | [virtual] |
Draw -> draws the children not itself...
Reimplemented from DtCompositeSymbol.
| virtual bool DtMovingObjectSymbol::highlight | ( | ) | const [virtual] |
Reimplemented from DtSymbol.
| virtual void DtMovingObjectSymbol::setOrigin | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Same as above.
Reimplemented from DtSymbol.
| virtual void DtMovingObjectSymbol::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 const DtDisplayPoint DtMovingObjectSymbol::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 DtMovingObjectSymbol::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 DtMovingObjectSymbol::select | ( | const QPoint & | point | ) | [virtual] |
Checks to see if any children symbols intersect.
Reimplemented from DtCompositeSymbol.
| virtual bool DtMovingObjectSymbol::selectPart | ( | const QPoint & | point | ) | [virtual] |
See if something that is part of this entity symbol wants to be selected.
Currently only checks heading indicator, if it is editable
| virtual bool DtMovingObjectSymbol::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 QSize DtMovingObjectSymbol::bbox | ( | ) | const [virtual] |
Calculates size of the composite based on its children.
Reimplemented from DtCompositeSymbol.
| virtual QRect DtMovingObjectSymbol::selBbox | ( | ) | const [virtual] |
Get the selection box (area where you can select an item)
Reimplemented from DtCompositeSymbol.
| virtual DtLineSymbol* DtMovingObjectSymbol::velocityIndicator | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setVelocityIndicator | ( | DtLineSymbol * | s | ) | [virtual] |
| virtual DtLineSymbol* DtMovingObjectSymbol::headingIndicator | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setHeadingIndicator | ( | DtLineSymbol * | s | ) | [virtual] |
| virtual DtSymbol* DtMovingObjectSymbol::damagedSymbol | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setDamagedSymbol | ( | DtSymbol * | s | ) | [virtual] |
| virtual DtSymbol* DtMovingObjectSymbol::objectConsoleWarningIndicator | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setObjectConsoleWarningIndicator | ( | DtSymbol * | s | ) | [virtual] |
| virtual DtTTSSymbol* DtMovingObjectSymbol::location | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setLocation | ( | DtTTSSymbol * | s | ) | [virtual] |
| virtual DtTTSSymbol* DtMovingObjectSymbol::velocity | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setVelocity | ( | DtTTSSymbol * | s | ) | [virtual] |
| virtual DtTTSSymbol* DtMovingObjectSymbol::acceleration | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setAcceleration | ( | DtTTSSymbol * | s | ) | [virtual] |
| virtual DtTTSSymbol* DtMovingObjectSymbol::heading | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setHeading | ( | DtTTSSymbol * | s | ) | [virtual] |
| virtual DtTTSSymbol* DtMovingObjectSymbol::entityType | ( | ) | [virtual] |
| virtual void DtMovingObjectSymbol::setEntityType | ( | DtTTSSymbol * | s | ) | [virtual] |
| virtual DtSymbol* DtMovingObjectSymbol::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.
Reimplemented in DtEntitySymbol.
| virtual int DtMovingObjectSymbol::resetLabelPositions | ( | ) | const [virtual] |
Reimplemented from DtNameLabelSymbol.
Reimplemented in DtEntitySymbol.
| virtual void DtMovingObjectSymbol::setPenColor | ( | const QColor & | color | ) | [virtual] |
Sets the color of all labels.
If you add your own type of label that needs to have colors set, override this method (calling the parent method) first and setPenColor() with the supplied color on your label
Reimplemented from DtNameLabelSymbol.
Reimplemented in DtEntitySymbol.
| virtual void DtMovingObjectSymbol::shift | ( | QPoint | p | ) | [virtual] |
Move the center of this object by p amount.
Reimplemented from DtCompositeSymbol.
| virtual void DtMovingObjectSymbol::setRotateToHeading | ( | bool | b | ) | [virtual] |
Accessors for rotation.
| virtual bool DtMovingObjectSymbol::rotateToHeading | ( | ) | const [virtual] |
| virtual void DtMovingObjectSymbol::setRotationValue | ( | double | d | ) | [virtual] |
Value must be in degrees.
| virtual double DtMovingObjectSymbol::rotationValue | ( | ) | const [virtual] |
| virtual DtSymbol* DtMovingObjectSymbol::editableSymbol | ( | ) | [protected, virtual] |
Returns the heading indicator, if selected.
Reimplemented from DtCompositeSymbol.
| virtual void DtMovingObjectSymbol::draw | ( | DtSymbol * | symbol, |
| QPainter & | paint | ||
| ) | const [protected, virtual] |
Draws the symbol.
Override for any specific drawing. Called for each symbol to be drawn
Reimplemented from DtCompositeSymbol.
DtLineSymbol* DtMovingObjectSymbol::myVelocityIndicator [protected] |
DtLineSymbol* DtMovingObjectSymbol::myHeadingIndicator [protected] |
DtTTSSymbol* DtMovingObjectSymbol::myLocation [protected] |
DtTTSSymbol* DtMovingObjectSymbol::myVelocity [protected] |
DtTTSSymbol* DtMovingObjectSymbol::myAcceleration [protected] |
DtTTSSymbol* DtMovingObjectSymbol::myHeading [protected] |
DtTTSSymbol* DtMovingObjectSymbol::myEntityType [protected] |
DtSymbol* DtMovingObjectSymbol::myDamagedSymbol [protected] |
DtPartSelected DtMovingObjectSymbol::myPartSelected [protected] |
bool DtMovingObjectSymbol::myRotateToHeading [protected] |
double DtMovingObjectSymbol::myRotationValue [protected] |