![]() |
VR-Forces 4.0.4 Class Documentation
|
Symbols representing enclosed polygonal areas. More...

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 DtSymbol * | clone () 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. | |
Symbols representing enclosed polygonal areas.
| DtPolygonSymbol::DtPolygonSymbol | ( | DtSymbolDrawer & | drawer | ) |
Constructor.
| DtPolygonSymbol::DtPolygonSymbol | ( | DtNullDrawer & | drawer | ) |
Constructor.
| DtPolygonSymbol::DtPolygonSymbol | ( | const DtPolygonSymbol & | orig | ) |
Copy Constructor.
| virtual DtPolygonSymbol::~DtPolygonSymbol | ( | ) | [virtual] |
Destructor.
| DtPolygonSymbol::DtPolygonSymbol | ( | ) | [private] |
Not implemented. Private to ensure it is only constructed with a drawer.
| virtual DtSymbol* DtPolygonSymbol::clone | ( | ) | const [virtual] |
| 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
| bool DtPolygonSymbol::allowInsideSelection | ( | ) | const [inline] |
References myAllowInsideSelection.
| 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.
DtPolygonStyle DtPolygonSymbol::myPolygonStyle [protected] |
Qt::BrushStyle DtPolygonSymbol::myBrushStyle [protected] |
bool DtPolygonSymbol::myAllowInsideSelection [protected] |
Referenced by allowInsideSelection().