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

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 ()
 
- 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 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 aiMesh *pMesh)
 Validates a mesh. More...
 
void Validate (const aiMesh *pMesh, const aiBone *pBone, float *afSum)
 Validates a bone. More...
 
void Validate (const aiAnimation *pAnimation)
 Validates an animation. More...
 
void Validate (const aiMaterial *pMaterial)
 Validates a material. More...
 
void Validate (const aiTexture *pTexture)
 Validates a texture. More...
 
void Validate (const aiLight *pLight)
 Validates a light source. More...
 
void Validate (const aiCamera *pCamera)
 Validates a camera. More...
 
void Validate (const aiAnimation *pAnimation, const aiNodeAnim *pBoneAnim)
 Validates a bone animation channel. More...
 
void Validate (const aiNode *pNode)
 Validates a node and all of its subnodes. More...
 
void Validate (const aiString *pString)
 Validates a string. 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

Validates the whole ASSIMP scene data structure for correctness.

ImportErrorException is thrown of the scene is corrupt.

Constructor & Destructor Documentation

◆ ValidateDSProcess()

ValidateDSProcess::ValidateDSProcess ( )

◆ ~ValidateDSProcess()

ValidateDSProcess::~ValidateDSProcess ( )

Member Function Documentation

◆ Execute()

void ValidateDSProcess::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.

◆ IsActive()

bool ValidateDSProcess::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.

◆ ReportError()

AI_WONT_RETURN void ValidateDSProcess::ReportError ( const char *  msg,
  ... 
)
protected

Report a validation error.

This will throw an exception, control won't return.

Parameters
msgFormat string for sprintf().

◆ ReportWarning()

void ValidateDSProcess::ReportWarning ( const char *  msg,
  ... 
)
protected

Report a validation warning.

This won't throw an exception, control will return to the callera.

Parameters
msgFormat string for sprintf().

◆ SearchForInvalidTextures()

void ValidateDSProcess::SearchForInvalidTextures ( const aiMaterial pMaterial,
aiTextureType  type 
)
protected

Search the material data structure for invalid or corrupt texture keys.

Parameters
pMaterialInput material
typeType of the texture

◆ Validate() [1/10]

void ValidateDSProcess::Validate ( const aiMesh pMesh)
protected

Validates a mesh.

Parameters
pMeshInput mesh

◆ Validate() [2/10]

void ValidateDSProcess::Validate ( const aiMesh pMesh,
const aiBone pBone,
float *  afSum 
)
protected

Validates a bone.

Parameters
pMeshInput mesh
pBoneInput bone

◆ Validate() [3/10]

void ValidateDSProcess::Validate ( const aiAnimation pAnimation)
protected

Validates an animation.

Parameters
pAnimationInput animation

◆ Validate() [4/10]

void ValidateDSProcess::Validate ( const aiMaterial pMaterial)
protected

Validates a material.

Parameters
pMaterialInput material

◆ Validate() [5/10]

void ValidateDSProcess::Validate ( const aiTexture pTexture)
protected

Validates a texture.

Parameters
pTextureInput texture

◆ Validate() [6/10]

void ValidateDSProcess::Validate ( const aiLight pLight)
protected

Validates a light source.

Parameters
pLightInput light

◆ Validate() [7/10]

void ValidateDSProcess::Validate ( const aiCamera pCamera)
protected

Validates a camera.

Parameters
pCameraInput camera

◆ Validate() [8/10]

void ValidateDSProcess::Validate ( const aiAnimation pAnimation,
const aiNodeAnim pBoneAnim 
)
protected

Validates a bone animation channel.

Parameters
pAnimationAnimation channel.
pBoneAnimInput bone animation

◆ Validate() [9/10]

void ValidateDSProcess::Validate ( const aiNode pNode)
protected

Validates a node and all of its subnodes.

Parameters
NodeInput node

◆ Validate() [10/10]

void ValidateDSProcess::Validate ( const aiString pString)
protected

Validates a string.

Parameters
pStringInput string

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