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 reserve (size_t r)
template<class T , class U >
void appendLine (T p0, U p1)
size_t getLineCount () const
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 () const
 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 95 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 102 of file CSetOfLines.h.


Member Function Documentation

template<class T , class U >
void mrpt::opengl::CSetOfLines::appendLine ( p0,
p1 
) [inline]

Definition at line 69 of file CSetOfLines.h.

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 83 of file CSetOfLines.h.

References mrpt::opengl::CSetOfLines.

size_t mrpt::opengl::CSetOfLines::getLineCount (  )  const [inline]

Definition at line 73 of file CSetOfLines.h.

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

Definition at line 58 of file CSetOfLines.h.

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

Render.

Implements mrpt::opengl::CRenderizable.

void mrpt::opengl::CSetOfLines::reserve ( size_t  r  ) 

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.7.1 for MRPT 0.6.5 SVN: at Mon Feb 23 13:25:04 EST 2009