Table of Contents

Class vdPoint

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

Represents a point entity in the VectorDraw professional library.

public class vdPoint : vdFigure, IDisposable, IVDSerialise, IBaseObject
Inheritance
vdPoint
Implements
Inherited Members

Examples

Create a point with size 5.0 and point style mode 2+32+64 (cross + circle + square) and add it to the model space:

doc.PointStyleSize = 5.0;
doc.PointStyleMode = 2 + 32 + 64; 
doc.Model.Entities.AddItem(new vdPoint(doc, new gPoint(0.0, 0.0, 0.0)));
doc.Redraw(false);

Remarks

The vdPoint class implements all functionality for a point symbol: insertion location in WCS, extrusion vector (OCS→WCS orientation), rendering, grip handling, exploding into polylines, serialization/deserialization and transformation operations.

Rendering honors document-level point style and size settings see PointStyleMode and PointStyleSize of 'vdDocument and supports alignment-to-view behavior via the AlignToView and AlignToViewSize properties.

Constructors

vdPoint()

Initializes the vdPoint object.

vdPoint(vdDocument)

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

vdPoint(vdDocument, gPoint)

Initializes a new instance of the vdPoint 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 vdPoint object in WorldCoordinate 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).

ExtrusionVector

Get/Set the extrusion vector of the vdPoint object.

InsertionPoint

Get/Set the insertion point in World Coordinate System(WCS).

Methods

DeSerialize(DeSerializer, string, object)

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

Dispose()

Releases all resources used by this object.

Draw(vdRender)

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

Explode()

Explodes the vdPoint object into vdPolyline objects.

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.

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 vdPoint object to the Default values.

InternalSetOwner(vdBaseObject)

Internally used only.

Set the object owner

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 object.

Serialize(Serializer)

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

ToString()

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

Transformby(Matrix)

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

Update()

Updates the object after change of properties.

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

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

See Also