HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUI_DisplayOption.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  * NAME: GUI_DisplayOption.h ( GUI Library, C++)
7  *
8  * COMMENTS: This class contains the options for all the different types
9  * of details (templates, footprints, etc.) and options that
10  * are common to them.
11  */
12 
13 #ifndef __GUI_DisplayOption__
14 #define __GUI_DisplayOption__
15 
16 #include "GUI_API.h"
17 #include <UT/UT_Rect.h>
18 #include <UT/UT_Vector2.h>
19 #include <RE/RE_TextureMap.h>
20 #include <UI/UI_Value.h>
21 #include <GR/GR_Defines.h>
22 #include <GR/GR_CommonDispOption.h>
23 #include <GR/GR_DisplayOption.h>
24 #include "GUI_RenderCommon.h"
25 
26 class OPUI_RotoscopeData;
27 class GR_DisplayOption;
28 
29 const int GUI_NUM_DISPLAY_SETS = 6;
32 
33 /// Context specific display options for geometry states
35 {
39  // ---- obj/model break
43 };
44 
45 #define ANY_FLAG_ACTIVE_IN_SETS(METHOD) \
46  bool METHOD##Any() const \
47  { return ((*this)[GUI_SCENE_OBJECT].METHOD() || \
48  (*this)[GUI_SELECTED_SCENE_OBJECT].METHOD() || \
49  (*this)[GUI_GHOST_SCENE_OBJECT].METHOD() || \
50  (*this)[GUI_DISPLAY_MODEL].METHOD() || \
51  (*this)[GUI_CURRENT_MODEL].METHOD() || \
52  (*this)[GUI_TEMPLATE_MODEL].METHOD()); }
53 
54 
55 /// Display options object that contains all high-level viewport display
56 /// settings, and contains the objects with context-specific display options
57 /// and common drawing options.
59 {
60 public:
63 
64  GUI_DisplayOption &operator=(const GUI_DisplayOption &opt);
65 
66  /// Context-specific geometry-specific display options. If a display set
67  /// follows another set, it will be remapped to return that set.
68  /// @{
70  { return *myDisplaySet[myDisplaySetMap[type]]; }
72  { return *myDisplaySet[myDisplaySetMap[type]]; }
73  /// @}
74 
75  /// Direct cccess to the display set, without any mapping.
77  { return *myDisplaySet[type]; }
78 
79  /// Low-level drawing display options common to all geometry contexts
80  /// @{
81  const GR_CommonDispOption &common() const { return myCommonOptions; }
82  GR_CommonDispOption &common() { return myCommonOptions; }
83  /// @}
84 
85  /// Return true if the load/save was successful, and false otherwise.
86  /// @{
87  bool save(std::ostream &) const;
88  bool load(UT_IStream &);
89  /// @}
90 
91  /// Remap the display option set to another set.
93  GUI_DisplaySetType master)
94  { myDisplaySetMap[slave] = master; }
95 
96  /// Query which display set this set is following. If none, it will refer
97  /// to itself.
99  { return myDisplaySetMap[t]; }
100 
101  /// Scene custom display option support - set and query scene options
102  /// @{
103  void enableSceneOption(const char *name, bool enable);
104  bool isSceneOptionEnabled(const char *name) const;
105  /// @}
106 
107  // These flags are stored here because they deal with different concepts
108  // unknown to GR. The flags at the GR level should only be used by GR when
109  // it renders a specific detail.
110  bool showSelected() const { return myFlags.showSelected; }
111  bool showNonSelected() const { return myFlags.showNonSelected; }
112  bool showTemplates() const { return myFlags.showTemplates; }
113  bool showFootprints() const { return myFlags.showFootprints; }
114  bool showCurrentOutput() const { return myFlags.showCurrentOutput; }
115  bool showDisplay() const { return myFlags.showDisplay; }
116  bool showGuides() const { return myFlags.showGuides; }
117  bool showObjectNames() const { return myFlags.showObjectNames; }
118  bool showFullNames() const { return myFlags.showFullNames; }
119  bool drawOrigin() const { return myFlags.drawOrigin; }
120  bool drawStickyOrigin() const { return myFlags.drawStickyOrigin; }
121  bool drawViewPivot() const { return myFlags.drawViewPivot; }
122  bool drawWalls() const { return myFlags.drawWalls; }
123  bool drawXYPlane() const { return myFlags.drawXYPlane; }
124  bool drawXZPlane() const { return myFlags.drawXZPlane; }
125  bool drawYZPlane() const { return myFlags.drawYZPlane; }
126  bool drawFieldGuide() const { return myFlags.drawFieldGuide; }
127  bool drawSafeArea() const { return myFlags.drawSafeArea; }
128  bool drawBackgrounds() const { return myFlags.drawBackgrounds; }
129  bool drawEnvironmentMaps() const
130  { return myFlags.drawEnvironmentMaps; }
132  { return myFlags.drawFilteredBackgrounds; }
133  bool showIKCriticalZones() const
134  { return myFlags.showIKCriticalZones; }
135  bool getDrawCameraMask() const
136  { return myFlags.drawCameraMask; }
137  bool drawBadges() const { return myFlags.drawBadges; }
138 
139  bool drawVertexAttrib2D() const
140  { return myFlags.drawVertexAttrib2D; }
142  { return myFlags.autoDetectAttribType2D; }
143 
144  bool drawSpecular() const { return myFlags.drawSpecular; }
145  bool drawMultiTexture() const { return common().drawMultiTexture();}
146 
147  bool applySelectMask() const { return myFlags.applySelectMask; }
148 
149  bool drawXRay() const { return myFlags.drawXRay; }
150  bool xrayQuality() const { return myFlags.xrayQuality; }
151  bool drawObjectOrigins() const { return myFlags.drawObjOrigins; }
152  bool showMaterials() const { return myFlags.showMaterials; }
153  bool useMaterialOverrides() const { return myFlags.useOverrides; }
154  bool mssEnable() const { return myFlags.mssEnable; }
155  bool mssPerPrim() const { return myFlags.mssPerPrim; }
156  bool mssPacked() const { return myFlags.mssPacked; }
157  int objectMaterialLimit() const { return myObjectMaterialLimit; }
158  fpreal xrayWireStrength() const { return myXRayWireStrength; }
159 
161  {
162  MAT_ALWAYS = 0,
163  MAT_NO_PLAYBACK = 1,
164  MAT_MANUAL = 2
165  };
166  gui_MatAssignMode materialAssignMode() const { return myMatAssignMode; }
168  { myMatAssignMode = mode; }
169  bool materialUpdate() const { return myMatUpdate; }
170  void materialUpdate(bool update) { myMatUpdate = update; }
171 
172 
173  // the threshold a shading mode is set to change when modifying view
174 
175  void showSelected(bool onoff) { myFlags.showSelected =onoff;}
176  void showNonSelected(bool onoff) { myFlags.showNonSelected =onoff;}
177  void showTemplates(bool onoff) { myFlags.showTemplates =onoff;}
178  void showFootprints(bool onoff) { myFlags.showFootprints =onoff;}
179  void showCurrentOutput(bool onoff)
180  { myFlags.showCurrentOutput = onoff;}
181  void showDisplay(bool onoff) { myFlags.showDisplay =onoff;}
182  void showGuides(bool onoff) { myFlags.showGuides =onoff;}
183  void showObjectNames(bool onoff) { myFlags.showObjectNames =onoff;}
184  void showFullNames(bool onoff) { myFlags.showFullNames =onoff;}
185  void drawOrigin(bool onoff) { myFlags.drawOrigin =onoff;}
186  void drawStickyOrigin(bool onoff) { myFlags.drawStickyOrigin=onoff;}
187  void drawViewPivot(bool onoff) { myFlags.drawViewPivot =onoff;}
188  void drawWalls(bool onoff) { myFlags.drawWalls =onoff;}
189  void drawXYPlane(bool onoff) { myFlags.drawXYPlane =onoff;}
190  void drawXZPlane(bool onoff) { myFlags.drawXZPlane =onoff;}
191  void drawYZPlane(bool onoff) { myFlags.drawYZPlane =onoff;}
192  void drawFieldGuide(bool onoff) { myFlags.drawFieldGuide =onoff;}
193  void drawSafeArea(bool onoff) { myFlags.drawSafeArea =onoff;}
194  void drawBackgrounds(bool onoff) { myFlags.drawBackgrounds =onoff;}
195  void drawEnvironmentMaps(bool onoff)
196  { myFlags.drawEnvironmentMaps =onoff;}
197  void drawFilteredBackgrounds(bool onoff)
198  { myFlags.drawFilteredBackgrounds=onoff;}
199  void showIKCriticalZones(bool onoff)
200  { myFlags.showIKCriticalZones =onoff;}
201  void setDrawCameraMask(bool onoff)
202  { myFlags.drawCameraMask =onoff;}
203  void drawBadges(bool onoff) { myFlags.drawBadges =onoff;}
204  void drawVertexAttrib2D(bool onoff)
205  { myFlags.drawVertexAttrib2D = onoff; }
206  void autoDetectAttribType2D(bool onoff)
207  { myFlags.autoDetectAttribType2D = onoff; }
208  void drawSpecular(bool onoff)
209  { myFlags.drawSpecular = onoff; }
210  void drawMultiTexture(bool onoff)
211  { common().drawMultiTexture(onoff); }
212  void applySelectMask(bool onoff)
213  { myFlags.applySelectMask = onoff; }
214  void drawXRay(bool xray) { myFlags.drawXRay = xray; }
215  void xrayQuality(bool q) { myFlags.xrayQuality = q; }
216  void xrayWireStrength(fpreal w) { myXRayWireStrength = w; }
217  void drawObjectOrigins(bool org) { myFlags.drawObjOrigins = org; }
218  void showMaterials(bool show) { myFlags.showMaterials = show; }
219  void useMaterialOverrides(bool ovr) { myFlags.useOverrides = ovr; }
220  void mssEnable(bool mss) { myFlags.mssEnable = mss; }
221  void mssPerPrim(bool mpp) { myFlags.mssPerPrim = mpp; }
222  void mssPacked(bool mp) { myFlags.mssPacked = mp; }
224  { myObjectMaterialLimit=SYSmax(1,m); }
225 
226  void handleHighlightSize(int hl)
227  { myHandleHighlightSize = SYSclamp(hl, 0, 2); }
228  int handleHighlightSize() const { return myHandleHighlightSize; }
230  { myOriginGnomonSize = SYSmax(size, 0.0); }
231  fpreal originGnomonSize() const { return myOriginGnomonSize; }
232 
233  /// set/query enable/disable of shading mode change
234  /// @{
235  void moveModeOn(bool onoff) { myMoveModeOn = onoff; }
236  bool moveModeOn() const { return myMoveModeOn; }
237  /// @}
238 
239  /// Rotoscoping background image set/query methods
240  /// @{
241  RE_TextureHolder getRotoTexture(RE_Render *r,
243  float &quality,
244  float &aspect_ratio,
245  UT_DimRect *udim_area = nullptr) const;
246  void getRotoResolution(GUI_RotoView type, UT_Vector2i &res);
247 
248  bool setRotoFileParms(GUI_RotoView type,
249  const char *file, float quality);
250  bool setRotoCopParms(GUI_RotoView type,
251  const char *path, float quality);
252  void setRotoSource(GUI_RotoView type,bool file);
253 
254  void setRotoTime(fpreal t);
255  bool isRotoTimeDependent(GUI_RotoView type) const;
256 
257  fpreal getRotoQuality() const;
258  void setRotoQuality(fpreal q);
259 
260  void setRotoPath(GUI_RotoView type,
261  bool file_path, const char *path);
262  bool isRotoFile(GUI_RotoView type) const;
263  const char *getRotoCopPath(GUI_RotoView type) const;
264  const char *getRotoFilePath(GUI_RotoView type) const;
265 
266  UI_Value &getRotoCopCookNotify(GUI_RotoView type);
267  UI_Value &getRotoCopNameChangeNotify(GUI_RotoView type);
268 
269  void getImageMinUV(float arr[2]) const
270  {
271  arr[0] = myImageMinUV[0];
272  arr[1] = myImageMinUV[1];
273  }
274  void setImageMinUV(float arr[2])
275  {
276  myImageMinUV[0] = arr[0];
277  myImageMinUV[1] = arr[1];
278  }
279  void getImageMaxUV(float arr[2]) const
280  {
281  arr[0] = myImageMaxUV[0];
282  arr[1] = myImageMaxUV[1];
283  }
284  void setImageMaxUV(float arr[2])
285  {
286  myImageMaxUV[0] = arr[0];
287  myImageMaxUV[1] = arr[1];
288  }
289 
290  void getImageOffset(GUI_RotoView view, float arr[2]) const
291  {
292  arr[0] = myRotoViews[view].myImageOffset[0];
293  arr[1] = myRotoViews[view].myImageOffset[1];
294  }
295  void setImageOffset(GUI_RotoView view, float arr[2])
296  {
297  myRotoViews[view].myImageOffset[0] = arr[0];
298  myRotoViews[view].myImageOffset[1] = arr[1];
299  }
300  void getImageScale(GUI_RotoView view, float arr[2]) const
301  {
302  arr[0] = myRotoViews[view].myImageScale[0];
303  arr[1] = myRotoViews[view].myImageScale[1];
304  }
305  void setImageScale(GUI_RotoView view, float arr[2])
306  {
307  myRotoViews[view].myImageScale[0] = arr[0];
308  myRotoViews[view].myImageScale[1] = arr[1];
309  }
310 
311  float getBrightness(GUI_RotoView view) const
312  { return myRotoViews[view].myBrightness; }
313  void setBrightness(GUI_RotoView view, float brightness)
314  { myRotoViews[view].myBrightness = brightness; }
315 
316  void autoPlaceImage(GUI_RotoView view, bool onoff)
317  { myRotoViews[view].myAutoPlaceImage = onoff; }
318  bool autoPlaceImage(GUI_RotoView view) const
319  { return myRotoViews[view].myAutoPlaceImage; }
320 
321  static const char *getRotoViewName(GUI_RotoView view);
322  /// @}
323 
324  /// Methods to query/change the scale at which handles are drawn.
325  /// @{
326  static float getHandleScale() { return theHandleScale; }
327  static void setHandleScale(float v)
328  { theHandleScale = SYSclamp(v, 0.01f, 1.0f); }
329  /// @}
330 
331  // This method is called when user options are being destroyed.
332  void removeUserOption(int option_id);
333 
334  /// Refresh the cached version keys for the enabled user options to reflect
335  /// the most up-to-date version.
336  void refreshUserOptionVersions();
337 
338  /// State which switches the geometry context display options between the
339  /// Scene and Model display sets. When at the object level, the scene is
340  /// used.
341  /// @{
342  bool isObjectLevel() const { return myNoSaveFlags.isObjectLevel; }
343  void setObjectLevel(bool onoff);
344  /// @}
345 
346  /// The select mask is set when the user is in a "select" state to
347  /// automatically turn on some decorations. The mask is used to
348  /// temporarily tweak the appropriate display options, and does not,
349  /// in and of itself, invalidate display lists.
350  /// @{
351  unsigned getSelectMask() const { return mySelectMask; }
352  void setSelectMask(unsigned mask) { mySelectMask = mask; }
353  /// @}
354 
355  /// This value is changed when the scene is switched from obj to sop/dop
356  /// level.
357  UI_Value &getObjectLevelNotify() { return myObjectLevelNotify; }
358 
359  /// For the OpenGL ROP only: Allows a single stereo camera to be rendered.
361  {
364  GUI_DISP_STEREO_RIGHT
365  };
366 
367  /// Allow rendering of a single stereo camera eye.
368  /// @{
370  { myStereoPass = pass; }
371  bool isStereoLeftRender() const
372  { return (myStereoPass == GUI_DISP_STEREO_BOTH ||
373  myStereoPass == GUI_DISP_STEREO_LEFT); }
374  bool isStereoRightRender() const
375  { return (myStereoPass == GUI_DISP_STEREO_BOTH ||
376  myStereoPass == GUI_DISP_STEREO_RIGHT); }
377  /// @}
378 
379  /// Returns true if any of the geometry contexts have this option set.
380  /// @{
381  ANY_FLAG_ACTIVE_IN_SETS(drawPointCoincident);
382  ANY_FLAG_ACTIVE_IN_SETS(drawPointMarkers);
383  ANY_FLAG_ACTIVE_IN_SETS(uvFillOverlap);
384  /// @}
385 
386  /// Auto-select quality/preformance presets based on hardware queries.
387  /// Only works at startup.
388  void updateOptionsForHardware(RE_Render *r);
389 
390 
391  /// Returns true if the passed options are compatible with these options,
392  /// meaning that update() does not need to be called on GR_Primitives if
393  /// 'opt' is used after this option. This could happen if 'opt' had a marker
394  /// on that required an attribute that this options set does not.
395  bool compatibleWith(const GUI_DisplayOption &opt) const;
396 
397 
398  void setHeadlightIntensity(fpreal i);
399  fpreal getHeadlightIntensity() const { return myHeadlightIntensity; }
400 
401  void setHeadlightDirection(UT_Vector3D dir);
402  UT_Vector3D getHeadlightDirection() const { return myHeadlightDir; }
403 
404  void setHeadlightSpecular(bool use_spec);
405  bool getHeadlightSpecular() const { return myHeadlightSpec; }
406 
407  void setDefaultMaterialDiffuse(UT_Color col);
408  void setDefaultMaterialSpecular(UT_Color col);
409  void setDefaultMaterialAmbient(UT_Color col);
410  void setDefaultMaterialEmission(UT_Color col);
411 
412  UT_Color getDefaultMaterialDiffuse() const { return myDefaultDiffuse; }
413  UT_Color getDefaultMaterialSpecular() const{ return myDefaultSpecular; }
414  UT_Color getDefaultMaterialAmbient() const { return myDefaultAmbient; }
415  UT_Color getDefaultMaterialEmission() const{ return myDefaultEmission; }
416 
417  bool isDefaultMaterialDirty() const{ return myDefaultMaterialDirty;}
418  void clearDefaultMaterialDirty() { myDefaultMaterialDirty=false;}
419 
420  void forceMSSUpdate(bool) { myMSSUpdateSerial++; }
421  exint getMSSUpdateSerial() const { return myMSSUpdateSerial; }
422 
423  // The ClipOutPass flag should be set when the rendering pass being
424  // performed is for geometry outside the six custom clipping planes.
425  bool isClipOutPass() const { return myNoSaveFlags.isClipOutPass;}
426  void setClipOutPass(bool out_pass)
427  { myNoSaveFlags.isClipOutPass = out_pass; }
428 
429  void getRecommendedTextureLimit(RE_Render *r,
430  int &max2d, int &max3d) const;
431 private:
432  // data:
433 
434  GR_DisplayOption *myDisplaySet[GUI_NUM_DISPLAY_SETS];
435  GUI_DisplaySetType myDisplaySetMap[GUI_NUM_DISPLAY_SETS];
436  GR_CommonDispOption myCommonOptions; // global to viewport
437 
438  float myImageMinUV[2];
439  float myImageMaxUV[2];
440 
441  fpreal myOriginGnomonSize;
442  int myHandleHighlightSize;
443 
444  static float theHandleScale;
445 
446  UT_Vector3D myHeadlightDir;
447  fpreal myHeadlightIntensity;
448  bool myHeadlightSpec;
449 
450  UT_Color myDefaultDiffuse;
451  UT_Color myDefaultSpecular;
452  UT_Color myDefaultEmission;
453  UT_Color myDefaultAmbient;
454  bool myDefaultMaterialDirty;
455 
456  fpreal myXRayWireStrength;
457 
458  struct
459  {
460  OPUI_RotoscopeData *myRotoscopeData;
461  float myImageOffset[2];
462  float myImageScale[2];
465  } myRotoViews[GUI_NUM_ROTO_VIEWS];
466 
467  unsigned mySelectMask; // mask of entities the user
468  // wants to select. Not saved.
469 
470  struct
471  {
472  unsigned
473  showSelected :1,
474  showNonSelected :1,
475  showTemplates :1,
476  showFootprints :1,
477  showCurrentOutput :1,
478  showDisplay :1,
479  showGuides :1,
480  showObjectNames :1,
481  showFullNames :1,
482  drawOrigin :1,
483  drawStickyOrigin :1,
484  drawViewPivot :1,
485  drawWalls :1, // draw bounding walls
486  drawXYPlane :1, // draw XY reference plane
487  drawXZPlane :1, // draw XZ reference plane
488  drawYZPlane :1, // draw YZ reference plane
489  drawFieldGuide :1,
490  drawSafeArea :1,
491  drawBackgrounds :1, // draw background images
492  drawEnvironmentMaps :1,
493  drawFilteredBackgrounds:1, // filter background in UV viewport.
494  drawVertexAttrib2D :1, // use vertex attribute
495  autoDetectAttribType2D:1, // automatically track the attribute type
496  drawSpecular :1, // specular highlights
497  showIKCriticalZones :1, // inverse kin. danger zones
498  drawCameraMask :1,
499  drawBadges :1, // show viewport status badges
500  drawXRay :1, // allow draw of xray objs
501  xrayQuality :1, // fast/quality xray draw
502  drawObjOrigins :1, // allow draw of obj axes
503  applySelectMask :1, // select mask drives specific decorations
504  showMaterials :1, // SHOP materials used
505  useOverrides :1, // Apply material overrides
506  mssEnable :1, // Apply material stylesheets
507  mssPacked :1, // Eval material stylesheets for packed geo
508  mssPerPrim :1; // per-prim material stylesheet eval
509 
510  } myFlags;
511 
512  struct
513  {
514  unsigned isClipOutPass :1,
515  isObjectLevel :1; // Is this an object view?
516  } myNoSaveFlags;
517 
518  // whether shading mode change is enabled/disabled
519  bool myMoveModeOn;
520  int myObjectMaterialLimit;
521 
522  gui_StereoPass myStereoPass;
523  UI_Value myObjectLevelNotify;
524  bool myLoadedDefaults;
525  exint myMSSUpdateSerial;
526  gui_MatAssignMode myMatAssignMode;
527  bool myMatUpdate;
528 
529  UT_IntArray mySceneOptions;
530 };
531 
532 #endif
bool drawXYPlane() const
#define SYSmax(a, b)
Definition: SYS_Math.h:1367
void setClipOutPass(bool out_pass)
UI_Value & getObjectLevelNotify()
void drawObjectOrigins(bool org)
bool isStereoRightRender() const
void getImageMinUV(float arr[2]) const
void showFullNames(bool onoff)
void showIKCriticalZones(bool onoff)
bool isObjectLevel() const
UT_Color getDefaultMaterialSpecular() const
void drawFilteredBackgrounds(bool onoff)
const int GUI_NUM_DISPLAY_MODEL_SETS
fpreal xrayWireStrength() const
bool materialUpdate() const
void drawViewPivot(bool onoff)
static float getHandleScale()
void setDrawCameraMask(bool onoff)
void mssEnable(bool mss)
void showMaterials(bool show)
const GR_DisplayOption & operator[](GUI_DisplaySetType type) const
const GLdouble * v
Definition: glcorearb.h:836
fpreal getHeadlightIntensity() const
float getBrightness(GUI_RotoView view) const
bool drawFilteredBackgrounds() const
void drawWalls(bool onoff)
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
UT_Color getDefaultMaterialEmission() const
void drawStickyOrigin(bool onoff)
bool drawObjectOrigins() const
void getImageOffset(GUI_RotoView view, float arr[2]) const
bool drawOrigin() const
GLint GLuint mask
Definition: glcorearb.h:123
void drawYZPlane(bool onoff)
bool getHeadlightSpecular() const
void drawMultiTexture(bool onoff)
void setImageMinUV(float arr[2])
bool drawViewPivot() const
bool showNonSelected() const
bool drawSpecular() const
bool getDrawCameraMask() const
void handleHighlightSize(int hl)
void drawXRay(bool xray)
bool showFullNames() const
png_uint_32 i
Definition: png.h:2877
UT_Color getDefaultMaterialAmbient() const
GUI_DisplaySetType
Context specific display options for geometry states.
void showDisplay(bool onoff)
void setImageOffset(GUI_RotoView view, float arr[2])
GLsizeiptr size
Definition: glcorearb.h:663
bool drawYZPlane() const
exint getMSSUpdateSerial() const
bool xrayQuality() const
UT_Vector3D getHeadlightDirection() const
void xrayWireStrength(fpreal w)
void showObjectNames(bool onoff)
bool showIKCriticalZones() const
GLfloat f
Definition: glcorearb.h:1925
bool mssPerPrim() const
void getImageMaxUV(float arr[2]) const
GR_CommonDispOption & common()
void setSelectMask(unsigned mask)
void showSelected(bool onoff)
void drawSpecular(bool onoff)
bool showGuides() const
void showTemplates(bool onoff)
#define GUI_API
Definition: GUI_API.h:10
int64 exint
Definition: SYS_Types.h:116
const GR_CommonDispOption & common() const
void drawXZPlane(bool onoff)
bool mssEnable() const
bool isClipOutPass() const
bool drawFieldGuide() const
void mssPerPrim(bool mpp)
bool drawXZPlane() const
void autoPlaceImage(GUI_RotoView view, bool onoff)
void showGuides(bool onoff)
bool mssPacked() const
void drawBackgrounds(bool onoff)
bool drawBadges() const
bool drawBackgrounds() const
const int GUI_NUM_ROTO_VIEWS
bool isStereoLeftRender() const
bool autoPlaceImage(GUI_RotoView view) const
int objectMaterialLimit() const
GLuint const GLchar * name
Definition: glcorearb.h:785
void showCurrentOutput(bool onoff)
void drawXYPlane(bool onoff)
static void setHandleScale(float v)
const int GUI_NUM_DISPLAY_SCENE_SETS
bool autoDetectAttribType2D() const
void drawFieldGuide(bool onoff)
gui_MatAssignMode materialAssignMode() const
bool showMaterials() const
void materialUpdate(bool update)
bool drawEnvironmentMaps() const
bool drawMultiTexture() const
GLenum mode
Definition: glcorearb.h:98
GR_DisplayOption & operator[](GUI_DisplaySetType type)
void setBrightness(GUI_RotoView view, float brightness)
gui_StereoPass
For the OpenGL ROP only: Allows a single stereo camera to be rendered.
void drawOrigin(bool onoff)
void xrayQuality(bool q)
#define ANY_FLAG_ACTIVE_IN_SETS(METHOD)
void materialAssignMode(gui_MatAssignMode mode)
double fpreal
Definition: SYS_Types.h:270
bool isDefaultMaterialDirty() const
bool drawStickyOrigin() const
bool showCurrentOutput() const
GUI_RotoView
Viewport type for Rotoscope settings.
void setDisplaySetRemap(GUI_DisplaySetType slave, GUI_DisplaySetType master)
Remap the display option set to another set.
bool showTemplates() const
void setImageScale(GUI_RotoView view, float arr[2])
bool drawVertexAttrib2D() const
bool showObjectNames() const
void originGnomonSize(fpreal size)
bool showDisplay() const
bool drawWalls() const
GUI_DisplaySetType getDisplaySetRemap(GUI_DisplaySetType t) const
UT_Color getDefaultMaterialDiffuse() const
const int GUI_NUM_DISPLAY_SETS
void drawEnvironmentMaps(bool onoff)
bool showSelected() const
void applySelectMask(bool onoff)
OPUI_RotoscopeData * myRotoscopeData
bool showFootprints() const
void drawVertexAttrib2D(bool onoff)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
bool drawSafeArea() const
void setSeparateStereoRender(gui_StereoPass pass)
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856
void drawBadges(bool onoff)
void showFootprints(bool onoff)
void drawSafeArea(bool onoff)
bool useMaterialOverrides() const
void moveModeOn(bool onoff)
GLboolean r
Definition: glcorearb.h:1221
int handleHighlightSize() const
bool applySelectMask() const
fpreal originGnomonSize() const
bool moveModeOn() const
void showNonSelected(bool onoff)
void setImageMaxUV(float arr[2])
unsigned getSelectMask() const
void autoDetectAttribType2D(bool onoff)
void useMaterialOverrides(bool ovr)
void getImageScale(GUI_RotoView view, float arr[2]) const
void mssPacked(bool mp)
bool drawXRay() const
void objectMaterialLimit(int m)
GR_DisplayOption & getDisplaySet(GUI_DisplaySetType type)
Direct cccess to the display set, without any mapping.