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