![]() |
VR-Forces Developer's Guide
|
Contains DtEllipseFacadeBase class. This interface class defines the minimum amount of functionality a ellipse facade must implement The setPoints method will inherently assume that if there are 2 points defined the distance between the first (origin) and second is the X Radius. If there are three points defined the distance between the third and the first is the Y radius.
If there is no Y radius a circle is assumed.

Public Member Functions | |
| DtEllipseFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtSceneObjectAgent *agent, makVrv::DtElementID id, makVrv::DtModelSetId modelSet) | |
| DtEllipseFacadeBase (makVrv::DtAgentManagerInterface &, makVrv::DtModelSetId modelSet, makVrv::DtElementID id, bool distribute=false) | |
| virtual | ~DtEllipseFacadeBase () |
| virtual void | setModelDefinition (const std::string &)=0 |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | setSelectedOutsideColor (float r, float g, float b, float a) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | setSelectedInsideColor (float r, float g, float b, float a) |
| virtual void | setPoints (const std::vector< DtVector > &) |
| virtual void | setOrigin (const DtVector &) |
| virtual void | setPosition (int iIndex, const DtVector &) |
| virtual void | setSelected (bool) |
| virtual bool | selected () |
| virtual void | updateColors ()=0 |
| virtual void | setLineWidth (int)=0 |
| virtual void | setFill (bool)=0 |
| virtual void | setDimensions (double, double) |
| virtual void | setXRadius (double) |
| virtual void | setYRadius (double) |
| virtual void | setPickable (bool)=0 |
| virtual void | setVisible (bool)=0 |
| virtual void | setStipplePattern (int)=0 |
| virtual void | setFillPattern (const std::vector< unsigned int > &)=0 |
| virtual makVrv::DtUniqueID | uniqueId () const |
| virtual makVrv::DtElementID | elementId () const |
| virtual makVrv::DtModelSetId | modelSet () const |
| virtual void | stopClamping () |
| makVrv::DtSceneObjectAgent * | sceneObjectAgent () const |
Protected Attributes | |
| makVrv::DtSceneObjectAgent * | mySceneObjectAgent |
| makVrv::DtAgentManagerInterface & | myAgentManagerInterface |
| bool | myOwnsSceneObjectAgent |
| float | myInsideColor [4] |
| float | myOutsideColor [4] |
| float | mySelectedOutsideColor [4] |
| float | mySelectedInsideColor [4] |
| bool | mySelectedInsideColorSet |
| int | myLineWidth |
| makVrv::DtModelSetId | myModelSet |
| int | myNumPoints |
| double | myXRadius |
| double | myYRadius |
| makVrv::DtElementID | myElementId |
| bool | myDynamicOrigin |
| bool | mySelected |
| makVrf::DtEllipseFacadeBase::DtEllipseFacadeBase | ( | makVrv::DtAgentManagerInterface & | , |
| makVrv::DtSceneObjectAgent * | agent, | ||
| makVrv::DtElementID | id, | ||
| makVrv::DtModelSetId | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrf::DtEllipseFacadeBase::DtEllipseFacadeBase | ( | makVrv::DtAgentManagerInterface & | , |
| makVrv::DtModelSetId | modelSet, | ||
| makVrv::DtElementID | id, | ||
| bool | distribute = false |
||
| ) |
Will create a new scene object agent for the given model set and element id.
|
virtual |
DTOR.
|
pure virtual |
Sets the model definition for the model.
Implemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
virtual |
Sets the color for the ellipse. This will apply to all segments of the area. If the default (all 0's), uses the default as defined in the visual definition.
|
virtual |
Sets the outside color (rim) if available.
Reimplemented in makVrf::Dt3DEllipseFacade.
|
virtual |
Sets the selected outside color. This color is used if the object is selected.
Reimplemented in makVrf::Dt3DEllipseFacade.
|
virtual |
Sets inside color (fill) if available.
|
virtual |
Sets the selected inside color.
|
virtual |
Sets the origin, and, possible radii of the ellipse. Akin to calling setOrigin, setXRadius and setYRadius.
|
virtual |
Sets the origin of the ellipse.
Sets position in ellipse (origin = 0, X = 1 or Y = 2)
Reimplemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
virtual |
Sets whether or not the ellipse is selected.
|
virtual |
Get the current selected state.
|
pure virtual |
pass the current color based on selection down to the model
Implemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
pure virtual |
Sets the width of the outside line. Default is 4.
Implemented in makVrf::Dt3DEllipseFacade, and makVrf::Dt2DEllipseFacade.
|
pure virtual |
Sets whether or not to fill ellipse. If fill style of line is specified, will override this flag.
Implemented in makVrf::Dt3DEllipseFacade, and makVrf::Dt2DEllipseFacade.
Sets the dimensions of the ellipse. Will also set the X and Y radius member variables.
Reimplemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
virtual |
Sets the X Radius of the ellipse.
Reimplemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
virtual |
Sets the Y Radius of the ellipse.
Reimplemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
pure virtual |
Sets whether or not items are pickable.
Implemented in makVrf::Dt3DEllipseFacade, and makVrf::Dt2DEllipseFacade.
|
pure virtual |
Sets whether or not item is visible.
Implemented in makVrf::Dt3DEllipseFacade, and makVrf::Dt2DEllipseFacade.
|
pure virtual |
Sets the 16 bit stipple pattern for the line portion of the area.
Implemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
pure virtual |
Sets the pattern to fill the 2D polygon with. The fill pattern is a bit pattern of 32 x 32 integers. The bits of the integers will be considered "on" if they are 1 and off if they are 0. The pattern will be repeated to fill the interior of the polygon.
Implemented in makVrf::Dt2DEllipseFacade, and makVrf::Dt3DEllipseFacade.
|
virtual |
Returns the unique id of the scene object agent.
|
virtual |
Returns the element id of the scene object agent.
|
virtual |
Returns the model set.
|
virtual |
Stops clamping the ellipse.
| makVrv::DtSceneObjectAgent* makVrf::DtEllipseFacadeBase::sceneObjectAgent | ( | ) | const |
Returns the scene object agent for this class.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |