HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_GeometryViewportSettings.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_GeometryViewportSettings_h__
10 #define __HOM_GeometryViewportSettings_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Color.h"
14 #include "HOM_Defines.h"
15 #include "HOM_Errors.h"
18 #include "HOM_Module.h"
19 #include "HOM_ObjNode.h"
20 #include "HOM_EnumValue.h"
21 
22 SWIGOUT(%rename(GeometryViewportSettings) HOM_GeometryViewportSettings;)
23 
25 {
26 public:
28  { HOM_CONSTRUCT_OBJECT(this) }
30  { HOM_CONSTRUCT_OBJECT(this) }
32  { HOM_DESTRUCT_OBJECT(this) }
33 
34  virtual std::string __repr__() = 0;
35 
36  virtual HOM_EnumValue &viewportType() = 0;
37 
38  // Markers tab -------------------------------------------------------
39 
40  SWIGOUT(%newobject displaySet;)
41  virtual HOM_GeometryViewportDisplaySet *displaySet(HOM_EnumValue &settype) = 0;
42 
43  virtual float viewAspectRatio(bool masked = true) = 0;
44  virtual double normalScale() = 0;
45  virtual void setNormalScale(double normal_scale) = 0;
46  virtual double vectorScale() = 0;
47  virtual void setVectorScale(double vec_scale) = 0;
48  virtual double pointMarkerSize() = 0;
49  virtual void setPointMarkerSize(double psize) = 0;
50  virtual double originGnomonSize()= 0;
51  virtual void setOriginGnomonSize(double size) = 0;
52  virtual double floatingGnomonSize()= 0;
53  virtual void setFloatingGnomonSize(double size) = 0;
54 
55  SWIGOUT(%newobject camera;)
56  virtual HOM_ObjNode *camera() = 0;
57  virtual void setCamera(HOM_ObjNode &camera_node) = 0;
58  virtual void setCamera(const char *camera_path) = 0;
59  virtual void saveViewToCamera(HOM_ObjNode &camera_node) = 0;
60 
61  virtual void geometryInfo(HOM_EnumValue &info) = 0;
62  virtual HOM_EnumValue &geometryInfo() = 0;
63 
64  virtual void handleHighlight(HOM_EnumValue &info) = 0;
65  virtual HOM_EnumValue &handleHighlight() = 0;
66 
67  virtual void closureSelection(HOM_EnumValue &info) = 0;
68  virtual HOM_EnumValue &closureSelection() = 0;
69 
70  virtual void guideFontSize(HOM_EnumValue &info) = 0;
71  virtual HOM_EnumValue &guideFontSize() = 0;
72 
73  virtual void setOffsetVertexMarkers(bool enable) = 0;
74  virtual bool offsetVertexMarkers() = 0;
75 
76  // guide enum = viewportGuide
77  virtual void enableGuide(HOM_EnumValue &guide, bool enabled) = 0;
78  virtual bool guideEnabled(HOM_EnumValue &guide) = 0;
79 
80  // Geometry tab -----------------------------------------------------
81 
82  virtual void levelOfDetail(double value) = 0;
83  virtual double levelOfDetail() = 0;
84 
85  // HOM_ViewportVolumeQuality
86  virtual void volumeQuality(HOM_EnumValue &quality) = 0;
87  virtual HOM_EnumValue &volumeQuality() = 0;
88 
89  virtual void volumeAmbientShadows(double s) = 0;
90  virtual double volumeAmbientShadows() = 0;
91 
92  virtual void volumeBSplines(HOM_EnumValue &bsplines) = 0;
93  virtual HOM_EnumValue &volumeBSplines() = 0;
94 
95  virtual void volumeWireAsPoints(bool as_points) = 0;
96  virtual bool volumeWireAsPoints() = 0;
97 
98  virtual void polygonConvexQuality(bool quality) = 0;
99  virtual bool polygonConvexQuality() = 0;
100 
101  virtual void subdivsionLimit(int limit_in_millions) = 0;
102  virtual int subdivsionLimit() = 0;
103 
104  virtual void wireWidth(double width) = 0;
105  virtual double wireWidth() = 0;
106 
107  virtual void wireBlend(double blend) = 0;
108  virtual double wireBlend() = 0;
109 
110  virtual void interiorWireAlpha(double alpha) = 0;
111  virtual double interiorWireAlpha() = 0;
112 
113  virtual void shadeOpenCurves(bool shade) = 0;
114  virtual bool shadeOpenCurves() = 0;
115 
116  virtual void selectWireframeAsSolid(bool as_solid) = 0;
117  virtual bool selectWireframeAsSolid() = 0;
118 
119  virtual void setWireOverPackedGeo(bool wire_over_packed) = 0;
120  virtual bool wireOverPackedGeo() = 0;
121 
122 
123  // HOM_ViewportParticleDisplay
124  virtual void particleDisplayType(HOM_EnumValue &quality) = 0;
125  virtual HOM_EnumValue &particleDisplayType() = 0;
126 
127  virtual void allowParticleSprites(bool sprites) = 0;
128  virtual bool allowParticleSprites() = 0;
129 
130  virtual void particlePointSize(double size) = 0;
131  virtual double particlePointSize() = 0;
132 
133  virtual void particleDiscSize(double size) = 0;
134  virtual double particleDiscSize() = 0;
135 
136  virtual void orientDiscToNormal(bool n_orient) = 0;
137  virtual bool orientDiscToNormal() = 0;
138 
139  virtual void spriteTextureLimit(std::vector<int> &max_res)
140  = 0;
141  virtual std::vector<int> spriteTextureLimit() = 0;
142 
143 
144  virtual void pointInstancing(bool enable) = 0;
145  virtual bool pointInstancing() = 0;
146 
147  virtual void pointInstancingPercent(double show_instances) = 0;
148  virtual double pointInstancingPercent() = 0;
149 
150  virtual void pointInstancingLimit(int millions_of_instances) = 0;
151  virtual int pointInstancingLimit() = 0;
152 
153  // HOM_ViewportStandInGeometry
154  virtual void instanceStandInGeometry(HOM_EnumValue &standin) = 0;
155  virtual HOM_EnumValue &instanceStandInGeometry() = 0;
156 
157  virtual void autoGenerateVertexNormals(bool vertex) = 0;
158  virtual bool autoGenerateVertexNormals() = 0;
159 
160  virtual void vertexNormalCuspAngle(double angle) = 0;
161  virtual double vertexNormalCuspAngle() = 0;
162 
163  virtual void vertexNormalLimit(int millions_of_polys) = 0;
164  virtual int vertexNormalLimit() = 0;
165 
166  // Scene tab -------------------------------------------------------
167 
168  virtual void setSceneAntialias(int aa) = 0;
169  virtual int sceneAntialias() = 0;
170 
171  virtual void setHdrRendering(bool hdr) = 0;
172  virtual bool hdrRendering() = 0;
173 
174  virtual void setXrayDrawing(bool global_enable) = 0;
175  virtual bool xrayDrawing() = 0;
176 
177  virtual void setXrayQuality(bool quality) = 0;
178  virtual bool xrayQuality() = 0;
179 
180  virtual void setXrayStrength(double strength) = 0;
181  virtual double xrayStrength() = 0;
182 
183  virtual void setObjectOrigins(bool globel_enable) = 0;
184  virtual bool objectOrigins() = 0;
185 
186  virtual void setOnionSkinning(bool global_enable) = 0;
187  virtual bool onionSkinning() = 0;
188 
189  virtual void setOnionSkinFramesBeforeCount(int num_frames) = 0;
190  virtual int onionSkinFramesBeforeCount() = 0;
191 
192  virtual void setOnionSkinFramesBeforeTint(HOM_Color &tint) = 0;
193  virtual HOM_Color onionSkinFramesBeforeTint() = 0;
194 
195  virtual void setOnionSkinFramesAfterCount(int num_frames) = 0;
196  virtual int onionSkinFramesAfterCount() = 0;
197 
198  virtual void setOnionSkinFramesAfterTint(HOM_Color &tint) = 0;
199  virtual HOM_Color onionSkinFramesAfterTint() = 0;
200 
201  virtual void setOnionSkinFrameIncrement(int frame_increment) = 0;
202  virtual int onionSkinFrameIncrement() = 0;
203 
204  virtual void setOnionSkinOpacity(double opacity) = 0;
205  virtual double onionSkinOpacity() = 0;
206 
207  virtual void setSceneGamma(double gamma) = 0;
208  virtual double sceneGamma() = 0;
209 
210  virtual void setUseSceneLUT(bool enable) = 0;
211  virtual bool useSceneLUT() = 0;
212 
213  virtual void setSceneLUT(std::string lut_file) = 0;
214  virtual std::string sceneLUT() = 0;
215 
216  virtual void setBackgroundImageGammaLUT(bool apply_to_bg) = 0;
217  virtual bool backgroundImageGammaLUT() = 0;
218 
219  virtual void setDepthOfField(bool enable) = 0;
220  virtual bool getDepthOfField() = 0;
221 
222  virtual void setDepthOfFieldBokeh(HOM_EnumValue &viewportDOFBokeh) = 0;
223  virtual HOM_EnumValue &getDepthOfFieldBokeh() = 0;
224 
225  virtual void setDepthOfFieldBokehTexture(std::string file_or_node) = 0;
226  virtual std::string getDepthOfFieldBokehTexture() = 0;
227 
228  virtual void setDepthOfFieldBokehBoost(double boost) = 0;
229  virtual double getDepthOfFieldBokehBoost() = 0;
230 
231  virtual void setDepthOfFieldBokehAspect(double aspect) = 0;
232  virtual double getDepthOfFieldBokehAspect() = 0;
233 
234  // Viewport tab ----------------------------------------------------
235 
236  virtual void showsName(bool show) = 0;
237  virtual bool showName() = 0;
238 
239  virtual void showsCameraName(bool show) = 0;
240  virtual bool showCameraName() = 0;
241 
242  virtual void showsStateStatus(bool show) = 0;
243  virtual bool showStateStatus() = 0;
244 
245  virtual void showsBadges(bool show) = 0;
246  virtual bool showBadges() = 0;
247 
248  virtual void useAspectRatio(bool enable) = 0;
249  virtual bool usingAspectRatio() = 0;
250 
251  virtual void setAspectRatio(double aspect) = 0;
252  virtual double aspectRatio() = 0;
253 
254  virtual void setViewMaskOpacity(double opacity) = 0;
255  virtual double viewMaskOpacity() = 0;
256 
257  virtual void setStereoMode(HOM_EnumValue &viewportStereoMode) = 0;
258  virtual HOM_EnumValue &stereoMode() = 0;
259 
260  virtual void setHomeAutoAdjustsClip(HOM_EnumValue &viewportHomeClipMode)= 0;
261  virtual HOM_EnumValue &homeAutoAdjustClip() = 0;
262 
263  virtual void setClipPlanes(std::vector<double> clip) = 0;
264  virtual std::vector<double> clipPlanes() = 0;
265 
266  virtual void setMinHomeSize(double min_size) = 0;
267  virtual double minHomeSize() = 0;
268 
269  virtual void setUVDisplayAttribute(const std::string &uv) = 0;
270  virtual std::string uvDisplayAttribute() = 0;
271 
272  virtual void setUVAutoAttribute(bool detect) = 0;
273  virtual bool uvAutoAttribute() = 0;
274 
275  virtual void setUVVertexType(bool is_vertex_uv) = 0;
276  virtual bool uvVertexType() = 0;
277 
278  virtual void setUVMapTexture(const std::string &uv_file) = 0;
279  virtual std::string uvMapTexture() = 0;
280 
281  virtual void setUVMapScale(double uv_scale) = 0;
282  virtual double uvMapScale() = 0;
283 
284  // Effects tab -----------------------------------------------------
285 
286  virtual void setLighting(HOM_EnumValue &viewportLighting) = 0;
287  virtual HOM_EnumValue &lighting() = 0;
288 
289  virtual void showDiffuse(bool enable) = 0;
290  virtual bool showingDiffuse() = 0;
291 
292  virtual void showSpecular(bool enable) = 0;
293  virtual bool showingSpecular() = 0;
294 
295  virtual void showAmbient(bool enable) = 0;
296  virtual bool showingAmbient() = 0;
297 
298  virtual void showEmission(bool enable) = 0;
299  virtual bool showingEmission() = 0;
300 
301  virtual void setLightSampling(int num_samples) = 0;
302  virtual int lightSampling() = 0;
303 
304  virtual void setMaxLightSamples(int samples) = 0;
305  virtual int maxLightSamples() = 0;
306 
307  virtual void setLightLimit(int limit) = 0;
308  virtual int getLightLimit() = 0;
309 
310  virtual void setHeadlightIntensity(double intensity) = 0;
311  virtual double headlightIntensity() = 0;
312 
313  virtual void setHeadlightDirection(std::vector<double> dir) = 0;
314  virtual std::vector<double> headlightDirection() = 0;
315 
316  virtual void setHeadlightSpecular(bool enable) = 0;
317  virtual bool headlightSpecular() = 0;
318 
319  virtual void setHeadlightOcclusion(bool enable) = 0;
320  virtual bool headlightOcclusion() = 0;
321 
322  virtual void setAmbientOcclusion(bool enable) = 0;
323  virtual bool ambientOcclusion() = 0;
324 
325  virtual void setAmbientOcclusionLevel(int level) = 0;
326  virtual int ambientOcclusionLevel() = 0;
327 
328  virtual void setShadowQuality(HOM_EnumValue &viewportShadowQuality) = 0;
329  virtual HOM_EnumValue &shadowQuality() = 0;
330 
331  virtual void setShadowSensitivity(std::vector<int> offset) = 0;
332  virtual std::vector<int> shadowSensitivity() = 0;
333 
334  virtual void setShadowMapSize(int size) = 0;
335  virtual int shadowMapSize() = 0;
336 
337  virtual void setShadowMapSizeFromLight(bool enable) = 0;
338  virtual bool shadowMapSizeFromLight() = 0;
339 
340  virtual void setShadowMapMem(int mem_in_mb) = 0;
341  virtual int getShadowMapMem() = 0;
342 
343  virtual void setShadowMapTime(double time_in_sec) = 0;
344  virtual double getShadowMapTime() = 0;
345 
346  virtual void useReflections(bool enable) = 0;
347  virtual bool usingReflections() = 0;
348 
349  virtual void setHdrReflections(bool hdr_reflect) = 0;
350  virtual bool hdrReflections() = 0;
351 
352  virtual void setReflectMapSize(int size) = 0;
353  virtual int reflectMapSize() = 0;
354 
355  virtual void setMinReflectAmount(double min_reflect) = 0;
356  virtual double minReflectAmount() = 0;
357 
358  virtual void setFastInteractiveSampling(bool fast) = 0;
359  virtual bool fastInteractiveSampling() = 0;
360 
361 
362  // Materials tab ------------------------------------------------------
363 
364  virtual void showMaterials(bool enable) = 0;
365  virtual bool showingMaterials() = 0;
366 
367  virtual void showGeometryColor(bool enable) = 0;
368  virtual bool showingGeometryColor() = 0;
369 
370  virtual void useTransparency(bool enable) = 0;
371  virtual bool usingTransparency() = 0;
372 
373  virtual void setTransparencyQuality(HOM_EnumValue &viewportTransparency) = 0;
374  virtual HOM_EnumValue &transparencyQuality() = 0;
375 
376  virtual void useDisplacement(bool enable) = 0;
377  virtual bool usingDisplacement() = 0;
378 
379  virtual void setDisplacementLevel(double level) = 0;
380  virtual double displacementLevel() = 0;
381 
382  virtual void setDefaultMaterialDiffuse(HOM_Color &tint) = 0;
383  virtual HOM_Color defaultMaterialDiffuse() = 0;
384 
385  virtual void setDefaultMaterialSpecular(HOM_Color &tint) = 0;
386  virtual HOM_Color defaultMaterialSpecular() = 0;
387 
388  virtual void setDefaultMaterialAmbient(HOM_Color &tint) = 0;
389  virtual HOM_Color defaultMaterialAmbient() = 0;
390 
391  virtual void setDefaultMaterialEmission(HOM_Color &tint) = 0;
392  virtual HOM_Color defaultMaterialEmission() = 0;
393 
394  virtual void setDefaultMaterialMatCapFile(const std::string &filepath) = 0;
395  virtual std::string getDefaultMaterialMatCapFile() = 0;
396 
397  virtual void setDefaultMaterialMatCapIntensity(double i) = 0;
398  virtual double getDefaultMaterialMatCapIntensity() = 0;
399 
400  virtual void setDefaultMaterialType(HOM_EnumValue &viewportDefaultMaterial)=0;
401  virtual HOM_EnumValue &getDefaultMaterialType() = 0;
402 
403 
404 
405  // Fog tab -------------------------------------------------------------
406  virtual void setUniformFog(bool enable) = 0;
407  virtual bool getUniformFog() = 0;
408 
409  virtual void setUniformFogColor(std::vector<double> color) = 0;
410  virtual std::vector<double> getUniformFogColor() = 0;
411 
412  virtual void setUniformFogDensity(double density) = 0;
413  virtual double getUniformFogDensity() = 0;
414 
415  virtual void setUniformFogOpacity(double opacity) = 0;
416  virtual double getUniformFogOpacity() = 0;
417 
418  virtual void setUniformFogDepthRange(std::vector<double> range) = 0;
419  virtual std::vector<double> getUniformFogDepthRange() = 0;
420 
421  virtual void setUniformFogHeightMode(HOM_EnumValue &viewportFogHeightMode)=0;
422  virtual HOM_EnumValue &getUniformFogHeightMode() = 0;
423 
424  virtual void setUniformFogHeight(double h) = 0;
425  virtual double getUniformFogHeight() = 0;
426 
427  virtual void setUniformFogHeightFalloff(double h) = 0;
428  virtual double getUniformFogHeightFalloff() = 0;
429 
430  virtual void setUniformFogDepthClip(double depth) = 0;
431  virtual double getUniformFogDepthClip() = 0;
432 
433  virtual void setUniformFogUseSun(bool enable) = 0;
434  virtual bool getUniformFogUseSun() = 0;
435 
436  virtual void setUniformFogSunBloom(double bloom) = 0;
437  virtual double getUniformFogSunBloom() = 0;
438 
439  virtual void setUniformFogSunIntensity(double intensity) = 0;
440  virtual double getUniformFogSunIntensity() = 0;
441 
442  virtual void setVolumeFog(bool enable) = 0;
443  virtual bool getVolumeFog() = 0;
444 
445  virtual void setVolumeFogColor(std::vector<double> color) = 0;
446  virtual std::vector<double> getVolumeFogColor() = 0;
447 
448  virtual void setVolumeFogDensity(double density) = 0;
449  virtual double getVolumeFogDensity() = 0;
450 
451  virtual void setVolumeFogOpacity(double opacity) = 0;
452  virtual double getVolumeFogOpacity() = 0;
453 
454  virtual void setVolumeFogDepthRange(std::vector<double> range) = 0;
455  virtual std::vector<double> getVolumeFogDepthRange() = 0;
456 
457  virtual void setVolumeFogHeightMode(HOM_EnumValue &viewportFogHeightMode)=0;
458  virtual HOM_EnumValue &getVolumeFogHeightMode() = 0;
459 
460  virtual void setVolumeFogHeight(double h) = 0;
461  virtual double getVolumeFogHeight() = 0;
462 
463  virtual void setVolumeFogHeightFalloff(double h) = 0;
464  virtual double getVolumeFogHeightFalloff() = 0;
465 
466  virtual void setVolumeFogQuality(HOM_EnumValue &viewportFogQuality)=0;
467  virtual HOM_EnumValue &getVolumeFogQuality() = 0;
468 
469  virtual void setVolumeFogLightIntensity(double h) = 0;
470  virtual double getVolumeFogLightIntensity() = 0;
471 
472  virtual void setVolumeFogLightScattering(std::vector<double> scatter) = 0;
473  virtual std::vector<double> getVolumeFogLightScattering() = 0;
474 
475  virtual void setBloom(bool enable) = 0;
476  virtual bool getBloom() = 0;
477 
478  virtual void setBloomScale(double scale) = 0;
479  virtual double getBloomScale() = 0;
480 
481  virtual void setBloomIntensity(double i) = 0;
482  virtual double getBloomIntensity() = 0;
483 
484  virtual void setBloomThreshold(double i) = 0;
485  virtual double getBloomThreshold() = 0;
486 
487  virtual void setFogNode(HOM_Node *node) = 0;
488  SWIGOUT(%newobject getFogNode;)
489  virtual HOM_Node *getFogNode() = 0;
490 
491  // Grid tab ------------------------------------------------------------
492 
493  virtual void setDisplayOrthoGrid(bool enable) = 0;
494  virtual bool displayOrthoGrid() = 0;
495 
496  virtual void setOrthoGridOffset(std::vector<double> offset) = 0;
497  virtual std::vector<double> orthoGridOffset() = 0;
498 
499  virtual void setOrthoGridSpacing(std::vector<double> offset) = 0;
500  virtual std::vector<double> orthoGridSpacing() = 0;
501 
502  virtual void setOrthoGridRuler(std::vector<int> offset) = 0;
503  virtual std::vector<int> orthoGridRuler() = 0;
504 
505  virtual void setOrthoRuler(HOM_EnumValue &viewportGridRuler) = 0;
506  virtual HOM_EnumValue &orthoRuler() = 0;
507 
508  virtual void setUVReferenceGrid(bool enable) = 0;
509  virtual bool uvReferenceGrid() = 0;
510 
511  virtual void setUVDisplayGridOverImage(bool enable) = 0;
512  virtual bool uvReferenceGridOverImage() = 0;
513 
514  virtual void setUVGridPixelSpacing(std::vector<int> offset) = 0;
515  virtual std::vector<int> uvGridPixelSpacing() = 0;
516 
517  virtual void setUVGridPixelOffset(std::vector<double> offset) = 0;
518  virtual std::vector<double> uvGridPixelOffset() = 0;
519 
520  virtual void setClampUVGridToBackground(bool enable) = 0;
521  virtual bool clampUVGridToBackground() = 0;
522 
523  virtual void setDisplayUVTileBoundaries(bool enable) = 0;
524  virtual bool displayUVTileBoundaries() = 0;
525 
526  // Background tab ------------------------------------------------------
527 
528  virtual void setColorScheme(HOM_EnumValue &viewportColorScheme) = 0;
529  virtual HOM_EnumValue &colorScheme() = 0;
530  virtual HOM_Color colorFromName(const std::string &name) = 0;
531  virtual double alphaFromName(const std::string &name) = 0;
532 
533  SWIGOUT(%newobject backgroundImage;)
534  virtual HOM_GeometryViewportBackground *backgroundImage(
535  HOM_EnumValue &viewportBackgroundView,
536  int layer = 1) = 0;
537 
538  virtual void setDisplayBackgroundImage(bool enable) = 0;
539  virtual bool displayBackgroundImage() = 0;
540 
541  virtual void setDisplayEnvironmentBackgroundImage(bool enable) = 0;
542  virtual bool displayEnvironmentBackgroundImage() = 0;
543 
544  virtual void setFilterBackgroundImage(bool enable) = 0;
545  virtual bool filterBackgroundImage() = 0;
546 
547  virtual void setApplyZoomToBackgroundImage(bool enable) = 0;
548  virtual bool applyZoomToBackgroundImage() = 0;
549 
550  virtual void setBackgroundImageQuality(int quality) = 0;
551  virtual int backgroundImageQuality() = 0;
552 
553  // Texture tab --------------------------------------------------------
554 
555  virtual void setDisplayTextures(bool enable) = 0;
556  virtual bool displayTextures() = 0;
557 
558  virtual void setDisplayTextureLayers(bool enable) = 0;
559  virtual bool displayTextureLayers() = 0;
560 
561  virtual void setDisplayProjectedTextures(bool enable) = 0;
562  virtual bool displayProjectedTextures() = 0;
563 
564  virtual void setTextureMipmapping(bool enable) = 0;
565  virtual bool textureMipmapping() = 0;
566 
567  virtual void setTextureAnisotropicFilter(int num_samples) = 0;
568  virtual int textureAnisotropicFilter() = 0;
569 
570  virtual void setTextureCacheSize(int size_in_mb) = 0;
571  virtual int textureCacheSize() = 0;
572 
573  virtual void setTextureMaxMemory(int size_in_mb) = 0;
574  virtual int textureMaxMemory() = 0;
575 
576  virtual void setTextureAutoReduce(bool enable) = 0;
577  virtual bool textureAutoReduce() = 0;
578 
579  virtual void setTextureAutoReduce2D(bool enable) = 0;
580  virtual bool textureAutoReduce2D() = 0;
581 
582  virtual void setTextureAutoReduce3D(bool enable) = 0;
583  virtual bool textureAutoReduce3D() = 0;
584 
585  virtual void setTextureResLimit2D(bool enable) = 0;
586  virtual bool textureResLimit2D() = 0;
587 
588  virtual void setTextureMaxRes2D(std::vector<int> res) = 0;
589  virtual std::vector<int> textureMaxRes2D() = 0;
590 
591  virtual void setTextureBitDepthLimit2D(HOM_EnumValue &viewportTextureDepth)= 0;
592  virtual HOM_EnumValue &textureBitDepthLimit2D() = 0;
593 
594  virtual void setTextureScale2D(double scale) = 0;
595  virtual double textureScale2D() = 0;
596 
597  virtual void setTextureResLimit3D(bool enable) = 0;
598  virtual bool textureResLimit3D() = 0;
599 
600  virtual void setTexture2DSettingsFor3D(bool enable) = 0;
601  virtual bool texture2DSettingsFor3D() = 0;
602 
603  virtual void setTextureMaxRes3D(std::vector<int> res) = 0;
604  virtual std::vector<int> textureMaxRes3D() = 0;
605 
606  virtual void setTextureBitDepthLimit3D(HOM_EnumValue &viewportTextureDepth)= 0;
607  virtual HOM_EnumValue &textureBitDepthLimit3D() = 0;
608 
609  virtual void setTextureScale3D(double scale) = 0;
610  virtual double textureScale3D() = 0;
611 
612  // Optimize tab --------------------------------------------------------
613  virtual void useMaterialStylesheets(bool enable) = 0;
614  virtual bool usingMaterialStylesheets() = 0;
615 
616  virtual void usePerPrimStylesheets(bool enable) = 0;
617  virtual bool usingPerPrimStylesheets() = 0;
618 
619  virtual void usePackedStylesheets(bool enable) = 0;
620  virtual bool usingPackedStylesheets() = 0;
621 
622  virtual void useMaterialOverrides(bool enable) = 0;
623  virtual bool usingMaterialOverrides() = 0;
624 
625  virtual void setSingleObjectMaterialLimit(int num_materials) = 0;
626  virtual int singleObjectMaterialLimit() = 0;
627 
628  virtual void setMaterialUpdate(HOM_EnumValue &viewportMaterialUpdate) = 0;
629  virtual HOM_EnumValue &materialUpdate() = 0;
630 
631  virtual void setInteractiveMaterialUpdate(bool enable) = 0;
632  virtual bool interactiveMaterialUpdate() = 0;
633 
634  virtual void updateMaterials() = 0;
635 
636 
637  virtual void setVisibleObjects(const std::string &uv) = 0;
638  virtual std::string visibleObjects() = 0;
639 
640  virtual void setRemoveBackfaces(bool enable) = 0;
641  virtual bool removeBackfaces() = 0;
642 
643  virtual void setHullsOnly(bool enable) = 0;
644  virtual bool hullsOnly() = 0;
645 
646  virtual void setDistanceBasedPackedCulling(bool enable) = 0;
647  virtual bool distanceBasedPackedCulling() = 0;
648 
649  virtual void setScenePolygonLimit(int millions_of_polygons) = 0;
650  virtual int scenePolygonLimit() = 0;
651 
652  virtual void setPackedBoundingBoxMode(HOM_EnumValue &viewportPackedBoxMode) = 0;
653  virtual HOM_EnumValue &packedBoundingBoxMode() = 0;
654 
655  virtual void setOptimizeGeometry(bool enable) = 0;
656  virtual bool optimizeGeometry() = 0;
657 
658 
659  virtual void setAgentLODReduction(bool enable) = 0;
660  virtual bool agentLODReduction() = 0;
661 
662  virtual void setAgentLODReductionBias(int reduce_bias) = 0;
663  virtual int agentLODReductionBias() = 0;
664 
665  virtual void setAgentShapePointCutoff(int num_points) = 0;
666  virtual int agentShapePointCutoff() = 0;
667 
668  virtual void setMaxLODLevels(int num_levels) = 0;
669  virtual int maxLODLevels() = 0;
670 
671  virtual void setBaseLODLevel(int base_level) = 0;
672  virtual int baseLODLevel() = 0;
673 
674  virtual void setSingleBoneDeform(HOM_EnumValue &viewportAgentBoneDeform)=0;
675  virtual HOM_EnumValue &singleBoneDeform() = 0;
676 
677  virtual void setAgentWireframe(HOM_EnumValue &viewportAgentWireframe)=0;
678  virtual HOM_EnumValue &agentWireframe() = 0;
679 
680  virtual void setAgentBlendShapes(bool enable) = 0;
681  virtual bool agentBlendShapes() = 0;
682 };
683 
684 #endif
SIM_API const UT_StringHolder vertex
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLenum GLint * range
Definition: glcorearb.h:1925
SIM_API const UT_StringHolder angle
GA_API const UT_StringHolder uv
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLint level
Definition: glcorearb.h:108
GLdouble s
Definition: glad.h:3009
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glcorearb.h:2539
GLenum GLuint GLint GLint layer
Definition: glcorearb.h:1299
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
Definition: simd.h:4784
GA_API const UT_StringHolder scale
GLintptr offset
Definition: glcorearb.h:665
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLfloat GLfloat GLfloat alpha
Definition: glcorearb.h:112
HOM_GeometryViewportSettings(const HOM_GeometryViewportSettings &)
GLuint const GLchar * name
Definition: glcorearb.h:786
GLsizei samples
Definition: glcorearb.h:1298
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glcorearb.h:476
GLsizeiptr size
Definition: glcorearb.h:664
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2002
GLuint color
Definition: glcorearb.h:1261
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLint GLsizei width
Definition: glcorearb.h:103
Definition: core.h:1131
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T clip(const T &p, const Box< T > &box) IMATH_NOEXCEPT
Definition: ImathBoxAlgo.h:29