v2o::v2oFactory Class Reference

#include <v2oFactory.h>

Inheritance diagram for v2o::v2oFactory:

v2o::v2oGroupFactory v2o::v2oHumanoidFactory v2o::v2oIndexedFaceSetFactory v2o::v2oInlineFactory v2o::v2oJointFactory v2o::v2oSegmentFactory v2o::v2oShapeFactory v2o::v2oSiteFactory v2o::v2oTransformFactory List of all members.

Public Types

enum  Geometry_Mode { GEOMETRY_COLOR_MATERIAL, GEOMETRY_NO_COLOR_MATERIAL, GEOMETRY_COLOR_PER_VERTEX }

Public Member Functions

 v2oFactory ()
virtual ~v2oFactory ()
virtual osgNodeRef createOSGNode (Node *node)
virtual osgGeometryRef createOSGGeomNode (Node *node)
virtual osgNodeRef getOSGNode ()
virtual osgGeometryRef getOSGGeomNode ()
v2oLoadergetLoader ()
void setName (const char *name)
void setName (const std::string name)
const std::string & getName () const
virtual void ref ()
virtual void unref ()

Protected Attributes

int _ref

Private Attributes

std::string _name

Detailed Description

Parent Class of all v2oFactorys, the classes that decorate the OpenSceneGraph nodes corresponding to the parsed Vrml97 nodes.


Member Enumeration Documentation

enum v2o::v2oFactory::Geometry_Mode

Enumerator:
GEOMETRY_COLOR_MATERIAL 
GEOMETRY_NO_COLOR_MATERIAL 
GEOMETRY_COLOR_PER_VERTEX 


Constructor & Destructor Documentation

v2o::v2oFactory::v2oFactory (  )  [inline]

virtual v2o::v2oFactory::~v2oFactory (  )  [inline, virtual]


Member Function Documentation

virtual osgNodeRef v2o::v2oFactory::createOSGNode ( Node node  )  [inline, virtual]

Creates all the grouping nodes. To be overriden by the grouping nodes subclasses: i.e. Group, Transform, Collision, LOD, Switch, Anchor, Billboard, Inline Cosmo Factorys

Reimplemented in v2o::v2oGroupFactory, v2o::v2oHumanoidFactory, v2o::v2oInlineFactory, v2o::v2oJointFactory, v2o::v2oSegmentFactory, v2o::v2oShapeFactory, v2o::v2oSiteFactory, and v2o::v2oTransformFactory.

virtual osgGeometryRef v2o::v2oFactory::createOSGGeomNode ( Node node  )  [inline, virtual]

Creates all the geometry children nodes. To be overriden by the geometry Cosmo Factory subclasses. e.g. Cone, Sphere, Box, IndexedFaceSet Factorys etc.

Reimplemented in v2o::v2oIndexedFaceSetFactory.

virtual osgNodeRef v2o::v2oFactory::getOSGNode (  )  [inline, virtual]

Reimplemented in v2o::v2oGroupFactory, v2o::v2oHumanoidFactory, v2o::v2oInlineFactory, v2o::v2oJointFactory, v2o::v2oSegmentFactory, v2o::v2oShapeFactory, v2o::v2oSiteFactory, and v2o::v2oTransformFactory.

virtual osgGeometryRef v2o::v2oFactory::getOSGGeomNode (  )  [inline, virtual]

Reimplemented in v2o::v2oIndexedFaceSetFactory.

v2oLoader * v2oFactory::getLoader (  ) 

Returns a copy of a osgLoader object. To be used only when v2oLoader::instance() is not applicable (e.g. v2oInlineFactory)

void v2o::v2oFactory::setName ( const char *  name  )  [inline]

Sets the name of the v2oFactory (OpenSceneGraph Node).

void v2o::v2oFactory::setName ( const std::string  name  )  [inline]

const std::string& v2o::v2oFactory::getName (  )  const [inline]

Gets the name of the v2oFactory

virtual void v2o::v2oFactory::ref (  )  [inline, virtual]

virtual void v2o::v2oFactory::unref (  )  [inline, virtual]


Member Data Documentation

int v2o::v2oFactory::_ref [protected]

std::string v2o::v2oFactory::_name [private]


Generated on Thu Jan 18 10:06:28 2007 for vhdPLUS by  doxygen 1.5.1-p1