OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CSVRender::Actor Class Reference

Handles loading an npc or creature. More...

#include <actor.hpp>

Inheritance diagram for CSVRender::Actor:
Collaboration diagram for CSVRender::Actor:

Public Member Functions

 Actor (const std::string &id, CSMWorld::Data &data)
 
osg::Group * getBaseNode ()
 Retrieves the base node that meshes are attached to. More...
 
void update ()
 (Re)creates the npc or creature renderable More...
 

Private Slots

void handleActorChanged (const std::string &refId)
 

Private Member Functions

void loadSkeleton (const std::string &model)
 
void loadBodyParts ()
 
void attachBodyPart (ESM::PartReferenceType, const std::string &mesh)
 
std::string getBodyPartMesh (const std::string &bodyPartId)
 

Private Attributes

std::string mId
 
CSMWorld::DatamData
 
CSMWorld::ActorAdapter::ActorDataPtr mActorData
 
osg::ref_ptr< osg::Group > mBaseNode
 
SceneUtil::SkeletonmSkeleton
 
SceneUtil::NodeMapVisitor::NodeMap mNodeMap
 

Static Private Attributes

static const std::string MeshPrefix = "meshes\\"
 

Detailed Description

Handles loading an npc or creature.

Constructor & Destructor Documentation

CSVRender::Actor::Actor ( const std::string &  id,
CSMWorld::Data data 
)

Creates an actor.

Parameters
idThe referenceable id
typeThe record type
dataThe data store

Here is the call graph for this function:

Member Function Documentation

void CSVRender::Actor::attachBodyPart ( ESM::PartReferenceType  type,
const std::string &  mesh 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

osg::Group * CSVRender::Actor::getBaseNode ( )

Retrieves the base node that meshes are attached to.

std::string CSVRender::Actor::getBodyPartMesh ( const std::string &  bodyPartId)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Actor::handleActorChanged ( const std::string &  refId)
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Actor::loadBodyParts ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Actor::loadSkeleton ( const std::string &  model)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Actor::update ( )

(Re)creates the npc or creature renderable

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CSMWorld::ActorAdapter::ActorDataPtr CSVRender::Actor::mActorData
private
osg::ref_ptr<osg::Group> CSVRender::Actor::mBaseNode
private
CSMWorld::Data& CSVRender::Actor::mData
private
const std::string CSVRender::Actor::MeshPrefix = "meshes\\"
staticprivate
std::string CSVRender::Actor::mId
private
SceneUtil::NodeMapVisitor::NodeMap CSVRender::Actor::mNodeMap
private
SceneUtil::Skeleton* CSVRender::Actor::mSkeleton
private

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