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:

mrpt::opengl::CRenderizable mrpt::utils::CSerializable

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 (double x, double y, double z, double R, double G, double B)
void push_back (float x, float y, float z, float R, float G, float B)
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
void loadFromPointsMap (const mrpt::slam::CPointsMap *map)
 Load the points from a points map, 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.

Static Public Member Functions

static CPointCloudColouredPtr Create ()
 Class factory.

Private Types

typedef
mrpt::utils::vector_serializable
< TPointColour
TListPointColour

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.

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

Definition at line 51 of file CPointCloudColoured.h.


Member Typedef Documentation

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

Definition at line 82 of file CPointCloudColoured.h.

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

Definition at line 81 of file CPointCloudColoured.h.

Definition at line 65 of file CPointCloudColoured.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 72 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 78 of file CPointCloudColoured.h.


Member Function Documentation

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

Definition at line 85 of file CPointCloudColoured.h.

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

Definition at line 84 of file CPointCloudColoured.h.

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

Definition at line 106 of file CPointCloudColoured.h.

static CPointCloudColouredPtr mrpt::opengl::CPointCloudColoured::Create (  )  [inline, static]

Class factory.

Definition at line 113 of file CPointCloudColoured.h.

References mrpt::opengl::CPointCloudColoured.

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

Definition at line 87 of file CPointCloudColoured.h.

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

Definition at line 86 of file CPointCloudColoured.h.

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

Definition at line 109 of file CPointCloudColoured.h.

void mrpt::opengl::CPointCloudColoured::loadFromPointsMap ( const mrpt::slam::CPointsMap map  ) 

Load the points from a points map, 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.

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

Read or write access to each individual point.

Definition at line 103 of file CPointCloudColoured.h.

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

Definition at line 94 of file CPointCloudColoured.h.

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

Definition at line 89 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 99 of file CPointCloudColoured.h.

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

Definition at line 100 of file CPointCloudColoured.h.

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

Definition at line 108 of file CPointCloudColoured.h.

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

Definition at line 105 of file CPointCloudColoured.h.


Member Data Documentation

Definition at line 67 of file CPointCloudColoured.h.

By default is 1.0.

Definition at line 68 of file CPointCloudColoured.h.




Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN: at Sun Aug 2 11:41:17 CDT 2009