IoExtensionMethods

public static class IoExtensionMethods
Provides some extension methods for reading and writing RhinoCommon and Eto types to GrasshopperIO objects.

Methods

Read an Angle from an archive.
public static Angle Angle(
this IReader
reader,
Object to read from.
location
Location of entry.
)
angle.
Write an angle to an archive.
public static void Angle(
this IWriter
writer,
Writer object.
location,
Location of entry.
Angle
angle
Angle to write.
)
Read an Arc from an archive.
public static Arc Arc(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Arc.
Write an Arc to an archive.
public static void Arc(
this IWriter
writer,
Writer object.
location,
Location of entry.
Arc
arc
Circle to write.
)

BoundingBox

#Example
Read a bounding box from an archive.
public static BoundingBox BoundingBox(
this IReader
reader,
Object to read from.
location
Location of entry.
)
BoundingBox.

BoundingBox

#Example
Write a bounding box to an archive.
public static void BoundingBox(
this IWriter
writer,
Writer object.
location,
Location of entry.
BoundingBox
box
BoundingBox to write.
)
Read a box from an archive.
public static Box Box(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Box.
Write a box to an archive.
public static void Box(
this IWriter
writer,
Writer object.
location,
Location of entry.
Box
box
Box to write.
)

Circle

#Example
Read a Circle from an archive.
public static Circle Circle(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Circle.

Circle

#Example
Write a Circle to an archive.
public static void Circle(
this IWriter
writer,
Writer object.
location,
Location of entry.
Circle
circle
Circle to write.
)

CommonObject

#Example
Read a Rhino common object from an archive.
public static CommonObject CommonObject(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Common object.

CommonObject

#Example
Write a Rhino common object to an archive.
public static void CommonObject(
this IWriter
writer,
Writer object.
location,
Location of entry.
CommonObject
co
Common object to write.
)

EtoArcF

#Example
Read an Eto arc from an archive.
public static ArcF EtoArcF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto arc.

EtoArcF

#Example
Write an Eto arc to an archive.
public static void EtoArcF(
this IWriter
writer,
Writer object.
location,
Entry location.
arc
Arc to write.
)

EtoBezierF

#Example
Read an Eto bezier from an archive.
public static BezierF EtoBezierF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto bezier.

EtoBezierF

#Example
Write an Eto bezier to an archive.
public static void EtoBezierF(
this IWriter
writer,
Writer object.
location,
Entry location.
bezier
Bezier to write.
)

EtoBitmap

#Example
Read an Eto bitmap from an archive.
public static Bitmap EtoBitmap(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto bitmap.

EtoBitmap

#Example
Write an Eto bitmap to an archive.
public static void EtoBitmap(
this IWriter
writer,
Writer object.
location,
Entry location.
Bitmap
bitmap
Bitmap to write.
)

EtoCircleF

#Example
Read an Eto circle from an archive.
public static CircleF EtoCircleF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto circle.

EtoCircleF

#Example
Write an Eto circle to an archive.
public static void EtoCircleF(
this IWriter
writer,
Writer object.
location,
Entry location.
circle
Circle to write.
)

EtoColor

#Example
Read an Eto colour from an archive.
public static Color EtoColor(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto colour.

EtoColor

#Example
Write an Eto colour to an archive. The colour is stored as an array of 4 floats.
public static void EtoColor(
this IWriter
writer,
Writer object.
location,
Entry location.
Color
colour
Colour to write.
)

EtoEllipseF

#Example
Read an Eto ellipse from an archive.
public static EllipseF EtoEllipseF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto ellipse.

EtoEllipseF

#Example
Write an Eto ellipse to an archive.
public static void EtoEllipseF(
this IWriter
writer,
Writer object.
location,
Entry location.
ellipse
Ellipse to write.
)

EtoFrameF

#Example
Read an Eto frame from an archive.
public static FrameF EtoFrameF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto frame.

EtoFrameF

#Example
Write an Eto frame to an archive.
public static void EtoFrameF(
this IWriter
writer,
Writer object.
location,
Entry location.
frame
Frame to write.
)

EtoLineF

#Example
Read an Eto line from an archive.
public static LineF EtoLineF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto line.

EtoLineF

#Example
Write an Eto line to an archive.
public static void EtoLineF(
this IWriter
writer,
Writer object.
location,
Entry location.
line
Line to write.
)

EtoPoint

#Example
Read an Eto point from an archive.
public static Point EtoPoint(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto point.

EtoPoint

#Example
Write an Eto point to an archive.
public static void EtoPoint(
this IWriter
writer,
Writer object.
location,
Entry location.
point
Point to write.
)

EtoPointF

#Example
Read an Eto point from an archive.
public static PointF EtoPointF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto point.

EtoPointF

#Example
Write an Eto point to an archive.
public static void EtoPointF(
this IWriter
writer,
Writer object.
location,
Entry location.
PointF
point
Point to write.
)

EtoPointFArray

#Example
Read an Eto pointf array from an archive.
public static PointF[] EtoPointFArray(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto points.

EtoPointFArray

#Example
Write an Eto pointf array to an archive.
public static void EtoPointFArray(
this IWriter
writer,
Writer object.
location,
Entry location.
PointF[]
points
Points to write.
)

EtoRectangle

#Example
Read an Eto rectangle from an archive.
public static Rectangle EtoRectangle(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto rectangle.

EtoRectangle

#Example
Write an Eto rectangle to an archive.
public static void EtoRectangle(
this IWriter
writer,
Writer object.
location,
Entry location.
Rectangle
rectangle
Rectangle to write.
)

EtoRectangleF

#Example
Read an Eto rectangle from an archive.
public static RectangleF EtoRectangleF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto rectangle.

EtoRectangleF

#Example
Write an Eto size to an archive.
public static void EtoRectangleF(
this IWriter
writer,
Writer object.
location,
Entry location.
RectangleF
rectangle
Rectangle to write.
)

EtoRotation

#Example
Read an Eto rotation from an archive.
public static RotationF EtoRotation(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto rotation.

EtoRotation

#Example
Write an Eto rotation to an archive.
public static void EtoRotation(
this IWriter
writer,
Writer object.
location,
Entry location.
rotation
Rotation to write.
)

EtoSize

#Example
Read an Eto size from an archive.
public static Size EtoSize(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto size.

EtoSize

#Example
Write an Eto size to an archive.
public static void EtoSize(
this IWriter
writer,
Writer object.
location,
Entry location.
Size
size
Size to write.
)

EtoSizeF

#Example
Read an Eto size from an archive.
public static SizeF EtoSizeF(
this IReader
reader,
Object to read from.
location
Entry location.
)
Eto size.

EtoSizeF

#Example
Write an Eto size to an archive.
public static void EtoSizeF(
this IWriter
writer,
Writer object.
location,
Entry location.
SizeF
size
Size to write.
)

Function

#Example
Read a function from an archive.
public static Function Function(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Function.

Function

#Example
Write a function to an archive.
public static void Function(
this IWriter
writer,
Writer object.
location,
Location of entry.
Function
function
Function to write.
)

GdiColor

#Example
Read a GDI colour from an archive.
public static Color GdiColor(
this IReader
reader,
Object to read from.
location
Entry location.
)
GDI colour.

GdiColor

#Example
Write a GDI colour to an archive. The colour is stored as a single integer.
public static void GdiColor(
this IWriter
writer,
Writer object.
location,
Entry location.
Color
colour
Colour to write.
)

Interval

#Example
Read an Interval from an archive.
public static Interval Interval(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Interval.

Interval

#Example
Write an Interval to an archive.
public static void Interval(
this IWriter
writer,
Writer object.
location,
Location of entry.
Interval
interval
Interval to write.
)
Read a Plane from an archive.
public static Line Line(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Plane.
Write a Line to an archive.
public static void Line(
this IWriter
writer,
Writer object.
location,
Location of entry.
Line
line
Line to write.
)

Material

#Example
Read a display material from an archive.
public static DisplayMaterial Material(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Material.

Material

#Example
Write a display material to an archive.
public static void Material(
this IWriter
writer,
Writer object.
location,
Location of entry.
material
Material to write.
)
Read a nomen from an archive.
public static Nomen Nomen(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Nomen.
Write a nomen to an archive.
public static void Nomen(
this IWriter
writer,
Writer object.
location,
Location of entry.
Nomen
nomen
Nomen to write.
)
Read a Plane from an archive.
public static Plane Plane(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Plane.
Write a Plane to an archive.
public static void Plane(
this IWriter
writer,
Writer object.
location,
Location of entry.
Plane
plane
Plane to write.
)

Point2d

#Example
Read a Point2d from an archive.
public static Point2d Point2d(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Point2d.

Point2d

#Example
Write a Point2d to an archive.
public static void Point2d(
this IWriter
writer,
Writer object.
location,
Location of entry.
Point2d
point
Point to write.
)

Point2dArray

#Example
Read an array of Point2d from an archive.
public static Point2d[] Point2dArray(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Point2d array.

Point2dArray

#Example
Write a Point2d array to an archive.
public static void Point2dArray(
this IWriter
writer,
Writer object.
location,
Location of entry.
points
Points to write.
)

Point3d

#Example
Read a Point3d from an archive.
public static Point3d Point3d(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Point3d.

Point3d

#Example
Write a Point3d to an archive.
public static void Point3d(
this IWriter
writer,
Writer object.
location,
Location of entry.
Point3d
point
Point to write.
)

Point3dArray

#Example
Read an array of Point3d from an archive.
public static Point3d[] Point3dArray(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Point3d array.

Point3dArray

#Example
Write a Point3d to an archive.
public static void Point3dArray(
this IWriter
writer,
Writer object.
location,
Location of entry.
points
Points to write.
)

Polyline

#Example
Read a polyline from an archive.
public static Polyline Polyline(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Polyline.

Polyline

#Example
Write a polyline to an archive.
public static void Polyline(
this IWriter
writer,
Writer object.
location,
Location of entry.
Polyline
polyline
Polyline to write.
)

Rectangle

#Example
Read a rectangle from an archive.
public static Rectangle3d Rectangle(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Box.

Rectangle

#Example
Write a rectangle to an archive.
public static void Rectangle(
this IWriter
writer,
Writer object.
location,
Location of entry.
rec
Rectangle to write.
)

SpatialVector

#Example
Read a spatial vector from an archive.
public static Locus SpatialVector(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Vector.

SpatialVector

#Example
Write a spatial vector to an archive.
public static void SpatialVector(
this IWriter
writer,
Writer object.
location,
Location of entry.
vector
Vector to write.
)

SpatialVectorArray

#Example
Read a spatial vector array from an archive.
public static Locus[] SpatialVectorArray(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Vector array.

SpatialVectorArray

#Example
Write a spatial vector array to an archive.
public static void SpatialVectorArray(
this IWriter
writer,
Writer object.
location,
Location of entry.
vector
Vector to write.
)

Sphere

#Example
Read a sphere from an archive.
public static Sphere Sphere(
this IReader
reader,
Object to read from.
location
Location of entry.
)

Sphere

#Example
Write a sphere to an archive.
public static void Sphere(
this IWriter
writer,
Writer object.
location,
Location of entry.
Sphere
sphere
Sphere to write.
)

Transform

#Example
Read a Transform from an archive.
public static Transform Transform(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Transform.

Transform

#Example
Write a Transform to an archive.
public static void Transform(
this IWriter
writer,
Writer object.
location,
Location of entry.
Transform
transform
Transform to write.
)
Read a tube from an archive.
public static Tube Tube(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Write a Tube to an archive.
public static void Tube(
this IWriter
writer,
Writer object.
location,
Location of entry.
Tube
tube
Tube to write.
)

Vector2d

#Example
Read a Vector2d from an archive.
public static Vector2d Vector2d(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Vector2d.

Vector2d

#Example
Write a Vector2d to an archive.
public static void Vector2d(
this IWriter
writer,
Writer object.
location,
Location of entry.
Vector2d
vector
Vector to write.
)

Vector3d

#Example
Read a Vector3d from an archive.
public static Vector3d Vector3d(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Vector3d.

Vector3d

#Example
Write a Vector3d to an archive.
public static void Vector3d(
this IWriter
writer,
Writer object.
location,
Location of entry.
Vector3d
vector
Vector to write.
)

Vector3dArray

#Example
Read an array of Point3d from an archive.
public static Vector3d[] Vector3dArray(
this IReader
reader,
Object to read from.
location
Location of entry.
)
Point3d array.

Vector3dArray

#Example
Write a Vector3d array to an archive.
public static void Vector3dArray(
this IWriter
writer,
Writer object.
location,
Location of entry.
vectors
Vectors to write.
)