ndConvexDecomposition.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef ND_CONVEXDECOMPOSITION_H
  2. #define ND_CONVEXDECOMPOSITION_H
  3. /**
  4. * copyright 2011 [email protected]
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation;
  9. * version 2.1 of the License only.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifndef ND_HASCONVEXDECOMP_TRACER
  21. #define ND_HASCONVEXDECOMP_TRACER
  22. #endif
  23. class ndConvexDecompositionTracer
  24. {
  25. public:
  26. enum ETraceLevel
  27. {
  28. eNone = 0,
  29. eTraceFunctions = 0x1,
  30. eTraceData = 0x2,
  31. };
  32. virtual void trace( char const *a_strMsg ) = 0;
  33. virtual void startTraceData( char const *a_strWhat) = 0;
  34. virtual void traceData( char const *a_strData ) = 0;
  35. virtual void endTraceData() = 0;
  36. virtual int getLevel() = 0;
  37. virtual void addref() = 0;
  38. virtual void release() = 0;
  39. };
  40. class ndConvexDecompositionTracable
  41. {
  42. public:
  43. virtual void setTracer( ndConvexDecompositionTracer *) = 0;
  44. };
  45. #endif