28 #ifndef opengl_CArrow_H
29 #define opengl_CArrow_H
57 mutable
float m_x0,m_y0,m_z0;
58 mutable
float m_x1,m_y1,m_z1;
60 float m_smallRadius, m_largeRadius;
68 void setArrowEnds(
float x0,
float y0,
float z0,
float x1,
float y1,
float z1)
70 m_x0=x0; m_y0 = y0; m_z0=z0;
71 m_x1=x1; m_y1 = y1; m_z1=z1;
81 void render_dl()
const;
91 float headRatio = 0.2f,
92 float smallRadius = 0.05f,
93 float largeRadius = 0.2f,
94 float arrow_roll = -1.0f,
95 float arrow_pitch = -1.0f,
96 float arrow_yaw = -1.0f
99 return CArrowPtr(
new CArrow(x0,y0,z0, x1,y1,z1, headRatio, smallRadius, largeRadius, arrow_roll, arrow_pitch, arrow_yaw ));
112 float headRatio = 0.2f,
113 float smallRadius = 0.05f,
114 float largeRadius = 0.2f,
115 float arrow_roll = -1.0f,
116 float arrow_pitch = -1.0f,
117 float arrow_yaw = -1.0f
119 m_x0(x0),m_y0(y0),m_z0(z0),
120 m_x1(x1),m_y1(y1),m_z1(z1),
121 m_headRatio(headRatio),
122 m_smallRadius(smallRadius),
123 m_largeRadius(largeRadius),
124 m_arrow_roll(arrow_roll),
125 m_arrow_pitch(arrow_pitch),
126 m_arrow_yaw(arrow_yaw)