10 #define opengl_CAxis_H 44 float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax);
55 int axis,
float yaw_deg,
float pitch_deg,
float roll_deg);
58 int axis,
float& yaw_deg,
float& pitch_deg,
float& roll_deg)
const;
65 float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax,
66 float frecuency = 1,
float lineWidth = 3,
bool marks =
false);
79 float xmin = -1.0f,
float ymin = -1.0f,
float zmin = -1.0f,
80 float xmax = 1.0f,
float ymax = 1.0f,
float zmax = 1.0f,
81 float frecuency = 0.25f,
float lineWidth = 3.0f,
bool marks =
false);
float getFrequency() const
bool m_marks[3]
draw marks for X,Y,Z
virtual ~CAxis()
Private, virtual destructor: only can be deleted from smart pointers.
static Ptr Create(Args &&... args)
GLubyte GLubyte GLubyte GLubyte w
A renderizable object suitable for rendering with OpenGL's display lists.
float getTextScale() const
void enableTickMarks(bool v=true)
void setLineWidth(float w)
void render_dl() const override
Render.
void getTextLabelOrientation(int axis, float &yaw_deg, float &pitch_deg, float &roll_deg) const
axis: {0,1,2}=>{X,Y,Z}
CAxis(float xmin=-1.0f, float ymin=-1.0f, float zmin=-1.0f, float xmax=1.0f, float ymax=1.0f, float zmax=1.0f, float frecuency=0.25f, float lineWidth=3.0f, bool marks=false)
Constructor.
void setTextLabelOrientation(int axis, float yaw_deg, float pitch_deg, float roll_deg)
axis: {0,1,2}=>{X,Y,Z}
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
float getLineWidth() const
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...
Draw a 3D world axis, with coordinate marks at some regular interval.
void setFrequency(float f)
Changes the frequency of the "ticks".
The namespace for 3D scene representation and rendering.
void setAxisLimits(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
void setTextScale(float f)
Changes the size of text labels (default:0.25)