ViewerSettingStrings¶
Enumeration ViewerSettingStrings
Index
Enumeration Members
Enumeration Members
AA_ SETTING_ ENABLED
Defines whether the screen space anti-aliasing is enabled or not. Fast approximate anti-aliasing (FXAA) is used to smooth the edges of the rendered geometry. Compared to temporal anti-aliasing (TAA), FXAA has a lower quality but also a lower performance impact.
BACKGROUND_ COLOR
Defines the current background color.
See
Property.APPEARANCE_URI for a definition of valid color strings.
ExperimentalBUDGETING_ MODE
-
- Defines the budgeting mode used for rendering objects.
See
- BudgetingMode for available modes. *
- BudgetingMode.FRAMERATE_BASED uses BUDGETING_TARGET_FRAMERATE to set the target framerate. *
ExperimentalBUDGETING_ TARGET_ FRAMERATE
Defines the budgeting target framerate used for rendering objects. The viewer adjusts the rendering load to hit the specified target framerate.
CAMERA_ FIELD_ OF_ VIEW
Defines the camera field of view in degrees.
CAPPING_ EFFECT_ EDGE_ COLOR
Defines the edge color of the capping effect.
See
- CAPPING_EFFECT_ENABLED
- Property.APPEARANCE_URI for a definition of valid color strings.
CAPPING_ EFFECT_ ENABLED
Defines whether the capping effect is enabled or not.
This effect highlights the geometry at the position of a clipplane. This helps distinguishing between solid parts and true hollow spaces.
CAPPING_ EFFECT_ INNER_ COLOR
Defines the inner color of the capping effect.
See
- CAPPING_EFFECT_ENABLED
- Property.APPEARANCE_URI for a definition of valid color strings.
COLOR_ COMPARISON_ FIRST_ COLOR
Defines the first color for the 3-color-comparison.
See
- Property.COMPARISON_GROUP
- ViewerAPI.enterColorCompareMode
- Property.APPEARANCE_URI for a definition of valid color strings.
COLOR_ COMPARISON_ MATCHING_ COLOR
Defines the matching color for the 3-color-comparison.
See
- Property.COMPARISON_GROUP
- ViewerAPI.enterColorCompareMode
- Property.APPEARANCE_URI for a definition of valid color strings.
COLOR_ COMPARISON_ SECOND_ COLOR
Defines the second color for the 3-color-comparison.
See
- Property.COMPARISON_GROUP
- ViewerAPI.enterColorCompareMode
- Property.APPEARANCE_URI for a definition of valid color strings.
COLORIZE_ EFFECT_ ENABLED
Defines whether the random colorize effect is enabled or not.
The random colorize effect applies a different color to every instance of resource. For monolithic models, you will only have one color. For models with linked parts, those linked parts will have different colors.
COORDINATE_ SYSTEM
Defines the front plane of the model for use with the UI elements.
Deprecated
Please use the SettingStrings.FRONT_PLANE_AXIS setting with the SettingsAPI.changeSetting function of the ContextAPI instead.
DISABLE_ SPECULAR_ HIGHLIGHT
Defines whether a viewer shows specular highlighting or not.
DOUBLE_ CLICK_ ANIMATION_ VOLUME_ SCALE
Defines the factor by which volumes are scaled with during double-click animations, affecting the zoom level and the area that the camera will focus on.
This setting only has an effect if either FOCUS_ON_DOUBLE_CLICK or FLYTO_ON_DOUBLECLICK_ENABLED is set to true.
DOUBLE_ CLICK_ TIME_ WINDOW
Defines the time window for a double-click in milliseconds.
DRAWING_ ARROWHEAD_ END
Defines the arrow head at the end of a drawing.
DRAWING_ ARROWHEAD_ START
Defines the arrow head at the start of a drawing.
DRAWING_ COLOR
Defines the drawing color.
See
- ViewerDrawingAPI
- Property.APPEARANCE_URI for a definition of valid color strings.
DRAWING_ MODE
Defines the drawing mode.
DRAWING_ SIZE
Defines the drawing size in pixels.
Please note that we always add 2 pixels to the drawing size.
DYNAMIC_ AUX_ CONTRAST_ ENABLED
Defines whether the dynamic contrast for auxiliary geometries is enabled or not. If enabled, this will change the color of AUX nodes based on the contrast with the background for better legibility.
DYNAMIC_ CLIPPING_ DISTANCE
Defines the dynamic clipping distance in meters. Every part that is closer to the camera then this value will be clipped.
DYNAMIC_ CLIPPING_ ENABLED
Defines whether dynamic clipping is enabled or not. Every part that is closer to the camera than the value defined in DYNAMIC_CLIPPING_DISTANCE will be clipped.
DYNAMIC_ COR_ ENABLED
Defines whether the dynamic center of rotation (COR) is enabled or not. If disabled, the center of rotation will always be the origin. If enabled, the center of rotation will be the point at which the user clicked when starting the rotation (only applies if the user clicked on the geometry).
EXPAND_ ON_ VIEWER_ SELECTION
Defines whether or not a subtree should be expanded to the leaf when selected in the viewer.
Usually, users can only select parts that are currently known to webvis. By
expanding a node (that has linked parts associated to it), its child nodes
will be downloaded and can be selected in the viewer.
Changing this setting to true will automatically expand the
parent nodes and select the leaf node that was clicked.
FACE_ HIGHLIGHT_ COLOR
Defines the color to be used to indicate faces in the 3D view that are highlighted via the ViewerHighlightAPI (for instance during a measurement).
See
- ViewerHighlightAPI
- Property.APPEARANCE_URI for a definition of valid color strings.
FACE_ SELECTION_ COLOR
Defines the color to be used to indicate selected faces in the 3D view.
See
Property.APPEARANCE_URI for a definition of valid color strings.
FIT_ VIEW_ FACTOR
Defines the factor for view fitting. The factor defines the percentage of the screen that should be covered at maximum by the geometry, per axis. The larger value of the two axes (x and y) will be used. A value of 0.6 for instance means that the geometry will cover at most 60% of the screen both horizontally and vertically.
FLY_ NAVIGATION_ SPEED
Defines the speed for the fly navigation mode.
FLYTO_ ON_ DOUBLECLICK_ ENABLED
Defines whether or not to fit the camera to the clicked node on double-click.
FOCUS_ ON_ DOUBLE_ CLICK
Defines whether a viewer should focus on a part on double-click.
FRUSTUM_ CULLING
Defines whether camera frustum culling is enabled or not. If enabled, parts not visible by the camera will be excluded from rendering to improve performance.
ExperimentalGHOSTED_ SCENE_ OPACITY
Defines the opacity of the ghosted scene for the geometry that is not occluded by the main scene.
GIZMO_ AXIS_ LABELS_ ENABLED
Defines whether the axis labels of the gizmos are enabled or not. Axis labels are only available for translation and scaling gizmos yet.
GIZMO_ SCALING_ FACTOR
Defines the scaling factor for the size of gizmo geometries.
GIZMOS_ ENABLED
Defines whether the gizmos for manipulating 3D entities in the viewer are enabled or not.
GPU_ MEMORY_ RELEASE_ FACTOR
Defines the percentage of the GPU memory that is released when the memory limit is reached.
HOVER_ COLOR
Defines the color to be displayed when hovering the mouse over geometry.
See
Property.APPEARANCE_URI for a definition of valid color strings.
INIT_ VIEW
Defines a view matrix to set on start.
Value Type
[number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] | Float32Array | undefined
See
ViewerAPI.restoreInitView to restore this initial view.
INITIAL_ FIT
Defines whether or not to fit the view to all visible models when a node's ENABLED property changes. If active, it also refits when new 3D data is being streamed in. Please note that once the view is updated afterwards, for instance by moving the camera, and at any mouse down event, the initial fit will be disabled. To re-enable it, the setting has to be set again.
INITIAL_ FIT_ DIRECTION
Defines the direction which is used for the initial view fitting
INVERT_ ZOOM_ DIRECTION
Defines whether the mouse zoom direction is inverted or not.
LIGHTING_ ENVIRONMENT
Defines the viewer's lighting environment.
LINE_ HIGHLIGHT_ COLOR
Defines the color to be used to indicate lines in the 3D view that are highlighted via the ViewerHighlightAPI (for instance during a measurement).
See
- ViewerHighlightAPI
- Property.APPEARANCE_URI for a definition of valid color strings.
LINE_ SELECTION_ COLOR
Defines the color to be used to indicate selected lines in the 3D view.
See
Property.APPEARANCE_URI for a definition of valid color strings.
MAX_ DYNAMIC_ CLIP_ DIST
Defines the maximum dynamic clipping distance.
MAX_ GPU_ MEMORY
Defines the limit for the GPU memory in megabytes.
MAX_ SRC_ MEMORY
Defines the limit for the CPU-side memory (RAM) in megabytes.
NAVIGATION_ MODE
Defines the current navigation mode.
NAVIGATION_ SAMPLING
Defines the sampling factor (viewport scale) during navigation. This setting is meant as an optional optimization that allows for rendering in a lower resolution during navigation.
NAVIGATION_ SPEED_ FACTOR
Defines the navigation speed factor (sensitivity).
NAVIGATION_ SPEED_ THROTTLE_ FACTOR
Defines the factor to throttle the navigation speed when the modifier key is pressed (throttled sensitivity).
ExperimentalOUTLINE_ COLOR
Defines the color of the outline.
See
- Property.OUTLINED
- Property.APPEARANCE_URI for a definition of valid color strings.
ExperimentalOUTLINE_ COLOR_ OCCLUDED
Defines the color of the outline for occluded parts.
See
- Property.OUTLINED
- Property.APPEARANCE_URI for a definition of valid color strings.
ExperimentalOUTLINE_ INNER_ RADIUS
Defines the inner outline radius in pixels (the offset between a part and its outline).
outlineWidth = outlineOuterRadius - outlineInnerRadius
ExperimentalOUTLINE_ OUTER_ RADIUS
Defines the outer outline radius in pixels:
outlineWidth = outlineOuterRadius - outlineInnerRadius
PRE_ SELECTION_ COLOR
Defines the color to be used to indicate the parts the user is interacting with in the 3D scene. This color is used for highlighting parts once the user has clicked on them and before the selection is active.
See
Property.APPEARANCE_URI for a definition of valid color strings.
PROJECTION_ TYPE
Defines the type of camera projection.
RENDER_ AUXILIARY_ ON_ TOP
Defines whether a viewer renders auxiliaries on top or not.
RENDER_ MODE
Defines the render mode of the viewer.
Please note, that if the Property.RENDER_MODE is set on a specific node, this setting will be overridden.
RENDER_ SETUP
Defines the render setup.
SCENE_ OPACITY
Sets the overall opacity of the rendered scene. This setting is useful in XR applications to allow the user to see tracked real world objects behind the rendered scene.
Possible values range from 0.0 to 1.0, where 1.0 means the scene is fully opaque and 0.0 means the scene is fully transparent.
SCREEN_ SPACE_ COVERAGE_ CALCULATION_ METHOD
Defines how the screen space coverage of parts, which is used for the small feature culling, is calculated.
SELECTION_ COLOR
Defines the color to be used to indicate selected parts in the 3D view.
See
Property.APPEARANCE_URI for a definition of valid color strings.
SHOW_ AUX_ ON_ NAVIGATION
Defines whether a viewer shows the auxiliary geometries during navigation or not
SILHOUETTE_ EFFECT_ COLOR
Defines the color of the silhouette rendering effect.
See
- SILHOUETTE_EFFECT_ENABLED
- SILHOUETTE_EFFECT_EXCLUSIVE_ENABLED
- Property.APPEARANCE_URI for a definition of valid color strings.
SILHOUETTE_ EFFECT_ ENABLED
Defines whether the silhouette rendering effect is enabled or not.
SILHOUETTE_ EFFECT_ EXCLUSIVE_ ENABLED
Defines whether only the silhouettes should be rendered or not.
SMALL_ FEATURE_ CULLING
Defines whether small feature culling is enabled or not.
SMALL_ FEATURE_ PIXEL_ THRESHOLD
Defines the threshold for small feature culling in pixels. Every part which would be rendered smaller than this threshold will be culled.
SOFTWAR_ OCCLUSION_ CULLING
Defines whether software occlusion culling is enabled or not. Before downloading a resource, the viewer will check if the resource is occluded by other geometry which is already rendered. If this is the case, the resource will not be downloaded.
SPACEMOUSE_ MULTIPLIER
Defines the multiplier used to adjust the space mouse sensitivity.
SSAO_ ENABLED
Defines whether screen space ambient occlusion (SSAO) is enabled or not.
TAA_ ENABLED
Defines whether temporal anti-aliasing (TAA) is enabled or not. TAA is only available in static scenes. It is disabled in the following cases:
- During camera movement, due to the camera not being static. This means TAA is not available in AR.
- While downloads are active, the scene must be redrawn every time a new object is loaded.
- If GPU memory/CPU time is exceeded, it is not possible to render the whole scene in a single frame. Applying TAA becomes too complex in this case.
TAA will automatically be re-enabled once the scene is static again.
TOPO_ GEOMETRY_ COLOR
Defines the color for the topological geometry.
See
- Property.APPEARANCE_URI for a definition of valid color strings.
- ViewerSettingStrings.RENDER_MODE
- RenderMode.Topology
TOPO_ GEOMETRY_ SECONDARY_ COLOR
Defines the secondary color for the topological geometry.
See
- Property.APPEARANCE_URI for a definition of valid color strings.
- ViewerSettingStrings.RENDER_MODE
- RenderMode.Topology
TOPO_ POINTS_ ENABLED
Defines whether topological points are rendered.
TRANSPARENCY_ MODE
Defines the transparency mode
TURNTABLE_ LOWER_ VERTICAL_ LIMIT
Defines the lower vertical limit of the turntable navigation mode in degrees.
TURNTABLE_ UPPER_ VERTICAL_ LIMIT
Defines the upper vertical limit for the turntable navigation mode in degrees.
TURNTABLE_ VERTICAL_ LIMITS_ ENABLED
Defines whether the vertical limits for the turntable navigation mode are enabled or not.
USE_ DEVICE_ PIXEL_ RATIO
Defines whether the canvas should be scaled by the window.devicePixelRatio
or not. Enabling this setting is necessary to compensate for the DPI scaling
of the system / monitor. Enabling this setting will improve the visual quality
on high DPI monitors but can decrease performance.
VERTEX_ COLORS_ ENABLED
Defines whether vertex colors are enabled or not. If enabled and the model contains vertex colors, the vertex colors will be used for rendering. Furthermore, the node's Property.APPEARANCE_URI will be ignored. Thus, if the user wants to change the node's appearance in this case, this setting has to be disabled first.
VIEW_ PERSPECTIVE
Defines the view perspective.
WEBGL_ PRESERVE_ DRAWINGBUFFER
Defines whether or not to preserve the drawing buffer on the WebGL context.
This enum contains all the setting keys that are used to read, change and reset the settings of a specific viewer. For every setting key, its default value can be found here, as well as the type of the value.
Please note, that a list of general, webvis context related settings can be found in the SettingStrings enum.
Furthermore, please notice the difference between context and viewer level settings, as described in the ViewerAPI.
Example
See