public abstract class Shape
Base class for all shape file records.

Constructors

Shape

#
protected Shape(BinaryReader reader)
Construct the base class from a reader object.
reader (BinaryReader)Reader.

Shape

#
protected Shape(ESRI_TypeCode code, int index)
Set up the ShapeFileRecord instance.
code (ESRI_TypeCode)Type code.
index (int)Record number/index.

Properties

BoundingBox

#
public abstract BoundingBox BoundingBox { get; }
Gets the bounding box for this shape.

ContainsElevationData

#
public abstract bool ContainsElevationData { get; }
Gets whether this shape contains any 3D data.

ContainsMeasurementData

#
public abstract bool ContainsMeasurementData { get; }
Gets whether this shape contains any measurement data.

ESRI_Type

#
public ESRI_TypeCode ESRI_Type { get; }
Gets the ESRI type code of the record in the shape file from which this shape was originally deserialized.

Index

#
public int Index { get; }
Gets the shape index.

Type

#
public abstract ShapeType Type { get; }
Gets the type of shape this record represents.

Methods

AddToDocument

#
public virtual void AddToDocument(RhinoDoc doc, ObjectAttributes attributes)
Adds all shapes to a Rhino document.
doc (RhinoDoc)Document to add to.
attributes (ObjectAttributes)Attributes to use.

TryParseRecord

#
public static Shape TryParseRecord(BinaryReader reader)
Attempt to read a record from the stream.
reader (BinaryReader)Reader to use.
Appropriate shapefile record or null if no valid record could be parsed.