9 #ifndef opengl_CSimpleLine_H 10 #define opengl_CSimpleLine_H 43 void setLineCoords(
float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
45 m_x0=x0; m_y0=y0; m_z0=z0;
46 m_x1=x1; m_y1=y1; m_z1=z1;
50 void getLineCoords(
float &x0,
float &y0,
float &z0,
float &x1,
float &y1,
float &z1)
const 52 x0=m_x0; y0=m_y0; z0=m_z0;
53 x1=m_x1; y1=m_y1; z1=m_z1;
61 static CSimpleLinePtr Create(
62 float x0,
float y0,
float z0,
63 float x1,
float y1,
float z1,
float lineWidth = 1 );
72 float x0=0,
float y0=0,
float z0=0,
73 float x1=0,
float y1=0,
float z1=0,
float lineWidth = 1,
74 bool antiAliasing = true);
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
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
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
void getLineCoords(float &x0, float &y0, float &z0, float &x1, float &y1, float &z1) const
bool isAntiAliasingEnabled() const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void enableAntiAliasing(bool enable=true)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
void setLineWidth(float w)
void setLineCoords(float x0, float y0, float z0, float x1, float y1, float z1)