Table of Contents

Class vdCircle

Namespace
VectorDraw.Professional.vdFigures
Assembly
VectorDraw.Professional.dll

Represents a full circle curve (complete 360°) in the VectorDraw geometry model.

public class vdCircle : vdCurve, IDisposable, IVDSerialise, IvdHatchFigure, IBaseObject
Inheritance
vdCircle
Implements
Inherited Members

Remarks

The vdCircle class implements a full circle defined by a Center and a Radius and inherits common curve behaviour from vdCurve. It supports hatch filling through HatchProperties, conversion to other geometry types (for example vdEllipse via AsEllipse() and vdPolyline via AsPolyline()), geometric queries (intersection, sampling, osnap points), and view-aligned rendering via the VectorDraw.Professional.vdPrimaries.IAlignToView contract (AlignToView and AlignToViewSize).

Constructors

vdCircle()

Initializes a new instance of the vdCircle object.

vdCircle(vdDocument)

Initializes a new instance of the vdCircle object and registers it to the passed Document.

vdCircle(vdDocument, gPoint, double)

Initializes a new instance of the vdCircle object and registers it to the passed Document.

Properties

AlignToView

A boolean value that defines if the plane of the object is relative to the current view.

AlignToViewSize

Get/Set the height of the object in output Device millimeters for positive or hundreds of millimeters for negative.

BoundingBox

Gets the Bounding Box of the vdCircle object in WorldCoordinate System.

Center

Get/Set the Center of the vdCircle object in World Coordinate System.

ECSMatrix

Gets the transformation Matrix that converts coordinates from the object's local coordinate system (object coordinate system, OCS) to the World Coordinate System (WCS).

HatchProperties

Get/Set the hatch properties of the vdCircle object.

Radius

Get/Set the radius of the vdCircle object.

Methods

Area()

Calculates the enclosed area of the vdCircle object in Drawing Units.

AsEllipse()

Returns a vdEllipse object with the same properties as this vdCircle.

AsPolyline()

Create a vdPolyline object with the same properties as the this object.

Break(gPoint, gPoint, out vdFigure)

Breaks the vdCircle into two or one subarcs.Deletes the part that is between p1,p2.

DeSerialize(DeSerializer, string, object)

This Function is called foreach field name of the vdCircle object when opening in vdml format.

Draw(vdRender)

Called in order to draw the object in a specified vdRender object.

Explode()

If the vdCircle object has hatchproperties the explode method creates a vdPolyhatch object.

GetCompareHash()

Returns a unique 32 bit integer value according to the object type and its properties values

GetGripPoints()

A function returning the grip points of the object.

GetSamplePoints(int, double)

Returns a list of points on the vdCircle object from the start to the end point of the curve.

GetValidGripPointsItems()

Returns the number of valid grip points of the object. Must return the same number of points as the GetGripPoints() method.

InitializeProperties()

Resets the properties of the vdCircle object to the Default values.

InternalSetOwner(vdBaseObject)

Internally used only.

Set the object owner

IntersectWith(vdFigure, VdConstInters, gPoints)

Finds the intersection points of a vdCircle object with another object.

Invalidate()

Invalidates the object's Bounding Box and causes the control to be redrawn in this region.

Length()

Calculates the length of the vdCircle object.

MatchProperties(vdPrimary, vdDocument)

Matches all the common properties from an object and sets them to this object.

MoveGripPointsAt(Int32Array, double, double, double)

This function is intended to be called during a grip edit of the vdCircle object.

PointOnCurve(gPoint, bool)

Returns if a point belongs to a vdCircle object.

Serialize(Serializer)

This Function is called when saving the vdCircle object to vdml format.

Split(gPoint, vdSelection)

Splits the Circle into an Arc(full circle Arc with start and endpoint the passed point).

TestOffsetSide(gPoint)

Tests if a point is inside a vdCircle or not.

ToMesh(int)

Converts the vdCircle into a vdPolyface object.

ToString()

Gets a System.String that represents the type of the vdCircle Object.

Transformby(Matrix)

Transforms all geometrical properties of this object by the specified Matrix.

Update()

Updates the object after change of properties.

getEndParam()

Returns the end parameter for the vdCircle object.

getOffsetCurve(double)

Creates a new vdCircle object at a specified distance and in the same plane with the existing object.

getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints)

Overrrides the getOsnapPoints(Matrix, OsnapMode, gPoint, gPoint, int, OsnapPoints).

getParamAtPoint(gPoint)

Returns the parameter of the vdCircle object at the specified point.

getPointAtParam(double)

Get a point of the vdCircle object at a given param distance.

getStartParam()

Returns the start parameter for the vdCircle object.

getTangentAtPoint(gPoint, out gPoint)

Overrides the getTangentAtPoint(gPoint, out gPoint)

See Also