#include <Content.h>
Public Member Functions | |
| void | ReadXML (const char *filename) |
| void | WriteXML (const char *filename) const |
| void | Empty () |
| void | AddItem (vtItem *item) |
| void | RemoveItem (vtItem *item) |
| uint | NumItems () |
| virtual vtItem * | NewItem () |
| vtItem * | GetItem (int i) |
| vtItem * | FindItemByName (const char *name) |
| vtItem * | FindItemByType (const char *type, const char *subtype) |
| vtString | GetFilename () |
Protected Attributes | |
| vtArray< vtItem * > | m_items |
| vtString | m_strFilename |
The vtContentManager class keeps a list of 3d models, along with information about what they are and how they should be loaded. It consists of a set of Content Items (vtItem) which each represent a particular object, which in turn consist of Models (vtModel) which are a particular 3D geometry for that Item. An Item can have several Models which represent different levels of detail (LOD).
| void vtContentManager::ReadXML | ( | const char * | filename) |
Read content items from an XML file.
There is no return value because if there is an error, an xh_io_exception will be thrown.
| filename | A string containing the file path. |
| void vtContentManager::WriteXML | ( | const char * | filename) | const |
Write content items to an XML file.
There is no return value because if there is an error, an xh_io_exception will be thrown.
| filename | A string containing the file path. |
1.8.4