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
public RhinoView Add(string title, DefinedViewportProjection projection, Rectangle position, bool floating)
Constructs a new Rhino view and, at the same time, adds it to the list.
Parameters:
| title (string) | The title of the new Rhino view. |
| projection (DefinedViewportProjection) | A basic projection type. |
| position (Rectangle) | A position. |
| floating (bool) | 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.
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.
Parameters:
| title (string) | If null or empty, a name will be generated as "Page #" where # is the largest page number. |
| setActive (bool) | If true, the new page view becomes the active view. If false, the view that was active before this call remains the active view. |
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.
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.
Parameters:
| title (string) | If null or empty, a name will be generated as "Page #" where # is the largest page number. |
| pageWidth (double) | The page total width. |
| pageHeight (double) | The page total height. |
| setActive (bool) | If true, the new page view becomes the active view. If false, the view that was active before this call remains the active view. |
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.
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.
Parameters:
| title (string) | 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
Parameters:
| view (RhinoView) | 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.
Parameters:
| mainViewportId (Guid) | The ID of the main viewport looked for. |
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.
Cause objects selection state to change momentarily so the object appears to flash on the screen.
Parameters:
| list (IEnumerable<RhinoObject>) | An array, a list or any enumerable set of Rhino objects. |
| useSelectionColor (bool) | If true, flash between object color and selection color. If false, flash between visible and invisible. |
Parameters:
| useMatchingViews (bool) |
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.
[EditorBrowsable(EditorBrowsableState.Never)]
public RhinoView[] GetViewList(bool includeStandardViews, bool includePageViews)
Gets an array of all the views.
Gets an array of all the views.
Parameters:
| filter (ViewTypeFilter) | View types to include |
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
Parameters:
| view (RhinoView) | if null, then all views are tested. If not null, then just view is tested. |
public void Redraw()
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.
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.
Parameters:
| deferred (bool) | false if screen needs to be refreshed now; false otherwise. |