Constructors

GH_InstanceReference

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

GH_InstanceReference

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

GH_InstanceReference

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

GH_InstanceReference

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

GH_InstanceReference

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

GH_InstanceReference

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

GH_InstanceReference

#
Create a transformed empty instance reference.
public GH_InstanceReference(
xform
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

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

IsReferencedGeometry

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

IsValid

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

IsValidWhyNot

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

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

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

Methods

Explicit

IGH_RenderAwareData.AppendRenderGeometry

#
void AppendRenderGeometry()

BakeGeometry

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

CastFrom

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

CastTo<Q>

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

CastTo<T>

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

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.
public override void ClearCaches()
Explicit

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateGeometry

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

DuplicateInstanceReference

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

EmitProxy

#
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
public override BoundingBox GetBoundingBox(
xform
)
Explicit

IGH_PreviewMeshData.GetPreviewMeshes

#
Mesh[] GetPreviewMeshes()
GetPreviewMeshes

LoadGeometry

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

LoadGeometry

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

Morph

#
public override IGH_GeometricGoo Morph(
xmorph
)

Read

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

ScriptVariable

#
public override object ScriptVariable()

ToString

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

Transform

#
public override IGH_GeometricGoo Transform(
Transform
xform
)

Write

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