Nothing matches.
Abstract base implementation of IGH_GeometricGoo. If you implement IGH_GeometricGoo, use this for a booster.
Type parameters:
| T |
Constructors
GH_GeometricGoo
#protected GH_GeometricGoo()
Blank constructor, m_value will be set to default (null for reference types, zeroes for value types)
GH_GeometricGoo
#protected GH_GeometricGoo(T internal_data)
Data constructor, m_value will be set to internal_data.
Parameters:
| internal_data (T) | Value to store inside this Goo instance. |
Fields
m_value
protected T m_value
Properties
Boundingbox
#Gets the boundingbox for this geometry.
Returns: The boundingbox for this piece of geometry or Boundingbox.Empty if the geometry is null or invalid.
Implements: 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.
Implements: IsGeometryLoaded
IsReferencedGeometry
#Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: IsReferencedGeometry
IsValid
#Gets a value indicating whether or not the current value is valid.
Overrides: GH_Goo<T>.IsValid
IsValidWhyNot
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Implements: 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.
Implements: ReferenceID
TypeDescription
Gets a description of the type of the implementation.
Implements: TypeDescription
Implements: TypeName
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.
Overrides: GH_Goo<T>.Value
Methods
CastFrom
#Attempt a cast from generic object.
Remarks: If False, the contents of this instance are not to be trusted.
Parameters:
| source (object) | Reference to source of cast. |
Returns: True on success, false on failure.
Overrides: GH_Goo<T>.CastFrom
CastTo<Q>
#Attempt a cast to type T.
Remarks: If false, the target instance contents are not guaranteed to be valid.
Parameters:
| target (ref Q) | Pointer to target of cast. |
Returns: True on success, false on failure.
Overrides: GH_Goo<T>.CastTo
ClearCaches
#public virtual void 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.
Implements: ClearCaches
Duplicate
#Make a complete duplicate of this instance. No shallow copies.
Remarks: Classes which implement this interface should also provide type specific Duplicate methods
Overrides: GH_Goo<T>.Duplicate
DuplicateGeometry
#Make a complete duplicate of this geometry. No shallow copies.
Remarks: Each class that implements this interface should also provide a type specific duplication method
Implements: DuplicateGeometry
EmitProxy
#Create a new proxy for this instance. Return Null if this class does not support proxies.
Overrides: GH_Goo<T>.EmitProxy
GetBoundingBox
#Compute an aligned boundingbox.
Parameters:
| xform (Transform) | Transformation to apply to geometry for BoundingBox computation. |
Returns: The world aligned boundingbox of the transformed geometry.
Implements: GetBoundingBox
LoadGeometry
#If the geometry is referenced and currently unloaded, forces loading of the geometry. Not all IGH_GeometricGoo implementations support referenced geometry.
Implements: 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.
Parameters:
| doc (RhinoDoc) | Document to use for loading. |
Implements: LoadGeometry
Morph
#Morph the object or a deformable representation of the object.
Parameters:
| xmorph (SpaceMorph) | Spatial deform. |
Returns: 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.
Implements: Morph
Parameters:
| reader (GH_IReader) |
Implements: 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.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable
ToString
Creates a string description of the current instance value.
Overrides: Object.ToString
Implements: ToString
Transform
#Transforms the object or a deformable representation of the object.
Parameters:
| xform (Transform) | Transformation matrix. |
Returns: 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.
Implements: Transform
Parameters:
| writer (GH_IWriter) |
Implements: Write