Properties
IsReimplementation
#Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
Name
#Gets the (singular) name of this type as meant for human consumption. I.e. "point", "number", "boolean", etc.
ZupportsRoundTripping
#Gets whether this assistant supports round-tripping from T to string to T. For this to be true, both Format(object) and Parse(string, string, IPear) must be implemented.
ZupportsTransformBox
#Gets whether this type assistant has support for transform aligned bounding boxes.
Methods
DescribePrimary
#Give the primary description of a value. This does not need to yield a parsable string, the results are meant only for human consumption.
DescribeSecondary
#Give the secondary description of a value. The secondary description may elaborate on the value. This method may always return null.
Format
#Format an instance so that it yields parsable text.
FurthestPoint
#Gets the point on an instance furthest away from a locus point.
Returns: Success or failure.
Hash
#Hash an instance of the object. The default implementation calls GetHash() on the instance.
Link
#Update a pear which contains reference meta data.
LinkResult Link()
existing,
Pear with referencing meta data.
out IPear
relinked,
The updated copy if the result is LinkResult.Relinked, otherwise the existing pear.
document
Rhino document to search.
Returns: Whether the pear was relinked, was unchanged, or could not be relinked.
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.
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.
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.
Parse
#Parse a text representation with an optional pre-existing value.
Returns: Result of parsing attempt.
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.
Test
#Determine the validity of an instance.
Returns: True if the instance is valid, false if otherwise.
Test
#Determine the validity of an instance.
Returns: True if the instance is valid, false if otherwise.
Text
#Create a Prose.Text which can function as a comparison stand-in for this value for the purposes of sorting. Particularly when it comes to sorting values of different types.
ToGeometry
#Convert a pear into a collection of Rhino compliant geometries. This is used primarily for the standard baking of geometric data.
Returns: A collection of zero or more Rhino document compliant shapes.