Class CSimpleLine

Inheritance Relationships

Base Types

Class Documentation

class CSimpleLine : public virtual mrpt::viz::CVisualObject, public mrpt::viz::VisualObjectParams_Lines

A line segment

See also

opengl::Scene

Public Functions

inline void setLineCoords(const mrpt::math::TPoint3Df &p0, const mrpt::math::TPoint3Df &p1)
inline mrpt::math::TPoint3Df getLineStart() const
inline mrpt::math::TPoint3Df getLineEnd() const
inline void setLineCoords(float x0, float y0, float z0, float x1, float y1, float z1)

Deprecated:

(MRPT 2.3.1)

inline void getLineCoords(float &x0, float &y0, float &z0, float &x1, float &y1, float &z1) const

Deprecated:

(MRPT 2.3.1)

virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const override

Must be implemented by derived classes to provide the updated bounding box in the object local frame of coordinates. This will be called only once after each time the derived class reports to notifyChange() that the object geometry changed.

See also

getBoundingBox(), getBoundingBoxLocal(), getBoundingBoxLocalf()

CSimpleLine(float x0 = 0, float y0 = 0, float z0 = 0, float x1 = 0, float y1 = 0, float z1 = 0, float lineWidth = 1, bool antiAliasing = true)

Constructor

~CSimpleLine() override = default

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

Protected Attributes

float m_x0
float m_y0
float m_z0
float m_x1
float m_y1
float m_z1