OSG implementation for an Arc drawn in screen space.
This implementation draws an arc with the following geometric parameters:
- Start Angle: Change which part of the ellipse is used to draw the arc
- End Angle: Change which part of the ellipse is used to draw the arc
- Position: Change the position of the arc's origin
- Dimensions: Change the dimensions of the ellipse used to draw the arc
- Max Angle Segment: Affects the number of vertices used by changing the angular difference between vertices along the arc. If you want to use X vertices to draw the arc, then set Max Angle Segment equal to PI / X
This implementation draws an arc with the following geometric parameters:
- Line Width: Change the width of all of the arc's line segments
- Line Color: Change the color of all of the arc's line segments
- Line Stipple Pattern: Change the stipple pattern of all of the arc's line segments
Special Considerations:
- In a 2D plane, the positive Y-Axis is 0 radians with clockwise being the positive direction
- If the start and end angle are 0 and 2 * PI respectively, an ellipse is drawn
- If the height of the arc is 0, a line is drawn
|
| | DtOsgWindowArc (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtOsgWindowArc () |
| |
| virtual void | setOrigin (const DtVector &position) |
| |
| virtual DtVector | getOrigin () const |
| |
|
| virtual void | setDimensions (double x, double y) |
| |
| virtual bool | getDimensions (double &x, double &y) const |
| |
|
| virtual void | setScale (float scale) |
| |
| virtual float | scale () const |
| |
|
| virtual void | setVisible (bool isVisible) |
| |
| virtual bool | isVisible () const |
| |
|
| virtual void | setMaxAngleSegment (double angleSegmentMax) |
| |
| virtual double | maxAngleSegment () const |
| |
|
| virtual void | setStartAngle (double startAngle) |
| |
| virtual double | startAngle () const |
| |
|
| virtual void | setEndAngle (double endAngle) |
| |
| virtual double | endAngle () const |
| |
|
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| |
| virtual unsigned int | stipplePattern () const |
| |
|
| virtual void | setLineWidth (float width) |
| |
| virtual float | lineWidth () const |
| |
|
| virtual void | setColor (float r, float g, float b, float a) |
| |
| virtual bool | getColor (float &r, float &g, float &b, float &a) const |
| |
| | DtWindowArc (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtWindowArc () |
| |
| | DtWindowObject (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtWindowObject () |
| |
| virtual bool | visible () |
| |
| virtual DtUniqueID | uniqueId () |
| |
| DtWindowObject * | getParent () |
| |
| virtual ChildList | childList () |
| |
| virtual void | addChild (DtUniqueID id) |
| |
| virtual void | removeChild (DtUniqueID id) |
| |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| |
| virtual void | slot_postTick () |
| |
| virtual Transform | windowTransform () |
| |
| virtual DtClipBox | clipBox () |
| |
| virtual void | setParentId (DtUniqueID parentId) |
| |
| virtual DtUniqueID | getParentId () |
| |
| virtual void | setPosition (double x, double y) |
| |
| virtual void | getPosition (double &x, double &y) |
| |
| virtual void | setScale (double scale) |
| |
| virtual void | setScale (double x, double y) |
| |
| virtual void | getScale (double &x, double &y) |
| |
| virtual void | setRotation (double rotation) |
| |
| virtual void | getRotation (double &rotation) |
| |
| virtual void | setInheritColor (bool inheritColor) |
| |
| virtual bool | inheritColor () |
| |
| virtual void | setGroup (int id) |
| |
| virtual int | group () |
| |
| virtual void | setFlashing (bool flashing, double interval) |
| |
| virtual void | getFlashing (bool &flashing, double &interval) |
| |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) |
| |
| virtual void | getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName) |
| |