MaterialX 1.38.2
Public Member Functions | Protected Attributes | List of all members
GeometryLoader Class Referenceabstract

Base class representing a geometry loader. More...

#include <GeometryHandler.h>

Inheritance diagram for GeometryLoader:
TinyObjLoader

Public Member Functions

const StringSetsupportedExtensions () const
 Returns a list of supported extensions. More...
 
virtual bool load (const FilePath &filePath, MeshList &meshList)=0
 Load geometry from disk. More...
 

Protected Attributes

StringSet _extensions
 

Detailed Description

Base class representing a geometry loader.

A loader can be associated with one or more file extensions.

Member Function Documentation

◆ load()

virtual bool load ( const FilePath filePath,
MeshList meshList 
)
pure virtual

Load geometry from disk.

Must be implemented by derived classes.

Parameters
filePathPath to file to load
meshListList of meshes to update
Returns
True if load was successful

Implemented in TinyObjLoader.

◆ supportedExtensions()

const StringSet & supportedExtensions ( ) const
inline

Returns a list of supported extensions.

Returns
List of support extensions

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