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

class DtPointObjectSymbol: More...

Inheritance diagram for DtPointObjectSymbol:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DtPointObjectAlignment { DtPointObjectCentered = 0, DtPointObjectBottomCentered = 1 }

Public Member Functions

 DtPointObjectSymbol (DtSymbolDrawer &d)
 Constructor.
virtual ~DtPointObjectSymbol ()
 Destructor.
 DtPointObjectSymbol (const DtPointObjectSymbol &orig)
 Copy Constructor.
DtPointObjectSymboloperator= (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 &center)
 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 DtSymbolclone () 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 DtSymbolcreate (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.

Detailed Description

class DtPointObjectSymbol:

Instances of DtPointObjectSymbol are


Member Enumeration Documentation

Enumerator:
DtPointObjectCentered 
DtPointObjectBottomCentered 

Constructor & Destructor Documentation

Constructor.

Destructor.

Copy Constructor.

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


Member Function Documentation

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)

  • this queries the drawer

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.

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

By default is true

Reimplemented from DtNameLabelSymbol.

References myAlignment.

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.


Member Data Documentation

Referenced by alignment(), and setAlignment().


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)