GLC_Polylines : OpenGL 3D Polylines. More...
#include <glc_polylines.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Polylines () | |
| Construct an empty polylines. | |
| GLC_Polylines (const GLC_Polylines &polyline) | |
| Copy constructor. | |
| virtual | ~GLC_Polylines () |
| Destructor. | |
Get Functions | |
| const GLC_BoundingBox & | boundingBox () |
| Return the polylines bounding box. | |
| virtual GLC_Geometry * | clone () const |
| Return a copy of the geometry. | |
| bool | isEmpty () const |
| Return true if this polylines is empty. | |
Set Functions | |
| GLC_uint | addPolyline (const GLfloatVector &data) |
| Add a Polyline to this wire and returns its id if id are managed. | |
| GLC_Polylines & | operator= (const GLC_Polylines &polyline) |
| Set this polylines from the given polylines and return a reference of this polylines. | |
| void | clear () |
| Clear the content of this polylines Data and makes it empty. | |
Private Member Functions | |
OpenGL Functions | |
| virtual void | glDraw (const GLC_RenderProperties &) |
| Virtual interface for OpenGL Geometry set up. | |
GLC_Polylines : OpenGL 3D Polylines.
An GLC_Polylines is a group of wire polyline All polylines of this class have the same color
Definition at line 38 of file glc_polylines.h.
| GLC_Polylines::GLC_Polylines | ( | ) |
Construct an empty polylines.
Definition at line 26 of file glc_polylines.cpp.
Referenced by clone().
| GLC_Polylines::GLC_Polylines | ( | const GLC_Polylines & | polyline | ) |
Copy constructor.
Definition at line 32 of file glc_polylines.cpp.
| GLC_Polylines::~GLC_Polylines | ( | ) | [virtual] |
Destructor.
Definition at line 38 of file glc_polylines.cpp.
| GLC_uint GLC_Polylines::addPolyline | ( | const GLfloatVector & | data | ) | [inline] |
Add a Polyline to this wire and returns its id if id are managed.
Definition at line 78 of file glc_polylines.h.
References GLC_WireData::addVerticeGroup(), and GLC_Geometry::m_WireData.
Referenced by GLC_RepFlyMover::createRepresentation().
| const GLC_BoundingBox & GLC_Polylines::boundingBox | ( | void | ) | [virtual] |
Return the polylines bounding box.
Implements GLC_Geometry.
Definition at line 46 of file glc_polylines.cpp.
References GLC_WireData::boundingBox(), GLC_BoundingBox::combine(), GLC_WireData::isEmpty(), GLC_Geometry::m_pBoundingBox, and GLC_Geometry::m_WireData.
| void GLC_Polylines::clear | ( | ) | [inline, virtual] |
Clear the content of this polylines Data and makes it empty.
Reimplemented from GLC_Geometry.
Definition at line 85 of file glc_polylines.h.
References GLC_WireData::clear(), and GLC_Geometry::m_WireData.
| GLC_Geometry * GLC_Polylines::clone | ( | ) | const [virtual] |
Return a copy of the geometry.
Implements GLC_Geometry.
Definition at line 59 of file glc_polylines.cpp.
References GLC_Polylines().
| void GLC_Polylines::glDraw | ( | const GLC_RenderProperties & | renderProperties | ) | [private, virtual] |
Virtual interface for OpenGL Geometry set up.
This Virtual function is implemented here.
Throw GLC_OpenGlException
Implements GLC_Geometry.
Definition at line 79 of file glc_polylines.cpp.
References GLC_WireData::glDraw(), isEmpty(), and GLC_Geometry::m_WireData.
| bool GLC_Polylines::isEmpty | ( | void | ) | const [inline] |
Return true if this polylines is empty.
Definition at line 67 of file glc_polylines.h.
References GLC_WireData::isEmpty(), and GLC_Geometry::m_WireData.
Referenced by glDraw().
| GLC_Polylines & GLC_Polylines::operator= | ( | const GLC_Polylines & | polyline | ) |
Set this polylines from the given polylines and return a reference of this polylines.
Definition at line 67 of file glc_polylines.cpp.