Constructors

GH_Dimension

#
Default constructor, creates an invalid dimension.
public GH_Dimension()

GH_Dimension

#
Create a duplicate of an existing dimension.
protected GH_Dimension(
dimension,
Dimension to duplicate
style
Annotation style to use
)

GH_Dimension

#
Create a duplicate of an existing dimension.
protected GH_Dimension(
dimension
Dimension to duplicate
)

GH_Dimension

#
Create a duplicate of another GH_Dimension. This constructor also copies reference data.
protected GH_Dimension(
GH_Dimension
other
GH_Dimension to duplicate
)

GH_Dimension

#
Create a new referenced dimension that references a Rhino dimension with the specified ID.
public GH_Dimension(
ref_guid
ID of dimension object to reference.
)

GH_Dimension

#
protected GH_Dimension(
objectReference
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

BoundingBox

public override BoundingBox BoundingBox { get; }
inherited fromGH_AnnotationBase

ClippingBox

public BoundingBox ClippingBox { get; }
inherited fromGH_AnnotationBase
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; }
inherited fromGH_AnnotationBase

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; }
inherited fromGH_AnnotationBase

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; }
inherited fromGH_AnnotationBase

Overrides

public ModelAnnotationStyle Overrides { get; set; }
inherited fromGH_AnnotationBase

ReferenceID

public override Guid ReferenceID { get; set; }
inherited fromGH_AnnotationBase

TypeDescription

public override string TypeDescription { get; }
inherited fromGH_AnnotationBase

TypeName

public override string TypeName { get; }
inherited fromGH_AnnotationBase

Value

#
public Dimension Value { get; set; }

ValueType

#
protected override Type ValueType { get; }

Methods

BakeGeometry

public bool BakeGeometry(
doc,
att,
ref Guid
obj_guid
)
inherited fromGH_AnnotationBase
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 T.
public override bool CastTo<Q>(
ref Q
target
Pointer to target of cast.
)
inherited fromGH_GeometricGoo<T>
Remarks: If false, the target instance contents are not guaranteed to be valid.
True on success, false on failure.
GH_Goo<T>.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()
inherited fromGH_AnnotationBase

DrawViewportMeshes

public void DrawViewportMeshes()
inherited fromGH_AnnotationBase
DrawViewportMeshes

DrawViewportWires

public void DrawViewportWires()
inherited fromGH_AnnotationBase
DrawViewportWires

Duplicate

public override IGH_Goo Duplicate()
inherited fromGH_AnnotationBase

DuplicateAnnotation

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

DuplicateGeometry

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

EmitProxy

#
public override IGH_GooProxy EmitProxy()

GetBoundingBox

public override BoundingBox GetBoundingBox(
xform
)
inherited fromGH_AnnotationBase

LoadGeometry

If the geometry is referenced and not yet loaded, attempts to load the geometry.
public override bool LoadGeometry()
inherited fromGH_AnnotationBase
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()
inherited fromGH_AnnotationBase
True if the annotation is loaded (or if it was already loaded), False on failure.

Read

public override bool Read(
reader
)
inherited fromGH_AnnotationBase
GH_Goo<T>.Read

ScriptVariable

public override object ScriptVariable()
inherited fromGH_AnnotationBase

ToString

Format the dimension using default grasshopper formatting logic.
public override string ToString()
inherited fromGH_AnnotationBase

Transform

public override IGH_GeometricGoo Transform(
Transform
xform
)
inherited fromGH_AnnotationBase

Write

public override bool Write(
writer
)
inherited fromGH_AnnotationBase
GH_Goo<T>.Write