VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
DtMovingObjectSymbol Class Reference

A mocing symbol contains items that are common to symbols that move. More...

Inheritance diagram for DtMovingObjectSymbol:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtMovingObjectSymbol (DtSymbolDrawer &d)
 Constructor.
virtual ~DtMovingObjectSymbol ()
 Destructor.
 DtMovingObjectSymbol (const DtMovingObjectSymbol &orig)
 Copy Constructor.
DtMovingObjectSymboloperator= (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 DtLineSymbolvelocityIndicator ()
virtual void setVelocityIndicator (DtLineSymbol *s)
virtual DtLineSymbolheadingIndicator ()
virtual void setHeadingIndicator (DtLineSymbol *s)
virtual DtSymboldamagedSymbol ()
virtual void setDamagedSymbol (DtSymbol *s)
virtual DtSymbolobjectConsoleWarningIndicator ()
virtual void setObjectConsoleWarningIndicator (DtSymbol *s)
virtual DtTTSSymbollocation ()
virtual void setLocation (DtTTSSymbol *s)
virtual DtTTSSymbolvelocity ()
virtual void setVelocity (DtTTSSymbol *s)
virtual DtTTSSymbolacceleration ()
virtual void setAcceleration (DtTTSSymbol *s)
virtual DtTTSSymbolheading ()
virtual void setHeading (DtTTSSymbol *s)
virtual DtTTSSymbolentityType ()
virtual void setEntityType (DtTTSSymbol *s)
virtual DtSymbolclone () 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 DtSymboleditableSymbol ()
 Returns the heading indicator, if selected.
virtual void draw (DtSymbol *symbol, QPainter &paint) const
 Draws the symbol.

Protected Attributes

DtLineSymbolmyVelocityIndicator
DtLineSymbolmyHeadingIndicator
DtTTSSymbolmyLocation
DtTTSSymbolmyVelocity
DtTTSSymbolmyAcceleration
DtTTSSymbolmyHeading
DtTTSSymbolmyEntityType
DtSymbolmyDamagedSymbol
DtSymbolmyObjectConsoleWarningIndicator
DtPartSelected myPartSelected
bool myRotateToHeading
double myRotationValue
bool myAllowHeadingEditOnSelection

Private Member Functions

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

Detailed Description

A mocing symbol contains items that are common to symbols that move.


Member Enumeration Documentation

Enumerator:
DtPartSelected_None 
DtPartSelected_MainSymbol 
DtPartSelected_HeadingIndicator 

Constructor & Destructor Documentation

Constructor.

Destructor.

Copy Constructor.

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


Member Function Documentation

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)

  • this queries the drawer

Reimplemented from DtCompositeSymbol.

virtual void DtMovingObjectSymbol::setDamagedSymbol ( DtSymbol s) [virtual]
virtual void DtMovingObjectSymbol::setLocation ( DtTTSSymbol s) [virtual]
virtual void DtMovingObjectSymbol::setVelocity ( DtTTSSymbol s) [virtual]
virtual void DtMovingObjectSymbol::setAcceleration ( DtTTSSymbol s) [virtual]
virtual void DtMovingObjectSymbol::setHeading ( DtTTSSymbol s) [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.


Member Data Documentation


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)