9 #ifndef __HOM_GeometryViewportSettings_h__
10 #define __HOM_GeometryViewportSettings_h__
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;
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;
73 virtual void setOffsetVertexMarkers(
bool enable) = 0;
74 virtual bool offsetVertexMarkers() = 0;
82 virtual void levelOfDetail(
double value) = 0;
83 virtual double levelOfDetail() = 0;
89 virtual void volumeAmbientShadows(
double s) = 0;
90 virtual double volumeAmbientShadows() = 0;
95 virtual void volumeWireAsPoints(
bool as_points) = 0;
96 virtual bool volumeWireAsPoints() = 0;
98 virtual void polygonConvexQuality(
bool quality) = 0;
99 virtual bool polygonConvexQuality() = 0;
101 virtual void subdivsionLimit(
int limit_in_millions) = 0;
102 virtual int subdivsionLimit() = 0;
104 virtual void wireWidth(
double width) = 0;
105 virtual double wireWidth() = 0;
107 virtual void wireBlend(
double blend) = 0;
108 virtual double wireBlend() = 0;
110 virtual void interiorWireAlpha(
double alpha) = 0;
111 virtual double interiorWireAlpha() = 0;
113 virtual void shadeOpenCurves(
bool shade) = 0;
114 virtual bool shadeOpenCurves() = 0;
116 virtual void selectWireframeAsSolid(
bool as_solid) = 0;
117 virtual bool selectWireframeAsSolid() = 0;
119 virtual void setWireOverPackedGeo(
bool wire_over_packed) = 0;
120 virtual bool wireOverPackedGeo() = 0;
124 virtual void particleDisplayType(
HOM_EnumValue &quality) = 0;
127 virtual void allowParticleSprites(
bool sprites) = 0;
128 virtual bool allowParticleSprites() = 0;
130 virtual void particlePointSize(
double size) = 0;
131 virtual double particlePointSize() = 0;
133 virtual void particleDiscSize(
double size) = 0;
134 virtual double particleDiscSize() = 0;
136 virtual void orientDiscToNormal(
bool n_orient) = 0;
137 virtual bool orientDiscToNormal() = 0;
139 virtual void spriteTextureLimit(std::vector<int> &max_res)
141 virtual std::vector<int> spriteTextureLimit() = 0;
144 virtual void pointInstancing(
bool enable) = 0;
145 virtual bool pointInstancing() = 0;
147 virtual void pointInstancingPercent(
double show_instances) = 0;
148 virtual double pointInstancingPercent() = 0;
150 virtual void pointInstancingLimit(
int millions_of_instances) = 0;
151 virtual int pointInstancingLimit() = 0;
154 virtual void instanceStandInGeometry(
HOM_EnumValue &standin) = 0;
157 virtual void autoGenerateVertexNormals(
bool vertex) = 0;
158 virtual bool autoGenerateVertexNormals() = 0;
160 virtual void vertexNormalCuspAngle(
double angle) = 0;
161 virtual double vertexNormalCuspAngle() = 0;
163 virtual void vertexNormalLimit(
int millions_of_polys) = 0;
164 virtual int vertexNormalLimit() = 0;
168 virtual void setSceneAntialias(
int aa) = 0;
169 virtual int sceneAntialias() = 0;
171 virtual void setHdrRendering(
bool hdr) = 0;
172 virtual bool hdrRendering() = 0;
174 virtual void setXrayDrawing(
bool global_enable) = 0;
175 virtual bool xrayDrawing() = 0;
177 virtual void setXrayQuality(
bool quality) = 0;
178 virtual bool xrayQuality() = 0;
180 virtual void setXrayStrength(
double strength) = 0;
181 virtual double xrayStrength() = 0;
183 virtual void setObjectOrigins(
bool globel_enable) = 0;
184 virtual bool objectOrigins() = 0;
186 virtual void setOnionSkinning(
bool global_enable) = 0;
187 virtual bool onionSkinning() = 0;
189 virtual void setOnionSkinFramesBeforeCount(
int num_frames) = 0;
190 virtual int onionSkinFramesBeforeCount() = 0;
192 virtual void setOnionSkinFramesBeforeTint(
HOM_Color &tint) = 0;
193 virtual HOM_Color onionSkinFramesBeforeTint() = 0;
195 virtual void setOnionSkinFramesAfterCount(
int num_frames) = 0;
196 virtual int onionSkinFramesAfterCount() = 0;
198 virtual void setOnionSkinFramesAfterTint(
HOM_Color &tint) = 0;
199 virtual HOM_Color onionSkinFramesAfterTint() = 0;
201 virtual void setOnionSkinFrameIncrement(
int frame_increment) = 0;
202 virtual int onionSkinFrameIncrement() = 0;
204 virtual void setOnionSkinOpacity(
double opacity) = 0;
205 virtual double onionSkinOpacity() = 0;
207 virtual void setSceneGamma(
double gamma) = 0;
208 virtual double sceneGamma() = 0;
210 virtual void setUseSceneLUT(
bool enable) = 0;
211 virtual bool useSceneLUT() = 0;
213 virtual void setSceneLUT(
std::string lut_file) = 0;
216 virtual void setBackgroundImageGammaLUT(
bool apply_to_bg) = 0;
217 virtual bool backgroundImageGammaLUT() = 0;
219 virtual void setDepthOfField(
bool enable) = 0;
220 virtual bool getDepthOfField() = 0;
222 virtual void setDepthOfFieldBokeh(
HOM_EnumValue &viewportDOFBokeh) = 0;
225 virtual void setDepthOfFieldBokehTexture(
std::string file_or_node) = 0;
226 virtual std::string getDepthOfFieldBokehTexture() = 0;
228 virtual void setDepthOfFieldBokehBoost(
double boost) = 0;
229 virtual double getDepthOfFieldBokehBoost() = 0;
231 virtual void setDepthOfFieldBokehAspect(
double aspect) = 0;
232 virtual double getDepthOfFieldBokehAspect() = 0;
236 virtual void showsName(
bool show) = 0;
237 virtual bool showName() = 0;
239 virtual void showsCameraName(
bool show) = 0;
240 virtual bool showCameraName() = 0;
242 virtual void showsStateStatus(
bool show) = 0;
243 virtual bool showStateStatus() = 0;
245 virtual void showsBadges(
bool show) = 0;
246 virtual bool showBadges() = 0;
248 virtual void useAspectRatio(
bool enable) = 0;
249 virtual bool usingAspectRatio() = 0;
251 virtual void setAspectRatio(
double aspect) = 0;
252 virtual double aspectRatio() = 0;
254 virtual void setViewMaskOpacity(
double opacity) = 0;
255 virtual double viewMaskOpacity() = 0;
257 virtual void setStereoMode(
HOM_EnumValue &viewportStereoMode) = 0;
260 virtual void setHomeAutoAdjustsClip(
HOM_EnumValue &viewportHomeClipMode)= 0;
263 virtual void setClipPlanes(std::vector<double>
clip) = 0;
264 virtual std::vector<double> clipPlanes() = 0;
266 virtual void setMinHomeSize(
double min_size) = 0;
267 virtual double minHomeSize() = 0;
269 virtual void setUVDisplayAttribute(
const std::string &
uv) = 0;
272 virtual void setUVAutoAttribute(
bool detect) = 0;
273 virtual bool uvAutoAttribute() = 0;
275 virtual void setUVVertexType(
bool is_vertex_uv) = 0;
276 virtual bool uvVertexType() = 0;
278 virtual void setUVMapTexture(
const std::string &uv_file) = 0;
281 virtual void setUVMapScale(
double uv_scale) = 0;
282 virtual double uvMapScale() = 0;
286 virtual void setLighting(
HOM_EnumValue &viewportLighting) = 0;
289 virtual void showDiffuse(
bool enable) = 0;
290 virtual bool showingDiffuse() = 0;
292 virtual void showSpecular(
bool enable) = 0;
293 virtual bool showingSpecular() = 0;
295 virtual void showAmbient(
bool enable) = 0;
296 virtual bool showingAmbient() = 0;
298 virtual void showEmission(
bool enable) = 0;
299 virtual bool showingEmission() = 0;
301 virtual void setLightSampling(
int num_samples) = 0;
302 virtual int lightSampling() = 0;
304 virtual void setMaxLightSamples(
int samples) = 0;
305 virtual int maxLightSamples() = 0;
307 virtual void setLightLimit(
int limit) = 0;
308 virtual int getLightLimit() = 0;
310 virtual void setHeadlightIntensity(
double intensity) = 0;
311 virtual double headlightIntensity() = 0;
313 virtual void setHeadlightDirection(std::vector<double> dir) = 0;
314 virtual std::vector<double> headlightDirection() = 0;
316 virtual void setHeadlightSpecular(
bool enable) = 0;
317 virtual bool headlightSpecular() = 0;
319 virtual void setHeadlightOcclusion(
bool enable) = 0;
320 virtual bool headlightOcclusion() = 0;
322 virtual void setAmbientOcclusion(
bool enable) = 0;
323 virtual bool ambientOcclusion() = 0;
325 virtual void setAmbientOcclusionLevel(
int level) = 0;
326 virtual int ambientOcclusionLevel() = 0;
328 virtual void setShadowQuality(
HOM_EnumValue &viewportShadowQuality) = 0;
331 virtual void setShadowSensitivity(std::vector<int>
offset) = 0;
332 virtual std::vector<int> shadowSensitivity() = 0;
334 virtual void setShadowMapSize(
int size) = 0;
335 virtual int shadowMapSize() = 0;
337 virtual void setShadowMapSizeFromLight(
bool enable) = 0;
338 virtual bool shadowMapSizeFromLight() = 0;
340 virtual void setShadowMapMem(
int mem_in_mb) = 0;
341 virtual int getShadowMapMem() = 0;
343 virtual void setShadowMapTime(
double time_in_sec) = 0;
344 virtual double getShadowMapTime() = 0;
346 virtual void useReflections(
bool enable) = 0;
347 virtual bool usingReflections() = 0;
349 virtual void setHdrReflections(
bool hdr_reflect) = 0;
350 virtual bool hdrReflections() = 0;
352 virtual void setReflectMapSize(
int size) = 0;
353 virtual int reflectMapSize() = 0;
355 virtual void setMinReflectAmount(
double min_reflect) = 0;
356 virtual double minReflectAmount() = 0;
358 virtual void setFastInteractiveSampling(
bool fast) = 0;
359 virtual bool fastInteractiveSampling() = 0;
364 virtual void showMaterials(
bool enable) = 0;
365 virtual bool showingMaterials() = 0;
367 virtual void showGeometryColor(
bool enable) = 0;
368 virtual bool showingGeometryColor() = 0;
370 virtual void useTransparency(
bool enable) = 0;
371 virtual bool usingTransparency() = 0;
373 virtual void setTransparencyQuality(
HOM_EnumValue &viewportTransparency) = 0;
376 virtual void useDisplacement(
bool enable) = 0;
377 virtual bool usingDisplacement() = 0;
379 virtual void setDisplacementLevel(
double level) = 0;
380 virtual double displacementLevel() = 0;
382 virtual void setDefaultMaterialDiffuse(
HOM_Color &tint) = 0;
383 virtual HOM_Color defaultMaterialDiffuse() = 0;
385 virtual void setDefaultMaterialSpecular(
HOM_Color &tint) = 0;
386 virtual HOM_Color defaultMaterialSpecular() = 0;
388 virtual void setDefaultMaterialAmbient(
HOM_Color &tint) = 0;
389 virtual HOM_Color defaultMaterialAmbient() = 0;
391 virtual void setDefaultMaterialEmission(
HOM_Color &tint) = 0;
392 virtual HOM_Color defaultMaterialEmission() = 0;
394 virtual void setDefaultMaterialMatCapFile(
const std::string &filepath) = 0;
395 virtual std::string getDefaultMaterialMatCapFile() = 0;
397 virtual void setDefaultMaterialMatCapIntensity(
double i) = 0;
398 virtual double getDefaultMaterialMatCapIntensity() = 0;
400 virtual void setDefaultMaterialType(
HOM_EnumValue &viewportDefaultMaterial)=0;
406 virtual void setUniformFog(
bool enable) = 0;
407 virtual bool getUniformFog() = 0;
409 virtual void setUniformFogColor(std::vector<double>
color) = 0;
410 virtual std::vector<double> getUniformFogColor() = 0;
412 virtual void setUniformFogDensity(
double density) = 0;
413 virtual double getUniformFogDensity() = 0;
415 virtual void setUniformFogOpacity(
double opacity) = 0;
416 virtual double getUniformFogOpacity() = 0;
418 virtual void setUniformFogDepthRange(std::vector<double>
range) = 0;
419 virtual std::vector<double> getUniformFogDepthRange() = 0;
421 virtual void setUniformFogHeightMode(
HOM_EnumValue &viewportFogHeightMode)=0;
424 virtual void setUniformFogHeight(
double h) = 0;
425 virtual double getUniformFogHeight() = 0;
427 virtual void setUniformFogHeightFalloff(
double h) = 0;
428 virtual double getUniformFogHeightFalloff() = 0;
430 virtual void setUniformFogDepthClip(
double depth) = 0;
431 virtual double getUniformFogDepthClip() = 0;
433 virtual void setUniformFogUseSun(
bool enable) = 0;
434 virtual bool getUniformFogUseSun() = 0;
436 virtual void setUniformFogSunBloom(
double bloom) = 0;
437 virtual double getUniformFogSunBloom() = 0;
439 virtual void setUniformFogSunIntensity(
double intensity) = 0;
440 virtual double getUniformFogSunIntensity() = 0;
442 virtual void setVolumeFog(
bool enable) = 0;
443 virtual bool getVolumeFog() = 0;
445 virtual void setVolumeFogColor(std::vector<double>
color) = 0;
446 virtual std::vector<double> getVolumeFogColor() = 0;
448 virtual void setVolumeFogDensity(
double density) = 0;
449 virtual double getVolumeFogDensity() = 0;
451 virtual void setVolumeFogOpacity(
double opacity) = 0;
452 virtual double getVolumeFogOpacity() = 0;
454 virtual void setVolumeFogDepthRange(std::vector<double>
range) = 0;
455 virtual std::vector<double> getVolumeFogDepthRange() = 0;
457 virtual void setVolumeFogHeightMode(
HOM_EnumValue &viewportFogHeightMode)=0;
460 virtual void setVolumeFogHeight(
double h) = 0;
461 virtual double getVolumeFogHeight() = 0;
463 virtual void setVolumeFogHeightFalloff(
double h) = 0;
464 virtual double getVolumeFogHeightFalloff() = 0;
466 virtual void setVolumeFogQuality(
HOM_EnumValue &viewportFogQuality)=0;
469 virtual void setVolumeFogLightIntensity(
double h) = 0;
470 virtual double getVolumeFogLightIntensity() = 0;
472 virtual void setVolumeFogLightScattering(std::vector<double> scatter) = 0;
473 virtual std::vector<double> getVolumeFogLightScattering() = 0;
475 virtual void setBloom(
bool enable) = 0;
476 virtual bool getBloom() = 0;
478 virtual void setBloomScale(
double scale) = 0;
479 virtual double getBloomScale() = 0;
481 virtual void setBloomIntensity(
double i) = 0;
482 virtual double getBloomIntensity() = 0;
484 virtual void setBloomThreshold(
double i) = 0;
485 virtual double getBloomThreshold() = 0;
487 virtual void setFogNode(
HOM_Node *node) = 0;
488 SWIGOUT(%newobject getFogNode;)
493 virtual void setDisplayOrthoGrid(
bool enable) = 0;
494 virtual bool displayOrthoGrid() = 0;
496 virtual void setOrthoGridOffset(std::vector<double>
offset) = 0;
497 virtual std::vector<double> orthoGridOffset() = 0;
499 virtual void setOrthoGridSpacing(std::vector<double>
offset) = 0;
500 virtual std::vector<double> orthoGridSpacing() = 0;
502 virtual void setOrthoGridRuler(std::vector<int>
offset) = 0;
503 virtual std::vector<int> orthoGridRuler() = 0;
505 virtual void setOrthoRuler(
HOM_EnumValue &viewportGridRuler) = 0;
508 virtual void setUVReferenceGrid(
bool enable) = 0;
509 virtual bool uvReferenceGrid() = 0;
511 virtual void setUVDisplayGridOverImage(
bool enable) = 0;
512 virtual bool uvReferenceGridOverImage() = 0;
514 virtual void setUVGridPixelSpacing(std::vector<int>
offset) = 0;
515 virtual std::vector<int> uvGridPixelSpacing() = 0;
517 virtual void setUVGridPixelOffset(std::vector<double>
offset) = 0;
518 virtual std::vector<double> uvGridPixelOffset() = 0;
520 virtual void setClampUVGridToBackground(
bool enable) = 0;
521 virtual bool clampUVGridToBackground() = 0;
523 virtual void setDisplayUVTileBoundaries(
bool enable) = 0;
524 virtual bool displayUVTileBoundaries() = 0;
528 virtual void setColorScheme(
HOM_EnumValue &viewportColorScheme) = 0;
533 SWIGOUT(%newobject backgroundImage;)
538 virtual void setDisplayBackgroundImage(
bool enable) = 0;
539 virtual bool displayBackgroundImage() = 0;
541 virtual void setDisplayEnvironmentBackgroundImage(
bool enable) = 0;
542 virtual bool displayEnvironmentBackgroundImage() = 0;
544 virtual void setFilterBackgroundImage(
bool enable) = 0;
545 virtual bool filterBackgroundImage() = 0;
547 virtual void setApplyZoomToBackgroundImage(
bool enable) = 0;
548 virtual bool applyZoomToBackgroundImage() = 0;
550 virtual void setBackgroundImageQuality(
int quality) = 0;
551 virtual int backgroundImageQuality() = 0;
555 virtual void setDisplayTextures(
bool enable) = 0;
556 virtual bool displayTextures() = 0;
558 virtual void setDisplayTextureLayers(
bool enable) = 0;
559 virtual bool displayTextureLayers() = 0;
561 virtual void setDisplayProjectedTextures(
bool enable) = 0;
562 virtual bool displayProjectedTextures() = 0;
564 virtual void setTextureMipmapping(
bool enable) = 0;
565 virtual bool textureMipmapping() = 0;
567 virtual void setTextureAnisotropicFilter(
int num_samples) = 0;
568 virtual int textureAnisotropicFilter() = 0;
570 virtual void setTextureCacheSize(
int size_in_mb) = 0;
571 virtual int textureCacheSize() = 0;
573 virtual void setTextureMaxMemory(
int size_in_mb) = 0;
574 virtual int textureMaxMemory() = 0;
576 virtual void setTextureAutoReduce(
bool enable) = 0;
577 virtual bool textureAutoReduce() = 0;
579 virtual void setTextureAutoReduce2D(
bool enable) = 0;
580 virtual bool textureAutoReduce2D() = 0;
582 virtual void setTextureAutoReduce3D(
bool enable) = 0;
583 virtual bool textureAutoReduce3D() = 0;
585 virtual void setTextureResLimit2D(
bool enable) = 0;
586 virtual bool textureResLimit2D() = 0;
588 virtual void setTextureMaxRes2D(std::vector<int> res) = 0;
589 virtual std::vector<int> textureMaxRes2D() = 0;
591 virtual void setTextureBitDepthLimit2D(
HOM_EnumValue &viewportTextureDepth)= 0;
594 virtual void setTextureScale2D(
double scale) = 0;
595 virtual double textureScale2D() = 0;
597 virtual void setTextureResLimit3D(
bool enable) = 0;
598 virtual bool textureResLimit3D() = 0;
600 virtual void setTexture2DSettingsFor3D(
bool enable) = 0;
601 virtual bool texture2DSettingsFor3D() = 0;
603 virtual void setTextureMaxRes3D(std::vector<int> res) = 0;
604 virtual std::vector<int> textureMaxRes3D() = 0;
606 virtual void setTextureBitDepthLimit3D(
HOM_EnumValue &viewportTextureDepth)= 0;
609 virtual void setTextureScale3D(
double scale) = 0;
610 virtual double textureScale3D() = 0;
613 virtual void useMaterialStylesheets(
bool enable) = 0;
614 virtual bool usingMaterialStylesheets() = 0;
616 virtual void usePerPrimStylesheets(
bool enable) = 0;
617 virtual bool usingPerPrimStylesheets() = 0;
619 virtual void usePackedStylesheets(
bool enable) = 0;
620 virtual bool usingPackedStylesheets() = 0;
622 virtual void useMaterialOverrides(
bool enable) = 0;
623 virtual bool usingMaterialOverrides() = 0;
625 virtual void setSingleObjectMaterialLimit(
int num_materials) = 0;
626 virtual int singleObjectMaterialLimit() = 0;
628 virtual void setMaterialUpdate(
HOM_EnumValue &viewportMaterialUpdate) = 0;
631 virtual void setInteractiveMaterialUpdate(
bool enable) = 0;
632 virtual bool interactiveMaterialUpdate() = 0;
634 virtual void updateMaterials() = 0;
640 virtual void setRemoveBackfaces(
bool enable) = 0;
641 virtual bool removeBackfaces() = 0;
643 virtual void setHullsOnly(
bool enable) = 0;
644 virtual bool hullsOnly() = 0;
646 virtual void setDistanceBasedPackedCulling(
bool enable) = 0;
647 virtual bool distanceBasedPackedCulling() = 0;
649 virtual void setScenePolygonLimit(
int millions_of_polygons) = 0;
650 virtual int scenePolygonLimit() = 0;
652 virtual void setPackedBoundingBoxMode(
HOM_EnumValue &viewportPackedBoxMode) = 0;
655 virtual void setOptimizeGeometry(
bool enable) = 0;
656 virtual bool optimizeGeometry() = 0;
659 virtual void setAgentLODReduction(
bool enable) = 0;
660 virtual bool agentLODReduction() = 0;
662 virtual void setAgentLODReductionBias(
int reduce_bias) = 0;
663 virtual int agentLODReductionBias() = 0;
665 virtual void setAgentShapePointCutoff(
int num_points) = 0;
666 virtual int agentShapePointCutoff() = 0;
668 virtual void setMaxLODLevels(
int num_levels) = 0;
669 virtual int maxLODLevels() = 0;
671 virtual void setBaseLODLevel(
int base_level) = 0;
672 virtual int baseLODLevel() = 0;
674 virtual void setSingleBoneDeform(
HOM_EnumValue &viewportAgentBoneDeform)=0;
677 virtual void setAgentWireframe(
HOM_EnumValue &viewportAgentWireframe)=0;
680 virtual void setAgentBlendShapes(
bool enable) = 0;
681 virtual bool agentBlendShapes() = 0;
SIM_API const UT_StringHolder vertex
virtual ~HOM_GeometryViewportSettings()
#define HOM_DESTRUCT_OBJECT(pointer)
SIM_API const UT_StringHolder angle
GA_API const UT_StringHolder uv
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum GLuint GLint GLint layer
HOM_GeometryViewportSettings()
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
GA_API const UT_StringHolder scale
#define HOM_CONSTRUCT_OBJECT(pointer)
GLfloat GLfloat GLfloat alpha
HOM_GeometryViewportSettings(const HOM_GeometryViewportSettings &)
GLuint const GLchar * name
GLint GLint GLsizei GLsizei GLsizei depth
GLfloat GLfloat GLfloat GLfloat h
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T clip(const T &p, const Box< T > &box) IMATH_NOEXCEPT