Class Line
The line is a IGeoObject. It is actually a line segment
not an infinite line.
Inheritance
System.Object
Line
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 Line : IGeoObjectImpl, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, IColorDef, ILineWidth, ILinePattern, ISerializable, ICurve, IExtentedableCurve, ISimpleCurve, IExplicitPCurve3D, IJsonSerialize, IExportStep
Constructors
|
Improve this Doc
View Source
Line()
Empty protected constructor.
Declaration
|
Improve this Doc
View Source
Line(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected Line(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
Provide a delegate here if you want you Line derived class to be
created each time CADability creates a line.
Declaration
public static Line.ConstructionDelegate Constructor
Field Value
|
Improve this Doc
View Source
OnPaintTo3D
Declaration
public static Line.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 virtual GeoPoint EndPoint { get; set; }
Property Value
|
Improve this Doc
View Source
IsClosed
Declaration
public bool IsClosed { 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
Gets or sets the length of the line. Setting the length modifies the endpoint and keeps the startpoint
and causes the line to fire the
WillChangeEvent and the DidChangeEvent.
Declaration
public double Length { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
LengthFixPoint
do not use, used only internaly.
Declaration
public GeoPoint LengthFixPoint { get; }
Property Value
|
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
PreferredStyle
Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Overrides
|
Improve this Doc
View Source
StartDirection
Declaration
public GeoVector StartDirection { get; }
Property Value
|
Improve this Doc
View Source
StartPoint
Declaration
public virtual GeoPoint StartPoint { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Clone()
Overrides Clone() and implements Clone().
Returns a clone of this line.
Declaration
public override IGeoObject Clone()
Returns
Overrides
|
Improve this Doc
View Source
Construct()
The only way to create a line. There are no public constructors for the line to assure
that this is the only way to construct a line.
Declaration
public static Line Construct()
Returns
|
Improve this Doc
View Source
CopyGeometry(IGeoObject)
Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Type |
Name |
Description |
IGeoObject |
ToCopyFrom |
must be a line, to copy data from
|
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
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 ISerializable:GetObjectData
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
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
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)
Liefert die Liste aller anzuzeigenden Properties
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
IsInPlane(Plane)
Declaration
public bool IsInPlane(Plane p)
Parameters
Type |
Name |
Description |
Plane |
p |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MakeLine(GeoPoint, GeoPoint)
Declaration
public static Line MakeLine(GeoPoint p1, GeoPoint p2)
Parameters
Returns
|
Improve this Doc
View Source
Modify(ModOp)
Declaration
public override void Modify(ModOp m)
Parameters
Type |
Name |
Description |
ModOp |
m |
the operator for the modification
|
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
SetTwoPoints(GeoPoint, GeoPoint)
Declaration
public void SetTwoPoints(GeoPoint startPoint, GeoPoint endPoint)
Parameters
Type |
Name |
Description |
GeoPoint |
startPoint |
the new startpoint
|
GeoPoint |
endPoint |
the new endpoint
|
|
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 |
|
Events
|
Improve this Doc
View Source
Constructed
Declaration
public static event Line.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.Length
Declaration
double ICurve.Length { get; }
Returns
Type |
Description |
System.Double |
|
|
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.Reverse()
Declaration
|
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
ICurve.TryPointDeriv2At(Double, out GeoPoint, out GeoVector, out GeoVector)
Declaration
bool ICurve.TryPointDeriv2At(double position, out GeoPoint point, out GeoVector deriv1, out GeoVector deriv2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IExtentedableCurve.GetExtendedCurve(ExtentedableCurveDirection)
Declaration
IOctTreeInsertable IExtentedableCurve.GetExtendedCurve(ExtentedableCurveDirection direction)
Parameters
Returns
|
Improve this Doc
View Source
IExplicitPCurve3D.GetExplicitPCurve3D()
Declaration
ExplicitPCurve3D IExplicitPCurve3D.GetExplicitPCurve3D()
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