45 float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax);
56 int axis,
float yaw_deg,
float pitch_deg,
float roll_deg);
59 int axis,
float& yaw_deg,
float& pitch_deg,
float& roll_deg)
const;
78 float xmin = -1.0f,
float ymin = -1.0f,
float zmin = -1.0f,
79 float xmax = 1.0f,
float ymax = 1.0f,
float zmax = 1.0f,
80 float frecuency = 1.f,
float lineWidth = 3.0f,
bool marks =
false);
83 ~CAxis()
override =
default;
float getFrequency() const
GLubyte GLubyte GLubyte GLubyte w
A renderizable object suitable for rendering with OpenGL's display lists.
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=1.f, float lineWidth=3.0f, bool marks=false)
Constructor.
float getTextScale() const
void enableTickMarks(bool v=true)
~CAxis() override=default
Private, virtual destructor: only can be deleted from smart pointers.
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}
float getTickMarksLength(float len)
std::array< bool, 3 > m_marks
draw marks for X,Y,Z
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 setTickMarksLength(float len)
As a ratio of "marks frequency" (default: 0.05)
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)