ACG::SceneGraph::GlutPrimitiveNode Class Reference

#include <ACG/Scenegraph/GlutPrimitiveNode.hh>

Inheritance diagram for ACG::SceneGraph::GlutPrimitiveNode:
Inheritance graph
[legend]
Collaboration diagram for ACG::SceneGraph::GlutPrimitiveNode:
Collaboration graph
[legend]

List of all members.

Public Types

enum  GlutPrimitiveType {
  CONE = 0, CUBE, DODECAHEDRON, ICOSAHEDRON,
  OCTAHEDRON, SPHERE, TEAPOT, TETRAHEDRON,
  TORUS
}
 

Lists all available primivites.


Public Member Functions

 GlutPrimitiveNode (GlutPrimitiveType _type, BaseNode *_parent=0, std::string _name="<GlutPrimitive>")
 Default constructor.
virtual ~GlutPrimitiveNode ()
 destructor
void set_position (const Vec3f &_p)
 set position
const Vec3f & get_position () const
 get position
void set_size (float _s)
 set size
float get_size () const
 get size
 ACG_CLASSNAME (GlutPrimitiveNode)
unsigned int availableDrawModes () const
 return available draw modes
void boundingBox (Vec3f &_bbMin, Vec3f &_bbMax)
 update bounding box
void draw (GLState &_state, unsigned int _drawMode)
 drawing the primitive
void draw_obj () const
void pick (GLState &_state, PickTarget _target)
 picking

Private Attributes

GlutPrimitiveType type_
float size_
float innersize_
unsigned int slices_
unsigned int stacks_
Vec3f position_

Detailed Description

This class is able to render all glut primitives (listed in GlutPrimitiveType).

Definition at line 79 of file GlutPrimitiveNode.hh.


The documentation for this class was generated from the following files:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .