GLC_PointCloud Class Reference

GLC_PointCloud : OpenGL 3D cloud of points. More...

#include <glc_pointcloud.h>

Inheritance diagram for GLC_PointCloud:
GLC_Geometry GLC_Point GLC_PointSprite

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_PointCloud ()
 Construct an empty cloud of points.
 GLC_PointCloud (const GLC_PointCloud &pointCloud)
 Copy constructor.
virtual ~GLC_PointCloud ()
 Destructor.
Get Functions

const GLC_BoundingBoxboundingBox ()
 Return the point cloud bounding box.
virtual GLC_Geometryclone () const
 Return a copy of the geometry.
bool isEmpty () const
 Return true if this point cloud is empty.
Set Functions

GLC_uint addPoint (const GLfloatVector &data)
 Add a point to this wire and returns its id if id are managed.
GLC_uint addPoint (const QList< GLC_Point3d > &pointsList)
 Add the given list of points to this cloud and returns its id if id are managed.
GLC_uint addPoint (const QList< GLC_Point3df > &pointsList)
 Add the given list of points to this cloud and returns its id if id are managed.
void addColors (const GLfloatVector &colors)
 Add Colors.
void addColors (const QList< QColor > &colors)
 Add Colors.
GLC_PointCloudoperator= (const GLC_PointCloud &pointcloud)
 Set this point cloud from the given point cloud and return a reference of this point cloud.
void clear ()
 Clear the content of this point cloud Data and makes it empty.

Protected Member Functions

OpenGL Functions

virtual void glDraw (const GLC_RenderProperties &)
 Virtual interface for OpenGL Geometry set up.

Detailed Description

GLC_PointCloud : OpenGL 3D cloud of points.

An GLC_PointCloud is a group of points All points of this class have the same color

Definition at line 40 of file glc_pointcloud.h.


Constructor & Destructor Documentation

GLC_PointCloud::GLC_PointCloud (  ) 

Construct an empty cloud of points.

Definition at line 26 of file glc_pointcloud.cpp.

Referenced by clone().

GLC_PointCloud::GLC_PointCloud ( const GLC_PointCloud pointCloud  ) 

Copy constructor.

Definition at line 32 of file glc_pointcloud.cpp.

GLC_PointCloud::~GLC_PointCloud (  )  [virtual]

Destructor.

Definition at line 39 of file glc_pointcloud.cpp.


Member Function Documentation

void GLC_PointCloud::addColors ( const QList< QColor > &  colors  ) 

Add Colors.

Definition at line 99 of file glc_pointcloud.cpp.

References GLC_WireData::addColors(), and GLC_Geometry::m_WireData.

void GLC_PointCloud::addColors ( const GLfloatVector colors  )  [inline]

Add Colors.

Definition at line 90 of file glc_pointcloud.h.

References GLC_WireData::addColors(), and GLC_Geometry::m_WireData.

GLC_uint GLC_PointCloud::addPoint ( const QList< GLC_Point3df > &  pointsList  ) 

Add the given list of points to this cloud and returns its id if id are managed.

Definition at line 84 of file glc_pointcloud.cpp.

References GLC_WireData::addVerticeGroup(), and GLC_Geometry::m_WireData.

GLC_uint GLC_PointCloud::addPoint ( const QList< GLC_Point3d > &  pointsList  ) 

Add the given list of points to this cloud and returns its id if id are managed.

Definition at line 69 of file glc_pointcloud.cpp.

References GLC_WireData::addVerticeGroup(), and GLC_Geometry::m_WireData.

GLC_uint GLC_PointCloud::addPoint ( const GLfloatVector data  )  [inline]

Add a point to this wire and returns its id if id are managed.

Definition at line 80 of file glc_pointcloud.h.

References GLC_WireData::addVerticeGroup(), and GLC_Geometry::m_WireData.

Referenced by GLC_Factory::createPointCloud(), GLC_PointSprite::GLC_PointSprite(), and GLC_Point::setCoordinate().

const GLC_BoundingBox & GLC_PointCloud::boundingBox ( void   )  [virtual]
void GLC_PointCloud::clear (  )  [inline, virtual]

Clear the content of this point cloud Data and makes it empty.

Reimplemented from GLC_Geometry.

Definition at line 100 of file glc_pointcloud.h.

References GLC_WireData::clear(), and GLC_Geometry::m_WireData.

Referenced by GLC_Point::setCoordinate().

GLC_Geometry * GLC_PointCloud::clone (  )  const [virtual]

Return a copy of the geometry.

Implements GLC_Geometry.

Reimplemented in GLC_Point, and GLC_PointSprite.

Definition at line 60 of file glc_pointcloud.cpp.

References GLC_PointCloud().

void GLC_PointCloud::glDraw ( const GLC_RenderProperties renderProperties  )  [protected, virtual]

Virtual interface for OpenGL Geometry set up.

This Virtual function is implemented here.
Throw GLC_OpenGlException

Implements GLC_Geometry.

Reimplemented in GLC_Point, and GLC_PointSprite.

Definition at line 128 of file glc_pointcloud.cpp.

References GLC_WireData::glDraw(), isEmpty(), and GLC_Geometry::m_WireData.

bool GLC_PointCloud::isEmpty ( void   )  const [inline]

Return true if this point cloud is empty.

Definition at line 70 of file glc_pointcloud.h.

References GLC_WireData::isEmpty(), and GLC_Geometry::m_WireData.

Referenced by glDraw().

GLC_PointCloud & GLC_PointCloud::operator= ( const GLC_PointCloud pointcloud  ) 

Set this point cloud from the given point cloud and return a reference of this point cloud.

Definition at line 116 of file glc_pointcloud.cpp.


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

SourceForge.net Logo

©2005-2011 Laurent Ribon