|
| | Dt2DArcFacade (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) |
| | Constructor that takes an existing scene object agent. More...
|
| |
| | Dt2DArcFacade (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true) |
| | Constructor that creates a new scene object agent The given model set and element id is used to create the new scene object agent. More...
|
| |
| virtual | ~Dt2DArcFacade () |
| | Destructor. More...
|
| |
| virtual | ~DtArcFacadeBase () |
| | Destructor. More...
|
| |
| virtual void | setDynamicOrigin (bool) |
| | Sets whether or not the origin's position is changing or not If the origin is changing (hence dynamic), we use the DtArcUpdaterAgent to update the arc's origin instead of using the arc's scene object directly. More...
|
| |
| virtual makVrv::DtUniqueID | uniqueId () const |
| | Returns the unique id of the scene object agent. More...
|
| |
| virtual makVrv::DtElementID | elementId () const |
| | Returns the element id of the scene object agent. More...
|
| |
| virtual int | modelSet () const |
| | Returns the model set. More...
|
| |
| DtArcUpdaterAgent * | findUpdater () const |
| | Returns the updater agent for this class, can return null. More...
|
| |
| DtSceneObjectAgent * | sceneObjectAgent () const |
| | Returns the scene object agent for this class. More...
|
| |
| virtual void | setPosition (int index, const DtVector &position) |
| | Set the position of a vertex in the arc. More...
|
| |
| virtual void | setModelDefinition (const std::string &) |
| | Sets the model definition for the model. More...
|
| |
| virtual void | setPickable (bool) |
| | Sets whether or not items are pickable. More...
|
| |
| virtual void | setGroup (int) |
| | Sets the group this overlay will be drawn in The higher the group number, the "closer" to the eyepoint this overlay will be drawn. More...
|
| |
| DtOverlayArcModelAgent * | findArcAgent () |
| | Returns the arc model agent used for this class This function can return null. More...
|
| |
| virtual void | setSelected (bool) |
| | Set/Get whether or not the arc is selected Default value is false (not selected) More...
|
| |
| virtual bool | isSelected () const |
| |
| virtual void | setDimensions (double x, double y) |
| | Set/Get the axis lengths of the ellipse used to draw the arc Default value is 0, 0. More...
|
| |
| virtual bool | getDimensions (double &x, double &y) const |
| |
| virtual void | setScale (float scale) |
| | Set/Get the scale factor of the arc Default value is 1. More...
|
| |
| virtual float | scale () const |
| |
| virtual void | setVisible (bool isVisible) |
| | Set/Get whether the arc is visible Default value is true (visible) More...
|
| |
| virtual bool | isVisible () const |
| |
| virtual void | setMaxAngleSegment (double angleSegmentMax) |
| | Set/Get the max angle segment used when building the geometry Default value is PI / 18. More...
|
| |
| virtual double | maxAngleSegment () const |
| |
| virtual void | setStartAngle (double startAngle) |
| | Set/Get the start angle of the arc, in radians Default value is 0. More...
|
| |
| virtual double | startAngle () const |
| |
| virtual void | setEndAngle (double endAngle) |
| | Set/Get the end angle of the arc, in radians Default value is PI. More...
|
| |
| virtual double | endAngle () const |
| |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| | Set/Get the stipple line pattern of the arc Default value is 0xFFFF. More...
|
| |
| virtual unsigned int | stipplePattern () const |
| |
| virtual void | setLineWidth (float width) |
| | Set/Get the line width of the arc Uses DtLineSegmentInterface::setWidth Default value is 1. More...
|
| |
| virtual float | lineWidth () const |
| |
| virtual void | setColor (float r, float g, float b, float a) |
| | Set/Get the color of the arc - default is (0, 0, 0, 1). More...
|
| |
| virtual bool | getColor (float &r, float &g, float &b, float &a) const |
| |
| virtual void | setSelectedColor (float r, float g, float b, float a) |
| | Set/Get the selected color of the arc - default is (1, 1, 1, 1). More...
|
| |
| virtual bool | getSelectedColor (float &r, float &g, float &b, float &a) const |
| |
Implementation of a 2D (overlay) Arc Facade.
This class creates and initializes a DtOverlayArcModelAgent and adds the model to its parent DtSceneObjectAgent (which is created in or passed into the class's constructor).
This implementation draws an elliptical 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: Change the number of vertices used to draw the arc
This implementation draws an elliptical arc has the following style properties:
- 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
A utility function is provided to allow arc generation given vertices - refer to setVertices for more info.