![]() |
VR-Forces 5.0.2 Developer's Guide
|
Base class for a graphical object that exists in a window Implements a parenting system for DtWindowObjects.

Classes | |
| struct | DtClipBox |
Public Types | |
| typedef std::list< DtUniqueID > | ChildList |
| typedef DtVector2< double > | DtVector2d |
| typedef DtMatrix3< double > | Transform |
Public Member Functions | |
| DtWindowObject (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWindowObject () |
| virtual void | setVisible (bool visible) |
| virtual bool | visible () |
| virtual DtUniqueID | uniqueId () |
| DtWindowObject * | getParent () |
| virtual ChildList | childList () |
| virtual void | addChild (DtUniqueID id) |
| virtual void | removeChild (DtUniqueID id) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| virtual void | slot_postTick () |
| virtual void | needsUpdate () |
| 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) |
Protected Attributes | |
| 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 |
| typedef std::list< DtUniqueID > makVrv::DtWindowObject::ChildList |
typedef list for holding the IDs of the children of this class
typedef 2D Vector
typedef 3x3 Matrix for holding this object's transform
| makVrv::DtWindowObject::DtWindowObject | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set / Get the window object's visibility in the window.
Reimplemented in makVrv::DtWindowArc, makVrv::DtOsgWindowArc, makVrv::DtWindowLine, makVrv::DtWindowEllipse, makVrv::DtWindowText, makVrv::DtWindowPolygon, makVrv::DtOsgWindowEllipseGroup, makVrv::DtWindowTriangleFan, makVrv::DtOsgWindowTriangleGroup, makVrv::DtWindowTriangleStrip, and makVrv::DtOsgWindowLineGroup.
|
virtual |
|
virtual |
Returns the unique ID of this object.
|
virtual |
Get / Set Parent IDs.
|
virtual |
Get / Set Parent IDs.
| DtWindowObject* makVrv::DtWindowObject::getParent | ( | ) |
Get the parent windowObject.
|
virtual |
Returns the child list.
|
virtual |
Add a child to this objects child list. This method also finds the child object, and sets the parentId on the child to myUniqueId. If the channel information on the child does not match this object, setChannelOverlay() is called to update the child's channel.
|
virtual |
Remove a child from this objects child list.
Set / Get the window position of this object.
Set / Get the window position of this object.
|
virtual |
Set / Get the scale of the x y components.
Set / Get the scale of the x y components.
Set / Get the scale of the x y components.
|
virtual |
Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set.
|
virtual |
Set / Get the rotation of the window object around it's set position, (0.0,0.0) if none is set.
|
virtual |
Set / Get the objects's color.
Reimplemented in makVrv::DtWindowArc, makVrv::DtOsgWindowArc, makVrv::DtWindowLine, makVrv::DtWindowEllipse, makVrv::DtWindowText, makVrv::DtWindowPolygon, makVrv::DtWindowTriangleFan, makVrv::DtOsgWindowEllipseGroup, makVrv::DtWindowTriangleStrip, makVrv::DtOsgWindowTriangleGroup, and makVrv::DtOsgWindowLineGroup.
|
virtual |
|
virtual |
Set / Get whether this object inherits it's color from it's parent.
|
virtual |
Set / Get whether this object inherits it's color from it's parent.
|
virtual |
Set / Get the group ID The higher the Z order the "closer" the element will be drawn to the eye point.
Reimplemented in makVrv::DtWindowLine, makVrv::DtWindowText, makVrv::DtWindowEllipse, makVrv::DtWindowPolygon, makVrv::DtWindowTriangleFan, makVrv::DtOsgWindowEllipseGroup, makVrv::DtWindowTriangleStrip, makVrv::DtOsgWindowTriangleGroup, and makVrv::DtOsgWindowLineGroup.
|
virtual |
Set / Get the group ID The higher the Z order the "closer" the element will be drawn to the eye point.
Set / Get this object to flash on and off at the given interval.
Set / Get this object to flash on and off at the given interval.
|
virtual |
Slot for DtDe::signal_postTick, using when this object is flashing/blinking.
|
virtual |
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.
Reimplemented in makVrv::DtWindowLine, makVrv::DtOsgWindowArc, makVrv::DtWindowText, makVrv::DtWindowEllipse, makVrv::DtWindowPolygon, makVrv::DtWindowTriangleFan, makVrv::DtOsgWindowEllipseGroup, makVrv::DtWindowTriangleStrip, makVrv::DtOsgWindowTriangleGroup, makVrv::DtOsgWindowLineGroup, and makVrv::DtWindowEntityAttachedSurface.
|
virtual |
Get the window transform that is the total transform of this object and all it's parents.
|
virtual |
Get this object's clip box specifications.
|
virtual |
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. If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.
Reimplemented in makVrv::DtWindowLine, makVrv::DtWindowText, makVrv::DtWindowEllipse, makVrv::DtWindowPolygon, makVrv::DtWindowTriangleFan, makVrv::DtOsgWindowEllipseGroup, makVrv::DtWindowTriangleStrip, makVrv::DtOsgWindowTriangleGroup, makVrv::DtOsgWindowLineGroup, and makVrv::DtWindowEntityAttachedSurface.
|
virtual |
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. If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |