![]() |
VR-Forces 5.0.2 Developer's Guide
|
A model-like object that draws a 2D ellipse. This ellipse class inherits from DtWindowObject() which means it can be included in a parent/child relationship with other window objects, including surfaces, polygons, text, and lines. Vertices for this ellipse are relative to a fixed position, this is the position set for the center. Rotations are also relative to this position. If a position is not set, the default position is (0.0,0.0). If this object is a child of a surface, and that surface has a clip box set, this objects vertices will automatically be clipped in it's update method. If this object is a child of another object, the position set is relative to the parent.

Public Member Functions | |
| DtWindowEllipse (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWindowEllipse () |
| virtual void | setCenter (double x, double y) |
| virtual void | setDimensions (double xLength, double yLength) |
| virtual void | setNumVertices (int numVertices) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setFill (bool fill) |
| virtual void | setGroup (int groupId) |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) override |
| virtual void | setInnerDimensions (double xLength, double yLength) |
| virtual void | setStartEndAngles (double startAngle, double endAngle) |
| virtual void | setLineWidth (float lineWidth) |
Public Member Functions inherited from makVrv::DtWindowObject | |
| DtWindowObject (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWindowObject () |
| virtual bool | visible () |
| virtual DtUniqueID | uniqueId () |
| DtWindowObject * | getParent () |
| virtual ChildList | childList () |
| virtual void | addChild (DtUniqueID id) |
| virtual void | removeChild (DtUniqueID id) |
| virtual void | getColor (float &r, float &g, float &b, float &a) |
| virtual void | slot_postTick () |
| 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 int | group () |
| virtual void | setFlashing (bool flashing, double interval) |
| virtual void | getFlashing (bool &flashing, double &interval) |
| virtual void | getChannelOverlay (std::string &displayName, std::string &windowName, std::string &channelName) |
Protected Member Functions | |
| virtual void | update () |
| virtual void | needsUpdate () |
Protected Attributes | |
| DtWindowEllipseInstance * | myInstance |
| bool | myConnectedToPostUpdate |
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 |
Additional Inherited Members | |
Public Types inherited from makVrv::DtWindowObject | |
| typedef std::list< DtUniqueID > | ChildList |
| typedef DtVector2< double > | DtVector2d |
| typedef DtMatrix3< double > | Transform |
| makVrv::DtWindowEllipse::DtWindowEllipse | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Set the center of the ellipse in normalized screen coordinates.
For example, setCenter(0.1, 0.5) sets the center to 10% horizontally from the left of the creen and 50% vertically from the bottom
Set the dimensions of the ellipse (the lengths of its axes) in normalizes screen coordinates.
For example, setDimensions(0.3, 0.5) sets the ellipse to 30% of the screen size horizontally and 50% vertically.
|
virtual |
Set the number of vertices to use in approximating the ellipse; Default is 32.
|
virtual |
Set the ellipse's visibility.
Reimplemented from makVrv::DtWindowObject.
Set the stipple pattern.
|
virtual |
Set the ellipse's color.
Reimplemented from makVrv::DtWindowObject.
|
virtual |
Set the ellipse to filled or outlined.
|
virtual |
Set this object's group ID for z order. The higher the Z order the "closer" the element will be drawn to the eye point.
Reimplemented from makVrv::DtWindowObject.
|
overridevirtual |
By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. This draws the same objects on ALL displays. If a user wishes to draw specific window object on a specific channel, use this method. This does not work for remote displays.
Reimplemented from makVrv::DtWindowObject.
Set the inner dimensions of this ellipse, if this is set the ellipse shall be rendered hollow.
|
virtual |
Allows for drawing of subsections of an ellipse.
|
virtual |
Set line width if this ellipse is outlined.
|
protectedvirtual |
Called on signal_postUpdate; time to update render data.
|
protectedvirtual |
Called by all mutators to set up a postUpdate signal if not already connected.
Reimplemented from makVrv::DtWindowObject.
|
protected |
|
protected |