53 #ifndef ACG_GLUT_PRIMITIVE_NODE_HH 54 #define ACG_GLUT_PRIMITIVE_NODE_HH 60 #include "BaseNode.hh" 61 #include "DrawModes.hh" 64 #include <ACG/GL/GLPrimitives.hh> 113 unsigned int slices, stacks;
158 position = _p.position;
162 innersize = _p.innersize;
172 const std::string & _name=
"<GlutPrimitive>" );
177 const std::string & _name=
"<GlutPrimitive>" );
195 void clear(){primitives_.clear();};
198 void set_position(
const Vec3d& _p,
int _idx = 0);
200 const Vec3d get_position(
int _idx = 0)
const;
206 void set_size(
double _s,
int _idx = 0);
208 double get_size(
int _idx = 0)
const;
216 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax)
override;
220 void draw_obj(
GLState& _state,
size_t _idx)
const;
243 std::vector<Primitive> primitives_;
258 #endif // ACG_GLUT_PRIMITIVE_NODE_HH
Namespace providing different geometric functions concerning angles.
void setColorInternal(bool _set)
Disable internal color processing.
virtual ~GlutPrimitiveNode()
destructor
PickTarget
What target to use for picking.
GlutPrimitiveType
Lists all available primivites.
Primitive & get_primitive(int _idx)
get a primitive
VectorT< double, 3 > Vec3d