Class Polyline
Inheritance
System.Object
Polyline
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class Polyline : IGeoObjectImpl, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, IColorDef, ILineWidth, ILinePattern, ICurve, ISerializable, IExtentedableCurve, IJsonSerialize, IExportStep
Constructors
|
Improve this Doc
View Source
Polyline()
Declaration
|
Improve this Doc
View Source
Polyline(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected Polyline(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
Fields
|
Improve this Doc
View Source
Constructor
Declaration
public static Polyline.ConstructionDelegate Constructor
Field Value
|
Improve this Doc
View Source
OnPaintTo3D
Declaration
public static Polyline.PaintTo3DDelegate OnPaintTo3D
Field Value
Properties
|
Improve this Doc
View Source
ColorDef
Declaration
public ColorDef ColorDef { get; set; }
Property Value
|
Improve this Doc
View Source
Description
Declaration
public override string Description { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
EndDirection
Declaration
public GeoVector EndDirection { get; }
Property Value
|
Improve this Doc
View Source
EndPoint
Declaration
public GeoPoint EndPoint { get; set; }
Property Value
|
Improve this Doc
View Source
IsClosed
Declaration
public bool IsClosed { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsParallelogram
Declaration
public bool IsParallelogram { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsRectangle
Declaration
public bool IsRectangle { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSingular
Declaration
public bool IsSingular { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Length
Declaration
public double Length { get; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
LinePattern
Declaration
public LinePattern LinePattern { get; set; }
Property Value
|
Improve this Doc
View Source
LineWidth
Declaration
public LineWidth LineWidth { get; set; }
Property Value
|
Improve this Doc
View Source
ParallelogramAngle
Declaration
public SweepAngle ParallelogramAngle { get; set; }
Property Value
|
Improve this Doc
View Source
ParallelogramHeight
Declaration
public double ParallelogramHeight { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ParallelogramLocation
Declaration
public GeoPoint ParallelogramLocation { get; set; }
Property Value
|
Improve this Doc
View Source
ParallelogramMainDirection
Declaration
public GeoVector ParallelogramMainDirection { get; set; }
Property Value
|
Improve this Doc
View Source
ParallelogramSecondaryDirection
Declaration
public GeoVector ParallelogramSecondaryDirection { get; set; }
Property Value
|
Improve this Doc
View Source
ParallelogramWidth
Declaration
public double ParallelogramWidth { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
PointCount
Declaration
public int PointCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
PreferredStyle
Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Overrides
|
Improve this Doc
View Source
RectangleHeight
Declaration
public double RectangleHeight { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
RectangleLocation
Declaration
public GeoPoint RectangleLocation { get; set; }
Property Value
|
Improve this Doc
View Source
RectangleWidth
Declaration
public double RectangleWidth { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
StartDirection
Declaration
public GeoVector StartDirection { get; }
Property Value
|
Improve this Doc
View Source
StartPoint
Declaration
public GeoPoint StartPoint { get; set; }
Property Value
|
Improve this Doc
View Source
Vertices
Declaration
public GeoPoint[] Vertices { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddPoint(GeoPoint)
Declaration
public void AddPoint(GeoPoint p)
Parameters
|
Improve this Doc
View Source
ApproximateByBSpline(Double)
Declaration
public BSpline ApproximateByBSpline(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
|
Improve this Doc
View Source
AttributeChanged(INamedAttribute)
Declaration
public override bool AttributeChanged(INamedAttribute attribute)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Clone()
Declaration
public override IGeoObject Clone()
Returns
Overrides
|
Improve this Doc
View Source
Construct()
Declaration
public static Polyline Construct()
Returns
|
Improve this Doc
View Source
CopyGeometry(IGeoObject)
Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Overrides
|
Improve this Doc
View Source
Decompose()
Declaration
public override GeoObjectList Decompose()
Returns
Overrides
|
Improve this Doc
View Source
DirectionAt(Double)
Declaration
public GeoVector DirectionAt(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
Returns
|
Improve this Doc
View Source
FindSnapPoint(SnapPointFinder)
Declaration
public override void FindSnapPoint(SnapPointFinder spf)
Parameters
Overrides
|
Improve this Doc
View Source
FromPoints(GeoPoint[], Boolean)
Declaration
public static Polyline FromPoints(GeoPoint[] pnts, bool closed = false)
Parameters
| Type |
Name |
Description |
| GeoPoint[] |
pnts |
|
| System.Boolean |
closed |
|
Returns
|
Improve this Doc
View Source
GetBoundingCube()
Declaration
public override BoundingCube GetBoundingCube()
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Projection, ExtentPrecision)
Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetExtent(Double)
Declaration
public override BoundingCube GetExtent(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Returns
Overrides
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
The System.Runtime.Serialization.SerializationInfo to populate with data.
|
| System.Runtime.Serialization.StreamingContext |
context |
The destination (System.Runtime.Serialization.StreamingContext) for this serialization.
|
Overrides
|
Improve this Doc
View Source
GetPlanarState()
Declaration
public PlanarState GetPlanarState()
Returns
|
Improve this Doc
View Source
GetPlane()
Declaration
Returns
|
Improve this Doc
View Source
GetPoint(Int32)
Declaration
public GeoPoint GetPoint(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Returns
|
Improve this Doc
View Source
GetProjectedCurve(Plane)
Declaration
public ICurve2D GetProjectedCurve(Plane p)
Parameters
| Type |
Name |
Description |
| Plane |
p |
|
Returns
|
Improve this Doc
View Source
GetQuadTreeItem(Projection, ExtentPrecision)
Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetShowProperties(IFrame)
Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
| Type |
Name |
Description |
| IFrame |
Frame |
|
Returns
Overrides
|
Improve this Doc
View Source
HasValidData()
Declaration
public override bool HasValidData()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(ref BoundingCube, Double)
Declaration
public override bool HitTest(ref BoundingCube cube, double precision)
Parameters
| Type |
Name |
Description |
| BoundingCube |
cube |
|
| System.Double |
precision |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection, BoundingRect, Boolean)
Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
HitTest(Projection.PickArea, Boolean)
Declaration
public override bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
|
Improve this Doc
View Source
InsertPoint(Double)
Declaration
public void InsertPoint(double position)
Parameters
| Type |
Name |
Description |
| System.Double |
position |
|
|
Improve this Doc
View Source
InsertPoint(Int32, GeoPoint)
Declaration
public void InsertPoint(int Index, GeoPoint p)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
| GeoPoint |
p |
|
|
Improve this Doc
View Source
IsInPlane(Plane)
Declaration
public bool IsInPlane(Plane p)
Parameters
| Type |
Name |
Description |
| Plane |
p |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public override void Modify(ModOp m)
Parameters
| Type |
Name |
Description |
| ModOp |
m |
|
Overrides
|
Improve this Doc
View Source
PaintTo3D(IPaintTo3D)
Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Overrides
|
Improve this Doc
View Source
PointAt(Double)
Declaration
public GeoPoint PointAt(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
Returns
|
Improve this Doc
View Source
Position(GeoPoint, GeoVector, Double)
Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Returns
| Type |
Description |
| System.Double |
|
Overrides
|
Improve this Doc
View Source
PositionOf(GeoPoint)
Declaration
public double PositionOf(GeoPoint p)
Parameters
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
PositionOf(GeoPoint, Plane)
Declaration
public double PositionOf(GeoPoint p, Plane pl)
Parameters
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
PositionOf(GeoPoint, Double)
Declaration
public double PositionOf(GeoPoint p, double prefer)
Parameters
| Type |
Name |
Description |
| GeoPoint |
p |
|
| System.Double |
prefer |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
PrepareDisplayList(Double)
Declaration
public override void PrepareDisplayList(double precision)
Parameters
| Type |
Name |
Description |
| System.Double |
precision |
|
Overrides
|
Improve this Doc
View Source
RemoveDoublePoints()
Declaration
public void RemoveDoublePoints()
|
Improve this Doc
View Source
RemovePoint(Int32)
Declaration
public void RemovePoint(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
|
Improve this Doc
View Source
Reverse()
Declaration
|
Improve this Doc
View Source
SetClosedPolylineStartIndex(Int32)
Let the closed polyline start with the vertex with the specified index. The vertex array will be rotated
Declaration
public bool SetClosedPolylineStartIndex(int startIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
startIndex |
Index of vertex with which to start
|
Returns
| Type |
Description |
| System.Boolean |
true on success
|
|
Improve this Doc
View Source
SetParallelogram(GeoPoint, GeoVector, GeoVector)
Declaration
public void SetParallelogram(GeoPoint location, GeoVector directionX, GeoVector directionY)
Parameters
|
Improve this Doc
View Source
SetPoint(Int32, GeoPoint)
Declaration
public void SetPoint(int Index, GeoPoint p)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
| GeoPoint |
p |
|
|
Improve this Doc
View Source
SetPoints(GeoPoint[], Boolean)
Declaration
public void SetPoints(GeoPoint[] points, bool closed)
Parameters
| Type |
Name |
Description |
| GeoPoint[] |
points |
|
| System.Boolean |
closed |
|
|
Improve this Doc
View Source
SetRectangle(GeoPoint, GeoVector, GeoVector)
Declaration
public void SetRectangle(GeoPoint location, GeoVector directionX, GeoVector directionY)
Parameters
|
Improve this Doc
View Source
Split(Double)
Declaration
public ICurve[] Split(double Position)
Parameters
| Type |
Name |
Description |
| System.Double |
Position |
|
Returns
|
Improve this Doc
View Source
Split(Double, Double)
Declaration
public ICurve[] Split(double Position1, double Position2)
Parameters
| Type |
Name |
Description |
| System.Double |
Position1 |
|
| System.Double |
Position2 |
|
Returns
|
Improve this Doc
View Source
Trim(Double, Double)
Declaration
public void Trim(double StartPos, double EndPos)
Parameters
| Type |
Name |
Description |
| System.Double |
StartPos |
|
| System.Double |
EndPos |
|
|
Improve this Doc
View Source
TryPointDeriv2At(Double, out GeoPoint, out GeoVector, out GeoVector)
Declaration
public virtual bool TryPointDeriv2At(double position, out GeoPoint point, out GeoVector deriv, out GeoVector deriv2)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
TrySetPoints(GeoPoint[], Boolean)
Declaration
public bool TrySetPoints(GeoPoint[] points, bool closed)
Parameters
| Type |
Name |
Description |
| GeoPoint[] |
points |
|
| System.Boolean |
closed |
|
Returns
| Type |
Description |
| System.Boolean |
|
Events
|
Improve this Doc
View Source
Constructed
Declaration
public static event Polyline.ConstructedDelegate Constructed
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IColorDef.SetTopLevel(ColorDef)
Declaration
void IColorDef.SetTopLevel(ColorDef newValue)
Parameters
|
Improve this Doc
View Source
IColorDef.SetTopLevel(ColorDef, Boolean)
Declaration
void IColorDef.SetTopLevel(ColorDef newValue, bool overwriteChildNullColor)
Parameters
| Type |
Name |
Description |
| ColorDef |
newValue |
|
| System.Boolean |
overwriteChildNullColor |
|
|
Improve this Doc
View Source
ICurve.Approximate(Boolean, Double)
Declaration
ICurve ICurve.Approximate(bool linesOnly, double maxError)
Parameters
| Type |
Name |
Description |
| System.Boolean |
linesOnly |
|
| System.Double |
maxError |
|
Returns
|
Improve this Doc
View Source
ICurve.Clone()
Declaration
Returns
|
Improve this Doc
View Source
ICurve.CloneModified(ModOp)
Declaration
ICurve ICurve.CloneModified(ModOp m)
Parameters
| Type |
Name |
Description |
| ModOp |
m |
|
Returns
|
Improve this Doc
View Source
ICurve.DistanceTo(GeoPoint)
Declaration
double ICurve.DistanceTo(GeoPoint p)
Parameters
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ICurve.GetExtent()
Declaration
BoundingCube ICurve.GetExtent()
Returns
|
Improve this Doc
View Source
ICurve.GetExtrema(GeoVector)
Declaration
double[] ICurve.GetExtrema(GeoVector direction)
Parameters
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
ICurve.GetPlaneIntersection(Plane)
Declaration
double[] ICurve.GetPlaneIntersection(Plane plane)
Parameters
| Type |
Name |
Description |
| Plane |
plane |
|
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
ICurve.GetSavePositions()
Declaration
double[] ICurve.GetSavePositions()
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
ICurve.GetSelfIntersections()
Declaration
double[] ICurve.GetSelfIntersections()
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
ICurve.HitTest(BoundingCube)
Declaration
bool ICurve.HitTest(BoundingCube cube)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICurve.IsComposed
Declaration
bool ICurve.IsComposed { get; }
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICurve.ParameterToPosition(Double)
Declaration
double ICurve.ParameterToPosition(double parameter)
Parameters
| Type |
Name |
Description |
| System.Double |
parameter |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ICurve.PositionAtLength(Double)
Declaration
double ICurve.PositionAtLength(double position)
Parameters
| Type |
Name |
Description |
| System.Double |
position |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ICurve.PositionToParameter(Double)
Declaration
double ICurve.PositionToParameter(double position)
Parameters
| Type |
Name |
Description |
| System.Double |
position |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ICurve.SameGeometry(ICurve, Double)
Declaration
bool ICurve.SameGeometry(ICurve other, double precision)
Parameters
| Type |
Name |
Description |
| ICurve |
other |
|
| System.Double |
precision |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICurve.SubCurves
Declaration
ICurve[] ICurve.SubCurves { get; }
Returns
|
Improve this Doc
View Source
ICurve.TangentPosition(GeoVector)
Declaration
double[] ICurve.TangentPosition(GeoVector direction)
Parameters
Returns
| Type |
Description |
| System.Double[] |
|
|
Improve this Doc
View Source
IExtentedableCurve.GetExtendedCurve(ExtentedableCurveDirection)
Declaration
IOctTreeInsertable IExtentedableCurve.GetExtendedCurve(ExtentedableCurveDirection direction)
Parameters
Returns
|
Improve this Doc
View Source
IExportStep.Export(ExportStep, Boolean)
Declaration
int IExportStep.Export(ExportStep export, bool topLevel)
Parameters
| Type |
Name |
Description |
| ExportStep |
export |
|
| System.Boolean |
topLevel |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
IJsonSerialize.GetObjectData(IJsonWriteData)
Declaration
void IJsonSerialize.GetObjectData(IJsonWriteData data)
Parameters
|
Improve this Doc
View Source
IJsonSerialize.SetObjectData(IJsonReadData)
Declaration
void IJsonSerialize.SetObjectData(IJsonReadData data)
Parameters
Implements
System.IComparable
System.ICloneable
System.Runtime.Serialization.ISerializable