MRPT logo

mrpt::opengl::CSetOfLines Class Reference

A set of independent lines (or segments), one line with its own start and end positions (X,Y,Z). More...

#include <mrpt/opengl/CSetOfLines.h>

Inheritance diagram for mrpt::opengl::CSetOfLines:

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

List of all members.

Public Member Functions

void clear ()
void setLineWidth (float w)
 Clear the list of segments.
float getLineWidth () const
void appendLine (const float &x0, const float &y0, const float &z0, const float &x1, const float &y1, const float &z1)
void resize (const size_t &nLines)
void setLineByIndex (const size_t &index, const float &x0, const float &y0, const float &z0, const float &x1, const float &y1, const float &z1)
void render ()
 Render.

Static Public Member Functions

static CSetOfLinesPtr Create ()
 Class factory.

Protected Attributes

vector_float m_x0
vector_float m_y0
vector_float m_z0
vector_float m_x1
vector_float m_y1
vector_float m_z1
float m_lineWidth

Private Member Functions

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


Detailed Description

A set of independent lines (or segments), one line with its own start and end positions (X,Y,Z).

See also:
opengl::COpenGLScene

Definition at line 46 of file CSetOfLines.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 84 of file CSetOfLines.h.

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

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

Definition at line 91 of file CSetOfLines.h.


Member Function Documentation

void mrpt::opengl::CSetOfLines::appendLine ( const float &  x0,
const float &  y0,
const float &  z0,
const float &  x1,
const float &  y1,
const float &  z1 
)

void mrpt::opengl::CSetOfLines::clear (  ) 

static CSetOfLinesPtr mrpt::opengl::CSetOfLines::Create (  )  [inline, static]

Class factory.

Definition at line 72 of file CSetOfLines.h.

References mrpt::opengl::CSetOfLines.

float mrpt::opengl::CSetOfLines::getLineWidth (  )  const [inline]

Definition at line 58 of file CSetOfLines.h.

void mrpt::opengl::CSetOfLines::render (  )  [virtual]

Render.

Implements mrpt::opengl::CRenderizable.

void mrpt::opengl::CSetOfLines::resize ( const size_t &  nLines  ) 

void mrpt::opengl::CSetOfLines::setLineByIndex ( const size_t &  index,
const float &  x0,
const float &  y0,
const float &  z0,
const float &  x1,
const float &  y1,
const float &  z1 
)

void mrpt::opengl::CSetOfLines::setLineWidth ( float  w  )  [inline]

Clear the list of segments.

Definition at line 57 of file CSetOfLines.h.


Member Data Documentation

Definition at line 52 of file CSetOfLines.h.

Definition at line 50 of file CSetOfLines.h.

Definition at line 51 of file CSetOfLines.h.

Definition at line 50 of file CSetOfLines.h.

Definition at line 51 of file CSetOfLines.h.

Definition at line 50 of file CSetOfLines.h.

Definition at line 51 of file CSetOfLines.h.




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN:exported at Mon Jan 12 13:00:16 UTC 2009