GH_InstanceReference Class |
Namespace: Grasshopper.Kernel.Types
The GH_InstanceReference type exposes the following members.
| Name | Description | |
|---|---|---|
| GH_InstanceReference |
Default constructor, creates an invalid instance reference.
| |
| GH_InstanceReference(GH_InstanceReference) |
Create a duplicate of another GH_InstanceReference. This constructor also copies reference data.
| |
| GH_InstanceReference(Guid) |
Create a new reference to a Rhino instance reference with the specified ID.
| |
| GH_InstanceReference(InstanceReferenceGeometry) |
Create a new reference to a Rhino instance reference with the specified ID.
| |
| GH_InstanceReference(Transform) |
Create a duplicate of an existing instance reference.
| |
| GH_InstanceReference(InstanceReferenceGeometry, ModelInstanceDefinition) |
Create a new reference to a Rhino instance reference with the specified ID.
|
| Name | Description | |
|---|---|---|
| Boundingbox | (Overrides GH_GeometricGooTBoundingbox.) | |
| ClippingBox | ||
| InstanceDefinition | ||
| 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.
(Overrides GH_GeometricGooTIsGeometryLoaded.) | |
| IsReferencedGeometry |
Gets a value indicating whether or not this geometry is referenced.
Not all IGH_GeometricGoo implementations support referenced geometry.
(Overrides GH_GeometricGooTIsReferencedGeometry.) | |
| IsValid |
Gets the validity of this instance reference. If the instance reference is referenced but cannot be loaded, the instance reference is not valid.
(Overrides GH_GeometricGooTIsValid.) | |
| IsValidWhyNot |
Gets a string describing the state of "invalidness".
If the instance is valid, then this property should return Nothing or String.Empty.
(Overrides GH_GooTIsValidWhyNot.) | |
| ModelTransform | ||
| ReferenceID | (Overrides GH_GeometricGooTReferenceID.) | |
| TypeDescription | (Overrides GH_GooTTypeDescription.) | |
| TypeName | (Overrides GH_GooTTypeName.) | |
| 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.
(Inherited from GH_GeometricGooT.) |
| Name | Description | |
|---|---|---|
| BakeGeometry | ||
| CastFrom |
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
(Overrides GH_GeometricGooTCastFrom(Object).) | |
| CastToQ(Q) |
Attempt a cast to type T.
(Inherited from GH_GeometricGooT.) | |
| CastToQ(Q) |
Attempt a cast to type Q.
(Inherited from GH_GooT.) | |
| CastToT(T) |
Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
(Overrides GH_GeometricGooTCastToQ(Q).) | |
| 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.
(Overrides GH_GeometricGooTClearCaches.) | |
| DrawViewportMeshes | ||
| DrawViewportWires | ||
| Duplicate | (Overrides GH_GeometricGooTDuplicate.) | |
| DuplicateGeometry |
Create a duplicate of this GH_InstanceReference.
(Overrides GH_GeometricGooTDuplicateGeometry.) | |
| DuplicateInstanceReference |
Create a duplicate of this GH_InstanceReference.
| |
| EmitProxy | (Overrides GH_GeometricGooTEmitProxy.) | |
| GetBoundingBox | (Overrides GH_GeometricGooTGetBoundingBox(Transform).) | |
| LoadGeometry |
If the geometry is referenced and not yet loaded, attempts to load the geometry.
(Overrides GH_GeometricGooTLoadGeometry.) | |
| LoadGeometry(RhinoDoc) |
If the instance reference is referenced and not yet loaded, attempts to load the instance reference.
(Overrides GH_GeometricGooTLoadGeometry(RhinoDoc).) | |
| Morph | (Overrides GH_GeometricGooTMorph(SpaceMorph).) | |
| Read | (Overrides GH_GooTRead(GH_IReader).) | |
| ScriptVariable | (Overrides GH_GooTScriptVariable.) | |
| ToString |
Format the instance reference using default grasshopper formatting logic.
(Overrides GH_GooTToString.) | |
| Transform | (Overrides GH_GeometricGooTTransform(Transform).) | |
| Write | (Overrides GH_GooTWrite(GH_IWriter).) |