The ambient occlusion configuration object for the view
The background config of the view
The background color of the view.
Deprecated! Use view.background.setSingleColor()
The Camera used in the View.
The camera can be used to specify the View's viewpoint, orientation, direction, projection, clipping, and other viewport related properties.
Note:
This returns a reference to the real object, not a copy, so any changes to the returned object will be applied
to the 3D view.
The clipping controller for the view
The color used to draw the halo around highlighted parts in the view.
The number of models in the view.
The name of the view (used for debugging)
The navigation controller for the view.
The amount to dim the areas of the screen that does not contain highlighted parts.
Default value is 0.5. Setting a value of 0 disables dimming.
The 2d overlay controller for the view.
The owner Viewer.
A View can only be in one Viewer. The Viewer creates and manages the View.
Adds a model to the view.
While a model can be shown in any number of views, it can only be added to a particular view once.
Returns the combined bounding box of all models in the view
Returns the combined bounding box of all models in the view
Returns the zero-based index of the given model
Returns a read only array with all models in the view
Returns the model at the given zero-based index
Do a ray intersect with all the models in the view.
Returns the intersection point if there was a hit, and null if there was not a hit.
Labels have a "special treatment" ray intersect where hitting the label will cause a hit on the label attachment point. This is not always what is intended, e.g. when doing zoom to cursor. Set ignoreLabels to true to skip labels when doing ray intersect. This only applies to PartLabels in the MarkupModel
Removes all models from the view.
Removes the given model from the view.
Removes the model at the given index from the view.
The index must be zero-based and between 0 and modelCount - 1
Requests a redraw of the viewer. This will force a redraw on the next CloudSession.handleAnimationFrameCallback event.
Sets the viewport to the given position and size in OpenGL window coordinates.
This method cannot be called when [[OwnerViewer.viewLayoutMode]] is set to ViewLayoutMode.Auto.
Generated using TypeDoc
A View represents a viewport where you can show models and overlay items. A viewer can have one or more views.
A view has a collection of models that are shown in the view. You add a model to a view with the addModel function and remove it with the removeModel function.
You can access the Camera from the View with the camera property. The camera can be used to manually control the view point, projection and other view related settings.
You can manage overlay items (legends, text boxes, navigation cube, etc) with the overlay object.