ViewSettings

public static class ViewSettings
Contains static methods and properties to control view settings.

Properties

AlwaysPanParallelViews

#Since v5.0
Gets or sets the 'always pan parallel views' value.

If the view is not looking straight at the construction plane, then sets parallel viewports so they will not rotate.

public static bool AlwaysPanParallelViews { get; set; }

AutoAdjustTargetDepth

#Since v8.19
Gets or sets the 'Auto adjust camera target after Pan and Zoom' value.
public static bool AutoAdjustTargetDepth { get; set; }

DefinedViewSetClippingPlanes

#Since v8.19
Gets or sets the 'Named views set clipping planes' value.
public static bool DefinedViewSetClippingPlanes { get; set; }

DefinedViewSetCPlane

#Since v5.0
Gets or sets the 'Named views set CPlane' value.

When true, restoring a named view causes the construction plane saved with that view to also restore.

public static bool DefinedViewSetCPlane { get; set; }

DefinedViewSetDisplayMode

#Since v8.19
Gets or sets the 'Named views set display mode' value.
public static bool DefinedViewSetDisplayMode { get; set; }

DefinedViewSetProjection

#Since v5.0
Gets or sets the 'Named views set projection' value.

When true, restoring a named view causes the viewport projection saved with the view to also restore.

public static bool DefinedViewSetProjection { get; set; }

LinkedViewports

#Since v5.0
Gets or sets the 'linked views' activated setting.

true enables real-time view synchronization. When a standard view is manipulated, the camera lens length of all parallel projection viewports are set to match the current viewport.

public static bool LinkedViewports { get; set; }

PanPlanParallelViewsWithControlShiftRMB

#Since v8.19
Gets or sets the 'Pan plan parallel views with Control+Shift+RMB' value.
public static bool PanPlanParallelViewsWithControlShiftRMB { get; set; }

PanReverseKeyboardAction

#Since v5.0
Gets or sets if panning with the keyboard is reversed.

false, then Rhino pans the camera in the direction of the arrow key you press. true, then Rhino pans the scene instead.

public static bool PanReverseKeyboardAction { get; set; }

PanScreenFraction

#Since v5.0
Gets or sets the faction used as multiplier to pan the screen.
public static double PanScreenFraction { get; set; }

RotateCircleIncrement

#Since v5.0
Gets or sets the rotation increment.

When the user rotates a view with the keyboard, Rhino rotates the view in steps. The usual step is 1/60th of a circle, which equals six degrees.

public static int RotateCircleIncrement { get; set; }

RotateReverseKeyboard

#Since v5.0
Gets or sets the rotation direction.

If true, then Rhino rotates the camera around the scene, otherwise, rotates the scene itself.

public static bool RotateReverseKeyboard { get; set; }

RotateToView

#Since v5.0
Gets or sets the rotation reference.

If true, then the views rotates relative to the view axes; false, than relative to the world x, y, and z axes.

public static bool RotateToView { get; set; }

RotateViewAroundAutogumball

#Since v8.19
Gets or sets the 'Rotate view around auto gumball' value.
public static bool RotateViewAroundAutogumball { get; set; }

RotateViewAroundObjectAtMouseCursor

#Since v8.19
Gets or sets the 'Rotate view around object at mouse cursor' value.
public static bool RotateViewAroundObjectAtMouseCursor { get; set; }

SingleClickMaximize

#Since v5.0
Gets or sets the 'single-click maximize' value.

When true, maximizing a viewport needs a single click on the viewport title rather than a double-click.

public static bool SingleClickMaximize { get; set; }

ThreePointPerspectiveLensLength

#Since v8.20
Gets the three point perspective lens length. The default is 50mm.
public static double ThreePointPerspectiveLensLength { get; }

TwoPointPerspectiveLensLength

#Since v8.20
Gets the two point perspective lens length. The default is 20mm.
public static double TwoPointPerspectiveLensLength { get; }

ViewRotation

#Since v8.1
Gets or sets the view rotation value.
public static ViewSettings.ViewRotationStyle ViewRotation { get; set; }

ZoomExtentsParallelViewBorder

#Since v6.3
Border amount to apply to parallel viewport during zoom extents
public static double ZoomExtentsParallelViewBorder { get; set; }

ZoomExtentsPerspectiveViewBorder

#Since v6.3
Border amount to apply to perspective viewport during zoom extents
public static double ZoomExtentsPerspectiveViewBorder { get; set; }

ZoomScale

#Since v5.0
Gets or sets the step size for zooming with a wheeled mouse or the Page Up and Page Down keys.
public static double ZoomScale { get; set; }

Methods

GetCurrentState

#Since v5.0
Gets the current settings.
public static ViewSettingsState GetCurrentState()
A new view state with current settings.

GetDefaultState

#Since v5.0
Gets the view factory settings.
public static ViewSettingsState GetDefaultState()
A new view state with factory settings.

RestoreDefaults

#Since v5.0
Updates from the default setting state.
public static void RestoreDefaults()

UpdateFromState

#Since v5.0
Updates from a particular setting state.
public static void UpdateFromState(
state
The new state that will be set.
)