Constructors

GH_AnnotationBase

#
Default constructor, creates an invalid annotation.
protected GH_AnnotationBase()

GH_AnnotationBase

#
Create a duplicate of an existing annotation.
protected GH_AnnotationBase(
annotation,
Annotation to duplicate
style
Annotation style to use
)

GH_AnnotationBase

#
Create a duplicate of an existing annotation.
protected GH_AnnotationBase(
annotation
Annotation to duplicate
)

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.
protected GH_AnnotationBase(
ref_guid
ID of dimension object to reference.
)

GH_AnnotationBase

#
protected GH_AnnotationBase(
objectReference
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

BoundingBox

#
public override BoundingBox BoundingBox { get; }

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

IsGeometryLoaded

#
Gets the load state of this annotation object. The annotation is considered to be loaded when the local annotation 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 virtual bool IsReferencedGeometry { get; }
inherited fromGH_GeometricGoo<T>

IsValid

#
Gets the validity of this dimension. If the dimension is referenced but cannot be loaded, then the dimension 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; }

Overrides

#
public ModelAnnotationStyle Overrides { get; set; }

ReferenceID

#
public override Guid ReferenceID { get; set; }

Style

#
public ModelAnnotationStyle Style { get; set; }

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

#
public override AnnotationBase Value { get; set; }

ValueType

#
protected abstract Type ValueType { get; }

Methods

BakeGeometry

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

CastFrom

Attempt a cast from generic object.
public override bool CastFrom(
source
Reference to source of cast.
)
inherited fromGH_GeometricGoo<T>
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 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 annotation is referenced, the local instance of the annotation is erased.
public override void ClearCaches()

DrawViewportMeshes

#
public void DrawViewportMeshes()
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires()
DrawViewportWires

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateAnnotation

#
Create a duplicate of this annotation.
public abstract GH_AnnotationBase DuplicateAnnotation()

DuplicateGeometry

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

EmitProxy

#
public override IGH_GooProxy EmitProxy()

GetBoundingBox

#
public override BoundingBox GetBoundingBox(
xform
)

GetOverrides

#
[EditorBrowsable(EditorBrowsableState.Never)] public DimensionStyle GetOverrides()

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 annotation is referenced and not yet loaded, attempts to load the leader.
public override bool LoadGeometry()
True if the annotation 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()

SetOverrides

#
[EditorBrowsable(EditorBrowsableState.Never)] public bool SetOverrides()

ToString

#
Format the dimension 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