![]() |
RobWorkProject
23.9.11-
|
interface for classes that are able to load 3d models More...
#include <Model3DLoader.hpp>
Inherited by Loader3DS, LoaderAC3D, LoaderAssimp, LoaderOBJ, LoaderPCD, LoaderSTEP, LoaderSTL, and LoaderTRI.
Classes | |
class | Factory |
a factory for Model3DLoaders. This factory defines an extension point for Model3DLoaders. More... | |
Public Types | |
typedef rw::core::Ptr< Model3DLoader > | Ptr |
smart pointer type | |
Public Member Functions | |
virtual | ~Model3DLoader () |
destructor | |
virtual rw::geometry::Model3D::Ptr | load (const std::string &filename)=0 |
load a Model3D from file filename More... | |
virtual std::vector< std::string > | getModelFormats ()=0 |
get the list of supported 3D model formats (as extensions) More... | |
bool | isSupported (std::string format) |
Check if the loader support a specific format. More... | |
void | setDefaultName (std::string name) |
set a name that the loader can use, if it can't find anyother More... | |
void | setDefaultMaterial (rw::geometry::Model3D::Material mat) |
set which material to use if the File dosen't include a material/ texturing it self More... | |
Protected Attributes | |
std::string | _defaultName |
rw::geometry::Model3D::Material | _defaultMat |
interface for classes that are able to load 3d models
|
pure virtual |
get the list of supported 3D model formats (as extensions)
Implemented in LoaderTRI, LoaderSTL, LoaderSTEP, LoaderPCD, LoaderOBJ, LoaderAssimp, LoaderAC3D, and Loader3DS.
bool isSupported | ( | std::string | format | ) |
Check if the loader support a specific format.
format | [in] the extension to check if is supported |
|
pure virtual |
load a Model3D from file filename
filename | [in] name of file to load |
Implemented in LoaderTRI, LoaderSTL, LoaderSTEP, LoaderPCD, LoaderOBJ, LoaderAssimp, LoaderAC3D, and Loader3DS.
void setDefaultMaterial | ( | rw::geometry::Model3D::Material | mat | ) |
set which material to use if the File dosen't include a material/ texturing it self
mat |
void setDefaultName | ( | std::string | name | ) |
set a name that the loader can use, if it can't find anyother
name |