9 #ifndef opengl_CArrow_H 10 #define opengl_CArrow_H 38 mutable
float m_x0,m_y0,m_z0;
39 mutable
float m_x1,m_y1,m_z1;
41 float m_smallRadius, m_largeRadius;
49 void setArrowEnds(
float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
51 m_x0=x0; m_y0 = y0; m_z0=z0;
52 m_x1=x1; m_y1 = y1; m_z1=z1;
62 void render_dl()
const;
68 static CArrowPtr Create(
69 float x0,
float y0,
float z0,
70 float x1,
float y1,
float z1,
71 float headRatio = 0.2f,
float smallRadius = 0.05f,
float largeRadius = 0.2f,
72 float arrow_roll = -1.0f,
float arrow_pitch = -1.0f,
float arrow_yaw = -1.0f);
84 float headRatio = 0.2f,
85 float smallRadius = 0.05f,
86 float largeRadius = 0.2f,
87 float arrow_roll = -1.0f,
88 float arrow_pitch = -1.0f,
89 float arrow_yaw = -1.0f
91 m_x0(x0),m_y0(y0),m_z0(z0),
92 m_x1(x1),m_y1(y1),m_z1(z1),
93 m_headRatio(headRatio),
94 m_smallRadius(smallRadius),
95 m_largeRadius(largeRadius),
96 m_arrow_roll(arrow_roll),
97 m_arrow_pitch(arrow_pitch),
98 m_arrow_yaw(arrow_yaw)
void setLargeRadius(float rat)
CArrow(float x0=0, float y0=0, float z0=0, float x1=1, float y1=1, float z1=1, float headRatio=0.2f, float smallRadius=0.05f, float largeRadius=0.2f, float arrow_roll=-1.0f, float arrow_pitch=-1.0f, float arrow_yaw=-1.0f)
Constructor.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
A renderizable object suitable for rendering with OpenGL's display lists.
void setSmallRadius(float rat)
#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...
virtual ~CArrow()
Private, virtual destructor: only can be deleted from smart pointers.
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 setArrowYawPitchRoll(float yaw, float pitch, float roll)
void setHeadRatio(float rat)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)