GenBoundingBoxesProcess.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. ---------------------------------------------------------------------------
  3. Open Asset Import Library (assimp)
  4. ---------------------------------------------------------------------------
  5. Copyright (c) 2006-2022, assimp team
  6. All rights reserved.
  7. Redistribution and use of this software in source and binary forms,
  8. with or without modification, are permitted provided that the following
  9. conditions are met:
  10. * Redistributions of source code must retain the above
  11. copyright notice, this list of conditions and the
  12. following disclaimer.
  13. * Redistributions in binary form must reproduce the above
  14. copyright notice, this list of conditions and the
  15. following disclaimer in the documentation and/or other
  16. materials provided with the distribution.
  17. s
  18. * Neither the name of the assimp team, nor the names of its
  19. contributors may be used to endorse or promote products
  20. derived from this software without specific prior
  21. written permission of the assimp team.
  22. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  25. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  26. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  27. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  28. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  29. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  30. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  32. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. ---------------------------------------------------------------------------
  34. */
  35. /** @file Defines a post-processing step to generate Axis-aligned bounding
  36. * volumes for all meshes.
  37. */
  38. #pragma once
  39. #ifndef AI_GENBOUNDINGBOXESPROCESS_H_INC
  40. #define AI_GENBOUNDINGBOXESPROCESS_H_INC
  41. #ifndef ASSIMP_BUILD_NO_GENBOUNDINGBOXES_PROCESS
  42. #include "Common/BaseProcess.h"
  43. namespace Assimp {
  44. /**
  45. * @brief Post-processing process to find axis-aligned bounding volumes for amm meshes
  46. * used in a scene.
  47. */
  48. class ASSIMP_API GenBoundingBoxesProcess : public BaseProcess {
  49. public:
  50. // -------------------------------------------------------------------
  51. /// The default class constructor / destructor.
  52. GenBoundingBoxesProcess() = default;
  53. ~GenBoundingBoxesProcess() override = default;
  54. // -------------------------------------------------------------------
  55. /// @brief Will return true, if aiProcess_GenBoundingBoxes is defined.
  56. bool IsActive(unsigned int pFlags) const override;
  57. // -------------------------------------------------------------------
  58. /// @brief The execution callback.
  59. void Execute(aiScene* pScene) override;
  60. };
  61. } // Namespace Assimp
  62. #endif // #ifndef ASSIMP_BUILD_NO_GENBOUNDINGBOXES_PROCESS
  63. #endif // AI_GENBOUNDINGBOXESPROCESS_H_INC