Singleton that allows to load arbitrary meshes from file in different formats.
More...
#include <visualization/3d/MeshFactory.h>
|
struct | MeshFormatInfo |
| Provides information for each format including a human readable description (e.g. More...
|
|
Singleton that allows to load arbitrary meshes from file in different formats.
The supported file format depend on the available MeshLoader plugins. Each MeshLoader plugin can handle one or more different mesh file formats. There are three default MeshLoader plugins that can load:
- Ogre-Meshes
- Ogre-Meshes and Materials in zip files
- Stereolithography (STL) files (binary and ascii) More supported formats become available when other MeshLoader plugins are installed (e.g. the Assimp plugin from the Assimp toolbox).
In order to use the MeshFactory, manifest files for MeshLoader plugins must have been loaded. E.g. if the program does not instantiate a Framework, it needs to call loadManifests() (ManifestAgent.h) explicitly.
◆ Type
◆ getSupportedFormats()
- Returns
- Returns the supported mesh formats that can be loaded with all known plugins.
◆ loadMesh()
Ogre::MeshPtr loadMesh |
( |
const std::string & |
filename | ) |
|
Loads a mesh from the specified file.
All supported mesh files formats can be queried using getSupportedFormats().
- Exceptions
-
XIO | If the mesh can not be loaded or the format is not supported. |
◆ instance()
static Type& instance |
( |
| ) |
|
|
inlinestaticinherited |
Returns a reference to the singleton instance.
- Exceptions
-
XSingleton | If the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation). |
◆ isDestroyed()
static bool isDestroyed |
( |
| ) |
|
|
inlinestaticinherited |
Returns true, if the singleton was already destroyed.
Trying to access it will result in an exception.
◆ makeInstance()
static Type* makeInstance |
( |
| ) |
|
|
inlinestaticprotectedinherited |
◆ destroyInstance()
static void destroyInstance |
( |
void |
| ) |
|
|
inlinestaticprotectedinherited |
The documentation for this class was generated from the following file: