VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtTextureAtlasMapper Class Reference

The DtTextureAtlasMapper class is responsible calculating and setting the UV offets of a texture atlas based on the "COLOUR" and "COLPAT" tags of a model definition.

Inheritance diagram for makVrv::DtTextureAtlasMapper:
Inheritance graph
[legend]

Public Member Functions

 DtTextureAtlasMapper (DtDe &de)
 
virtual ~DtTextureAtlasMapper ()
 
virtual void configure (osg::Node *n, DtOsgArticulatedModel *osgArticulatedModel, const std::string &modelDefName, const rapidjson::Value &jsonData)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Attributes

static const chartheTextureSkinningFeatureName
 
static const chartheTagAtlasFile
 
static const chartheTagColor
 
static const charthePattern
 

Protected Member Functions

bool readModelDefParam (DtModelDefinition &modelDef, const std::string &paramName, std::string &resultOut)
 

Protected Attributes

DtDemyDe
 
std::string myFeatureName
 
std::string myAtlasFile
 

Private Member Functions

 DtTextureAtlasMapper ()
 
 DtTextureAtlasMapper (const DtTextureAtlasMapper &orig)
 
DtTextureAtlasMapperoperator= (const DtTextureAtlasMapper)
 

Constructor & Destructor Documentation

makVrv::DtTextureAtlasMapper::DtTextureAtlasMapper ( DtDe de)

CTOR.

virtual makVrv::DtTextureAtlasMapper::~DtTextureAtlasMapper ( )
virtual

DTOR.

makVrv::DtTextureAtlasMapper::DtTextureAtlasMapper ( )
private

Default CTOR (unimplemented)

makVrv::DtTextureAtlasMapper::DtTextureAtlasMapper ( const DtTextureAtlasMapper orig)
private

brief Copy CTOR (unimplemented)

Member Function Documentation

virtual void makVrv::DtTextureAtlasMapper::configure ( osg::Node *  n,
DtOsgArticulatedModel osgArticulatedModel,
const std::string &  modelDefName,
const rapidjson::Value &  jsonData 
)
virtual

Configure node based on json data, modifies the UV offset of the osgArticulatedModel.

bool makVrv::DtTextureAtlasMapper::readModelDefParam ( DtModelDefinition modelDef,
const std::string &  paramName,
std::string &  resultOut 
)
protected

Utility method for reading model definition parameter.

DtTextureAtlasMapper& makVrv::DtTextureAtlasMapper::operator= ( const DtTextureAtlasMapper  )
private

brief Assignment operator (unimplemented)

Member Data Documentation

const char* makVrv::DtTextureAtlasMapper::theTextureSkinningFeatureName
static

Strings to get the different parts of the meta file Use these instead of hardcoded strings.

const char* makVrv::DtTextureAtlasMapper::theTagAtlasFile
static

Strings to get the different parts of the meta file Use these instead of hardcoded strings.

const char* makVrv::DtTextureAtlasMapper::theTagColor
static

Strings to get the different parts of the meta file Use these instead of hardcoded strings.

const char* makVrv::DtTextureAtlasMapper::thePattern
static

Strings to get the different parts of the meta file Use these instead of hardcoded strings.

DtDe& makVrv::DtTextureAtlasMapper::myDe
protected
std::string makVrv::DtTextureAtlasMapper::myFeatureName
protected

The name of the feature in the .meta file.

std::string makVrv::DtTextureAtlasMapper::myAtlasFile
protected

The path to the atlas file in the .meta file.


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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)