59 #ifndef ACG_GLUT_PRIMITIVE_NODE_HH
60 #define ACG_GLUT_PRIMITIVE_NODE_HH
66 #include "BaseNode.hh"
67 #include "DrawModes.hh"
70 #include <ACG/GL/GLPrimitives.hh>
76 namespace SceneGraph {
120 unsigned int slices, stacks;
163 position = _p.position;
167 innersize = _p.innersize;
177 std::string _name=
"<GlutPrimitive>" );
182 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);
220 void draw_obj(
int _idx)
const;
243 std::vector<Primitive> primitives_;
257 #endif // ACG_GLUT_PRIMITIVE_NODE_HH
Namespace providing different geometric functions concerning angles.
PickTarget
What target to use for picking.
VectorT< double, 3 > Vec3d
GlutPrimitiveType
Lists all available primivites.
Primitive & get_primitive(int _idx)
get a primitive
void setColorInternal(bool _set)
Disable internal color processing.
virtual ~GlutPrimitiveNode()
destructor