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>" );
190 void clear(){primitives_.clear();};
193 void set_position(
const Vec3d& _p,
int _idx = 0);
195 const Vec3d get_position(
int _idx = 0)
const;
201 void set_size(
double _s,
int _idx = 0);
203 double get_size(
int _idx = 0)
const;
211 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax);
215 void draw_obj(
GLState& _state,
size_t _idx)
const;
238 std::vector<Primitive> primitives_;
252 #endif // ACG_GLUT_PRIMITIVE_NODE_HH Namespace providing different geometric functions concerning angles.
Primitive & get_primitive(int _idx)
get a primitive
void setColorInternal(bool _set)
Disable internal color processing.
VectorT< double, 3 > Vec3d
virtual ~GlutPrimitiveNode()
destructor
PickTarget
What target to use for picking.
GlutPrimitiveType
Lists all available primivites.