Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
osgAssimpSceneReader Class Reference

Class for converting Assimp scenes to OpenSceneGraph nodes. More...

#include <osgAssimpSceneReader.h>

List of all members.

Public Member Functions

 osgAssimpSceneReader ()
 Constructor. Not needed since the only public function is static.
virtual ~osgAssimpSceneReader ()
 Virtual destructor.

Static Public Member Functions

static osg::Node * traverseAIScene (const struct aiScene *aiScene, const struct aiNode *aiNode)
 Traverse the aiScene object and convert aiScene nodes to osg::Nodes and add then to a main osg::MatrixTransform that contains all the nodes.

Static Protected Member Functions

static void createMaterialData (osg::StateSet *ss, const aiMaterial *aiMtl)
 Extract material data from aiMaterial and add it to the osg::StateSet.

Detailed Description

Class for converting Assimp scenes to OpenSceneGraph nodes.


Member Function Documentation

void osgAssimpSceneReader::createMaterialData ( osg::StateSet *  ss,
const aiMaterial *  aiMtl 
) [static, protected]

Extract material data from aiMaterial and add it to the osg::StateSet.

Parameters:
ssosg::StateSet pointer to add material data to
aiMtlAssimp Material to get material data from
Returns:
void
osg::Node * osgAssimpSceneReader::traverseAIScene ( const struct aiScene *  aiScene,
const struct aiNode *  aiNode 
) [static]

Traverse the aiScene object and convert aiScene nodes to osg::Nodes and add then to a main osg::MatrixTransform that contains all the nodes.

Parameters:
aiSceneAssimp scene to get material data from
aiNodeAssimp node to traverse and get Node info from
Returns:
osg::Node pointer which contains the Node and all the child nodes inside a MatrixTransform

The documentation for this class was generated from the following files:
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator