ViewTable

References
public sealed class ViewTable : IEnumerable<RhinoView>

Properties

ActiveView

#ExampleSince v5.0
Gets or Sets the active view.
public RhinoView ActiveView { get; set; }

Document

#Since v5.0
Document that owns this object table.
public RhinoDoc Document { get; }

ModelSpaceIsActive

#Since v5.0
[DebuggerBrowsable(DebuggerBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)] public bool ModelSpaceIsActive { get; }
obsolete. Use RhinoDoc.ActiveSpace instead

PageViewCount

#Since v9.0
Gets the number of page views in the document
public int PageViewCount { get; }

RedrawEnabled

#Since v5.0
Returns or sets (enable or disables) screen redrawing.
public bool RedrawEnabled { get; set; }

Methods

Add

#Since v5.0
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.
)
The newly constructed Rhino view; or null on error.

AddPageView

#Since v9.0
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.
The newly created page view on success; or null on error.

AddPageView

#Since v9.0
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.
The newly created page view on success; or null on error.

AddPageView

#ExampleSince v5.0
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.
)
The newly created page view on success; or null on error.

AddPageView

#Since v5.0
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.
)
The newly created page view on success; or null on error.

DefaultViewLayout

#Since v5.0
public void DefaultViewLayout()

EnableCameraIcon

#Since v6.0
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.
)

EnableRedraw

#Since v7.3
Enables or disables screen redrawing.
public void EnableRedraw(
enable,
Enable redrawing.
redrawDocument,
If enabling, set to true to have the document redrawn.
redrawLayers
If enabling, set to true to have the layer user interface redrawn.
)

Find

#Since v5.0
Finds a view in this document with a given main viewport Id.
public RhinoView Find(
mainViewportId
The ID of the main viewport looked for.
)
View on success. null if the view could not be found in this document.

Find

#Since v5.0
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.
public RhinoView Find(
mainViewportName,
The name of the main viewport.
compareCase
true if capitalization influences comparison; otherwise, false.
)
A Rhino view on success; null on error.

FlashObjects

#Since v5.0
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.
)

FourViewLayout

#Since v5.0
public void FourViewLayout(
useMatchingViews
)

GetEnumerator

#Since v5.0
public IEnumerator<RhinoView> GetEnumerator()

GetPageViews

#ExampleSince v5.0
Gets all page views in the document.
public RhinoPageView[] GetPageViews()
An array with all page views. The return value can be an empty array but not null.

GetStandardRhinoViews

#Since v5.0
public RhinoView[] GetStandardRhinoViews()

GetViewList

#Since v5.0 Obsolete v8.0
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.
)
A array of Rhino views. This array can be empty, but not null.

GetViewList

#Since v8.0
Gets an array of all the views.
public RhinoView[] GetViewList(
filter
View types to include
)
An array of Rhino views. This array can be empty, but not null.

ImportPageView

#Since v9.0
Imports a page view, or layout, from a Rhino file into this document.
public bool ImportPageView(
filename,
The name of Rhino file to read from.
mainViewportId,
The id of the page view on the Rhino file.
pageName
The name to give the newly imported page view.
)

IsCameraIconVisible

#Since v6.0
Determine if a camera icon is being shown
public bool IsCameraIconVisible(
view
if null, then all views are tested. If not null, then just view is tested.
)

Redraw

#ExampleSince v5.0
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.

Redraw

#ExampleSince v9.0
Redraws all views.
public void Redraw(
deferred
false if screen needs to be refreshed now; false otherwise.
)
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.
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()

ThreeViewLayout

#Since v5.0
public void ThreeViewLayout(
useMatchingViews
)