![]() |
VR-Forces 4.0.4 Class Documentation
|
Symbols representing resizable circles. More...

Public Member Functions | |
| DtResizableCircleSymbol (DtSymbolDrawer &drawer) | |
| Constructor. | |
| DtResizableCircleSymbol (DtNullDrawer &drawer) | |
| Constructor. | |
| DtResizableCircleSymbol (const DtResizableCircleSymbol &orig) | |
| Copy Constructor. | |
| DtResizableCircleSymbol & | operator= (const DtResizableCircleSymbol &orig) |
| Assignment Operator. | |
| virtual | ~DtResizableCircleSymbol () |
| Destructor. | |
| virtual DtSymbol * | clone () const |
| Create a clone of this symbol. | |
| virtual bool | originSelected () const |
| The following methods will test the particular selection flags and return true if the particular flag is set. | |
| virtual bool | circleSelected () const |
| virtual bool | anythingSelected () const |
| virtual QPoint | xOriginPoint () const |
| Returns xOriginPoint. Set when radius is set. | |
| virtual QPoint | endPoint () const |
| virtual void | setOrigin (int x, int y) |
| Same as above. | |
| virtual void | setOrigin (const QPoint &origin) |
| Set the display coordinate that will become the 0,0 point for drawing this symbol. | |
| virtual void | setRadius (const double r) |
| Also sets the end point based on the radius. | |
| virtual void | setOriginRadius (double r) |
| Sets the radius of the origin point. Initially 3 pixels. | |
| virtual double | originRadius () const |
| virtual void | setResizing (bool b) |
| Sets whether or not this symbol is in the act of resizing. | |
| virtual bool | resizing () const |
| virtual void | setCreateFixed (bool b) |
| If true, automatically adds second point to create a fixed size circle. | |
| virtual bool | createFixed () const |
| virtual int | pointSelected () const |
| Returns the point selected. | |
| virtual bool | pointHighlighted () const |
| virtual bool | setLocationData (const QPolygon *pts) |
| Use this routine to make sure we reflect any changes in viewport or movement. | |
| virtual const QPolygon * | getLocationData () const |
| Provided for a simpler interface to subclasses. | |
| virtual int | getNumPoints () const |
| virtual QPoint | getPoint (int iIndex) const |
| virtual void | setKnobSize (int i) |
| Accessors for point knob size (if this line can be modified) | |
| virtual int | knobSize () const |
| virtual QPoint | computeEndPointForOrigin (const QPoint &origin, const QPoint &end) |
| virtual void | setSelectedPoint (int i) |
| Sets the point to be selected. | |
| virtual int | getNumVertexPoints () const |
| In vertex drawing mode, returns the number of vertex points to draw and the vertex point at the particular index. | |
| virtual const QPoint | getVertexPoint (int pointNum) const |
| virtual int | setEndPoint (const QPoint &pnt) |
| Sets the end point (x) radius of the circle. Simply calls setLocationData. | |
| virtual bool | select (const QPoint &aPoint) |
| Check to see if the circle or origin is selected. | |
| virtual bool | select (const QPoint &aPoint, const QSize &aSize) |
| Returns true if the rectangle intersects the symbol, if the symbol is selectable. | |
| virtual bool | selected () const |
| virtual int | modelPointSelected () const |
Protected Member Functions | |
| virtual void | setHighlight (const bool highlight) |
| Set/get the highlight flag (whether the symbol should be drawn highlighted). | |
| virtual void | shift (QPoint p) |
| Move the center of this object by p amount and recalculate the end point to keep the distance constant between origin and end point given the new location. | |
| virtual bool | adjustPoints (QPolygon &pnts, bool constrain) |
| Opportunity to adjust the point array to some desired other points. | |
| virtual bool | pointSelected (const QPoint &point) |
| Returns true and sets selection and highlight and selected point to knob that contains the specified point. | |
| bool | operator== (const DtResizableCircleSymbol &orig) const |
| bool | operator!= (const DtResizableCircleSymbol &orig) const |
| virtual bool | transparentCacheChanged () const |
Protected Attributes | |
| int | mySelection |
| int | myHighlightSelection |
| bool | myResizing |
| double | myOriginRadius |
| bool | myCreateFixed |
| QPolygon | myPoints |
| int | mySelectedPoint |
| int | myKnobSize |
| int | myMouseSelectedPoint |
Private Member Functions | |
| DtResizableCircleSymbol () | |
| Not implemented. Private to ensure it is only constructed with a drawer. | |
Symbols representing resizable circles.
Constructor.
Constructor.
Copy Constructor.
| virtual DtResizableCircleSymbol::~DtResizableCircleSymbol | ( | ) | [virtual] |
Destructor.
| DtResizableCircleSymbol::DtResizableCircleSymbol | ( | ) | [private] |
Not implemented. Private to ensure it is only constructed with a drawer.
| DtResizableCircleSymbol& DtResizableCircleSymbol::operator= | ( | const DtResizableCircleSymbol & | orig | ) |
Assignment Operator.
| virtual DtSymbol* DtResizableCircleSymbol::clone | ( | ) | const [virtual] |
Create a clone of this symbol.
Reimplemented from DtCircleSymbol.
| virtual bool DtResizableCircleSymbol::originSelected | ( | ) | const [virtual] |
The following methods will test the particular selection flags and return true if the particular flag is set.
| virtual bool DtResizableCircleSymbol::circleSelected | ( | ) | const [virtual] |
| virtual bool DtResizableCircleSymbol::anythingSelected | ( | ) | const [virtual] |
| virtual QPoint DtResizableCircleSymbol::xOriginPoint | ( | ) | const [virtual] |
Returns xOriginPoint. Set when radius is set.
| virtual QPoint DtResizableCircleSymbol::endPoint | ( | ) | const [virtual] |
| virtual void DtResizableCircleSymbol::setOrigin | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Same as above.
Reimplemented from DtSymbol.
| virtual void DtResizableCircleSymbol::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 DtResizableCircleSymbol::setRadius | ( | const double | r | ) | [virtual] |
Also sets the end point based on the radius.
Reimplemented from DtCircleSymbol.
| virtual void DtResizableCircleSymbol::setOriginRadius | ( | double | r | ) | [virtual] |
Sets the radius of the origin point. Initially 3 pixels.
| virtual double DtResizableCircleSymbol::originRadius | ( | ) | const [virtual] |
| virtual void DtResizableCircleSymbol::setResizing | ( | bool | b | ) | [virtual] |
Sets whether or not this symbol is in the act of resizing.
| virtual bool DtResizableCircleSymbol::resizing | ( | ) | const [virtual] |
| virtual void DtResizableCircleSymbol::setCreateFixed | ( | bool | b | ) | [virtual] |
If true, automatically adds second point to create a fixed size circle.
By default, false
| virtual bool DtResizableCircleSymbol::createFixed | ( | ) | const [virtual] |
| virtual int DtResizableCircleSymbol::pointSelected | ( | ) | const [virtual] |
Returns the point selected.
In the case of the circle, only the end point (outer rim) can be selected, and, if it is, will return 0, else will return -1
| virtual bool DtResizableCircleSymbol::pointHighlighted | ( | ) | const [virtual] |
| virtual bool DtResizableCircleSymbol::setLocationData | ( | const QPolygon * | pts | ) | [virtual] |
Use this routine to make sure we reflect any changes in viewport or movement.
Reimplemented from DtSymbol.
| virtual const QPolygon* DtResizableCircleSymbol::getLocationData | ( | ) | const [virtual] |
Provided for a simpler interface to subclasses.
Since there is only one point (the origin), this routine will return NULL
Reimplemented from DtSymbol.
| virtual int DtResizableCircleSymbol::getNumPoints | ( | ) | const [virtual] |
| virtual QPoint DtResizableCircleSymbol::getPoint | ( | int | iIndex | ) | const [virtual] |
| virtual void DtResizableCircleSymbol::setKnobSize | ( | int | i | ) | [virtual] |
Accessors for point knob size (if this line can be modified)
| virtual int DtResizableCircleSymbol::knobSize | ( | ) | const [virtual] |
| virtual QPoint DtResizableCircleSymbol::computeEndPointForOrigin | ( | const QPoint & | origin, |
| const QPoint & | end | ||
| ) | [virtual] |
| virtual void DtResizableCircleSymbol::setSelectedPoint | ( | int | i | ) | [virtual] |
Sets the point to be selected.
Will also reset flags based on point given: -1 - Clear selected flags 0 - Set to be origin 1+ - Set to be circle
| virtual int DtResizableCircleSymbol::getNumVertexPoints | ( | ) | const [virtual] |
In vertex drawing mode, returns the number of vertex points to draw and the vertex point at the particular index.
By default simple defers to getNumPoints and getPoint
| virtual const QPoint DtResizableCircleSymbol::getVertexPoint | ( | int | pointNum | ) | const [virtual] |
| virtual int DtResizableCircleSymbol::setEndPoint | ( | const QPoint & | pnt | ) | [virtual] |
Sets the end point (x) radius of the circle. Simply calls setLocationData.
| virtual bool DtResizableCircleSymbol::select | ( | const QPoint & | aPoint | ) | [virtual] |
Check to see if the circle or origin is selected.
Reimplemented from DtCircleSymbol.
| virtual bool DtResizableCircleSymbol::select | ( | const QPoint & | aPoint, |
| const QSize & | rectangleSize | ||
| ) | [virtual] |
Returns true if the rectangle intersects the symbol, if the symbol is selectable.
Reimplemented from DtCircleSymbol.
| virtual bool DtResizableCircleSymbol::selected | ( | ) | const [virtual] |
Reimplemented from DtSymbol.
| virtual int DtResizableCircleSymbol::modelPointSelected | ( | ) | const [virtual] |
| virtual void DtResizableCircleSymbol::setHighlight | ( | const bool | highlight | ) | [protected, virtual] |
Set/get the highlight flag (whether the symbol should be drawn highlighted).
Reimplemented from DtSymbol.
| virtual void DtResizableCircleSymbol::shift | ( | QPoint | p | ) | [protected, virtual] |
Move the center of this object by p amount and recalculate the end point to keep the distance constant between origin and end point given the new location.
Reimplemented from DtSymbol.
| virtual bool DtResizableCircleSymbol::adjustPoints | ( | QPolygon & | pnts, |
| bool | constrain | ||
| ) | [protected, virtual] |
Opportunity to adjust the point array to some desired other points.
By default call setLocationData(). Return true if points have been modified
Reimplemented from DtSymbol.
| virtual bool DtResizableCircleSymbol::pointSelected | ( | const QPoint & | point | ) | [protected, virtual] |
Returns true and sets selection and highlight and selected point to knob that contains the specified point.
| bool DtResizableCircleSymbol::operator== | ( | const DtResizableCircleSymbol & | orig | ) | const [protected] |
| bool DtResizableCircleSymbol::operator!= | ( | const DtResizableCircleSymbol & | orig | ) | const [protected] |
| virtual bool DtResizableCircleSymbol::transparentCacheChanged | ( | ) | const [protected, virtual] |
Reimplemented from DtCircleSymbol.
int DtResizableCircleSymbol::mySelection [protected] |
int DtResizableCircleSymbol::myHighlightSelection [protected] |
bool DtResizableCircleSymbol::myResizing [protected] |
double DtResizableCircleSymbol::myOriginRadius [protected] |
bool DtResizableCircleSymbol::myCreateFixed [protected] |
QPolygon DtResizableCircleSymbol::myPoints [protected] |
int DtResizableCircleSymbol::mySelectedPoint [protected] |
int DtResizableCircleSymbol::myKnobSize [protected] |
int DtResizableCircleSymbol::myMouseSelectedPoint [protected] |