![]() |
VR-Forces 4.10 Class Documentation
|
A model-like object that controls a group of 2D ellipses. More...

Public Member Functions | |
| DtWindowEllipseGroup (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtWindowEllipseGroup () |
| DTOR. More... | |
| virtual void | setEllipseCount (unsigned int count) |
| Set the number of ellipses that this group will have Should be set before addEllipse is called. More... | |
| virtual void | addEllipse (unsigned int stipplePattern, bool fill, float lineWidth, float centerX, float centerY, float radius, float innerRadius, float startAngle, float endAngle) |
| Add an ellipse to the specified in params Angles are in radians. More... | |
| virtual void | updateEllipse (unsigned int index, unsigned int stipplePattern, bool fill, float lineWidth, float centerX, float centerY, float radius, float innerRadius, float startAngle, float endAngle) |
| Update the ellipse at in param index with in parma specs. More... | |
Public Member Functions inherited from makVrv::DtWindowObject | |
| DtWindowObject (DtDe &de, DtUniqueID id) | |
| CTOR. More... | |
| virtual | ~DtWindowObject () |
| DTOR. More... | |
| virtual void | setVisible (bool visible) |
| Set / Get the window object's visibility in the window. More... | |
| virtual bool | visible () |
| virtual DtUniqueID | uniqueId () |
| Returns the unique ID of this object. More... | |
| DtWindowObject * | getParent () |
| Get the parent windowObject. More... | |
| virtual ChildList | childList () |
| Returns the child list. More... | |
| virtual void | addChild (DtUniqueID id) |
| Add a child to this objects child list. More... | |
| virtual void | removeChild (DtUniqueID id) |
| Remove a child from this objects child list. More... | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set / Get the objects's color. More... | |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| virtual void | slot_postTick () |
| Slot for DtDe::signal_postTick, using when this object is flashing/blinking. More... | |
| virtual void | needsUpdate () |
| Called when position/rotation/scale are updated A windowObject's parent will also call this method on all of it's children to update it's values. More... | |
| virtual Transform | windowTransform () |
| Get the window transform that is the total transform of this object and all it's parents. More... | |
| virtual DtClipBox | clipBox () |
| Get this object's clip box specifications. More... | |
| virtual void | setParentId (DtUniqueID parentId) |
| Get / Set Parent IDs. More... | |
| virtual DtUniqueID | getParentId () |
| virtual void | setPosition (double x, double y) |
| Set / Get the window position of this object. More... | |
| virtual void | getPosition (double &x, double &y) |
| virtual void | setScale (double scale) |
| Set / Get the scale of the x y components. More... | |
| virtual void | setScale (double x, double y) |
| virtual void | getScale (double &x, double &y) |
| virtual void | setRotation (double rotation) |
| Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set. More... | |
| virtual void | getRotation (double &rotation) |
| virtual void | setInheritColor (bool inheritColor) |
| Set / Get whether this object inherits it's color from it's parent. More... | |
| virtual bool | inheritColor () |
| virtual void | setGroup (int id) |
| Set / Get the group ID The higher the Z order the "closer" the element will be drawn to the eye point. More... | |
| virtual int | group () |
| virtual void | setFlashing (bool flashing, double interval) |
| Set / Get this object to flash on and off at the given interval. More... | |
| virtual void | getFlashing (bool &flashing, double &interval) |
| virtual void | setChannelOverlay (std::string displayName, std::string windowName, std::string channelName) |
| Set / Get the channel overlay names By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. More... | |
| virtual void | getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtWindowObject | |
| typedef std::list< DtUniqueID > | ChildList |
| typedef list for holding the IDs of the children of this class More... | |
| typedef DtVector2< double > | DtVector2d |
| typedef 2D Vector More... | |
| typedef DtMatrix3< double > | Transform |
| typedef 3x3 Matrix for holding this object's transform More... | |
Protected Attributes inherited from makVrv::DtWindowObject | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtUniqueID | myParentId |
| ChildList | myChildIdList |
| DtVector2d | myPosition |
| DtVector2d | myScale |
| DtVector2d | myWindowScale |
| double | myRotation |
| double | myFlashInterval |
| double | myLastFlashTime |
| double | myLastSimTime |
| bool | myVisible |
| bool | myLastVisibilityFlash |
| bool | myInheritColor |
| bool | myFlashing |
| float | myColorR |
| float | myColorG |
| float | myColorB |
| float | myColorA |
| Transform | myWindowTransform |
| DtClipBox | myClipBox |
| int | myGroup |
| std::string | myDisplayName |
| std::string | myWindowName |
| std::string | myChannelName |
A model-like object that controls a group of 2D ellipses.
This class means that you do not need to store and manage multiple agents to use multiple ellipses. It also means that you do not need an empty parent window object/agent to control them all with single commands.
| makVrv::DtWindowEllipseGroup::DtWindowEllipseGroup | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Set the number of ellipses that this group will have Should be set before addEllipse is called.
Reimplemented in makVrv::DtOsgWindowEllipseGroup.
|
virtual |
Add an ellipse to the specified in params Angles are in radians.
Reimplemented in makVrv::DtOsgWindowEllipseGroup.
|
virtual |
Update the ellipse at in param index with in parma specs.
The reason index is passed in is because we need to know which ellipse to update. You cannot just delete all the pointers and recreate once all the updateEllipse calls arrive ( indexNumber = myEllipseCount ), because the ellipses will flash on screen!!
Reimplemented in makVrv::DtOsgWindowEllipseGroup.