Constructors
VectorTypeAssistant
#public VectorTypeAssistant()
Properties
Constructors
Enumerate all defined constructors for this type.
Implements: Constructors
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
Area
#Overrides: TypeAssistant<T>.Area
AreaCentroid
Measure the area of an instance.
Parameters:
| instance (T) | Instance to measure. |
| area (out double) | Measured area. |
| centroid (out Point3d) | Area centroid. |
Returns: Success or failure.
Implements: AreaCentroid
BoundingBox
Gets the world aligned boundingbox for an instance.
ClosestPoint
Gets the point on an instance closest to a locus point.
Parameters:
| instance (T) | Instance to examine. |
| locus (Point3d) | Locus (search) point. |
| site (out Point3d) | Point on instance closest to locus. |
Returns: Success or failure.
Implements: ClosestPoint
Copy
#Parameters:
| instance (Vector3d) |
Overrides: TypeAssistant<T>.Copy
CreateComparer
Create an equality comparer for this type. It depends on the implementation of Hash() and Same().
Parameters:
| instance (T) | Instance to morph. |
| morph (SpaceMorph) | Morping class. |
Returns: Morphed object.
Implements: Deform
DescribePrimary
#Overrides: TypeAssistant<T>.DescribePrimary
DescribeSecondary
#Overrides: TypeAssistant<T>.DescribeSecondary
Format
#Parameters:
| instance (Vector3d) |
Overrides: TypeAssistant<T>.Format
FurthestPoint
Gets the point on an instance furthest away from a locus point.
Parameters:
| instance (T) | Instance to examine. |
| locus (Point3d) | Locus (search) point. |
| site (out Point3d) | Point on instance furthest from locus. |
Returns: Success or failure.
Implements: FurthestPoint
Hash
Hash an instance of the object. The default implementation calls GetHash() on the instance.
Parameters:
| instance (T) |
Implements: Hash
HashUsingWriteMethod
Utility method for hashing a value based on the Write() implementation.
Parameters:
| instance (T) |
Length
#Overrides: TypeAssistant<T>.Length
Link
Create a pear from a reference ID. This is primarily used to update Grasshopper data which links to shapes in the Rhino document.
ModifyBakeAttributes
#public override ObjectAttributes ModifyBakeAttributes(Pear<Vector3d> pear, File3dm file, ObjectAttributes initial)
Parameters:
| pear (Pear<Vector3d>) | |
| file (File3dm) | |
| initial (ObjectAttributes) |
Overrides: TypeAssistant<T>.ModifyBakeAttributes
ModifyBakeAttributes
#public override ObjectAttributes ModifyBakeAttributes(Pear<Vector3d> pear, RhinoDoc document, ObjectAttributes initial)
Parameters:
| pear (Pear<Vector3d>) | |
| document (RhinoDoc) | |
| initial (ObjectAttributes) |
Overrides: TypeAssistant<T>.ModifyBakeAttributes
Parse
#Overrides: TypeAssistant<T>.Parse
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.
Read
#Overrides: TypeAssistant<T>.Read
RelinkMetaDataFromUserStrings
protected MetaData RelinkMetaDataFromUserStrings(MetaData metaOriginal, NameValueCollection userStrings, bool aggressive = true)
Utility method for updating metadata from userstrings after relinking a value.
Parameters:
| metaOriginal (MetaData) | Meta data of original value. |
| userStrings (NameValueCollection) | User strings collection. |
| aggressive (bool = true) | If true, all original data except the 'Rhino.Id' and 'Rhino.IdOrigin' will be wiped. |
Returns: Updated metadata.
RelinkMetaDataFromUserStrings
protected MetaData RelinkMetaDataFromUserStrings(MetaData metaOriginal, ObjectAttributes attributes, bool aggressive = true)
Utility method for updating metadata from userstrings after relinking a value.
Parameters:
| metaOriginal (MetaData) | Meta data of original value. |
| attributes (ObjectAttributes) | Rhino object attributes. |
| aggressive (bool = true) | If true, all original data except the 'Rhino.Id', 'Rhino.IdOrigin', and 'Rhino.Index' will be wiped. |
Returns: Updated metadata.
Same
#Overrides: TypeAssistant<T>.Same
Sort
#Overrides: TypeAssistant<T>.Sort
Parameters:
| instance (T) | Instance. |
Returns: True if the instance is valid, false if otherwise.
Implements: Test
Test
#Overrides: TypeAssistant<T>.Test
Text
#Parameters:
| instance (Vector3d) |
Overrides: TypeAssistant<T>.Text
Transform
#Overrides: TypeAssistant<T>.Transform
TransformBox
Gets the transformation aligned boundingbox for an instance.
VolumeCentroid
Measure the volume of an instance.
Parameters:
| instance (T) | Instance to measure. |
| volume (out double) | Measured volume. |
| centroid (out Point3d) | Volume centroid. |
Returns: Success or failure.
Implements: VolumeCentroid