Table of Contents

Class OsnapPoint

Namespace
VectorDraw.Geometry
Assembly
VectorDraw.Geometry.dll

Implements the OsnapPoint object.

public class OsnapPoint : gPoint, IVDSerialise, IFromString, ICloneable, IDisposable, IComparer<gPoint>
Inheritance
OsnapPoint
Implements
Inherited Members

Constructors

OsnapPoint()

Initializes the object.

OsnapPoint(OsnapPoint)

Initializes the object with a given OsnapPoint object.

OsnapPoint(gPoint, double, OsnapMode, Matrix, Matrix, PointCoordSystem, object)

Initializes the OsnapPoint object with the given parameters.

OsnapPoint(gPoint, double, OsnapMode, Matrix, Matrix, PointCoordSystem, object, IvdRenderViewProperties)

Initializes the OsnapPoint object with the given parameters.

OsnapPoint(gPoint, OsnapMode, Matrix, Matrix, PointCoordSystem)

Iitializes the object with the given parameters.

OsnapPoint(gPoint, OsnapMode, Matrix, Matrix, PointCoordSystem, object)

Initializes the OsnapPoint object with the given parameters.

OsnapPoint(gPoint, OsnapMode, Matrix, Matrix, PointCoordSystem, object, IvdRenderViewProperties)

Initializes the OsnapPoint object with the given parameters.

OsnapPoint(gPoint, OsnapMode, Matrix, Matrix, PointCoordSystem, IvdRenderViewProperties)

Iitializes the object with the given parameters.

Properties

CustomData

Get / Set a User custom data object

Mode

Get/Set the osnap mode of the OsnapPoint.

Object2World

Matrix used to transform from ObjectSnap to World Coordinate System.

Object2view

Matrix used to transform ObjectSnap to Current View.

ObjectSnap

Get the object(vdFigure) that the OsnapPoint refers to.

ReferenceObjectSnap

Get/Set an extra object that reference this snap and can be used to calculate the final snap position.

View2Object

Matrix used to transform this object position to ObjectSnap Coordinate System.

View2World

Matrix used to transform this object position to World Coordinate System.

Methods

AreEqual(OsnapPoint, double)

Check if the passed OsnapPoint has same Mode and equal x,y,z values with this object with passed equality.

AsWorldOsnap()

Internally used.Returns a clone of this object transform to World Coordinate system

Clone()

Returns a clone of this object.

CopyFrom(OsnapPoint)

Copies the passed object's point,mode and mObjectSnap to this point.

Equals(object)

Checks if the passed object is an OsnapPoint object and if it is equal to this object.

Equals(OsnapPoint)

Checks if the given OsnapPoint is equal to this point.

GetHashCode()

Returns a 32-bit signed integer hash code for this object instance.

GetPosition(PointCoordSystem)

Returns a new gPoint object relative to input Coordinate System

IntersectWith(OsnapPoint)

Returns the the intersection points in world Coordinate System between this object ObjectSnap segment and teh passed

ToString()

Gets a System.String that represents the OsnapMode value of the OsnapPoint Object.

ToString(string)

Gets a System.String that represents the OsnapMode value of the OsnapPoint Object with a given format.

Transform(Matrix)

Tranforms the OsnapPoint with the given matrix.

Operators

operator ==(OsnapPoint, OsnapPoint)

Implements the == operator for two OsnapPoints.

operator !=(OsnapPoint, OsnapPoint)

Emplements the != operator for two OsnapPoints.