Click or drag to resize
RhinoView Class
A RhinoView represents a single "window" display of a document. A view could contain one or many RhinoViewports (many in the case of Layout views with detail viewports). Standard Rhino modeling views have one viewport.
Inheritance Hierarchy

Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public class RhinoView

The RhinoView type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleActiveViewport
The ActiveViewport is the same as the MainViewport for standard RhinoViews. In a RhinoPageView, the active viewport may be the RhinoViewport of a child detail object. Most of the time, you will use ActiveViewport unless you explicitly need to work with the main viewport.
Public propertyActiveViewportID
Returns viewport ID for the active viewport. Faster than ActiveViewport function when working with page views.
Public propertyBounds
Gets or sets the size and location of the view including its nonclient elements, in pixels, relative to the parent control.
Public propertyClientRectangle
Gets the rectangle that represents the client area of the view.
Public propertyDocument
Public propertyStatic memberEnableDrawing
Gets or sets the 'drawing enabled' flag. By default, drawing is enabled.

There are some rare situations where scipts want to disable drawing for a while.

Public propertyFloating
Floating state of RhinoView. if true, then the view will be in a floating frame window. Otherwise the view will be embeded in the main frame.
Public propertyHandle
Gets the window handle that this view is bound to.
Public propertyMainViewport
A RhinoView contains a "main viewport" that fills the entire view client window. RhinoPageViews may also contain nested child RhinoViewports for implementing detail viewports. The MainViewport will always return this RhinoView's m_vp.
Public propertyMaximized
Public propertyScreenRectangle
Gets the rectangle that represents the client area of the view in screen coordinates.
Public propertyTitleVisible
Visibility of the viewport title window.
Top
Methods
  NameDescription
Public methodCaptureToBitmap
Capture View contents to a bitmap.
Public methodCaptureToBitmap(Size)
Capture View contents to a bitmap.
Public methodCaptureToBitmap(DisplayModeDescription)
Capture View contents to a bitmap using a display mode description to define how drawing is performed.
Public methodCaptureToBitmap(DisplayPipelineAttributes)
Captures view contents to a bitmap using display attributes to define how drawing is performed.
Public methodCaptureToBitmap(Size, DisplayModeDescription)
Capture View contents to a bitmap using a display mode description to define how drawing is performed.
Public methodCaptureToBitmap(Size, DisplayPipelineAttributes)
Capture View contents to a bitmap using display attributes to define how drawing is performed.
Public methodCode exampleCaptureToBitmap(Boolean, Boolean, Boolean)
Captures the view contents to a bitmap allowing for visibility of grid and axes.
Public methodCaptureToBitmap(Size, Boolean, Boolean, Boolean)
Captures a part of the view contents to a bitmap allowing for visibility of grid and axes.
Public methodClientToScreen(Point)
Public methodClientToScreen(Point2d)
Public methodClose
Remove this View from Rhino. DO NOT attempt to use this instance of this class after calling Close.
Public methodCreateShadedPreviewImage
Creates a bitmap preview image of model.
Public methodCreateWireframePreviewImage
Creates a bitmap preview image of model.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleRedraw
Redraws this view.
Public methodScreenToClient(Point)
Converts a point in screen coordinates to client coordinates for this view.
Public methodScreenToClient(Point2d)
Public methodSpeedTest
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
See Also