![]() |
VR-Forces 4.8 Class Documentation
|
Contains DtEllipseFacadeBase class. More...

Public Member Functions | |
| DtEllipseFacadeBase (DtAgentManagerInterface &, DtSceneObjectAgent *agent, DtElementID id, int modelSet) | |
| Constructor that will take an existing scene object agent. More... | |
| DtEllipseFacadeBase (DtAgentManagerInterface &, int modelSet, DtElementID id, bool distribute=true) | |
| Will create a new scene object agent for the given model set and element id. More... | |
| virtual | ~DtEllipseFacadeBase () |
| DTOR. More... | |
| virtual void | setModelDefinition (const std::string &)=0 |
| Sets the model definition for the model. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Sets the color for the ellipse. More... | |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| Sets the outside color (rim) if available. More... | |
| virtual void | setSelectedOutsideColor (float r, float g, float b, float a) |
| Sets the selected outside color. This color is used if the object is selected. More... | |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| Sets inside color (fill) if available. More... | |
| virtual void | setSelectedInsideColor (float r, float g, float b, float a) |
| Sets the selected inside color. More... | |
| virtual void | setPoints (const std::vector< DtVector > &) |
| Sets the origin, and, possible radii of the ellipse. More... | |
| virtual void | setOrigin (const DtVector &) |
| Sets the origin of the ellipse. More... | |
| virtual void | setPosition (int iIndex, const DtVector &) |
| Sets position in ellipse (origin = 0, X = 1 or Y = 2) More... | |
| virtual void | setSelected (bool) |
| Sets whether or not the ellipse is selected. More... | |
| virtual bool | selected () |
| Get the current selected state. More... | |
| virtual void | updateColors ()=0 |
| pass the current color based on selection down to the model More... | |
| virtual void | setLineWidth (int)=0 |
| Sets the width of the outside line. Default is 4. More... | |
| virtual void | setFill (bool)=0 |
| Sets whether or not to fill ellipse. More... | |
| virtual void | setDimensions (double, double) |
| Sets the dimensions of the ellipse. More... | |
| virtual void | setXRadius (double) |
| Sets the X Radius of the ellipse. More... | |
| virtual void | setYRadius (double) |
| Sets the Y Radius of the ellipse. More... | |
| virtual void | setPickable (bool)=0 |
| Sets whether or not items are pickable. More... | |
| virtual void | setVisible (bool)=0 |
| Sets whether or not item is visible. More... | |
| virtual void | setStipplePattern (int)=0 |
| Sets the 16 bit stipple pattern for the line portion of the area. More... | |
| virtual void | setFillPattern (const std::vector< unsigned int > &)=0 |
| Sets the pattern to fill the 2D polygon with. 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... | |
| virtual void | startClamping () |
| Start/stop clamping ellipse. More... | |
| virtual void | setDynamicOrigin (bool) |
| Sets whether or origin is set in the updater or retrieved from the scene object. More... | |
| virtual void | stopClamping () |
| Stops clamping the ellipse. More... | |
| DtEllipseUpdaterAgent * | updater () const |
| Returns the updater agent for this class. More... | |
| DtSceneObjectAgent * | sceneObjectAgent () const |
| Returns the scene object agent for this class. More... | |
Protected Attributes | |
| DtSceneObjectAgent * | mySceneObjectAgent |
| DtAgentManagerInterface & | myAgentManagerInterface |
| bool | myOwnsSceneObjectAgent |
| DtEllipseUpdaterAgent * | myUpdater |
| float | myInsideColor [4] |
| float | myOutsideColor [4] |
| float | mySelectedOutsideColor [4] |
| float | mySelectedInsideColor [4] |
| bool | mySelectedInsideColorSet |
| int | myLineWidth |
| int | myModelSet |
| int | myNumPoints |
| double | myXRadius |
| double | myYRadius |
| makVrv::DtElementID | myElementId |
| bool | myDynamicOrigin |
| bool | mySelected |
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.
| makVrv::DtEllipseFacadeBase::DtEllipseFacadeBase | ( | DtAgentManagerInterface & | , |
| DtSceneObjectAgent * | agent, | ||
| DtElementID | id, | ||
| int | modelSet | ||
| ) |
Constructor that will take an existing scene object agent.
| makVrv::DtEllipseFacadeBase::DtEllipseFacadeBase | ( | DtAgentManagerInterface & | , |
| int | modelSet, | ||
| DtElementID | id, | ||
| bool | distribute = true |
||
| ) |
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 makVrv::Dt2DEllipseFacade, and makVrv::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 makVrv::Dt3DEllipseFacade.
|
virtual |
Sets the selected outside color. This color is used if the object is selected.
Reimplemented in makVrv::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 makVrv::Dt2DEllipseFacade, and makVrv::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 makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.
|
pure virtual |
Sets the width of the outside line. Default is 4.
Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.
|
pure virtual |
Sets whether or not to fill ellipse.
If fill style of line is specified, will override this flag
Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.
Sets the dimensions of the ellipse.
Will also set the X and Y radius member variables.
Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.
|
virtual |
Sets the X Radius of the ellipse.
Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.
|
virtual |
Sets the Y Radius of the ellipse.
Reimplemented in makVrv::Dt2DEllipseFacade, and makVrv::Dt3DEllipseFacade.
|
pure virtual |
Sets whether or not items are pickable.
Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.
|
pure virtual |
Sets whether or not item is visible.
Implemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.
|
pure virtual |
Sets the 16 bit stipple pattern for the line portion of the area.
Implemented in makVrv::Dt2DEllipseFacade, and makVrv::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 makVrv::Dt2DEllipseFacade, and makVrv::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 |
Start/stop clamping ellipse.
Clamping an ellipse will clamp it to the terrain and level out the ellipse. See the DtEllipseUpdater class.
Reimplemented in makVrv::Dt3DEllipseFacade, and makVrv::Dt2DEllipseFacade.
|
virtual |
Sets whether or origin is set in the updater or retrieved from the scene object.
Default is false (retrieved from origin)
|
virtual |
Stops clamping the ellipse.
| DtEllipseUpdaterAgent* makVrv::DtEllipseFacadeBase::updater | ( | ) | const |
Returns the updater agent for this class.
| DtSceneObjectAgent* makVrv::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 |
|
protected |