ViewTable
ReferencesProperties
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool ModelSpaceIsActive { get; }
obsolete. Use RhinoDoc.ActiveSpace instead
Gets the number of page views in the document
Methods
Constructs a new Rhino view and, at the same time, adds it to the list.
public RhinoView Add()
title,
The title of the new Rhino view.
projection,
A basic projection type.
position,
A position.
floating
true if the view floats; false if it is docked.
Returns: The newly constructed Rhino view; or null on error.
Constructs a new page view with a given title and, at the same time, adds it to the list.
public RhinoPageView AddPageView()
title,
If null or empty, a name will be generated as "Page #" where # is the largest page number.
setActive
If true, the new page view becomes the active view. If false, the view that was active before this call remains the active view.
Remarks: On Mac, building a page view's window is main-thread work. If setActive is true and this is called from another thread, the page view is created but may not have become the active view by the time this returns.
Returns: The newly created page view on success; or null on error.
Constructs a new page view with a given title and size and, at the same time, adds it to the list.
public RhinoPageView AddPageView()
title,
If null or empty, a name will be generated as "Page #" where # is the largest page number.
pageWidth,
The page total width.
pageHeight,
The page total height.
setActive
If true, the new page view becomes the active view. If false, the view that was active before this call remains the active view.
Remarks: On Mac, building a page view's window is main-thread work. If setActive is true and this is called from another thread, the page view is created but may not have become the active view by the time this returns.
Returns: The newly created page view on success; or null on error.
Constructs a new page view with a given title and size and, at the same time, adds it to the list. On Windows the new page view becomes the active view; on Mac the active view does not change. Use the overload with a setActive parameter for behavior that is consistent across platforms.
public RhinoPageView AddPageView()
title,
If null or empty, a name will be generated as "Page #" where # is the largest page number.
pageWidth,
The page total width.
pageHeight
The page total height.
Returns: The newly created page view on success; or null on error.
Constructs a new page view with a given title and, at the same time, adds it to the list. On Windows the new page view becomes the active view; on Mac the active view does not change. Use the overload with a setActive parameter for behavior that is consistent across platforms.
public RhinoPageView AddPageView()
title
If null or empty, a name will be generated as "Page #" where # is the largest page number.
Returns: The newly created page view on success; or null on error.
public void DefaultViewLayout()
Use to turn camera icon on and off
public void EnableCameraIcon()
view
If null, any camera icon is turned off. If not null, the camera icon for that view is turned on.
Enables or disables screen redrawing.
Finds a view in this document with a given main viewport Id.
Returns: View on success. null if the view could not be found in this document.
Finds a view in this document with a main viewport that has a given name. Note that there may be multiple views in this document that have the same name. This function only returns the first view found. If you want to find all the views with a given name, use the GetViewList function and iterate through the views.
Returns: A Rhino view on success; null on error.
Cause objects selection state to change momentarily so the object appears to flash on the screen.
public void FlashObjects()
list,
An array, a list or any enumerable set of Rhino objects.
useSelectionColor
If true, flash between object color and selection color. If false, flash between visible and invisible.
Gets all page views in the document.
Returns: An array with all page views. The return value can be an empty array but not null.
Gets an array of all the views.
[EditorBrowsable(EditorBrowsableState.Never)]
public RhinoView[] GetViewList()
includeStandardViews,
true if "Right", "Perspective", etc., view should be included; false otherwise.
includePageViews
true if page-related views should be included; false otherwise.
Returns: A array of Rhino views. This array can be empty, but not null.
Gets an array of all the views.
Returns: An array of Rhino views. This array can be empty, but not null.
Imports a page view, or layout, from a Rhino file into this document.
Determine if a camera icon is being shown
Redraws all views.
public void Redraw()
Remarks: If you change something in the document -- like adding objects, deleting objects, modifying layer or object display attributes, etc., then you need to call Redraw to redraw all the views. If you change something in a particular view like the projection, construction plane, background bitmap, etc., then you need to call CRhinoView::Redraw to redraw that particular view.
Redraws all views.
Remarks: If you change something in the document -- like adding objects, deleting objects, modifying layer or object display attributes, etc., then you need to call Redraw to redraw all the views. If you change something in a particular view like the projection, construction plane, background bitmap, etc., then you need to call CRhinoView::Redraw to redraw that particular view.