[TypeName("Model Layer")] [TypeDescription("Rhino model layer")] public sealed class ModelLayer : ModelComponentContent, IGH_BakeAwareData
Represents a Rhino model layer. Wraps the functionality of the Layer type.

Constructors

ModelLayer

#
public ModelLayer()

ModelLayer

#
public ModelLayer(Attributes attributes)
attributes (ModelLayer.Attributes)

ModelLayer

#
public ModelLayer(Guid id)
id (Guid)

ModelLayer

#
public ModelLayer(Layer layer)
layer (Layer)

Fields

Serial

protected internal int Serial
inherited fromModelData

Properties

Attribs

#
protected ModelLayer.Attributes Attribs { get; set; }

DefaultAttributes

#
protected override ModelData.Attributes DefaultAttributes { get; }

DisplayColor

#
public ModelColor? DisplayColor { get; }

DisplayName

[Browsable(false)] public string DisplayName { get; }
inherited fromModelData
DisplayName

DraftingColor

#
public ModelColor? DraftingColor { get; }

Hidden

#
public bool? Hidden { get; }

HiddenOnModel

#
public bool? HiddenOnModel { get; }

HiddenOnNewDetail

#
public bool? HiddenOnNewDetail { get; }

Id

public Guid? Id { get; }
inherited fromModelContent

IsReferencedData

protected bool IsReferencedData { get; }
inherited fromModelContent
IsReferencedData

IsReferencedDataLoaded

protected bool IsReferencedDataLoaded { get; }
inherited fromModelContent

IsValid

public override bool IsValid { get; }
inherited fromModelContent

IsValidWhyNot

protected override string IsValidWhyNot { get; }
inherited fromModelContent

Linetype

#
public ModelLinetype Linetype { get; }

LineWeight

#
public double? LineWeight { get; }

Locked

#
public bool? Locked { get; }

Material

#
public ModelRenderMaterial Material { get; }

Name

public virtual ModelContentName Name { get; }
inherited fromModelContent

Notes

public string Notes { get; }
inherited fromModelContent

Parent

public ModelContentName Parent { get; }
inherited fromModelContent

SectionStyle

#
public ModelSectionStyle SectionStyle { get; }

Tags

public ModelTags Tags { get; }
inherited fromModelContent

TypeDescription

protected string TypeDescription { get; }
inherited fromModelData
TypeDescription

TypeName

[Browsable(false)] public virtual string TypeName { get; }
inherited fromModelData
TypeName

Unset

#
public static ModelLayer Unset { get; }

UserText

public ModelUserText UserText { get; }
inherited fromModelComponentContent

Methods

AsFrozen

public ModelContent AsFrozen(bool deep = true)
Try to obtain a dereferenced snapshot of itself.
inherited fromModelContent
deep (bool = true)Determines whether or not referenced content should also be frozen.
Itself if it is already dereferenced.
Explicit

IGH_BakeAwareData.BakeGeometry

#
bool BakeGeometry(RhinoDoc doc, ObjectAttributes att, ref Guid obj_guid)
doc (RhinoDoc)
att (ObjectAttributes)
obj_guid (ref Guid)
BakeGeometry

Cast

#
public static ModelLayer Cast(object source)
source (object)

CastTo<T>

public override bool CastTo<T>(ref T target)
inherited fromModelContent
target (ref T)
ModelData.CastTo

Equals

public bool Equals(ModelContent other)
inherited fromModelContent
other (ModelContent)

Equals

public bool Equals(ModelData other)
inherited fromModelData
other (ModelData)

Equals

public override bool Equals(object other)
inherited fromModelContent
other (object)
ModelData.Equals

GetHashCode

public override int GetHashCode()
inherited fromModelContent

InternaliseData

protected bool InternaliseData()
inherited fromModelContent

LoadReferencedData

protected virtual bool LoadReferencedData()
inherited fromModelContent
LoadReferencedData

Read

protected override bool Read(GH_IReader reader)
inherited fromModelContent
reader (GH_IReader)
ModelData.Read
Read

RenderItem

#
protected override bool RenderItem(Graphics graphics, RectangleF area, int alpha)
graphics (Graphics)
area (RectangleF)
alpha (int)

RuntimeId

protected internal Guid? RuntimeId(RhinoDoc document)
inherited fromModelContent
document (RhinoDoc)

ToAttributes

#
public ModelLayer.Attributes ToAttributes()

ToDetails

public string ToDetails()
inherited fromModelData

TooltipString

public override string TooltipString()
inherited fromModelContent

ToString

public override string ToString()
inherited fromModelContent

UnloadReferencedData

protected virtual void UnloadReferencedData()
inherited fromModelContent

Write

protected override bool Write(GH_IWriter writer)
inherited fromModelContent
writer (GH_IWriter)
ModelData.Write
Write

Convertors

OperationResultDescription
implicitModelLayer.AttributesModelLayer
implicitLayerModelLayer
implicitstringModelLayer