HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PerfMonRecordOptions.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_PerfMonRecordOptions_h__
10 #define __HOM_PerfMonRecordOptions_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <string>
17 
18 SWIGOUT(%feature("notabstract") HOM_PerfMonRecordOptions;)
19 SWIGOUT(%rename(PerfMonRecordOptions) HOM_PerfMonRecordOptions;)
20 
22 {
23 public:
24 #ifdef SWIG
25 %extend {
27  HOM_PerfMonRecordOptions(
28  bool cook_stats=true,
29  bool solve_stats=true,
30  bool draw_stats=true,
31  bool gpu_draw_stats=false,
32  bool viewport_stats=true,
33  bool script_stats=true,
34  bool render_stats=true,
35  bool thread_stats=false,
36  bool frame_stats=true,
37  bool memory_stats=false,
38  bool errors=true)
39  {
41  cook_stats, solve_stats, draw_stats, gpu_draw_stats, viewport_stats,
42  script_stats, render_stats, thread_stats, frame_stats,
43  memory_stats, errors);
44  }
45 };
46 #else
48  { HOM_CONSTRUCT_OBJECT(this) }
50  {
51  myRecordCookStats = options.myRecordCookStats;
52  myRecordSolveStats = options.myRecordSolveStats;
53  myRecordDrawStats = options.myRecordDrawStats;
54  myRecordGPUDrawStats = options.myRecordGPUDrawStats;
55  myRecordViewportStats = options.myRecordViewportStats;
56  myRecordScriptStats = options.myRecordScriptStats;
57  myRecordRenderStats = options.myRecordRenderStats;
58  myRecordThreadStats = options.myRecordThreadStats;
59  myRecordFrameStats = options.myRecordFrameStats;
60  myRecordMemoryStats = options.myRecordMemoryStats;
61  myRecordErrors = options.myRecordErrors;
62 
63  { HOM_CONSTRUCT_OBJECT(this) }
64  }
65 #endif
66 
68  { HOM_DESTRUCT_OBJECT(this) }
69 
70  virtual std::string __repr__();
71 
72  bool recordCookStats();
73  bool recordSolveStats();
74  bool recordDrawStats();
75  bool recordGPUDrawStats();
76  bool recordViewportStats();
77  bool recordScriptStats();
78  bool recordRenderStats();
79  bool recordThreadStats();
80  bool recordFrameStats();
81  bool recordMemoryStats();
82  bool recordErrors();
83 
84  void setRecordCookStats(bool record);
85  void setRecordSolveStats(bool record);
86  void setRecordDrawStats(bool record);
87  void setRecordGPUDrawStats(bool record);
88  void setRecordViewportStats(bool record);
89  void setRecordScriptStats(bool record);
90  void setRecordRenderStats(bool record);
91  void setRecordThreadStats(bool record);
92  void setRecordFrameStats(bool record);
93  void setRecordMemoryStats(bool record);
94  void setRecordErrors(bool record);
95 
96 private:
97 
98  bool myRecordCookStats;
99  bool myRecordSolveStats;
100  bool myRecordDrawStats;
101  bool myRecordGPUDrawStats;
102  bool myRecordViewportStats;
103  bool myRecordScriptStats;
104  bool myRecordRenderStats;
105  bool myRecordThreadStats;
106  bool myRecordFrameStats;
107  bool myRecordMemoryStats;
108  bool myRecordErrors;
109 };
110 
111 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1053
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
virtual HOM_PerfMonRecordOptions * newPerfMonRecordOptions(bool cook_stats, bool solve_stats, bool draw_stats, bool gpu_draw_stats, bool viewport_stats, bool script_stats, bool render_stats, bool thread_stats, bool frame_stats, bool memory_stats, bool errors)=0
#define HOM_API
Definition: HOM_API.h:13
HOM_PerfMonRecordOptions(HOM_PerfMonRecordOptions &options)
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1052
HOM_API HOM_Module & HOM()