|
V-ART
|
A PolyLine is a sequence of lines, defined by a list of points. More...
#include <polyline.h>
Public Types | |
| enum | OrganizationType { LINES, LINE_STRIP, LINE_LOOP } |
Public Types inherited from VART::GraphicObj | |
| enum | ShowType { LINES, LINES_AND_NORMALS, POINTS, POINTS_AND_NORMALS, FILLED } |
Public Types inherited from VART::SceneNode | |
| enum | TypeID { NONE, GRAPHIC_OBJ, BOX, CONE, CURVE, BEZIER, CYLINDER, IMAGE, IMAGE_2D, VOLUME, MESH_OBJECT, SPHERE, JOINT, BIAXIAL_JOINT, CONDYLAR_JOINT, ELLIPSOID_JOINT, SADDLE_JOINT, PLANE_JOINT, POLYAXIAL_JOINT, UNIAXIAL_JOINT, HINGE_JOINT, PIVOT_JOINT, TRANSFORM } |
Public Member Functions | |
| PolyLine () | |
| Creates a empty PolyLine. More... | |
| PolyLine (const VART::PolyLine &polyLine) | |
| Creates a new copy of an PolyLine. More... | |
| ~PolyLine () | |
| Destroy all PolyLine data. More... | |
| VART::PolyLine & | operator= (const VART::PolyLine &polyLine) |
| Copies all polyLine data to another PolyLine. More... | |
| virtual VART::SceneNode * | Copy () |
| Return a copy of the PolyLine. More... | |
| void | Clear () |
| Clear all vertices in the PolyLine. More... | |
| void | AddVertex (VART::Point4D &vertex) |
| Adds a vertex at the end of the list of vertices. More... | |
| void | Setvertex (unsigned int i, VART::Point4D vertex) |
| Sets the vertex at index i. More... | |
| virtual void | ComputeBoundingBox () |
| Computes the bounding box of the PolyLine. More... | |
| void | SetMaterial (const VART::Material &material) |
| Assigns a material to all lines of the PolyLine. More... | |
| const VART::Material & | GetMaterial () |
| Returns the current material of the PolyLine. More... | |
| void | SetLineWidth (float width) |
| Sets the width of the lines. More... | |
| float | GetLineWidth () |
| Returns the width of the lines. More... | |
| virtual bool | DrawOGL () const |
| Recursive drawing using OpenGL commands. More... | |
Public Member Functions inherited from VART::GraphicObj | |
| GraphicObj () | |
| void | Show () |
| Makes the object visible. More... | |
| void | Hide () |
| Makes the object invisible. More... | |
| void | ToggleVisibility () |
| Toggles the object's visibility. More... | |
| void | ToggleRecVisibility () |
| Toggles the recursive object's visibility. More... | |
| bool | IsVisible () |
| Checks whether the object is visible. More... | |
| void | ComputeRecursiveBoundingBox () |
| Computes the recursive bounding box. More... | |
| const BoundingBox & | GetBoundingBox () const |
| Returns the bounding box. More... | |
| void | SetBBoxVisibility (bool value) |
| Sets the bounding box visibility. More... | |
| void | SetBBoxColor (VART::Color value) |
| Sets the bounding box color of graphics object. More... | |
| const BoundingBox & | GetRecursiveBoundingBox () const |
| Returns the recursive bounding box. More... | |
| void | ToggleBBoxVisibility () |
| Toggles the bounding box visibility. More... | |
| void | ToggleRecBBoxVisibility () |
| Toggles the recursive bounding box visibility. More... | |
| unsigned int | PickName () const |
| Returns the pick name. More... | |
| virtual void | DrawForPicking () const |
| Draws and object, setting pick info. More... | |
Public Member Functions inherited from VART::SceneNode | |
| SceneNode () | |
| Creates an uninitialized scene node. More... | |
| SceneNode (SceneNode &node) | |
| virtual | ~SceneNode () |
| SceneNode & | operator= (const SceneNode &node) |
| virtual SceneNode * | RecursiveCopy () |
| const std::string & | GetDescription () const |
| Returns a copy of the object's description. More... | |
| void | SetDescription (const std::string &desc) |
| Changes the object's description. More... | |
| void | AddChild (SceneNode &child) |
| Add a child at the end of child list. More... | |
| bool | DetachChild (SceneNode *childPtr) |
| Removes a child from the child list. More... | |
| virtual TypeID | GetID () const |
| Returns type identification of the node. More... | |
| void | AutoDeleteChildren () const |
| Deletes (dealocate memory) recursively all children marked as 'autoDelete'. More... | |
| SceneNode * | FindChildByName (const std::string &name) const |
| Recusively searches its children for a given name. More... | |
| std::list< SceneNode * > | GetChilds () |
| bool | FindPathTo (SceneNode *targetPtr, SGPath *resultPtr) const |
| Search target among children. More... | |
| bool | FindPathTo (const std::string &targetName, SGPath *resultPtr) const |
| Search target among children. More... | |
| int | GetNodeTypeList (TypeID type, std::list< SceneNode * > &nodeList) |
| Find all the nodes of with typeID 'type'. More... | |
| virtual void | TraverseDepthFirst (SNOperator *operatorPtr) const |
| Process all children in depth-first order. More... | |
| virtual void | TraverseBreadthFirst (SNOperator *operatorPtr) const |
| Process all children in breadth-first order. More... | |
| virtual void | LocateDepthFirst (SNLocator *locatorPtr) const |
| Seaches for a particular scene node (depth first) More... | |
| virtual void | LocateBreadthFirst (SNLocator *locatorPtr) const |
| Seaches for a particular scene node (breadth first) More... | |
| virtual void | XmlPrintOn (std::ostream &os, unsigned int indent) const |
| Recursively outputs XML representation of the scene node. More... | |
Public Member Functions inherited from VART::MemoryObj | |
| MemoryObj () | |
| Default constructor. More... | |
| MemoryObj (const VART::MemoryObj &obj) | |
| Copy constructor. More... | |
Public Attributes | |
| OrganizationType | organization |
| The vertex organization. More... | |
Public Attributes inherited from VART::GraphicObj | |
| ShowType | howToShow |
| Defines how to show the object. More... | |
Public Attributes inherited from VART::MemoryObj | |
| bool | autoDelete |
Additional Inherited Members | |
Static Public Attributes inherited from VART::SceneNode | |
| static bool | recursivePrinting = true |
Protected Member Functions inherited from VART::SceneNode | |
| virtual bool | DrawInstanceOGL () const |
| Non-recursive drawing - should be overriden by every derived class. More... | |
| bool | RecursiveFindPathTo (SceneNode *targetPtr, SGPath *resultPtr) const |
| Recursive auxiliar method for FindPathTo. More... | |
| bool | RecursiveFindPathTo (const std::string &targetName, SGPath *resultPtr) const |
| Recursive auxiliar method for FindPathTo. More... | |
Protected Attributes inherited from VART::GraphicObj | |
| bool | show |
| BoundingBox | bBox |
| BoundingBox | recBBox |
| unsigned int | pickName |
| A number that uniquely identifies the object for picking purposes. More... | |
Protected Attributes inherited from VART::SceneNode | |
| std::list< SceneNode * > | childList |
| Child list. More... | |
| std::string | description |
| Textual identification. More... | |
A PolyLine is a sequence of lines, defined by a list of points.
Definition at line 18 of file polyline.h.
| Enumerator | |
|---|---|
| LINES | |
| LINE_STRIP | |
| LINE_LOOP | |
Definition at line 22 of file polyline.h.
| VART::PolyLine::PolyLine | ( | ) |
Creates a empty PolyLine.
Definition at line 10 of file polyline.cpp.
| VART::PolyLine::PolyLine | ( | const VART::PolyLine & | polyLine | ) |
Creates a new copy of an PolyLine.
Definition at line 15 of file polyline.cpp.
| VART::PolyLine::~PolyLine | ( | void | ) |
Destroy all PolyLine data.
Definition at line 20 of file polyline.cpp.
|
inline |
Adds a vertex at the end of the list of vertices.
Definition at line 44 of file polyline.h.
| void VART::PolyLine::Clear | ( | ) |
Clear all vertices in the PolyLine.
Definition at line 38 of file polyline.cpp.
|
virtual |
Computes the bounding box of the PolyLine.
Implements VART::GraphicObj.
Definition at line 43 of file polyline.cpp.
|
virtual |
Return a copy of the PolyLine.
Implements VART::SceneNode.
Definition at line 33 of file polyline.cpp.
|
virtual |
Recursive drawing using OpenGL commands.
Reimplemented from VART::SceneNode.
Definition at line 55 of file polyline.cpp.
|
inline |
Returns the width of the lines.
Definition at line 62 of file polyline.h.
|
inline |
Returns the current material of the PolyLine.
Definition at line 56 of file polyline.h.
| VART::PolyLine & VART::PolyLine::operator= | ( | const VART::PolyLine & | polyLine | ) |
Copies all polyLine data to another PolyLine.
Definition at line 25 of file polyline.cpp.
|
inline |
Sets the width of the lines.
Definition at line 59 of file polyline.h.
|
inline |
Assigns a material to all lines of the PolyLine.
Definition at line 53 of file polyline.h.
|
inline |
Sets the vertex at index i.
Definition at line 47 of file polyline.h.
| OrganizationType VART::PolyLine::organization |
The vertex organization.
Definition at line 68 of file polyline.h.
1.8.6