VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Static Public Member Functions
makVrv::DtInstanceUtils Class Reference

Contains definitions of types used to store instanced model metadata in model definitions and utility functions to store/retrieve it as well as get a model ready for instancing. More...

Classes

class  AnimationMapCache
 Model definition cache of sequence name -> instanced index. More...
class  AnnotationCache
 Model definition cache mapping annotation strings to instanced drawable ranges. More...
class  BoundingBoxCache
 Model Definition cache of bounding box information for instanced models. More...
class  PartMapCache

Public Types

typedef std::map< std::string,
unsigned int
InstancedAnimationMap
typedef std::vector< ArrayRangeArrayRangeList
typedef std::map< std::string,
ArrayRangeList
InstancedAnnotationMap
typedef std::vector< unsigned intInstancedPartVec
 List of instanced part IDs.
typedef std::map< unsigned int,
InstancedPartVec
PartToInstancedPartMap
 Model definition cache of part ID -> instanced index.

Static Public Member Functions

static void registerIfNecessary (DtModelDefinition &modelDef, DtDe &de, DtOsgModelInstance &mi, DtVector &boundMinOut, DtVector &boundMaxOut, AnnotationCache *&annotationCacheOut, BoundingBoxCache *&boundingBoxCacheOut, AnimationMapCache *&animationMapCacheOut, PartMapCache &partMapCacheOut, PartMapCache &stateMapCacheOut, bool daylightControlledLights)
 Register a model with the instanced renderer if necessary, and return its metadata.

Detailed Description

Contains definitions of types used to store instanced model metadata in model definitions and utility functions to store/retrieve it as well as get a model ready for instancing.

Member Typedef Documentation

List of instanced part IDs.

Model definition cache of part ID -> instanced index.

Maps the WRM part ID to the corresponding index into the instanced model's DOF or switch states

Member Function Documentation

static void makVrv::DtInstanceUtils::registerIfNecessary ( DtModelDefinition modelDef,
DtDe de,
DtOsgModelInstance mi,
DtVector boundMinOut,
DtVector boundMaxOut,
AnnotationCache *&  annotationCacheOut,
BoundingBoxCache *&  boundingBoxCacheOut,
AnimationMapCache *&  animationMapCacheOut,
PartMapCache partMapCacheOut,
PartMapCache stateMapCacheOut,
bool  daylightControlledLights 
)
static

Register a model with the instanced renderer if necessary, and return its metadata.


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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)