DocumentDisplay

References
[IoId("00000000-98e8-4b08-b568-6884877317f6")] public sealed class DocumentDisplay : IStorable

Constructors

DocumentDisplay

#
public DocumentDisplay()

Fields

ThrottlingFast

#
public static readonly TimeSpan ThrottlingFast

ThrottlingMild

#
public static readonly TimeSpan ThrottlingMild

ThrottlingNone

#
public static readonly TimeSpan ThrottlingNone

ThrottlingSlow

#
public static readonly TimeSpan ThrottlingSlow

Properties

CurrentRuleSet

#
Gets the currently active display rules. Note that these are the fully expanded rules, not the original rules. That is, all cite instructions have been resolved with their appropriate external rules.
public DisplayRules CurrentRuleSet { get; }

CurrentRuleSetName

#
Gets or sets the name of the current display rule set to use. If a non-existing name is specified, no rule set will be active.
public string CurrentRuleSetName { get; set; }

Document

#
Gets the document this display object is associated with.
public Document Document { get; }

DocumentRuleNames

#
Enumerate over all display rule names in the document.
public IEnumerable<string> DocumentRuleNames { get; }

DrawMeshes

#
Gets or sets whether the document preview should include meshes.
public bool DrawMeshes { get; set; }

DrawWires

#
Gets or sets whether the document preview should include wires.
public bool DrawWires { get; set; }

Enabled

#
Gets or sets whether the preview ought to be draw at all.
public bool Enabled { get; set; }

Guises

#
Gets or sets the guises to use for drawing the preview geometry of this document.
public Guises Guises { get; set; }

OnlySelected

#
Gets or sets whether the document preview is limited to the selected objects. Selected objects are then drawn regardless of their own display state, and with the standard rather than the selected guise.
public bool OnlySelected { get; set; }

StandardRuleNames

#
Enumerate over all standard display rule names.
public IEnumerable<string> StandardRuleNames { get; }

Throttling

#
Gets or sets the timespan after which the preview cuts off in dynamic mode.
public TimeSpan Throttling { get; set; }

Methods

FindRuleSet

#
Find a given named ruleset.
public DisplayRules FindRuleSet(
name
)

ModifyRules

#
Try and update a named ruleset. If the name isn't known yet, a new rule set will be added. If the provided rules are null, any existing ruleset with the specified name will be removed.
public void ModifyRules(
name,
rules
)

RenameRules

#
Rename a ruleset.
public void RenameRules(
oldName,
newName
)

Restore

#
public void Restore(
reader
)

Store

#
public void Store(
writer
)
Store

UniqueName

#
Create a unique name based on the given one.
public string UniqueName(
name
)

UpdateDisplay

#
Redraw the Rhino viewports.
public void UpdateDisplay()