ViewInfo
ReferencesRepresents the name and orientation of a View (and named view).
views can be thought of as cameras.
Constructors
Access to the ViewInfo for given RhinoViewport
Parameters:
| rhinoViewPort (RhinoViewport) |
Construct the ViewInfo for active viewport of given doc.
Parameters:
| docRuntimeSerialNumber (uint) | Runtime serial number of the document to query for the active viewport |
Finalizer
~ViewInfo
#~ViewInfo()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
Properties
Returns a list of clipping plane Ids associated with this view.
The id of the display mode this view opens in - wireframe, shaded, rendered, or any custom display mode. DisplayModeDescription holds the standard ids. A nil id means the view has no display mode of its own and opens in wireframe, which is what every template generated without this property did.
Gets or sets the Focal blur aperture of the active viewport
Gets or sets the Focal blur distance of the active viewport
Gets or sets the Focal blur jitter of the active viewport
Gets or sets the Focal blur mode of the active viewport
Gets or sets the Focal blur sample count of the active viewport
Whether the view's projection is locked against changes.
Gets or sets whether the view window is maximized in the frame window. Together with the window position (see GetWindowPosition(double, double, double, double)) this is stored in the 3dm file and controls the viewport layout when the file is opened.
Returns a unique id if this is a named view otherwise an empty Guid.
The pixel size this view renders at.
How a view will interact with clipping planes
Whether the construction plane x and y axes are drawn in this view.
Whether the construction plane grid is drawn in this view.
Whether the construction plane z axis is drawn in this view.
True if wallpaper (if any) is to be shown in gray scale in this view.
Whether the world axes icon is drawn in the corner of this view.
Gets the viewport, or viewing frustum, associated with this view.
Whether this view is a model view, a layout page, a nested (detail) view, or one of the special editor views. A page view must be an orthographic top view; see PageSettings for its paper size.
Methods
Returns a list of ClippingPlaneSurfaces for this view.
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
Dispose
#For derived class implementers.
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.
You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.
Also, you must call the base virtual method within your overriding method.
Parameters:
| disposing (bool) | true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer. |
Gets the view's construction plane, including its grid settings: grid and snap spacing, grid line count, thick-line frequency, and depth buffering.
Returns: A copy of the view's construction plane.
Gets the paper size and margins of this view. Only meaningful when ViewType is ViewType.PageView.
Gets the position of the view window in the frame window, expressed as fractions (0 to 1) of the frame window size.
Sets the view's construction plane, including its grid settings.
Parameters:
| constructionPlane (ConstructionPlane) | The construction plane to store on the view. |
Sets the paper size and margins of this view. Set ViewType to ViewType.PageView as well, or the page settings are ignored.
Parameters:
| pageSettings (PageSettings) |
Sets the position of the view window in the frame window, expressed as fractions (0 to 1) of the frame window size. The Maximized state is preserved.