#include <ModelID.h>
Public Member Functions | |
| ModelID () | |
| ModelID (const ModelID &other) | |
| virtual | ~ModelID () |
| ModelID & | operator= (const ModelID &other) |
| bool | initFromNode (const char *directory, XMLNode *modelNode) |
| bool | initFromString (const char *type, const char *meshName, const char *skinName) |
| const char * | getStringHash () |
| const char * | getSkinName () |
| const char * | getMeshName () |
| const char * | getType () |
| bool | modelValid () |
| virtual bool | writeModelID (NetBuffer &buffer) |
| virtual bool | readModelID (NetBufferReader &reader) |
Protected Attributes | |
| std::string | type_ |
| std::string | meshName_ |
| std::string | skinName_ |
| std::string | hash_ |
Definition at line 29 of file ModelID.h.
| ModelID::ModelID | ( | ) |
Definition at line 27 of file ModelID.cpp.
| ModelID::ModelID | ( | const ModelID & | other | ) |
Definition at line 31 of file ModelID.cpp.
| ModelID::~ModelID | ( | ) | [virtual] |
Definition at line 38 of file ModelID.cpp.
| bool ModelID::initFromNode | ( | const char * | directory, | |
| XMLNode * | modelNode | |||
| ) |
Definition at line 62 of file ModelID.cpp.
References S3D::fileExists(), S3D::formatStringBuffer(), XMLNode::getContent(), S3D::getDataFile(), XMLNode::getNamedChild(), XMLNode::getNamedParameter(), TreeModelFactory::getTypes(), meshName_, XMLNode::returnError(), skinName_, snprintf, LangStringUtil::strcmp(), and type_.
Referenced by ModelDefn::initFromNode(), TankModel::initFromXML(), WeaponRoller::parseXML(), WeaponProjectile::parseXML(), Accessory::parseXML(), and TargetDefinition::readXML().
| bool ModelID::initFromString | ( | const char * | type, | |
| const char * | meshName, | |||
| const char * | skinName | |||
| ) |
Definition at line 50 of file ModelID.cpp.
References meshName_, skinName_, and type_.
Referenced by Accessory::getWeaponMesh().
| const char * ModelID::getStringHash | ( | ) |
Definition at line 174 of file ModelID.cpp.
References hash_, meshName_, and skinName_.
Referenced by TankMeshStore::getMesh(), Accessory::getWeaponMesh(), ModelStore::loadModel(), and ModelRendererStore::loadModel().
| const char* ModelID::getSkinName | ( | ) | [inline] |
| const char* ModelID::getMeshName | ( | ) | [inline] |
Definition at line 49 of file ModelID.h.
References meshName_.
Referenced by TankMenus::showTargetDetails().
| const char* ModelID::getType | ( | ) | [inline] |
Definition at line 50 of file ModelID.h.
References type_.
Referenced by TargetRendererImplTarget::TargetRendererImplTarget().
| bool ModelID::modelValid | ( | ) | [inline] |
Definition at line 51 of file ModelID.h.
References type_.
Referenced by Accessory::getWeaponMesh().
| bool ModelID::writeModelID | ( | NetBuffer & | buffer | ) | [virtual] |
Definition at line 158 of file ModelID.cpp.
References NetBuffer::addToBuffer(), meshName_, skinName_, and type_.
| bool ModelID::readModelID | ( | NetBufferReader & | reader | ) | [virtual] |
Definition at line 166 of file ModelID.cpp.
References NetBufferReader::getFromBuffer(), meshName_, skinName_, and type_.
std::string ModelID::type_ [protected] |
Definition at line 58 of file ModelID.h.
Referenced by getType(), initFromNode(), initFromString(), modelValid(), operator=(), readModelID(), and writeModelID().
std::string ModelID::meshName_ [protected] |
Definition at line 59 of file ModelID.h.
Referenced by getMeshName(), getStringHash(), initFromNode(), initFromString(), operator=(), readModelID(), and writeModelID().
std::string ModelID::skinName_ [protected] |
Definition at line 60 of file ModelID.h.
Referenced by getSkinName(), getStringHash(), initFromNode(), initFromString(), operator=(), readModelID(), and writeModelID().
std::string ModelID::hash_ [protected] |
1.5.3