Gazebo Common

API Reference

5.8.0
ColladaLoader Class Reference

Class used to load Collada mesh files. More...

#include <gz/common/ColladaLoader.hh>

Public Member Functions

 ColladaLoader ()
 Constructor. More...
 
virtual ~ColladaLoader ()
 Destructor. More...
 
virtual MeshLoad (const std::string &_filename)
 Load a mesh. More...
 
- Public Member Functions inherited from MeshLoader
 MeshLoader ()=default
 Constructor. More...
 
virtual ~MeshLoader ()=default
 Destructor. More...
 

Detailed Description

Class used to load Collada mesh files.

Constructor & Destructor Documentation

◆ ColladaLoader()

Constructor.

◆ ~ColladaLoader()

virtual ~ColladaLoader ( )
virtual

Destructor.

Member Function Documentation

◆ Load()

virtual Mesh* Load ( const std::string _filename)
virtual

Load a mesh.

Parameters
[in]_filenameCollada file to load
Returns
Pointer to a new Mesh, owned by the caller. A null pointer is returned when the file does not exist, cannot be parsed, or its root element is not COLLADA. Other problems are reported through the console log and do not abort loading: a COLLADA version other than 1.4.0 or 1.4.1 is reported but the mesh is still loaded, and a scene that references a missing visual scene is reported and yields a valid mesh with no geometry. In general, malformed subelements are skipped and the loader returns whatever geometry could be recovered.

Implements MeshLoader.


The documentation for this class was generated from the following file: