finiteBoundingVolume.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Filename: finiteBoundingVolume.h
  2. // Created by: drose (02Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef FINITEBOUNDINGVOLUME_H
  19. #define FINITEBOUNDINGVOLUME_H
  20. #include <pandabase.h>
  21. #include "geometricBoundingVolume.h"
  22. ///////////////////////////////////////////////////////////////////
  23. // Class : FiniteBoundingVolume
  24. // Description : A special kind of GeometricBoundingVolume that is
  25. // known to be finite. It is possible to query this
  26. // kind of volume for its minimum and maximum extents.
  27. ////////////////////////////////////////////////////////////////////
  28. class EXPCL_PANDA FiniteBoundingVolume : public GeometricBoundingVolume {
  29. PUBLISHED:
  30. virtual LPoint3f get_min() const=0;
  31. virtual LPoint3f get_max() const=0;
  32. public:
  33. static TypeHandle get_class_type() {
  34. return _type_handle;
  35. }
  36. static void init_type() {
  37. GeometricBoundingVolume::init_type();
  38. register_type(_type_handle, "FiniteBoundingVolume",
  39. GeometricBoundingVolume::get_class_type());
  40. }
  41. virtual TypeHandle get_type() const {
  42. return get_class_type();
  43. }
  44. virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
  45. private:
  46. static TypeHandle _type_handle;
  47. };
  48. #endif