#include <OpenGUI_ImageryManager.h>
Public Types | |
| typedef std::list< String > | ImagesetList |
| A string list used by ImageryManager::getImagesetList(). | |
Public Member Functions | |
| ImagesetPtr | createImageset (const String &imageFilename) |
| Create a new Imageset. | |
| ImagesetPtr | createImagesetFromTexture (TexturePtr texture, const String &imageFilename="") |
| Create a new Imageset from an existing texture. | |
| ImagesetPtr | getImageset (const String &imageFilename) |
| Returns a pointer to the Imageset that was created using the given filename, or 0 on failure. | |
| ImagesetPtr | getImagesetByTexture (TexturePtr texture) |
Returns a pointer to the Imageset that is based on the given texture, or 0 on failure. | |
| void | destroyImageset (ImagesetPtr pImageset) |
| Destroys an Imageset. | |
| void | destroyImageset (const String &imageFilename) |
| Destroys an Imageset. | |
| void | destroyAllImagesets () |
| Destroys all Imagesets. | |
| ImageryPtr | getImagery (const String &imageryName) |
| Retrieves an Imagery by fully qualified name, or by first match on name alone. | |
| ImagesetList | getImagesetList () |
| Returns an ImagesetList of all Imagesets that are currently loaded. Items can be fed back into getImageset(). | |
| void | addFace (FacePtr facePtr) |
| Adds the given FacePtr to the managed list of Faces so that it can be retrieved later by name. | |
| FacePtr | getFace (const String &faceName) |
| Retrieves a previously added Face by name. | |
| void | removeFace (const String &faceName) |
| Removes a previously added Face by name. | |
| StringList | getFaceList () |
| Returns a list of all registered faces. | |
Static Public Member Functions | |
| static ImageryManager & | getSingleton (void) |
| Retrieve the current singleton, if one exists. If none exists, this will cause an error. | |
| static ImageryManager * | getSingletonPtr (void) |
| Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0. | |
| static ImagesetPtr | createImagesetEx (const String &imageFilename) |
| Static pass through function to createImageset(). | |
|
|
A string list used by ImageryManager::getImagesetList().
|
|
|
Adds the given FacePtr to the managed list of Faces so that it can be retrieved later by name.
|
|
|
Create a new Imageset. This will create a new Imageset based on the image file specified. If an Imageset already exists based on the provided filename, then the existing Imageset is returned instead of creating a new one.
|
|
|
Static pass through function to createImageset().
|
|
||||||||||||
|
Create a new Imageset from an existing texture.
This acts much like the file-based
Any single
If the given
If the given
|
|
|
Destroys all Imagesets.
|
|
|
Destroys an Imageset.
|
|
|
Destroys an Imageset.
|
|
|
Retrieves a previously added Face by name.
|
|
|
Returns a list of all registered faces.
|
|
|
Retrieves an Imagery by fully qualified name, or by first match on name alone. This method provides 2 paths for Imagery lookup. The first method attempted is lookup by fully qualified name. This is in the format "<Imageset_Name>:<Imagery_Name>", and if used will provide a perfect lookup of the Imagery specified. Fully qualified name is identified by the presence of the ':' character, and if this is found the function will only return a valid pointer if that exact Imagery can be found. The second method of lookup is used when the ':' character is not found in given the Imagery name. This method searches all Imagesets for the first Imagery found with the given name. If an Imagery is found it is immediately returned. This method is only useful if you can guarantee that the Imagery you are searching for has a globally unique name, otherwise you may not get the Imagery you were intending.
|
|
|
Returns a pointer to the Imageset that was created using the given filename, or 0 on failure.
|
|
|
Returns a pointer to the Imageset that is based on the given
|
|
|
Returns an ImagesetList of all Imagesets that are currently loaded. Items can be fed back into getImageset().
|
|
|
Retrieve the current singleton, if one exists. If none exists, this will cause an error.
|
|
|
Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0.
|
|
|
Removes a previously added Face by name.
|