Postprocessing step to optimize the scenegraph.
More...
#include <OptimizeGraph.h>
Inherits Assimp::BaseProcess.
Postprocessing step to optimize the scenegraph.
The implementation tries to merge nodes, even if they use different transformations. Animations are preserved.
- See also
- aiProcess_OptimizeGraph for a detailed description of the algorithm being applied.
◆ OptimizeGraphProcess()
| OptimizeGraphProcess::OptimizeGraphProcess |
( |
| ) |
|
◆ ~OptimizeGraphProcess()
| OptimizeGraphProcess::~OptimizeGraphProcess |
( |
| ) |
|
◆ AddLockedNode()
| void Assimp::OptimizeGraphProcess::AddLockedNode |
( |
std::string & |
name | ) |
|
|
inline |
Add another node to be locked and not modified.
- Parameters
-
◆ AddLockedNodeList()
| void Assimp::OptimizeGraphProcess::AddLockedNodeList |
( |
std::string & |
in | ) |
|
|
inline |
Add a list of node names to be locked and not modified.
- Parameters
-
◆ CollectNewChildren()
| void OptimizeGraphProcess::CollectNewChildren |
( |
aiNode * |
nd, |
|
|
std::list< aiNode * > & |
nodes |
|
) |
| |
|
protected |
◆ Execute()
| void OptimizeGraphProcess::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
-
| pScene | The imported data to work at. |
Implements Assimp::BaseProcess.
◆ FindInstancedMeshes()
| void OptimizeGraphProcess::FindInstancedMeshes |
( |
aiNode * |
pNode | ) |
|
|
protected |
◆ IsActive()
| bool OptimizeGraphProcess::IsActive |
( |
unsigned int |
pFlags | ) |
const |
|
virtual |
Returns whether the processing step is present in the given flag.
- Parameters
-
| pFlags | The 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.
◆ RemoveLockedNode()
| void Assimp::OptimizeGraphProcess::RemoveLockedNode |
( |
std::string & |
name | ) |
|
|
inline |
Rmeove a node from the list of locked nodes.
- Parameters
-
◆ SetupProperties()
| void OptimizeGraphProcess::SetupProperties |
( |
const Importer * |
pImp | ) |
|
|
virtual |
The documentation for this class was generated from the following files: