A model-like object that draws a 2D polygon on screen. This polygon class inherits from DtWindowObject() which means it can be included in a parent/child relationship with other window objects, including surfaces, lines, text, and ellipses. Vertices for this polygon 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. Note that this polygon does not support concave shapes where a vertex is further into the center of the polygon that the center calculated from all the vertices. The triangles in this polygon each share a vertex with the center of the polygon. A DtTriangleFan fully supports concave shapes.
|
| | DtWindowPolygon (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtWindowPolygon () |
| |
| virtual void | setVertex (int i, double x, double y) |
| |
| 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 |
| |
| | DtWindowObject (DtDe &de, DtUniqueID id) |
| |
| virtual | ~DtWindowObject () |
| |
| virtual bool | visible () |
| |
| virtual DtUniqueID | uniqueId () |
| |
| virtual 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) |
| |