textMonitor.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Filename: textMonitor.h
  2. // Created by: drose (12Jul00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef TEXTMONITOR_H
  19. #define TEXTMONITOR_H
  20. #include "pandatoolbase.h"
  21. #include "pStatMonitor.h"
  22. class TextStats;
  23. ////////////////////////////////////////////////////////////////////
  24. // Class : TextMonitor
  25. // Description : A simple, scrolling-text stats monitor. Guaranteed
  26. // to compile on every platform.
  27. ////////////////////////////////////////////////////////////////////
  28. class TextMonitor : public PStatMonitor {
  29. public:
  30. TextMonitor(TextStats *server);
  31. virtual string get_monitor_name();
  32. virtual void got_hello();
  33. virtual void got_bad_version(int client_major, int client_minor,
  34. int server_major, int server_minor);
  35. virtual void new_data(int thread_index, int frame_number);
  36. virtual void lost_connection();
  37. virtual bool is_thread_safe();
  38. void show_ms(const PStatViewLevel *level, int indent_level);
  39. void show_level(const PStatViewLevel *level, int indent_level);
  40. };
  41. #endif