CADability dotNET

The Path type exposes the following members.

Constructors

  NameDescription
Protected methodPath()()()()
Protected methodPath(array<ICurve>[]()[][])
Creates a path from a list of properly connected curve objects. The curve objects will be removed from their owner (if there is a owner)
Protected methodPath(SerializationInfo, StreamingContext)
Constructor required by deserialization

Methods

  NameDescription
Public methodAdd
Adds a curve to this path. It is checked whether the curve to add can be connected to the start or endpoint of this path. If necessary the curve will be reversed. If it cannot be connected false will be returned.
Public methodBestCyclicalPosition
Assumes both this and toThis are closed Paths with the same number of segments. Changes this Path to start with the segment where the distance of corresponding vertices is minimal. The geometry of this curve will not be changed
Public methodChangeCyclicalStart
Public methodClear
Removes all subcurves, the Path will be empty. Use this before modifying contained objects of this path because it is not allowed to mdify an object in a path in a way that would compromise the consitence of the path
Public methodClone
Overrides Clone()()()()
(Overrides IGeoObjectImpl..::..Clone()()()().)
Public methodStatic memberConstruct
Public methodCopyGeometry (Overrides IGeoObjectImpl..::..CopyGeometry(IGeoObject).)
Public methodStatic memberCreateFromModel(ICurve, Model, Boolean)
Returns a Path containing the curve BeginWith and other curves from the Model. The curve BeginWith is checked at both ends to find connected objects. The search is stopped when there are nore more connected objects. The curves are clones and are tagged with UserData objects with the name key "CADability.Path.Original" and the original object as the value. If flatten is true, UserData will be lost.
Public methodStatic memberCreateFromModel(ICurve, Model, Projection, Boolean)
Returns a Path containing the curve BeginWith and other curves from the projectedModel. The curve BeginWith is checked at both ends to find connected objects. The search is stopped if there are nore more connected objects. The curves are clones and are tagged with UserData objects with the name key "CADability.Path.Original" and the original object as the value. If flatten is true, UserData will be lost.
Public methodCurve
Returns the i-th curve of the path. Do not modify this curve or the path will be in an invalid state. For the number of curves see CurveCount.
Public methodDecompose (Overrides IGeoObjectImpl..::..Decompose()()()().)
Public methodDirectionAt
Public methodFindSnapPoint (Overrides IGeoObjectImpl..::..FindSnapPoint(SnapPointFinder).)
Public methodFlatten
Flattens this path. All subcurves that are composed of simple curves are decomposed into simpler curves (e.g. a polyline is decomposed into lines)
Public methodGet2DRepresentation (Overrides IGeoObjectImpl..::..Get2DRepresentation(Projection, GDIResources).)
Public methodGetBoundingCube (Overrides IGeoObjectImpl..::..GetBoundingCube()()()().)
Public methodGetExtent (Overrides IGeoObjectImpl..::..GetExtent(Double).)
Public methodGetObjectData
Implements ISerializable:GetObjectData
(Overrides IGeoObjectImpl..::..GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetPlanarState
Public methodGetPlane
Implements GetPlane()()()()
Public methodGetProjectedCurve
Public methodGetQuadTreeItem (Overrides IGeoObjectImpl..::..GetQuadTreeItem(Projection, ExtentPrecision).)
Public methodGetShowProperties (Overrides IGeoObjectImpl..::..GetShowProperties(IFrame).)
Public methodHitTest(BoundingCube%, Double) (Overrides IGeoObjectImpl..::..HitTest(BoundingCube%, Double).)
Public methodHitTest(Projection..::..PickArea, Boolean) (Overrides IGeoObjectImpl..::..HitTest(Projection..::..PickArea, Boolean).)
Public methodHitTest(Projection, BoundingRect, Boolean) (Overrides IGeoObjectImpl..::..HitTest(Projection, BoundingRect, Boolean).)
Public methodIndexAtLength
Returns the index of the subcurve at the given position. Position must be between 0.0 and this.Length
Public methodInsertPoint
Public methodIsInPlane
Implements IsInPlane(Plane)
Public methodModify
Overrides Modify(ModOp)
(Overrides IGeoObjectImpl..::..Modify(ModOp).)
Public methodPaintTo3D (Overrides IGeoObjectImpl..::..PaintTo3D(IPaintTo3D).)
Public methodPointAt
Implements PointAt(Double)
Public methodPosition (Overrides IGeoObjectImpl..::..Position(GeoPoint, GeoVector, Double).)
Public methodPositionOf(GeoPoint)
Public methodPositionOf(GeoPoint, Plane)
Public methodPositionOf(GeoPoint, Double)
Public methodPrepareDisplayList (Overrides IGeoObjectImpl..::..PrepareDisplayList(Double).)
Public methodRemove
Public methodSet(array<ICurve>[]()[][])
Makes this path represent the given list if all objects in that list are properly oriented and connected. If the objects do not connect, false will be returned and this path remains unchanged.
Public methodSet(GeoObjectList, Boolean, Double)
Takes a list of unsorted and unoriented geoobjects and tries to put them together to a connected path. All previously contained segments are removed. All objects of the list, that are used in this path will be removed from their owner (see Owner). To avoid objects bee removed from their owner (e.g. Model or Block) use a list of cloned GeoObjects (CloneObjects()()()()).
Public methodSetPoint
Public methodSplit(Double)
Implements Split(Double)
Public methodSplit(Double, Double)
Public methodTrim
Public methodTryPointDeriv2At
Public methodUpdateAttributes (Overrides IGeoObjectImpl..::..UpdateAttributes(array<I2DRepresentation>[]()[][], Projection, GDIResources).)

Fields

  NameDescription
Public fieldStatic memberConstructor
Public fieldStatic memberOnPaintTo3D

Properties

  NameDescription
Public propertyColorDef
Public propertyCount
Public propertyCurveCount
Returns the number of curves in the Path
Public propertyCurves
Returns a cloned array of the curves of this path. Do not modify the curves or the path will be in an invalid state.
Public propertyDescription (Overrides IGeoObjectImpl..::..Description.)
Public propertyEndDirection
Public propertyEndPoint
Public propertyIsClosed
Public propertyIsSingular
Public propertyLayer (Overrides IGeoObjectImpl..::..Layer.)
Public propertyLength
Public propertyLinePattern
Public propertyLineWidth
Public propertyStartDirection
Public propertyStartPoint
Public propertyVertices

Events

  NameDescription
Public eventStatic memberConstructed

Explicit Interface Implementations

See Also