Assimp  v3.1.1 (June 2014)
Assimp::RemoveRedundantMatsProcess Class Reference

RemoveRedundantMatsProcess: Post-processing step to remove redundant materials from the imported scene. More...

Inherits Assimp::BaseProcess.

Public Member Functions

void Execute (aiScene *pScene)
 Executes the post processing step on the given imported data. More...
 
const std::string & GetFixedMaterialsString () const
 Get list of fixed (unmutable) materials. More...
 
bool IsActive (unsigned int pFlags) const
 Returns whether the processing step is present in the given flag. More...
 
 RemoveRedundantMatsProcess ()
 The default class constructor. More...
 
void SetFixedMaterialsString (const std::string &fixed="")
 Set list of fixed (unmutable) materials. More...
 
void SetupProperties (const Importer *pImp)
 Called prior to ExecuteOnScene(). More...
 
 ~RemoveRedundantMatsProcess ()
 The class destructor. More...
 
- Public Member Functions inherited from Assimp::BaseProcess
 BaseProcess ()
 Constructor to be privately used by Importer. More...
 
void ExecuteOnScene (Importer *pImp)
 Executes the post processing step on the given imported data. More...
 
SharedPostProcessInfoGetSharedData ()
 Get the shared data that is assigned to the step. More...
 
virtual bool RequireVerboseFormat () const
 Check whether this step expects its input vertex data to be in verbose format. More...
 
void SetSharedData (SharedPostProcessInfo *sh)
 Assign a new SharedPostProcessInfo to the step. More...
 
virtual ~BaseProcess ()
 Destructor, private as well. More...
 

Additional Inherited Members

- Protected Attributes inherited from Assimp::BaseProcess
ProgressHandlerprogress
 Currently active progress handler. More...
 
SharedPostProcessInfoshared
 See the doc of #SharedPostProcessInfo for more details. More...
 

Detailed Description

RemoveRedundantMatsProcess: Post-processing step to remove redundant materials from the imported scene.

Constructor & Destructor Documentation

◆ RemoveRedundantMatsProcess()

RemoveRedundantMatsProcess::RemoveRedundantMatsProcess ( )

The default class constructor.

◆ ~RemoveRedundantMatsProcess()

RemoveRedundantMatsProcess::~RemoveRedundantMatsProcess ( )

The class destructor.

Member Function Documentation

◆ Execute()

void RemoveRedundantMatsProcess::Execute ( aiScene pScene)
virtual

Executes the post processing step on the given imported data.

A process should throw an ImportErrorException* if it fails. This method must be implemented by deriving classes.

Parameters
pSceneThe imported data to work at.

Implements Assimp::BaseProcess.

◆ GetFixedMaterialsString()

const std::string& Assimp::RemoveRedundantMatsProcess::GetFixedMaterialsString ( ) const
inline

Get list of fixed (unmutable) materials.

Returns
See AI_CONFIG_PP_RRM_EXCLUDE_LIST

◆ IsActive()

bool RemoveRedundantMatsProcess::IsActive ( unsigned int  pFlags) const
virtual

Returns whether the processing step is present in the given flag.

Parameters
pFlagsThe processing flags the importer was called with. A bitwise combination of aiPostProcessSteps.
Returns
true if the process is present in this flag fields, false if not.

Implements Assimp::BaseProcess.

◆ SetFixedMaterialsString()

void Assimp::RemoveRedundantMatsProcess::SetFixedMaterialsString ( const std::string &  fixed = "")
inline

Set list of fixed (unmutable) materials.

Parameters
fixedSee AI_CONFIG_PP_RRM_EXCLUDE_LIST

◆ SetupProperties()

void RemoveRedundantMatsProcess::SetupProperties ( const Importer pImp)
virtual

Called prior to ExecuteOnScene().

The function is a request to the process to update its configuration basing on the Importer's configuration property list.

Reimplemented from Assimp::BaseProcess.


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