HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
138  bool drawVertexAttrib2D() const
139  { return myFlags.drawVertexAttrib2D; }
141  { return myFlags.autoDetectAttribType2D; }
142 
143  bool drawSpecular() const { return myFlags.drawSpecular; }
144  bool drawMultiTexture() const { return common().drawMultiTexture();}
145 
146  bool applySelectMask() const { return myFlags.applySelectMask; }
147 
148  bool drawXRay() const { return myFlags.drawXRay; }
149  bool xrayQuality() const { return myFlags.xrayQuality; }
150  bool drawObjectOrigins() const { return myFlags.drawObjOrigins; }
151  bool showMaterials() const { return myFlags.showMaterials; }
152  bool useMaterialOverrides() const { return myFlags.useOverrides; }
153  bool mssEnable() const { return myFlags.mssEnable; }
154  bool mssPerPrim() const { return myFlags.mssPerPrim; }
155  bool mssPacked() const { return myFlags.mssPacked; }
156  int objectMaterialLimit() const { return myObjectMaterialLimit; }
157  fpreal xrayWireStrength() const { return myXRayWireStrength; }
158 
160  {
161  MAT_ALWAYS = 0,
162  MAT_NO_PLAYBACK = 1,
163  MAT_MANUAL = 2
164  };
165  gui_MatAssignMode materialAssignMode() const { return myMatAssignMode; }
167  { myMatAssignMode = mode; }
168  bool materialUpdate() const { return myMatUpdate; }
169  void materialUpdate(bool update) { myMatUpdate = update; }
170 
171 
172  // the threshold a shading mode is set to change when modifying view
173 
174  void showSelected(bool onoff) { myFlags.showSelected =onoff;}
175  void showNonSelected(bool onoff) { myFlags.showNonSelected =onoff;}
176  void showTemplates(bool onoff) { myFlags.showTemplates =onoff;}
177  void showFootprints(bool onoff) { myFlags.showFootprints =onoff;}
178  void showCurrentOutput(bool onoff)
179  { myFlags.showCurrentOutput = onoff;}
180  void showDisplay(bool onoff) { myFlags.showDisplay =onoff;}
181  void showGuides(bool onoff) { myFlags.showGuides =onoff;}
182  void showObjectNames(bool onoff) { myFlags.showObjectNames =onoff;}
183  void showFullNames(bool onoff) { myFlags.showFullNames =onoff;}
184  void drawOrigin(bool onoff) { myFlags.drawOrigin =onoff;}
185  void drawStickyOrigin(bool onoff) { myFlags.drawStickyOrigin=onoff;}
186  void drawViewPivot(bool onoff) { myFlags.drawViewPivot =onoff;}
187  void drawWalls(bool onoff) { myFlags.drawWalls =onoff;}
188  void drawXYPlane(bool onoff) { myFlags.drawXYPlane =onoff;}
189  void drawXZPlane(bool onoff) { myFlags.drawXZPlane =onoff;}
190  void drawYZPlane(bool onoff) { myFlags.drawYZPlane =onoff;}
191  void drawFieldGuide(bool onoff) { myFlags.drawFieldGuide =onoff;}
192  void drawSafeArea(bool onoff) { myFlags.drawSafeArea =onoff;}
193  void drawBackgrounds(bool onoff) { myFlags.drawBackgrounds =onoff;}
194  void drawEnvironmentMaps(bool onoff)
195  { myFlags.drawEnvironmentMaps =onoff;}
196  void drawFilteredBackgrounds(bool onoff)
197  { myFlags.drawFilteredBackgrounds=onoff;}
198  void showIKCriticalZones(bool onoff)
199  { myFlags.showIKCriticalZones =onoff;}
200  void setDrawCameraMask(bool onoff)
201  { myFlags.drawCameraMask =onoff;}
202  void drawVertexAttrib2D(bool onoff)
203  { myFlags.drawVertexAttrib2D = onoff; }
204  void autoDetectAttribType2D(bool onoff)
205  { myFlags.autoDetectAttribType2D = onoff; }
206  void drawSpecular(bool onoff)
207  { myFlags.drawSpecular = onoff; }
208  void drawMultiTexture(bool onoff)
209  { common().drawMultiTexture(onoff); }
210  void applySelectMask(bool onoff)
211  { myFlags.applySelectMask = onoff; }
212  void drawXRay(bool xray) { myFlags.drawXRay = xray; }
213  void xrayQuality(bool q) { myFlags.xrayQuality = q; }
214  void xrayWireStrength(fpreal w) { myXRayWireStrength = w; }
215  void drawObjectOrigins(bool org) { myFlags.drawObjOrigins = org; }
216  void showMaterials(bool show) { myFlags.showMaterials = show; }
217  void useMaterialOverrides(bool ovr) { myFlags.useOverrides = ovr; }
218  void mssEnable(bool mss) { myFlags.mssEnable = mss; }
219  void mssPerPrim(bool mpp) { myFlags.mssPerPrim = mpp; }
220  void mssPacked(bool mp) { myFlags.mssPacked = mp; }
222  { myObjectMaterialLimit=SYSmax(1,m); }
223 
224  void handleHighlightSize(int hl)
225  { myHandleHighlightSize = SYSclamp(hl, 0, 2); }
226  int handleHighlightSize() const { return myHandleHighlightSize; }
228  { myOriginGnomonSize = SYSmax(size, 0.0); }
229  fpreal originGnomonSize() const { return myOriginGnomonSize; }
230 
231  /// set/query enable/disable of shading mode change
232  /// @{
233  void moveModeOn(bool onoff) { myMoveModeOn = onoff; }
234  bool moveModeOn() const { return myMoveModeOn; }
235  /// @}
236 
237  /// Rotoscoping background image set/query methods
238  /// @{
239  RE_TextureHolder getRotoTexture(RE_Render *r,
241  float &quality,
242  float &aspect_ratio,
243  UT_DimRect *udim_area = nullptr) const;
244  void getRotoResolution(GUI_RotoView type, UT_Vector2i &res);
245 
246  bool setRotoFileParms(GUI_RotoView type,
247  const char *file, float quality);
248  bool setRotoCopParms(GUI_RotoView type,
249  const char *path, float quality);
250  void setRotoSource(GUI_RotoView type,bool file);
251 
252  void setRotoTime(fpreal t);
253  bool isRotoTimeDependent(GUI_RotoView type) const;
254 
255  fpreal getRotoQuality() const;
256  void setRotoQuality(fpreal q);
257 
258  void setRotoPath(GUI_RotoView type,
259  bool file_path, const char *path);
260  bool isRotoFile(GUI_RotoView type) const;
261  const char *getRotoCopPath(GUI_RotoView type) const;
262  const char *getRotoFilePath(GUI_RotoView type) const;
263 
264  UI_Value &getRotoCopCookNotify(GUI_RotoView type);
265  UI_Value &getRotoCopNameChangeNotify(GUI_RotoView type);
266 
267  void getImageMinUV(float arr[2]) const
268  {
269  arr[0] = myImageMinUV[0];
270  arr[1] = myImageMinUV[1];
271  }
272  void setImageMinUV(float arr[2])
273  {
274  myImageMinUV[0] = arr[0];
275  myImageMinUV[1] = arr[1];
276  }
277  void getImageMaxUV(float arr[2]) const
278  {
279  arr[0] = myImageMaxUV[0];
280  arr[1] = myImageMaxUV[1];
281  }
282  void setImageMaxUV(float arr[2])
283  {
284  myImageMaxUV[0] = arr[0];
285  myImageMaxUV[1] = arr[1];
286  }
287 
288  void getImageOffset(GUI_RotoView view, float arr[2]) const
289  {
290  arr[0] = myRotoViews[view].myImageOffset[0];
291  arr[1] = myRotoViews[view].myImageOffset[1];
292  }
293  void setImageOffset(GUI_RotoView view, float arr[2])
294  {
295  myRotoViews[view].myImageOffset[0] = arr[0];
296  myRotoViews[view].myImageOffset[1] = arr[1];
297  }
298  void getImageScale(GUI_RotoView view, float arr[2]) const
299  {
300  arr[0] = myRotoViews[view].myImageScale[0];
301  arr[1] = myRotoViews[view].myImageScale[1];
302  }
303  void setImageScale(GUI_RotoView view, float arr[2])
304  {
305  myRotoViews[view].myImageScale[0] = arr[0];
306  myRotoViews[view].myImageScale[1] = arr[1];
307  }
308 
309  float getBrightness(GUI_RotoView view) const
310  { return myRotoViews[view].myBrightness; }
311  void setBrightness(GUI_RotoView view, float brightness)
312  { myRotoViews[view].myBrightness = brightness; }
313 
314  void autoPlaceImage(GUI_RotoView view, bool onoff)
315  { myRotoViews[view].myAutoPlaceImage = onoff; }
316  bool autoPlaceImage(GUI_RotoView view) const
317  { return myRotoViews[view].myAutoPlaceImage; }
318 
319  static const char *getRotoViewName(GUI_RotoView view);
320  /// @}
321 
322  /// Methods to query/change the scale at which handles are drawn.
323  /// @{
324  static float getHandleScale() { return theHandleScale; }
325  static void setHandleScale(float v)
326  { theHandleScale = SYSclamp(v, 0.01f, 1.0f); }
327  /// @}
328 
329  // This method is called when user options are being destroyed.
330  void removeUserOption(int option_id);
331 
332  /// Refresh the cached version keys for the enabled user options to reflect
333  /// the most up-to-date version.
334  void refreshUserOptionVersions();
335 
336  /// State which switches the geometry context display options between the
337  /// Scene and Model display sets. When at the object level, the scene is
338  /// used.
339  /// @{
340  bool isObjectLevel() const { return myNoSaveFlags.isObjectLevel; }
341  void setObjectLevel(bool onoff);
342  /// @}
343 
344  /// The select mask is set when the user is in a "select" state to
345  /// automatically turn on some decorations. The mask is used to
346  /// temporarily tweak the appropriate display options, and does not,
347  /// in and of itself, invalidate display lists.
348  /// @{
349  unsigned getSelectMask() const { return mySelectMask; }
350  void setSelectMask(unsigned mask) { mySelectMask = mask; }
351  /// @}
352 
353  /// This value is changed when the scene is switched from obj to sop/dop
354  /// level.
355  UI_Value &getObjectLevelNotify() { return myObjectLevelNotify; }
356 
357  /// For the OpenGL ROP only: Allows a single stereo camera to be rendered.
359  {
362  GUI_DISP_STEREO_RIGHT
363  };
364 
365  /// Allow rendering of a single stereo camera eye.
366  /// @{
368  { myStereoPass = pass; }
369  bool isStereoLeftRender() const
370  { return (myStereoPass == GUI_DISP_STEREO_BOTH ||
371  myStereoPass == GUI_DISP_STEREO_LEFT); }
372  bool isStereoRightRender() const
373  { return (myStereoPass == GUI_DISP_STEREO_BOTH ||
374  myStereoPass == GUI_DISP_STEREO_RIGHT); }
375  /// @}
376 
377  /// Returns true if any of the geometry contexts have this option set.
378  /// @{
379  ANY_FLAG_ACTIVE_IN_SETS(drawPointCoincident);
380  ANY_FLAG_ACTIVE_IN_SETS(drawPointMarkers);
381  ANY_FLAG_ACTIVE_IN_SETS(uvFillOverlap);
382  /// @}
383 
384  /// Auto-select quality/preformance presets based on hardware queries.
385  /// Only works at startup.
386  void updateOptionsForHardware(RE_Render *r);
387 
388 
389  /// Returns true if the passed options are compatible with these options,
390  /// meaning that update() does not need to be called on GR_Primitives if
391  /// 'opt' is used after this option. This could happen if 'opt' had a marker
392  /// on that required an attribute that this options set does not.
393  bool compatibleWith(const GUI_DisplayOption &opt) const;
394 
395 
396  void setHeadlightIntensity(fpreal i);
397  fpreal getHeadlightIntensity() const { return myHeadlightIntensity; }
398 
399  void setHeadlightDirection(UT_Vector3D dir);
400  UT_Vector3D getHeadlightDirection() const { return myHeadlightDir; }
401 
402  void setHeadlightSpecular(bool use_spec);
403  bool getHeadlightSpecular() const { return myHeadlightSpec; }
404 
405  void setDefaultMaterialDiffuse(UT_Color col);
406  void setDefaultMaterialSpecular(UT_Color col);
407  void setDefaultMaterialAmbient(UT_Color col);
408  void setDefaultMaterialEmission(UT_Color col);
409 
410  UT_Color getDefaultMaterialDiffuse() const { return myDefaultDiffuse; }
411  UT_Color getDefaultMaterialSpecular() const{ return myDefaultSpecular; }
412  UT_Color getDefaultMaterialAmbient() const { return myDefaultAmbient; }
413  UT_Color getDefaultMaterialEmission() const{ return myDefaultEmission; }
414 
415  bool isDefaultMaterialDirty() const{ return myDefaultMaterialDirty;}
416  void clearDefaultMaterialDirty() { myDefaultMaterialDirty=false;}
417 
418  void forceMSSUpdate(bool) { myMSSUpdateSerial++; }
419  exint getMSSUpdateSerial() const { return myMSSUpdateSerial; }
420 
421  // The ClipOutPass flag should be set when the rendering pass being
422  // performed is for geometry outside the six custom clipping planes.
423  bool isClipOutPass() const { return myNoSaveFlags.isClipOutPass;}
424  void setClipOutPass(bool out_pass)
425  { myNoSaveFlags.isClipOutPass = out_pass; }
426 
427  void getRecommendedTextureLimit(RE_Render *r,
428  int &max2d, int &max3d) const;
429 private:
430  // data:
431 
432  GR_DisplayOption *myDisplaySet[GUI_NUM_DISPLAY_SETS];
433  GUI_DisplaySetType myDisplaySetMap[GUI_NUM_DISPLAY_SETS];
434  GR_CommonDispOption myCommonOptions; // global to viewport
435 
436  float myImageMinUV[2];
437  float myImageMaxUV[2];
438 
439  fpreal myOriginGnomonSize;
440  int myHandleHighlightSize;
441 
442  static float theHandleScale;
443 
444  UT_Vector3D myHeadlightDir;
445  fpreal myHeadlightIntensity;
446  bool myHeadlightSpec;
447 
448  UT_Color myDefaultDiffuse;
449  UT_Color myDefaultSpecular;
450  UT_Color myDefaultEmission;
451  UT_Color myDefaultAmbient;
452  bool myDefaultMaterialDirty;
453 
454  fpreal myXRayWireStrength;
455 
456  struct
457  {
458  OPUI_RotoscopeData *myRotoscopeData;
459  float myImageOffset[2];
460  float myImageScale[2];
463  } myRotoViews[GUI_NUM_ROTO_VIEWS];
464 
465  unsigned mySelectMask; // mask of entities the user
466  // wants to select. Not saved.
467 
468  struct
469  {
470  unsigned
471  showSelected :1,
472  showNonSelected :1,
473  showTemplates :1,
474  showFootprints :1,
475  showCurrentOutput :1,
476  showDisplay :1,
477  showGuides :1,
478  showObjectNames :1,
479  showFullNames :1,
480  drawOrigin :1,
481  drawStickyOrigin :1,
482  drawViewPivot :1,
483  drawWalls :1, // draw bounding walls
484  drawXYPlane :1, // draw XY reference plane
485  drawXZPlane :1, // draw XZ reference plane
486  drawYZPlane :1, // draw YZ reference plane
487  drawFieldGuide :1,
488  drawSafeArea :1,
489  drawBackgrounds :1, // draw background images
490  drawEnvironmentMaps :1,
491  drawFilteredBackgrounds:1, // filter background in UV viewport.
492  drawVertexAttrib2D :1, // use vertex attribute
493  autoDetectAttribType2D:1, // automatically track the attribute type
494  drawSpecular :1, // specular highlights
495  showIKCriticalZones :1, // inverse kin. danger zones
496  drawCameraMask :1,
497  drawXRay :1, // allow draw of xray objs
498  xrayQuality :1, // fast/quality xray draw
499  drawObjOrigins :1, // allow draw of obj axes
500  applySelectMask :1, // select mask drives specific decorations
501  showMaterials :1, // SHOP materials used
502  useOverrides :1, // Apply material overrides
503  mssEnable :1, // Apply material stylesheets
504  mssPacked :1, // Eval material stylesheets for packed geo
505  mssPerPrim :1; // per-prim material stylesheet eval
506 
507  } myFlags;
508 
509  struct
510  {
511  unsigned isClipOutPass :1,
512  isObjectLevel :1; // Is this an object view?
513  } myNoSaveFlags;
514 
515  // whether shading mode change is enabled/disabled
516  bool myMoveModeOn;
517  int myObjectMaterialLimit;
518 
519  gui_StereoPass myStereoPass;
520  UI_Value myObjectLevelNotify;
521  bool myLoadedDefaults;
522  exint myMSSUpdateSerial;
523  gui_MatAssignMode myMatAssignMode;
524  bool myMatUpdate;
525 
526  UT_IntArray mySceneOptions;
527 };
528 
529 #endif
bool drawXYPlane() const
#define SYSmax(a, b)
Definition: SYS_Math.h:1365
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:109
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 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:263
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 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.