Main MRPT website > C++ reference
MRPT logo

mrpt::opengl::CPointCloudColoured Class Reference

A cloud of points, each one with an individual colour (R,G,B). More...

#include <mrpt/opengl/CPointCloudColoured.h>

Inheritance diagram for mrpt::opengl::CPointCloudColoured:
Inheritance graph
[legend]
Collaboration diagram for mrpt::opengl::CPointCloudColoured:
Collaboration graph
[legend]

List of all members.

Classes

struct  TPointColour

Public Types

typedef TListPointColour::iterator iterator
typedef
TListPointColour::const_iterator 
const_iterator

Public Member Functions

iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
void push_back (float x, float y, float z, float R, float G, float B)
 Inserts a new point into the point cloud.
void reserve (size_t N)
void resize (size_t N)
TPointColouroperator[] (size_t i)
 Read or write access to each individual point.
size_t size () const
void clear ()
void setPointSize (float pointSize)
float getPointSize () const
template<class POINTSMAP >
void loadFromPointsMap (const POINTSMAP *m)
 Load the points from a points map (passed as a pointer), depending on the type of point map passed: for the case of a mrpt::slam::CColouredPointMap the colours of individual points will be also copied.
void render () const
 Render.

Private Types

typedef std::vector< TPointColourTListPointColour

Private Member Functions

 CPointCloudColoured ()
 Constructor.
virtual ~CPointCloudColoured ()
 Private, virtual destructor: only can be deleted from smart pointers.

Private Attributes

TListPointColour m_points
float m_pointSize
 By default is 1.0.

Detailed Description

A cloud of points, each one with an individual colour (R,G,B).

The alpha component is shared by all the points and is stored in the base member m_color_A.

To load from a points-map, see mrpt::slam::CPointsMap::loadIntoPointCloud().

See also:
opengl::COpenGLScene, opengl::CPointCloud

Definition at line 52 of file CPointCloudColoured.h.


Member Typedef Documentation

typedef TListPointColour::const_iterator mrpt::opengl::CPointCloudColoured::const_iterator

Definition at line 83 of file CPointCloudColoured.h.

typedef TListPointColour::iterator mrpt::opengl::CPointCloudColoured::iterator

Definition at line 82 of file CPointCloudColoured.h.

Definition at line 66 of file CPointCloudColoured.h.


Constructor & Destructor Documentation

mrpt::opengl::CPointCloudColoured::CPointCloudColoured (  )  [inline, private]

Constructor.

Definition at line 73 of file CPointCloudColoured.h.

virtual mrpt::opengl::CPointCloudColoured::~CPointCloudColoured (  )  [inline, private, virtual]

Private, virtual destructor: only can be deleted from smart pointers.

Definition at line 79 of file CPointCloudColoured.h.


Member Function Documentation

const_iterator mrpt::opengl::CPointCloudColoured::begin (  )  const [inline]

Definition at line 86 of file CPointCloudColoured.h.

iterator mrpt::opengl::CPointCloudColoured::begin (  )  [inline]

Definition at line 85 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::clear ( void   )  [inline]

Definition at line 102 of file CPointCloudColoured.h.

const_iterator mrpt::opengl::CPointCloudColoured::end (  )  const [inline]

Definition at line 88 of file CPointCloudColoured.h.

iterator mrpt::opengl::CPointCloudColoured::end (  )  [inline]

Definition at line 87 of file CPointCloudColoured.h.

float mrpt::opengl::CPointCloudColoured::getPointSize (  )  const [inline]

Definition at line 105 of file CPointCloudColoured.h.

template<class POINTSMAP >
void mrpt::opengl::CPointCloudColoured::loadFromPointsMap ( const POINTSMAP *  m  )  [inline]

Load the points from a points map (passed as a pointer), depending on the type of point map passed: for the case of a mrpt::slam::CColouredPointMap the colours of individual points will be also copied.

The possible classes accepted as arguments are: mrpt::slam::CColouredPointsMap, or in general any mrpt::slam::CPointsMap.

Note:
The method is a template since CPointsMap belongs to a different mrpt library.

Definition at line 112 of file CPointCloudColoured.h.

TPointColour& mrpt::opengl::CPointCloudColoured::operator[] ( size_t  i  )  [inline]

Read or write access to each individual point.

Definition at line 99 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::push_back ( float  x,
float  y,
float  z,
float  R,
float  G,
float  B 
) [inline]

Inserts a new point into the point cloud.

Definition at line 91 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::render (  )  const [virtual]

Render.

Implements mrpt::opengl::CRenderizable.

void mrpt::opengl::CPointCloudColoured::reserve ( size_t  N  )  [inline]

Definition at line 95 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::resize ( size_t  N  )  [inline]

Definition at line 96 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::setPointSize ( float  pointSize  )  [inline]

Definition at line 104 of file CPointCloudColoured.h.

size_t mrpt::opengl::CPointCloudColoured::size (  )  const [inline]

Definition at line 101 of file CPointCloudColoured.h.


Member Data Documentation

Definition at line 68 of file CPointCloudColoured.h.

By default is 1.0.

Definition at line 69 of file CPointCloudColoured.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010