GLC_Polylines Class Reference

GLC_Polylines : OpenGL 3D Polylines. More...

#include <glc_polylines.h>

Inheritance diagram for GLC_Polylines:
GLC_Geometry

List of all members.

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_BoundingBoxboundingBox ()
 Return the polylines bounding box.
virtual GLC_Geometryclone () 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_Polylinesoperator= (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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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.


The documentation for this class was generated from the following files:

SourceForge.net Logo

©2005-2011 Laurent Ribon