43 float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
55 float& x0,
float& y0,
float& z0,
float& x1,
float& y1,
float& z1)
const 78 float x0 = 0,
float y0 = 0,
float z0 = 0,
float x1 = 0,
float y1 = 0,
79 float z1 = 0,
float lineWidth = 1,
bool antiAliasing =
true);
void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
GLubyte GLubyte GLubyte GLubyte w
A renderizable object suitable for rendering with OpenGL's display lists.
float getLineWidth() const
void getLineCoords(float &x0, float &y0, float &z0, float &x1, float &y1, float &z1) const
void render_dl() const override
Render.
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...
bool isAntiAliasingEnabled() const
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void enableAntiAliasing(bool enable=true)
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.
The namespace for 3D scene representation and rendering.
~CSimpleLine() override=default
Private, virtual destructor: only can be deleted from smart pointers.
void setLineWidth(float w)
void setLineCoords(float x0, float y0, float z0, float x1, float y1, float z1)