KillNormalsProcess.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /** @file Defines a post processing step to kill all loaded normals */
  2. #ifndef AI_KILLNORMALPROCESS_H_INC
  3. #define AI_KILLNORMALPROCESS_H_INC
  4. #include "BaseProcess.h"
  5. #include "../include/aiMesh.h"
  6. namespace Assimp
  7. {
  8. // ---------------------------------------------------------------------------
  9. /** KillNormalsProcess: Class to kill all normals loaded
  10. */
  11. class KillNormalsProcess : public BaseProcess
  12. {
  13. friend class Importer;
  14. protected:
  15. /** Constructor to be privately used by Importer */
  16. KillNormalsProcess();
  17. /** Destructor, private as well */
  18. ~KillNormalsProcess();
  19. public:
  20. // -------------------------------------------------------------------
  21. /** Returns whether the processing step is present in the given flag field.
  22. * @param pFlags The processing flags the importer was called with. A bitwise
  23. * combination of #aiPostProcessSteps.
  24. * @return true if the process is present in this flag fields, false if not.
  25. */
  26. bool IsActive( unsigned int pFlags) const;
  27. // -------------------------------------------------------------------
  28. /** Executes the post processing step on the given imported data.
  29. * At the moment a process is not supposed to fail.
  30. * @param pScene The imported data to work at.
  31. */
  32. void Execute( aiScene* pScene);
  33. private:
  34. void KillMeshNormals (aiMesh* pcMesh);
  35. };
  36. } // end of namespace Assimp
  37. #endif // !!AI_KILLNORMALPROCESS_H_INC