Represents an implementation of a Rhino centermark.

Constructors

GH_Centermark

#
Default constructor, creates an invalid centermark.
public GH_Centermark()

GH_Centermark

#
Create a duplicate of an existing centermark.
public GH_Centermark(
centermark,
Centermark to duplicate
style
Annotation style to use
)

GH_Centermark

#
Create a duplicate of an existing centermark.
public GH_Centermark(
centermark
Centermark to duplicate
)

GH_Centermark

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

GH_Centermark

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

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

TypeName

#
public override string TypeName { get; }

Value

#
public Centermark 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

#
Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
public override bool CastFrom(
source
)

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 override GH_AnnotationBase DuplicateAnnotation()

DuplicateCentermark

#
Create a duplicate of this centermark.
public GH_Centermark DuplicateCentermark()

DuplicateGeometry

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

EmitProxy

public override IGH_GooProxy EmitProxy()
inherited fromGH_Dimension

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 centermark using default grasshopper formatting logic.
public override string ToString()

Transform

public override IGH_GeometricGoo Transform(
Transform
xform
)
inherited fromGH_AnnotationBase

Write

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