Assimp
v4.1. (December 2018)
|
Validates the whole ASSIMP scene data structure for correctness. More...
Inherits Assimp::BaseProcess.
Public Member Functions | |
void | Execute (aiScene *pScene) |
Executes the post processing step on the given imported data. More... | |
bool | IsActive (unsigned int pFlags) const |
Returns whether the processing step is present in the given flag. More... | |
ValidateDSProcess () | |
~ValidateDSProcess () | |
![]() | |
BaseProcess () AI_NO_EXCEPT | |
Constructor to be privately used by Importer. More... | |
void | ExecuteOnScene (Importer *pImp) |
Executes the post processing step on the given imported data. More... | |
SharedPostProcessInfo * | GetSharedData () |
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 void | SetupProperties (const Importer *pImp) |
Called prior to ExecuteOnScene(). More... | |
virtual | ~BaseProcess () |
Destructor, private as well. More... | |
Protected Member Functions | |
AI_WONT_RETURN void | ReportError (const char *msg,...) AI_WONT_RETURN_SUFFIX |
Report a validation error. More... | |
void | ReportWarning (const char *msg,...) |
Report a validation warning. More... | |
void | SearchForInvalidTextures (const aiMaterial *pMaterial, aiTextureType type) |
Search the material data structure for invalid or corrupt texture keys. More... | |
void | Validate (const aiAnimation *pAnimation) |
Validates an animation. More... | |
void | Validate (const aiAnimation *pAnimation, const aiNodeAnim *pBoneAnim) |
Validates a bone animation channel. More... | |
void | Validate (const aiCamera *pCamera) |
Validates a camera. More... | |
void | Validate (const aiLight *pLight) |
Validates a light source. More... | |
void | Validate (const aiMaterial *pMaterial) |
Validates a material. More... | |
void | Validate (const aiMesh *pMesh) |
Validates a mesh. More... | |
void | Validate (const aiMesh *pMesh, const aiBone *pBone, float *afSum) |
Validates a bone. More... | |
void | Validate (const aiNode *pNode) |
Validates a node and all of its subnodes. More... | |
void | Validate (const aiString *pString) |
Validates a string. More... | |
void | Validate (const aiTexture *pTexture) |
Validates a texture. More... | |
Additional Inherited Members | |
![]() | |
ProgressHandler * | progress |
Currently active progress handler. More... | |
SharedPostProcessInfo * | shared |
See the doc of #SharedPostProcessInfo for more details. More... | |
Validates the whole ASSIMP scene data structure for correctness.
ImportErrorException is thrown of the scene is corrupt.
ValidateDSProcess::ValidateDSProcess | ( | ) |
ValidateDSProcess::~ValidateDSProcess | ( | ) |
|
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.
pScene | The imported data to work at. |
Implements Assimp::BaseProcess.
|
virtual |
Returns whether the processing step is present in the given flag.
pFlags | The processing flags the importer was called with. A bitwise combination of aiPostProcessSteps. |
Implements Assimp::BaseProcess.
|
protected |
Report a validation error.
This will throw an exception, control won't return.
msg | Format string for sprintf(). |
|
protected |
Report a validation warning.
This won't throw an exception, control will return to the caller.
msg | Format string for sprintf(). |
|
protected |
Search the material data structure for invalid or corrupt texture keys.
pMaterial | Input material |
type | Type of the texture |
|
protected |
Validates an animation.
pAnimation | Input animation |
|
protected |
Validates a bone animation channel.
pAnimation | Animation channel. |
pBoneAnim | Input bone animation |
|
protected |
Validates a camera.
pCamera | Input camera |
|
protected |
Validates a light source.
pLight | Input light |
|
protected |
Validates a material.
pMaterial | Input material |
|
protected |
Validates a mesh.
pMesh | Input mesh |
|
protected |
Validates a bone.
pMesh | Input mesh |
pBone | Input bone |
|
protected |
Validates a node and all of its subnodes.
Node | Input node |
|
protected |
Validates a string.
pString | Input string |
|
protected |
Validates a texture.
pTexture | Input texture |