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

Symbols representing enclosed polygonal areas. More...

Inheritance diagram for DtPolygonSymbol:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DtPolygonStyle {
  DtStyle_NoPolygon = 0, DtStyle_Outline, DtStyle_Fill, DtStyle_Pattern,
  DtStyle_PolygonStyle_MAX = 100
}

Public Member Functions

 DtPolygonSymbol (DtSymbolDrawer &drawer)
 Constructor.
 DtPolygonSymbol (DtNullDrawer &drawer)
 Constructor.
 DtPolygonSymbol (const DtPolygonSymbol &orig)
 Copy Constructor.
virtual ~DtPolygonSymbol ()
 Destructor.
virtual DtSymbolclone () const
 Create a clone of this symbol.
virtual const DtDisplayPoint centerPoint () const
 get the center Point.
virtual void shift (QPoint p)
 shift this polygon by p.
virtual const QPoint getPoint (int pointNum) const
 Get a specific point in the polygon.
virtual DtPolygonStyle polygonStyle () const
virtual void setPolygonStyle (DtPolygonStyle style)
virtual Qt::BrushStyle patternStyle () const
virtual void setPatternStyle (Qt::BrushStyle style)
virtual void setAllowInsideSelection (bool b)
 If set to true, will check if point is inside area, not just segments.
bool allowInsideSelection () const
virtual bool select (const QPoint &aPoint)
 If inside selection is enabled, see if point is in area if parent select returns false.
bool operator== (const DtPolygonSymbol &orig) const
bool operator!= (const DtPolygonSymbol &orig) const
virtual bool transparentCacheChanged () const

Protected Member Functions

virtual const DtDisplayPoint calcCenterPoint () const

Protected Attributes

DtPolygonStyle myPolygonStyle
Qt::BrushStyle myBrushStyle
bool myAllowInsideSelection

Private Member Functions

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

Detailed Description

Symbols representing enclosed polygonal areas.


Member Enumeration Documentation

Enumerator:
DtStyle_NoPolygon 

no drawing

DtStyle_Outline 

Draw the outline

DtStyle_Fill 

draw a filled polygon

DtStyle_Pattern 

draw a pattern filled polygon

DtStyle_PolygonStyle_MAX 

Hook for derived class extensions.


Constructor & Destructor Documentation

Constructor.

Constructor.

Copy Constructor.

virtual DtPolygonSymbol::~DtPolygonSymbol ( ) [virtual]

Destructor.

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


Member Function Documentation

virtual DtSymbol* DtPolygonSymbol::clone ( ) const [virtual]

Create a clone of this symbol.

Reimplemented from DtLineSymbol.

Reimplemented in DtBoxSymbol.

virtual const DtDisplayPoint DtPolygonSymbol::centerPoint ( ) const [virtual]

get the center Point.

In the case of this symbol this is calculated on the fly by creating a bounding box of the polygon and returning the center.

Reimplemented from DtLineSymbol.

virtual void DtPolygonSymbol::shift ( QPoint  p) [virtual]

shift this polygon by p.

Reimplemented from DtLineSymbol.

virtual const QPoint DtPolygonSymbol::getPoint ( int  pointNum) const [virtual]

Get a specific point in the polygon.

If you asked for a point that doesn't exist, this returns the point (-1,-1)

Reimplemented from DtLineSymbol.

virtual DtPolygonStyle DtPolygonSymbol::polygonStyle ( ) const [virtual]
virtual void DtPolygonSymbol::setPolygonStyle ( DtPolygonStyle  style) [virtual]
virtual Qt::BrushStyle DtPolygonSymbol::patternStyle ( ) const [virtual]
virtual void DtPolygonSymbol::setPatternStyle ( Qt::BrushStyle  style) [virtual]
virtual void DtPolygonSymbol::setAllowInsideSelection ( bool  b) [virtual]

If set to true, will check if point is inside area, not just segments.

Default is false

virtual bool DtPolygonSymbol::select ( const QPoint &  aPoint) [virtual]

If inside selection is enabled, see if point is in area if parent select returns false.

Reimplemented from DtLineSymbol.

bool DtPolygonSymbol::operator== ( const DtPolygonSymbol orig) const
bool DtPolygonSymbol::operator!= ( const DtPolygonSymbol orig) const
virtual bool DtPolygonSymbol::transparentCacheChanged ( ) const [virtual]

Reimplemented from DtLineSymbol.

virtual const DtDisplayPoint DtPolygonSymbol::calcCenterPoint ( ) const [protected, virtual]

Reimplemented from DtLineSymbol.


Member Data Documentation

Qt::BrushStyle DtPolygonSymbol::myBrushStyle [protected]

Referenced by allowInsideSelection().


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)