#include <v2oFactory.h>
Inheritance diagram for v2o::v2oFactory:
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 () |
v2oLoader * | getLoader () |
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 |
v2o::v2oFactory::v2oFactory | ( | ) | [inline] |
virtual v2o::v2oFactory::~v2oFactory | ( | ) | [inline, virtual] |
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] |
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] |
int v2o::v2oFactory::_ref [protected] |
std::string v2o::v2oFactory::_name [private] |