OpenSceneGraph
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgUtil::SceneGraphBuilder Class Reference

A class for assisting the building a scene graph that is equivilant to OpenGL 1.0 style calls. More...

Collaboration diagram for osgUtil::SceneGraphBuilder:
Collaboration graph
[legend]

Classes

struct  QuadricState
 

Public Member Functions

void PushMatrix ()
 
void PopMatrix ()
 
void LoadIdentity ()
 
void LoadMatrixd (const GLdouble *m)
 
void MultMatrixd (const GLdouble *m)
 
void Translated (GLdouble x, GLdouble y, GLdouble z)
 
void Scaled (GLdouble x, GLdouble y, GLdouble z)
 
void Rotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
 
void BlendFunc (GLenum srcFactor, GLenum dstFactor)
 
void CullFace (GLenum mode)
 
void DepthFunc (GLenum mode)
 
void FrontFace (GLenum mode)
 
void LineStipple (GLint factor, GLushort pattern)
 
void LineWidth (GLfloat lineWidth)
 
void PointSize (GLfloat pointSize)
 
void PolygonMode (GLenum face, GLenum mode)
 
void PolygonOffset (GLfloat factor, GLfloat units)
 
void PolygonStipple (const GLubyte *mask)
 
void ShadeModel (GLenum mode)
 
void Enable (GLenum mode)
 
void Disable (GLenum mode)
 
void Color4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
void Color4fv (GLfloat *c)
 
void Vertex3f (GLfloat x, GLfloat y, GLfloat z)
 
void Vertex3fv (GLfloat *v)
 
void Normal3f (GLfloat x, GLfloat y, GLfloat z)
 
void Normal3fv (GLfloat *n)
 
void TexCoord1f (GLfloat x)
 
void TexCoord1fv (GLfloat *tc)
 
void TexCoord2f (GLfloat x, GLfloat y)
 
void TexCoord2fv (GLfloat *tc)
 
void TexCoord3f (GLfloat x, GLfloat y, GLfloat z)
 
void TexCoord3fv (GLfloat *tc)
 
void TexCoord4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 
void TexCoord4fv (GLfloat *tc)
 
void Begin (GLenum mode)
 
void End ()
 
void QuadricDrawStyle (GLenum aDrawStyle)
 
void QuadricNormals (GLenum aNormals)
 
void QuadricOrientation (GLenum aOrientation)
 
void QuadricTexture (GLboolean aTexture)
 
void Cylinder (GLfloat base, GLfloat top, GLfloat height, GLint slices, GLint stacks)
 
void Disk (GLfloat inner, GLfloat outer, GLint slices, GLint loops)
 
void PartialDisk (GLfloat inner, GLfloat outer, GLint slices, GLint loops, GLfloat start, GLfloat sweep)
 
void Sphere (GLfloat radius, GLint slices, GLint stacks)
 
osg::NodegetScene ()
 
osg::NodetakeScene ()
 

Protected Types

typedef std::vector< osg::MatrixdMatrices
 

Protected Member Functions

void matrixChanged ()
 
void addAttribute (osg::StateAttribute *attribute)
 
void addMode (GLenum mode, bool enabled)
 
void addTextureAttribute (unsigned int unit, osg::StateAttribute *attribute)
 
void addTextureMode (unsigned int unit, GLenum mode, bool enabled)
 
void addShape (osg::Shape *shape)
 
void addDrawable (osg::Drawable *drawable)
 
void newGeometry ()
 
void allocateGeometry ()
 
void completeGeometry ()
 
void allocateStateSet ()
 

Protected Attributes

Matrices _matrixStack
 
osg::ref_ptr< osg::StateSet_stateset
 
bool _statesetAssigned
 
bool _normalSet
 
osg::Vec3f _normal
 
bool _colorSet
 
osg::Vec4f _color
 
unsigned int _maxNumTexCoordComponents
 
osg::Vec4f _texCoord
 
GLenum _primitiveMode
 
osg::ref_ptr< osg::Vec3Array_vertices
 
osg::ref_ptr< osg::Vec3Array_normals
 
osg::ref_ptr< osg::Vec4Array_colors
 
osg::ref_ptr< osg::Vec4Array_texCoords
 
QuadricState _quadricState
 
osg::ref_ptr< osg::Geometry_geometry
 
osg::ref_ptr< osg::Geode_geode
 
osg::ref_ptr< osg::MatrixTransform_transform
 
osg::ref_ptr< osg::Group_group
 

Detailed Description

A class for assisting the building a scene graph that is equivilant to OpenGL 1.0 style calls.


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