VectorTypeAssistant

TypeAssistant<1>
Type assistant for the Rhino.Geometry.Point3d type.

Constructors

VectorTypeAssistant

#
public VectorTypeAssistant()

Properties

Constructors

Enumerate all defined constructors for this type.
public virtual IEnumerable<string> Constructors { get; }
inherited fromTypeAssistant<T>
Constructors

Icon

#
public override IIcon Icon { get; }

IsReimplementation

Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
public bool IsReimplementation { get; }
inherited fromTypeAssistant<T>
IsReimplementation

Name

Gets the parameter description associated with this type.
public string Name { get; }
inherited fromTypeAssistant<T>
Name

ReimplementationBase

Gets the base assistant (if any) this assistant is a re-implementation of.
public ITypeAssistant ReimplementationBase { get; }
inherited fromTypeAssistant<T>

Type

Gets the type associated with this assistant.
public Type Type { get; }
inherited fromTypeAssistant<T>
Type

ZupportsArea

Gets whether this type assistant has support for Area metrics.
public bool ZupportsArea { get; }
inherited fromTypeAssistant<T>
ZupportsArea

ZupportsAreaCentroid

Gets whether this type assistant has support for Area centroid metrics.
public bool ZupportsAreaCentroid { get; }
inherited fromTypeAssistant<T>

ZupportsBake

Gets whether this type assistant has support for geometry baking.
public bool ZupportsBake { get; }
inherited fromTypeAssistant<T>
ZupportsBake

ZupportsBoundingBox

Gets whether this type assistant has support for BoundingBox metrics.
public bool ZupportsBoundingBox { get; }
inherited fromTypeAssistant<T>

ZupportsClosestPoint

Gets whether this type assistant has support for closest point resolution.
public bool ZupportsClosestPoint { get; }
inherited fromTypeAssistant<T>

ZupportsDeform

Gets whether this type assistant has support for spatial morphs.
public bool ZupportsDeform { get; }
inherited fromTypeAssistant<T>
ZupportsDeform

ZupportsDraw

Gets whether this type assistant has support for geometry display.
public bool ZupportsDraw { get; }
inherited fromTypeAssistant<T>
ZupportsDraw

ZupportsFurthestPoint

Gets whether this type assistant has support for furthest point resolution.
public bool ZupportsFurthestPoint { get; }
inherited fromTypeAssistant<T>

ZupportsLength

Gets whether this type assistant has support for Length metrics.
public bool ZupportsLength { get; }
inherited fromTypeAssistant<T>
ZupportsLength

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.
public bool ZupportsPick { get; }
inherited fromTypeAssistant<T>
ZupportsPick

ZupportsReadWrite

Gets whether this assistant supports (de)serializing instances of T.
public bool ZupportsReadWrite { get; }
inherited fromTypeAssistant<T>
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.
public bool ZupportsRoundTripping { get; }
inherited fromTypeAssistant<T>

ZupportsTransform

Gets whether this type assistant has support for transformations.
public bool ZupportsTransform { get; }
inherited fromTypeAssistant<T>
ZupportsTransform

ZupportsTransformBox

Gets whether this type assistant has support for aligned BoundingBox metrics.
public bool ZupportsTransformBox { get; }
inherited fromTypeAssistant<T>

ZupportsVolume

Gets whether this type assistant has support for Volume metrics.
public bool ZupportsVolume { get; }
inherited fromTypeAssistant<T>
ZupportsVolume

ZupportsVolumeCentroid

Gets whether this type assistant has support for Volume centroid metrics.
public bool ZupportsVolumeCentroid { get; }
inherited fromTypeAssistant<T>

Methods

Area

#
public override bool Area(
instance,
out double
area
)

AreaCentroid

Measure the area of an instance.
public virtual bool AreaCentroid(
T
instance,
Instance to measure.
out double
area,
Measured area.
out Point3d
centroid
Area centroid.
)
inherited fromTypeAssistant<T>
Success or failure.
AreaCentroid

BoundingBox

Gets the world aligned boundingbox for an instance.
public virtual BoundingBox BoundingBox(
T
instance
Instance to measure.
)
inherited fromTypeAssistant<T>
BoundingBox.
BoundingBox

ClosestPoint

Gets the point on an instance closest to a locus point.
public virtual bool ClosestPoint(
T
instance,
Instance to examine.
locus,
Locus (search) point.
out Point3d
site
Point on instance closest to locus.
)
inherited fromTypeAssistant<T>
Success or failure.
ClosestPoint

Copy

#
public override Vector3d Copy(
instance
)

CreateComparer

Create an equality comparer for this type. It depends on the implementation of Hash() and Same().
public IEqualityComparer<T> CreateComparer()
inherited fromTypeAssistant<T>

Deform

Morph an instance of T.
public virtual object Deform(
T
instance,
Instance to morph.
morph
Morping class.
)
inherited fromTypeAssistant<T>
Morphed object.
Deform

DescribePrimary

#
public override string DescribePrimary()

DescribeSecondary

#
public override string DescribeSecondary()

Draw

#
public override void Draw()

Format

#
public override string Format(
instance
)

FurthestPoint

Gets the point on an instance furthest away from a locus point.
public virtual bool FurthestPoint(
T
instance,
Instance to examine.
locus,
Locus (search) point.
out Point3d
site
Point on instance furthest from locus.
)
inherited fromTypeAssistant<T>
Success or failure.
FurthestPoint

Hash

Hash an instance of the object. The default implementation calls GetHash() on the instance.
public virtual int Hash(
T
instance
)
inherited fromTypeAssistant<T>
Hash

HashUsingWriteMethod

Utility method for hashing a value based on the Write() implementation.
protected int HashUsingWriteMethod(
T
instance
)
inherited fromTypeAssistant<T>

Length

#
public override bool Length(
instance,
out double
length
)

ModifyBakeAttributes

#
public override ObjectAttributes ModifyBakeAttributes()

ModifyBakeAttributes

#
public override ObjectAttributes ModifyBakeAttributes(
pear,
document,
initial
)

Parse

#
public override Result<Vector3d> Parse(
constructor,
text,
existing
)

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.
public virtual bool Pick(
Pear<T>
existing,
Existing value to be overwritten, if any.
out Pear<T>
pear
Pear which was picked.
)
inherited fromTypeAssistant<T>
True if a value was picked.
Pick

Read

#
public override bool Read(
reader,
location,
instance
)

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.
)
inherited fromTypeAssistant<T>
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.
)
inherited fromTypeAssistant<T>
Updated metadata.

Same

#
public override bool Same()

Show

#
public override IValueDisplay Show()

Sort

#
public override int Sort()

Test

Determine the validity of an instance.
public bool Test(
T
instance
Instance.
)
inherited fromTypeAssistant<T>
True if the instance is valid, false if otherwise.
Test

Test

#
public override bool Test(
instance,
out string
invalidReason
)

Text

#
public override Prose.Text Text(
instance
)

ToGeometry

#
public override IEnumerable<GeometryBase> ToGeometry()

Transform

#
public override object Transform(
instance,
Transform
matrix
)

TransformBox

Gets the transformation aligned boundingbox for an instance.
public virtual BoundingBox TransformBox(
T
instance,
transformation
)
inherited fromTypeAssistant<T>
BoundingBox.
TransformBox

Volume

Measure the volume of an instance.
public virtual bool Volume(
T
instance,
Instance to measure.
out double
volume
Measured volume.
)
inherited fromTypeAssistant<T>
Success or failure.
Volume

VolumeCentroid

Measure the volume of an instance.
public virtual bool VolumeCentroid(
T
instance,
Instance to measure.
out double
volume,
Measured volume.
out Point3d
centroid
Volume centroid.
)
inherited fromTypeAssistant<T>
Success or failure.
VolumeCentroid

Write

#
public override bool Write(
writer,
location,
instance
)