Go to the documentation of this file.
79 float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
119 template <
class T_it>
150 template <
class T,
class U>
153 appendLine(p0.x, p0.y, p0.z, p1.x, p1.y, p1.z);
172 size_t index,
double x0,
double y0,
double z0,
double x1,
double y1,
186 size_t index,
double& x0,
double& y0,
double& z0,
double& x1,
187 double& y1,
double& z1)
const;
191 const std::vector<mrpt::math::TSegment3D>& sgms,
192 const bool antiAliasing =
true);
200 std::vector<mrpt::math::TSegment3D>::reverse_iterator;
203 std::vector<mrpt::math::TSegment3D>::const_reverse_iterator;
252 const std::vector<mrpt::math::TSegment3D>& sgms,
253 bool antiAliasing =
true);
263 l->appendLines(
s.begin(),
s.end());
void clear()
Clear the list of segments.
std::shared_ptr< CSetOfLines > Ptr
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
const Scalar * const_iterator
void render_dl() const override
Render.
bool empty() const
Returns true if there are no line segments.
std::vector< mrpt::math::TSegment3D >::const_iterator const_iterator
void enableAntiAliasing(bool enable=true)
std::vector< mrpt::math::TSegment3D >::const_reverse_iterator const_reverse_iterator
CSetOfLines()
Constructor.
A set of independent lines (or segments), one line with its own start and end positions (X,...
A renderizable object suitable for rendering with OpenGL's display lists.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLubyte GLubyte GLubyte GLubyte w
#define ASSERT_(f)
Defines an assertion mechanism.
float getVerticesPointSize() const
static Ptr Create(Args &&... args)
void reserve(size_t r)
Reserves an amount of lines to the set.
GLdouble GLdouble GLdouble r
size_t getLineCount() const
Returns the total count of lines in this set.
void appendLine(const mrpt::math::TSegment3D &sgm)
Appends a line to the set.
void appendLineStrip(float x, float y, float z)
Appends a line whose starting point is the end point of the last line (similar to OpenGL's GL_LINE_ST...
size_t size() const
Returns the total count of lines in this set.
float m_verticesPointSize
0: means hidden
void appendLine(T p0, U p1)
Inserts a line, given its bounds.
void setLineByIndex(size_t index, const mrpt::math::TSegment3D &segm)
Sets a specific line in the set, given its index.
void setLineByIndex(size_t index, double x0, double y0, double z0, double x1, double y1, double z1)
Sets a specific line in the set, given its index.
std::vector< mrpt::math::TSegment3D > mSegments
void resize(size_t nLines)
Resizes the set.
const_reverse_iterator rend() const
Ending const reverse iterator (actually, refers to the starting point of the set).
3D segment, consisting of two points.
void setLineWidth(float w)
Sets the width with which lines will be drawn.
bool isAntiAliasingEnabled() const
const_reverse_iterator rbegin() const
Beginning const reverse iterator (actually, accesses the end of the set).
mrpt::serialization::CArchive & operator<<(mrpt::serialization::CArchive &out, const mrpt::opengl::CLight &o)
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.
void appendLineStrip(const U &point)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void appendLines(const T &sgms)
Appends any iterable collection of lines to the set.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void appendLines(const T_it &begin, const T_it &end)
Appends certain amount of lines, located between two iterators, into the set.
float getLineWidth() const
Gets the width with which lines are drawn.
void getLineByIndex(size_t index, double &x0, double &y0, double &z0, double &x1, double &y1, double &z1) const
Gets a specific line in the set, given its index.
std::vector< mrpt::math::TSegment3D >::iterator iterator
const_iterator end() const
Ending const iterator.
std::vector< mrpt::math::TSegment3D >::reverse_iterator reverse_iterator
virtual ~CSetOfLines()
Private, virtual destructor: only can be deleted from smart pointers.
void setVerticesPointSize(const float size_points)
Enable showing vertices as dots if size_points>0.
const_iterator begin() const
Beginning const iterator.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |