VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

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

Public Member Functions

 DtTextureAtlasMapper (DtDe &de)
 CTOR.
virtual ~DtTextureAtlasMapper ()
 DTOR.
virtual void configure (osg::Node *n, DtOsgArticulatedModel *osgArticulatedModel, const std::string &modelDefName, const rapidjson::Value &jsonData)
 Configure node based on json data, modifies the UV offset of the osgArticulatedModel.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Attributes

static const chartheTextureSkinningFeatureName
 Strings to get the different parts of the meta file Use these instead of hardcoded strings.
static const chartheTagAtlasFile
static const chartheTagColor
static const charthePattern

Protected Member Functions

bool readModelDefParam (DtModelDefinition &modelDef, const std::string &paramName, std::string &resultOut)
 Utility method for reading model definition parameter.

Protected Attributes

DtDemyDe
std::string myFeatureName
 The name of the feature in the .meta file.
std::string myAtlasFile
 The path to the atlas file in the .meta file.

Private Member Functions

 DtTextureAtlasMapper ()
 Default CTOR (unimplemented)
 DtTextureAtlasMapper (const DtTextureAtlasMapper &orig)
 brief Copy CTOR (unimplemented)
DtTextureAtlasMapperoperator= (const DtTextureAtlasMapper)
 brief Assignment operator (unimplemented)

Detailed Description

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.

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
const char* makVrv::DtTextureAtlasMapper::theTagColor
static
const char* makVrv::DtTextureAtlasMapper::thePattern
static
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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)