public abstract class GH_AnnotationBase : GH_GeometricGoo<AnnotationBase>, IGH_GeometricGoo, IGH_PreviewData, IGH_BakeAwareData
Represents an implementation of a Rhino annotation base class.
Constructors
GH_AnnotationBase
#Create a duplicate of another GH_AnnotationBase. This constructor also copies reference data.
protected GH_AnnotationBase()
GH_AnnotationBase
other
GH_AnnotationBase to duplicate
GH_AnnotationBase
#Create a new referenced annotation that references a Rhino dimension with the specified ID.
Fields
m_value
protected T m_value
Properties
IsGeometryLoaded
#Gets the load state of this annotation object. The annotation is considered to be loaded when the local annotation instance is not null.
Overrides: GH_GeometricGoo<T>.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 the validity of this dimension. If the dimension is referenced but cannot be loaded, then the dimension is not valid.
Overrides: GH_GeometricGoo<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.
Overrides: GH_Goo<T>.IsValidWhyNot
Overrides
#Style
#Methods
CastFrom
Attempt a cast from generic object.
Remarks: If False, the contents of this instance are not to be trusted.
Returns: True on success, false on failure.
Overrides: GH_Goo<T>.CastFrom
CastTo<Q>
Attempt a cast to type Q.
Remarks: If false, the target instance contents are not guaranteed to be valid.
Returns: True on success, false on failure.
Implements: CastTo
CastTo<T>
#Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
Overrides: GH_GeometricGoo<T>.CastTo
ClearCaches
#Clears all volatile caches for this instance. The boundingbox is cleared, and if the annotation is referenced, the local instance of the annotation is erased.
public override void ClearCaches()
Overrides: GH_GeometricGoo<T>.ClearCaches
DuplicateGeometry
#Create a duplicate of this annotation.
Overrides: GH_GeometricGoo<T>.DuplicateGeometry
GetOverrides
#LoadGeometry
#If the geometry is referenced and not yet loaded, attempts to load the geometry.
Returns: True if the geometry is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
LoadGeometry
#If the annotation is referenced and not yet loaded, attempts to load the leader.
Returns: True if the annotation is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
SetOverrides
#ToString
#Format the dimension using default grasshopper formatting logic.
Overrides: GH_Goo<T>.ToString