MaterialX 1.38.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GeometryHandler Class Reference

Class which holds a set of geometry loaders. More...

#include <GeometryHandler.h>

Public Member Functions

void addLoader (GeometryLoaderPtr loader)
 Add a geometry loader. More...
 
void supportedExtensions (StringSet &extensions)
 Get a list of extensions supported by the handler.
 
void clearGeometry ()
 Clear all loaded geometry.
 
bool hasGeometry (const string &location)
 
void getGeometry (MeshList &meshes, const string &location)
 
bool loadGeometry (const FilePath &filePath)
 Load geometry from a given location.
 
const MeshListgetMeshes () const
 Get list of meshes.
 
const Vector3getMinimumBounds () const
 Return the minimum bounds for all meshes.
 
const Vector3getMaximumBounds () const
 Return the minimum bounds for all meshes.
 

Static Public Member Functions

static GeometryHandlerPtr create ()
 Create a new geometry handler.
 
static MeshPtr createQuadMesh ()
 Utility to create a quad mesh.
 

Protected Member Functions

void computeBounds ()
 

Protected Attributes

GeometryLoaderMap _geometryLoaders
 
MeshList _meshes
 
Vector3 _minimumBounds
 
Vector3 _maximumBounds
 

Detailed Description

Class which holds a set of geometry loaders.

Each loader is associated with a given set of file extensions.

Member Function Documentation

◆ addLoader()

void addLoader ( GeometryLoaderPtr  loader)

Add a geometry loader.

Parameters
loaderLoader to add to list of available loaders.

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