Constructors

GH_InstanceReference

#
public GH_InstanceReference()
Default constructor.
Remarks: Creates an invalid instance reference

GH_InstanceReference

#
public GH_InstanceReference(GH_InstanceReference other)
Create a duplicate of another instance reference.
Remarks: This constructor also copies reference data.
other (GH_InstanceReference)instance reference to duplicate

GH_InstanceReference

#
public GH_InstanceReference(Guid ref_guid)
Create a new instance reference to a Rhino instance reference object with the specified ID.
ref_guid (Guid)ID of instance reference object to reference.

GH_InstanceReference

#
public GH_InstanceReference(InstanceReferenceGeometry iref, ModelInstanceDefinition idef)
Create a new instance reference with the specified instance-reference-geometry and instance-definition.
iref (InstanceReferenceGeometry)instance reference geometry to reference.
idef (ModelInstanceDefinition)instance definition to reference.

GH_InstanceReference

#
public GH_InstanceReference(InstanceReferenceGeometry iref)
Create a new instance reference with the specified instance-reference-geometry.
iref (InstanceReferenceGeometry)instance reference geometry to reference.

GH_InstanceReference

#
public GH_InstanceReference(Transform xform, ModelInstanceDefinition idef)
Create a transformed instance reference of the specified instance-definition.
xform (Transform)instance reference to duplicate
idef (ModelInstanceDefinition)instance definition object to reference.

GH_InstanceReference

#
public GH_InstanceReference(Transform xform)
Create a transformed empty instance reference.
xform (Transform)instance reference to duplicate

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

BoundingBox

#
public override BoundingBox BoundingBox { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

InstanceDefinition

#
public ModelInstanceDefinition InstanceDefinition { get; set; }

IsGeometryLoaded

#
public override bool IsGeometryLoaded { get; }
Gets the load state of this instance reference object. The instance reference is considered to be loaded when the local instance is not null.

IsReferencedGeometry

#
public override bool IsReferencedGeometry { get; }
Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.

IsValid

#
public override bool IsValid { get; }
Gets the validity of this instance reference. If the instance reference is referenced but cannot be loaded, the instance reference is not valid.

IsValidWhyNot

#
public override string IsValidWhyNot { get; }
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.

ModelTransform

#
public Transform ModelTransform { get; set; }

ReferenceID

#
public override Guid ReferenceID { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

public override T Value { get; set; }
Gets or sets the value of this type. Note that if the type has a ReferenceID this value might get destroyed in the future.
inherited fromGH_GeometricGoo<T>
GH_Goo<T>.Value

Methods

Explicit

IGH_RenderAwareData.AppendRenderGeometry

#
void AppendRenderGeometry(GH_RenderArgs args, RenderMaterial material)
args (GH_RenderArgs)
material (RenderMaterial)

BakeGeometry

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

CastFrom

#
public override bool CastFrom(object source)
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
source (object)

CastTo<Q>

public virtual bool CastTo<Q>(ref Q target)
Attempt a cast to type Q.
inherited fromGH_Goo<T>
Remarks: If false, the target instance contents are not guaranteed to be valid.
target (ref Q)Pointer to target of cast.
True on success, false on failure.
CastTo

CastTo<T>

#
public override bool CastTo<T>(ref T target)
Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
target (ref T)

ClearCaches

#
public override void ClearCaches()
Clears all volatile caches for this instance. The boundingbox is cleared, and if the instance reference is referenced, the local instance of the instance reference is erased.
Explicit

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()

DrawViewportMeshes

#
public void DrawViewportMeshes(GH_PreviewMeshArgs args)
args (GH_PreviewMeshArgs)
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires(GH_PreviewWireArgs args)
args (GH_PreviewWireArgs)
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateGeometry

#
public override IGH_GeometricGoo DuplicateGeometry()
Create a duplicate of this GH_InstanceReference.

DuplicateInstanceReference

#
public GH_InstanceReference DuplicateInstanceReference()
Create a duplicate of this GH_InstanceReference.

EmitProxy

#
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
public override BoundingBox GetBoundingBox(Transform xform)
xform (Transform)
Explicit

IGH_PreviewMeshData.GetPreviewMeshes

#
Mesh[] GetPreviewMeshes()
GetPreviewMeshes

LoadGeometry

#
public override bool LoadGeometry()
If the geometry is referenced and not yet loaded, attempts to load the geometry.
True if the geometry is loaded (or if it was already loaded), False on failure.

LoadGeometry

#
public override bool LoadGeometry(RhinoDoc doc)
If the instance reference is referenced and not yet loaded, attempts to load the instance reference.
doc (RhinoDoc)
True if the instance reference is loaded (or if it was already loaded), False on failure.

Morph

#
public override IGH_GeometricGoo Morph(SpaceMorph xmorph)
xmorph (SpaceMorph)

Read

#
public override bool Read(GH_IReader reader)
reader (GH_IReader)
GH_Goo<T>.Read

ScriptVariable

#
public override object ScriptVariable()

ToString

#
public override string ToString()
Format the instance reference using default grasshopper formatting logic.

Transform

#
public override IGH_GeometricGoo Transform(Transform xform)
xform (Transform)

Write

#
public override bool Write(GH_IWriter writer)
writer (GH_IWriter)
GH_Goo<T>.Write