#include <mrpt/opengl/CSetOfLines.h>
Public Types | |
typedef std::vector < TSegment3D >::const_iterator | const_iterator |
Const iterator to the set. | |
typedef std::vector < TSegment3D > ::const_reverse_iterator | const_reverse_iterator |
Const reverse iterator to the set. | |
Public Member Functions | |
void | clear () |
Clear the list of segments. | |
void | setLineWidth (float w) |
Sets the width with which lines will be drawn. | |
float | getLineWidth () const |
Gets the width with which lines are drawn. | |
void | appendLine (const mrpt::math::TSegment3D &sgm) |
Appends a line to the set. | |
void | appendLine (float x0, float y0, float z0, float x1, float y1, float z1) |
Appends a line to the set, given the coordinates of its bounds. | |
template<class T > | |
void | appendLines (const T &sgms) |
Appends any iterable collection of lines to the set. | |
template<class T_it > | |
void | appendLines (const T_it &begin, const T_it &end) |
Appends certain amount of lines, located between two iterators, into the set. | |
void | resize (size_t nLines) |
Resizes the set. | |
void | reserve (size_t r) |
Reserves an amount of lines to the set. | |
template<class T , class U > | |
void | appendLine (T p0, U p1) |
Inserts a line, given its bounds. | |
size_t | getLineCount () const |
Returns the total count of lines in this set. | |
void | setLineByIndex (size_t index, const TSegment3D &segm) |
Sets a specific line in the set, given its index. | |
void | setLineByIndex (size_t index, float x0, float y0, float z0, float x1, float y1, float z1) |
Sets a specific line in the set, given its index. | |
void | render () const |
Render. | |
const_iterator | begin () const |
Beginning const iterator. | |
const_iterator | end () const |
Ending const iterator. | |
const_reverse_iterator | rbegin () const |
Beginning const reverse iterator (actually, accesses the end of the set). | |
const_reverse_iterator | rend () const |
Ending const reverse iterator (actually, refers to the starting point of the set). | |
Static Public Member Functions | |
static CSetOfLinesPtr | Create (const std::vector< TSegment3D > &sgms) |
Class factory. | |
Protected Attributes | |
std::vector< TSegment3D > | mSegments |
float | mLineWidth |
Private Member Functions | |
CSetOfLines () | |
Constructor. | |
CSetOfLines (const std::vector< TSegment3D > &sgms) | |
Constructor with a initial set of lines. | |
virtual | ~CSetOfLines () |
Private, virtual destructor: only can be deleted from smart pointers. |
Definition at line 50 of file CSetOfLines.h.
typedef std::vector<TSegment3D>::const_iterator mrpt::opengl::CSetOfLines::const_iterator |
typedef std::vector<TSegment3D>::const_reverse_iterator mrpt::opengl::CSetOfLines::const_reverse_iterator |
mrpt::opengl::CSetOfLines::CSetOfLines | ( | ) | [inline, private] |
mrpt::opengl::CSetOfLines::CSetOfLines | ( | const std::vector< TSegment3D > & | sgms | ) | [inline, private] |
virtual mrpt::opengl::CSetOfLines::~CSetOfLines | ( | ) | [inline, private, virtual] |
Private, virtual destructor: only can be deleted from smart pointers.
Definition at line 200 of file CSetOfLines.h.
void mrpt::opengl::CSetOfLines::appendLine | ( | T | p0, | |
U | p1 | |||
) | [inline] |
Inserts a line, given its bounds.
Works with any pair of objects with access to x, y and z members.
Definition at line 120 of file CSetOfLines.h.
void mrpt::opengl::CSetOfLines::appendLine | ( | float | x0, | |
float | y0, | |||
float | z0, | |||
float | x1, | |||
float | y1, | |||
float | z1 | |||
) | [inline] |
Appends a line to the set, given the coordinates of its bounds.
Definition at line 85 of file CSetOfLines.h.
References mrpt::math::TSegment3D.
void mrpt::opengl::CSetOfLines::appendLine | ( | const mrpt::math::TSegment3D & | sgm | ) | [inline] |
void mrpt::opengl::CSetOfLines::appendLines | ( | const T_it & | begin, | |
const T_it & | end | |||
) | [inline] |
Appends certain amount of lines, located between two iterators, into the set.
Definition at line 99 of file CSetOfLines.h.
void mrpt::opengl::CSetOfLines::appendLines | ( | const T & | sgms | ) | [inline] |
Appends any iterable collection of lines to the set.
Note that this includes another CSetOfLines.
Definition at line 92 of file CSetOfLines.h.
const_iterator mrpt::opengl::CSetOfLines::begin | ( | ) | const [inline] |
void mrpt::opengl::CSetOfLines::clear | ( | void | ) | [inline] |
static CSetOfLinesPtr mrpt::opengl::CSetOfLines::Create | ( | const std::vector< TSegment3D > & | sgms | ) | [inline, static] |
const_iterator mrpt::opengl::CSetOfLines::end | ( | ) | const [inline] |
size_t mrpt::opengl::CSetOfLines::getLineCount | ( | ) | const [inline] |
float mrpt::opengl::CSetOfLines::getLineWidth | ( | ) | const [inline] |
const_reverse_iterator mrpt::opengl::CSetOfLines::rbegin | ( | ) | const [inline] |
Beginning const reverse iterator (actually, accesses the end of the set).
Definition at line 178 of file CSetOfLines.h.
const_reverse_iterator mrpt::opengl::CSetOfLines::rend | ( | ) | const [inline] |
Ending const reverse iterator (actually, refers to the starting point of the set).
Definition at line 185 of file CSetOfLines.h.
void mrpt::opengl::CSetOfLines::render | ( | ) | const [virtual] |
void mrpt::opengl::CSetOfLines::reserve | ( | size_t | r | ) | [inline] |
Reserves an amount of lines to the set.
This method should be used when some known amount of lines is going to be inserted, so that only a memory allocation is needed.
Definition at line 114 of file CSetOfLines.h.
void mrpt::opengl::CSetOfLines::resize | ( | size_t | nLines | ) | [inline] |
void mrpt::opengl::CSetOfLines::setLineByIndex | ( | size_t | index, | |
float | x0, | |||
float | y0, | |||
float | z0, | |||
float | x1, | |||
float | y1, | |||
float | z1 | |||
) | [inline] |
Sets a specific line in the set, given its index.
Definition at line 138 of file CSetOfLines.h.
References mrpt::math::TSegment3D.
void mrpt::opengl::CSetOfLines::setLineByIndex | ( | size_t | index, | |
const TSegment3D & | segm | |||
) |
void mrpt::opengl::CSetOfLines::setLineWidth | ( | float | w | ) | [inline] |
float mrpt::opengl::CSetOfLines::mLineWidth [protected] |
Definition at line 55 of file CSetOfLines.h.
std::vector<TSegment3D> mrpt::opengl::CSetOfLines::mSegments [protected] |
Definition at line 54 of file CSetOfLines.h.
Page generated by Doxygen 1.5.9 for MRPT 0.7.1 SVN: at Mon Aug 17 22:32:05 EDT 2009 |