Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
castor3d::MeshImporter Class Referenceabstract

#include <MeshImporter.hpp>

Inheritance diagram for castor3d::MeshImporter:
Inheritance graph
[legend]
Collaboration diagram for castor3d::MeshImporter:
Collaboration graph
[legend]

Public Member Functions

virtual ~MeshImporter ()=default
 
C3D_API MeshImporter (Engine &engine)
 Constructor.
 
C3D_API bool import (Mesh &mesh, ImporterFile *file, Parameters const &parameters, bool forceImport)
 Mesh import Function.
 
- Public Member Functions inherited from castor::OwnedBy< Engine >
Engine * getOwner () const
 

Static Public Member Functions

static C3D_API bool import (Mesh &mesh, castor::Path const &pathFile, Parameters const &parameters, bool forceImport)
 Mesh import Function.
 

Protected Member Functions

virtual C3D_API bool doImportMesh (Mesh &mesh)=0
 Mesh import Function.
 
- Protected Member Functions inherited from castor::OwnedBy< Engine >
 OwnedBy (Engine &owner)
 Constructor.
 

Protected Attributes

ImporterFilem_file {}
 
MeshPtrStrMap m_meshes
 
Parameters m_parameters
 

Constructor & Destructor Documentation

◆ ~MeshImporter()

virtual castor3d::MeshImporter::~MeshImporter ( )
virtualdefault

◆ MeshImporter()

C3D_API castor3d::MeshImporter::MeshImporter ( Engine & engine)
explicit

Constructor.

Parameters
[in]engineThe engine.

Member Function Documentation

◆ doImportMesh()

virtual C3D_API bool castor3d::MeshImporter::doImportMesh ( Mesh & mesh)
protectedpure virtual

Mesh import Function.

Parameters
[out]meshReceives the imported data.
Returns
false if any problem occured.

Implemented in castor3d::CmshMeshImporter.

◆ import() [1/2]

static C3D_API bool castor3d::MeshImporter::import ( Mesh & mesh,
castor::Path const & pathFile,
Parameters const & parameters,
bool forceImport )
static

Mesh import Function.

Parameters
[out]meshReceives the imported data.
[in]pathFileThe location of the file to import.
[in]parametersImport configuration parameters.
[in]forceImportTells if the mesh needs to be imported even if it's already filled.
Returns
false if any problem occured.

◆ import() [2/2]

C3D_API bool castor3d::MeshImporter::import ( Mesh & mesh,
ImporterFile * file,
Parameters const & parameters,
bool forceImport )

Mesh import Function.

Parameters
[out]meshReceives the imported data.
[in]fileThe location of the file to import.
[in]parametersImport configuration parameters.
[in]forceImportTells if the mesh needs to be imported even if it's already filled.
Returns
false if any problem occured.

Member Data Documentation

◆ m_file

ImporterFile* castor3d::MeshImporter::m_file {}
protected

◆ m_meshes

MeshPtrStrMap castor3d::MeshImporter::m_meshes
protected

The loaded meshes.

◆ m_parameters

Parameters castor3d::MeshImporter::m_parameters
protected

Import configuration parameters.


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