vtdata library
Public Member Functions | Public Attributes | Protected Attributes | List of all members
vtItem Class Reference
Inheritance diagram for vtItem:
Inheritance graph
[legend]

Public Member Functions

void DeleteModels ()
 
void AddModel (vtModel *item)
 
void RemoveModel (vtModel *model)
 
uint NumModels ()
 
vtModelGetModel (int i)
 
- Public Member Functions inherited from vtTagArray
void AddTag (const vtTag &pTag)
 
void AddTag (const char *name, const char *value)
 
vtTagFindTag (const char *szTagName)
 
const vtTagFindTag (const char *szTagName) const
 
vtTagGetTag (int index)
 
const vtTagGetTag (int index) const
 
uint NumTags () const
 
void RemoveTag (int index)
 
void RemoveTag (const char *szTagName)
 
void Clear ()
 
void SetValueString (const char *szTagName, const vtString &string, bool bCreating=false)
 
void SetValueBool (const char *szTagName, bool value, bool bCreating=false)
 
void SetValueInt (const char *szTagName, int value, bool bCreating=false)
 
void SetValueFloat (const char *szTagName, float value, bool bCreating=false)
 
void SetValueDouble (const char *szTagName, double value, bool bCreating=false)
 
void SetValueRGBi (const char *szTagName, const RGBi &value, bool bCreating=false)
 
const char * GetValueString (const char *szTagName, bool bSuppressWarning=false) const
 
bool GetValueBool (const char *szTagName) const
 
int GetValueInt (const char *szTagName) const
 
float GetValueFloat (const char *szTagName) const
 
double GetValueDouble (const char *szTagName) const
 
RGBi GetValueRGBi (const char *szTagName) const
 
bool GetValueString (const char *szTagName, vtString &string) const
 
bool GetValueBool (const char *szTagName, bool &bValue) const
 
bool GetValueInt (const char *szTagName, int &iValue) const
 
bool GetValueFloat (const char *szTagName, float &fValue) const
 
bool GetValueDouble (const char *szTagName, double &dValue) const
 
bool GetValueRGBi (const char *szTagName, RGBi &color) const
 
vtTagArrayoperator= (const vtTagArray &v)
 
bool operator== (const vtTagArray &v) const
 
bool operator!= (const vtTagArray &v) const
 
void CopyTagsFrom (const vtTagArray &v)
 
bool WriteToXML (const char *fname, const char *title) const
 
void WriteToXMLBody (FILE *fp, int iIndent) const
 
bool LoadFromXML (const char *fname)
 
virtual bool OverrideValue (const char *szTagName, const vtString &string)
 
virtual void WriteOverridesToXML (FILE *fp) const
 
void LogTags () const
 

Public Attributes

vtString m_name
 
FRECT m_extents
 

Protected Attributes

vtArray< vtModel * > m_models
 
- Protected Attributes inherited from vtTagArray
std::vector< vtTagm_tags
 

Additional Inherited Members

- Static Public Member Functions inherited from vtTagArray
static void SetVerbose (bool value)
 
- Static Protected Attributes inherited from vtTagArray
static bool s_bVerbose = false
 

Detailed Description

Represents a "culture" item. A vtItem has a name and any number of tags which provide description. It also contains a set of models (vtModel) which are polygonal models of the item at various LOD.