Ignition Common

API Reference

4.5.0
ColladaExporter Class Reference

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

#include <ColladaExporter.hh>

Public Member Functions

 ColladaExporter ()
 Constructor. More...
 
virtual ~ColladaExporter ()
 Destructor. More...
 
virtual void Export (const Mesh *_mesh, const std::string &_filename, bool _exportTextures=false)
 Export a mesh to a file. More...
 
void Export (const Mesh *_mesh, const std::string &_filename, bool _exportTextures, const std::vector< math::Matrix4d > &_submeshToMatrix)
 Export a mesh to a file. More...
 
void Export (const Mesh *_mesh, const std::string &_filename, bool _exportTextures, const std::vector< math::Matrix4d > &_submeshToMatrix, const std::vector< ColladaLight > &_lights)
 Export a mesh to a file. More...
 
- Public Member Functions inherited from MeshExporter
 MeshExporter ()
 Constructor. More...
 
virtual ~MeshExporter ()
 Destructor. More...
 

Detailed Description

Class used to export Collada mesh files.

Constructor & Destructor Documentation

◆ ColladaExporter()

Constructor.

◆ ~ColladaExporter()

virtual ~ColladaExporter ( )
virtual

Destructor.

Member Function Documentation

◆ Export() [1/3]

virtual void Export ( const Mesh _mesh,
const std::string _filename,
bool  _exportTextures = false 
)
virtual

Export a mesh to a file.

Parameters
[in]_meshPointer to the mesh to be exported
[in]_filenameExported file's path and name
[in]_exportTexturesTrue to export texture images to '../materials/textures' folder

Implements MeshExporter.

◆ Export() [2/3]

void Export ( const Mesh _mesh,
const std::string _filename,
bool  _exportTextures,
const std::vector< math::Matrix4d > &  _submeshToMatrix 
)

Export a mesh to a file.

Parameters
[in]_meshPointer to the mesh to be exported
[in]_filenameExported file's path and name
[in]_exportTexturesTrue to export texture images to '../materials/textures' folder
[in]_submeshToMatrixMatrices of submeshes

◆ Export() [3/3]

void Export ( const Mesh _mesh,
const std::string _filename,
bool  _exportTextures,
const std::vector< math::Matrix4d > &  _submeshToMatrix,
const std::vector< ColladaLight > &  _lights 
)

Export a mesh to a file.

Parameters
[in]_meshPointer to the mesh to be exported
[in]_filenameExported file's path and name
[in]_exportTexturesTrue to export texture images to '../materials/textures' folder
[in]_submeshToMatrixMatrices of submeshes
[in]_lightsList of lights to export

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