9 #ifndef opengl_CSimpleLine_H 10 #define opengl_CSimpleLine_H 44 float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
56 float& x0,
float& y0,
float& z0,
float& x1,
float& y1,
float& z1)
const 72 float x0,
float y0,
float z0,
float x1,
float y1,
float z1,
84 float x0 = 0,
float y0 = 0,
float z0 = 0,
float x1 = 0,
float y1 = 0,
85 float z1 = 0,
float lineWidth = 1,
bool antiAliasing =
true);
EIGEN_STRONG_INLINE 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.
virtual ~CSimpleLine()
Private, virtual destructor: only can be deleted from smart pointers.
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.
void setLineWidth(float w)
void setLineCoords(float x0, float y0, float z0, float x1, float y1, float z1)
static Ptr Create(Args &&... args)