#include <ImageID.h>
Public Member Functions | |
| ImageID () | |
| virtual | ~ImageID () |
| bool | initFromNode (const char *directory, XMLNode *imageNode) |
| bool | initFromString (const char *type, const char *imageName, const char *alphaName="", bool invert=false) |
| const char * | getStringHash () |
| const char * | getImageName () |
| const char * | getAlphaName () |
| const char * | getType () |
| bool | getInvert () |
| bool | imageValid () |
Protected Attributes | |
| std::string | type_ |
| std::string | imageName_ |
| std::string | alphaName_ |
| std::string | hash_ |
| bool | invert_ |
Definition at line 27 of file ImageID.h.
| ImageID::ImageID | ( | ) |
Definition at line 25 of file ImageID.cpp.
| ImageID::~ImageID | ( | ) | [virtual] |
Definition at line 29 of file ImageID.cpp.
| bool ImageID::initFromNode | ( | const char * | directory, | |
| XMLNode * | imageNode | |||
| ) |
Definition at line 47 of file ImageID.cpp.
References alphaName_, XMLNode::failChildren(), S3D::fileExists(), S3D::formatStringBuffer(), XMLNode::getContent(), S3D::getDataFile(), XMLNode::getNamedChild(), XMLNode::getNamedParameter(), imageName_, invert_, XMLNode::returnError(), LangStringUtil::strcmp(), and type_.
Referenced by TankModel::loadImage(), and PlacementShadowDefinition::readXML().
| bool ImageID::initFromString | ( | const char * | type, | |
| const char * | imageName, | |||
| const char * | alphaName = "", |
|||
| bool | invert = false | |||
| ) |
Definition at line 33 of file ImageID.cpp.
References alphaName_, imageName_, invert_, and type_.
Referenced by TankModel::loadImage().
| const char * ImageID::getStringHash | ( | ) |
Definition at line 91 of file ImageID.cpp.
References alphaName_, hash_, imageName_, and invert_.
Referenced by ImageStore::loadImage().
| const char* ImageID::getImageName | ( | ) | [inline] |
| const char* ImageID::getAlphaName | ( | ) | [inline] |
| const char* ImageID::getType | ( | ) | [inline] |
| bool ImageID::imageValid | ( | ) | [inline] |
Definition at line 48 of file ImageID.h.
References type_.
Referenced by PlacementShadowDefinition::updateLandscapeTexture().
std::string ImageID::type_ [protected] |
Definition at line 51 of file ImageID.h.
Referenced by getType(), imageValid(), initFromNode(), and initFromString().
std::string ImageID::imageName_ [protected] |
Definition at line 52 of file ImageID.h.
Referenced by getImageName(), getStringHash(), initFromNode(), and initFromString().
std::string ImageID::alphaName_ [protected] |
Definition at line 53 of file ImageID.h.
Referenced by getAlphaName(), getStringHash(), initFromNode(), and initFromString().
std::string ImageID::hash_ [protected] |
bool ImageID::invert_ [protected] |
Definition at line 55 of file ImageID.h.
Referenced by getInvert(), getStringHash(), initFromNode(), and initFromString().
1.5.3