T

Constructors

GH_GeometricGoo

#
Blank constructor, m_value will be set to default (null for reference types, zeroes for value types)
protected GH_GeometricGoo()

GH_GeometricGoo

#
Data constructor, m_value will be set to internal_data.
protected GH_GeometricGoo(
T
internal_data
Value to store inside this Goo instance.
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

Boundingbox

#
Gets the boundingbox for this geometry.
public abstract BoundingBox Boundingbox { get; }
The boundingbox for this piece of geometry or Boundingbox.Empty if the geometry is null or invalid.
Boundingbox

IsGeometryLoaded

#
Gets a value indicating whether or not this geometry is currently loaded (assuming it is referenced). Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
public virtual bool IsGeometryLoaded { get; }
IsGeometryLoaded

IsReferencedGeometry

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

IsValid

#
Gets a value indicating whether or not the current value is 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 virtual string IsValidWhyNot { get; }
inherited fromGH_Goo<T>
IsValidWhyNot

ReferenceID

#
Gets or sets the Guid of the object that is referenced. Not all IGH_GeometricGoo implementations support referenced geometry. The default implementation is to always return Guid.Empty.
public virtual Guid ReferenceID { get; set; }
ReferenceID

TypeDescription

Gets a description of the type of the implementation.
public abstract string TypeDescription { get; }
inherited fromGH_Goo<T>
TypeDescription

TypeName

Gets the name of the type of the implementation.
public abstract string TypeName { get; }
inherited fromGH_Goo<T>
TypeName

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; }
GH_Goo<T>.Value

Methods

CastFrom

#
Attempt a cast from generic object.
public override bool CastFrom(
source
Reference to source of cast.
)
Remarks: If False, the contents of this instance are not to be trusted.
True on success, false on failure.

CastTo<Q>

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

ClearCaches

#
Clears all caches. Typically if the geometry is referenced, this will erase the local copy. If your T is a value-type, you must override this function and specifically unset the local value.
public virtual void ClearCaches()
ClearCaches

Duplicate

#
Make a complete duplicate of this instance. No shallow copies.
public override IGH_Goo Duplicate()
Remarks: Classes which implement this interface should also provide type specific Duplicate methods

DuplicateGeometry

#
Make a complete duplicate of this geometry. No shallow copies.
public abstract IGH_GeometricGoo DuplicateGeometry()
Remarks: Each class that implements this interface should also provide a type specific duplication method
DuplicateGeometry

EmitProxy

#
Create a new proxy for this instance. Return Null if this class does not support proxies.
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
Compute an aligned boundingbox.
public abstract BoundingBox GetBoundingBox(
xform
Transformation to apply to geometry for BoundingBox computation.
)
The world aligned boundingbox of the transformed geometry.
GetBoundingBox

LoadGeometry

#
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
public virtual bool LoadGeometry()
LoadGeometry

LoadGeometry

#
If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry. The default is to always return True.
public virtual bool LoadGeometry(
doc
Document to use for loading.
)
LoadGeometry

Morph

#
Morph the object or a deformable representation of the object.
public abstract IGH_GeometricGoo Morph(
xmorph
Spatial deform.
)
Deformed geometry. If the local geometry can be deformed accurately, then the returned instance equals this instance. Not all geometry types can be accurately deformed though, if this is the case, this function will return an instance of another IGH_GeometricGoo derived type which can be deformed.
Morph

Read

Default behaviour is to return True.
public virtual bool Read(
reader
)
inherited fromGH_Goo<T>
Read

ScriptVariable

This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
public virtual object ScriptVariable()
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

Creates a string description of the current instance value.
public abstract override string ToString()
inherited fromGH_Goo<T>
Object.ToString
ToString

Transform

#
Transforms the object or a deformable representation of the object.
public abstract IGH_GeometricGoo Transform(
Transform
xform
Transformation matrix.
)
Transformed geometry. If the local geometry can be transformed accurately, then the returned instance equals this instance. Not all geometry types can be accurately transformed under all circumstances though, if this is the case, this function will return an instance of another IGH_GeometricGoo derived type which can be transformed.
Transform

Write

Default behaviour is to return True.
public virtual bool Write(
writer
)
inherited fromGH_Goo<T>
Write