Constructors
RectangleTypeAssistant
#public RectangleTypeAssistant()
Properties
IsReimplementation
Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
Implements: IsReimplementation
Implements: Name
ReimplementationBase
Gets the base assistant (if any) this assistant is a re-implementation of.
Implements: ReimplementationBase
Implements: Type
ZupportsArea
Gets whether this type assistant has support for Area metrics.
Implements: ZupportsArea
ZupportsAreaCentroid
Gets whether this type assistant has support for Area centroid metrics.
Implements: ZupportsAreaCentroid
ZupportsBake
Gets whether this type assistant has support for geometry baking.
Implements: ZupportsBake
ZupportsBoundingBox
Gets whether this type assistant has support for BoundingBox metrics.
Implements: ZupportsBoundingBox
ZupportsClosestPoint
Gets whether this type assistant has support for closest point resolution.
Implements: ZupportsClosestPoint
ZupportsDeform
Gets whether this type assistant has support for spatial morphs.
Implements: ZupportsDeform
ZupportsDraw
Gets whether this type assistant has support for geometry display.
Implements: ZupportsDraw
ZupportsFurthestPoint
Gets whether this type assistant has support for furthest point resolution.
Implements: ZupportsFurthestPoint
ZupportsLength
Gets whether this type assistant has support for Length metrics.
Implements: ZupportsLength
ZupportsLink
Gets whether this type assistant has support for geometry referencing.
Implements: ZupportsLink
ZupportsPick
Gets whether the assistants supports UI for specifying new values. Note that if the TypeAssistant<T>.Pick(Pear<T>, Pear<T>) method hasn't been overwritten but the TypeAssistant<T>.ZupportsRoundTripping is true, then values can be specified using the TypeAssistant<T>.Format(T) and TypeAssistant<T>.Parse(string, string, Pear<T>) methods.
Implements: ZupportsPick
ZupportsReadWrite
Gets whether this assistant supports (de)serializing instances of T.
Implements: ZupportsReadWrite
ZupportsRoundTripping
Gets whether this assistant supports round-tripping from T to string to T. For this to be true, both TypeAssistant<T>.Format(T) and TypeAssistant<T>.Parse(string, string, Pear<T>) must be implemented.
Implements: ZupportsRoundTripping
ZupportsTransform
Gets whether this type assistant has support for transformations.
Implements: ZupportsTransform
ZupportsTransformBox
Gets whether this type assistant has support for aligned BoundingBox metrics.
Implements: ZupportsTransformBox
ZupportsVolume
Gets whether this type assistant has support for Volume metrics.
Implements: ZupportsVolume
ZupportsVolumeCentroid
Gets whether this type assistant has support for Volume centroid metrics.
Implements: ZupportsVolumeCentroid
Methods
AreaCentroid
Measure the area of an instance.
Returns: Success or failure.
Implements: AreaCentroid
CreateComparer
Create an equality comparer for this type. It depends on the implementation of Hash() and Same().
Hash
Hash an instance of the object. The default implementation calls GetHash() on the instance.
Implements: Hash
HashUsingWriteMethod
Utility method for hashing a value based on the Write() implementation.
Link
Create a pear from a reference ID. This is primarily used to update Grasshopper data which links to shapes in the Rhino document.
Returns: Whether the pear was relinked, was unchanged, or could not be relinked.
Implements: Link
ModifyBakeAttributes
By overriding this method, the type implementor may add modifications to the attributes of objects baked to Rhino files. For example, vectors when baked require an arrowhead to be set at the curve end, and this must be specified via the object attributes.
public virtual ObjectAttributes ModifyBakeAttributes()
pear,
The pear associated with the attributes.
file,
The Rhino 3dm file into which the geometry will be baked.
initial
The attributes to be used.
Returns: Modified attributes.
ModifyBakeAttributes
By overriding this method, the type implementor may add modifications to the attributes of objects baked to Rhino documents. For example, vectors when baked require an arrowhead to be set at the curve end, and this must be specified via the object attributes.
public virtual ObjectAttributes ModifyBakeAttributes()
pear,
The pear associated with the attributes.
document,
The Rhino document into which the geometry will be baked.
initial
The attributes to be used.
Returns: Modified attributes.
Implements: ModifyBakeAttributes
Pick
Ask the user to specify (or pick) a new value. When this method is invoked, it is assumed that it will start a RhinoGet operation or otherwise pop some kind of UI on the screen.
Returns: True if a value was picked.
Implements: Pick
RelinkMetaDataFromUserStrings
Utility method for updating metadata from userstrings after relinking a value.
protected MetaData RelinkMetaDataFromUserStrings()
metaOriginal,
Meta data of original value.
userStrings,
User strings collection.
aggressive = true
If true, all original data except the 'Rhino.Id' and 'Rhino.IdOrigin' will be wiped.
Returns: Updated metadata.
RelinkMetaDataFromUserStrings
Utility method for updating metadata from userstrings after relinking a value.
protected MetaData RelinkMetaDataFromUserStrings()
metaOriginal,
Meta data of original value.
attributes,
Rhino object attributes.
aggressive = true
If true, all original data except the 'Rhino.Id', 'Rhino.IdOrigin', and 'Rhino.Index' will be wiped.
Returns: Updated metadata.
Show
Create a Grasshopper display proxy.
Returns: Display proxy.
Implements: Show
Returns: True if the instance is valid, false if otherwise.
Implements: Test
VolumeCentroid
Measure the volume of an instance.
Returns: Success or failure.
Implements: VolumeCentroid