ACG::SceneGraph::PointNode Class Reference

#include <ACG/Scenegraph/PointNode.hh>

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

List of all members.

Public Types

typedef std::vector< ACG::Vec3f > PointVector
typedef PointVector::iterator PointIter
typedef PointVector::const_iterator ConstPointIter
typedef std::vector< ACG::Vec3uc > ColorVector
typedef ColorVector::iterator ColorIter
typedef ColorVector::const_iterator ConstColorIter

Public Member Functions

 PointNode (BaseNode *_parent=0, std::string _name="<PointNode>")
 default constructor
 ~PointNode ()
 destructor
 ACG_CLASSNAME (PointNode)
 static name of this class
unsigned int availableDrawModes () const
 return available draw modes
void boundingBox (Vec3f &_bbMin, Vec3f &_bbMax)
 update bounding box
void draw (GLState &_state, unsigned int _drawMode)
 draw points and normals
void reserve (unsigned int _np, unsigned int _nn, unsigned int _nc)
 reserve mem for _np points and _nn normals
void add_point (const ACG::Vec3f &_p)
 add point
void add_normal (const ACG::Vec3f &_n)
 add normal
void add_color (const ACG::Vec3uc &_c)
 add color
unsigned int n_points () const
 how many points?
void clear_points ()
 clear points
void clear_normals ()
 clear normals
void clear_colors ()
 clear colors
void clear ()
 clear points and normals and colors
PointVector & points ()
 get point container
PointVector & normals ()
 get normal container
ColorVector & colors ()
 get color container

Private Attributes

PointVector points_
PointVector normals_
ColorVector colors_

Detailed Description

PointNode renders points and normals.

These elements are internally stored in arrays and rendered using OpenGL vertex and normal arrays.

Definition at line 80 of file PointNode.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 .