ImageID Class Reference

#include <ImageID.h>

List of all members.

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_


Detailed Description

Definition at line 27 of file ImageID.h.


Constructor & Destructor Documentation

ImageID::ImageID (  ) 

Definition at line 25 of file ImageID.cpp.

ImageID::~ImageID (  )  [virtual]

Definition at line 29 of file ImageID.cpp.


Member Function Documentation

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]

Definition at line 44 of file ImageID.h.

References imageName_.

const char* ImageID::getAlphaName (  )  [inline]

Definition at line 45 of file ImageID.h.

References alphaName_.

const char* ImageID::getType (  )  [inline]

Definition at line 46 of file ImageID.h.

References type_.

bool ImageID::getInvert (  )  [inline]

Definition at line 47 of file ImageID.h.

References invert_.

bool ImageID::imageValid (  )  [inline]

Definition at line 48 of file ImageID.h.

References type_.

Referenced by PlacementShadowDefinition::updateLandscapeTexture().


Member Data Documentation

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]

Definition at line 54 of file ImageID.h.

Referenced by getStringHash().

bool ImageID::invert_ [protected]

Definition at line 55 of file ImageID.h.

Referenced by getInvert(), getStringHash(), initFromNode(), and initFromString().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3