A model-like object that draws a 2D line.
A 2D line that can be represented in one of two ways: either it has a start position and end position, divided into segments, or it is multiple (> 2) vertices, each pair of which define a segment. Each segment consists of a percentage (first case only), color, style, arrow style, stipple pattern, and thickness. This line class inherits from DtWindowObject() which means it can be included in a parent/child relationship with other window objects, including surfaces, polygons, text, and ellipses. Vertices for this line are relative to a fixed position, this is the position set in the base class. 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. createInstance() must be called first for the other methods in this class to work.
|
| | DtWindowLine (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtWindowLine () |
| |
| virtual void | setVertex (unsigned int vertex, double x, double y) |
| |
| virtual void | removeVertex (unsigned int vertex) |
| |
| virtual void | setStartVertex (double x, double y) |
| |
| virtual void | setEndVertex (double x, double y) |
| |
| virtual void | setVisible (bool isVisible) |
| |
| virtual void | setWidth (unsigned int width) |
| |
| virtual void | setColor (float r, float g, float b, float a) |
| |
| virtual void | setStipplePattern (unsigned int pattern) |
| |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| |
| virtual void | setSegmentColor (unsigned int index, float r, float g, float b, float a) |
| |
| virtual void | setSegmentLightningStyle (unsigned int index, bool enableLightningStyle) |
| |
| virtual void | setSegmentStartArrow (unsigned int index, bool enableStartArrow) |
| |
| virtual void | setSegmentEndArrow (unsigned int index, bool enableEndArrow) |
| |
| virtual void | setSegmentStipplePattern (unsigned int index, unsigned int stipplePattern) |
| |
| virtual void | setSegmentStipplePattern (unsigned int index, unsigned int stippleScale, unsigned int stipplePattern) |
| |
| virtual void | setSegmentWidth (unsigned int index, unsigned int width) |
| |
| virtual void | setSegmentStartColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| |
| virtual void | setSegmentEndColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| |
| virtual void | setGroup (int groupId) |
| |
| virtual void | setChannelOverlay (const std::string &displayName, const std::string &windowName, const std::string &channelName) override |
| |
| | 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) |
| |