Table of Contents

Class Box

Namespace
VectorDraw.Geometry
Assembly
VectorDraw.Geometry.dll

Implements the Box object.

public class Box : BaseObject, IDisposable, IBaseObject, IVDSerialise, IFromString
Inheritance
Box
Implements
Inherited Members

Constructors

Box()

Initializes the object.

Box(Box)

Initializes the object with a given Box object.

Box(gPoint, gPoint)

Initializes the object with two points.

Fields

EmptyBox

Represents a Box that is VectorDraw.Geometry.Box.BoxType.Empty.

Properties

AlignToView

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

Bottom

Get the minimum y value of the box.Returns the y value of the lower left point of the box.

Height

Get the height of the box.

IsCalculated

Get/Set a boolean value representing if the box has been calculated independent if it is empty.

IsEmpty

Get/Set a boolean value representing if the box is empty. An empty box has height and width 0.0.

IsInfinity

The box has not extends(infinitive).

IsNaN

Returns a boolean value indicating whether any of the x,y,z values of the box points evaluates to a value that is not a number (System.Double.NaN).

IsNormal

A Box is Normal when it contains more than one point.

Left

Get the minimum x value of the box. Returns the x value of the lower left point of the box.

LowerRight

Get the lower right point of the box in minimum z value.

Max

Get the upper right point of the box.

MidPoint

Get the center of the box.

Min

Get the lower left point of the box.

Right

Get the maximum x of the box.Returns the x value of the upper right point of the box.

Thickness

Get the thickness of the box.

Top

Get the maximum y value of the box.Returns the y value of the upper right point of the box.

UpperLeft

Get the upper left point of the box in minimum z value.

Width

Get the width of the box object.

ZMax

Get the maximum z value of the box. Returns the z value of the upper right point of the box.

ZMin

Get the minimum z value of the box.Returns the z value of the lower left point of the box.

Methods

AddBox(Box)

Adds the passed box to this box.

AddPoint(double, double, double)

Adds a gPoint to the box.

AddPoint(gPoint)

Adds a gPoint to the box.

AddPoints(gPoints)

Adds the points of the passed gPoints collection to the box in order the box to contain all gPoints.

AddWidth(double)

Expands the box by adding two times the passed value to it's width.

BoxInBox(Box)

Checks if a box is inside the Box.

BoxInBox(Box, double)

Checks if a box is inside the Box using the passed equality.

CheckLineBox(gPoint, gPoint)

Checks if a line intersects with a box.

CopyFrom(Box)

Initializes the object with a given Box object.

DeSerialize(DeSerializer, string, object)

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

Empty()

Set this box as empty.

ExpandBy(double)

Adds the passed thickness to the box.

FromString(string)

Parses a ToString() string value and fills the boxes points with their values.

GetCompareHashCode()

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

GetPoints()

Get the points of this box.

GetTransformRectangle(Matrix)

Tranforms the Box into a Rectangle object with screen pixels coordinates.

IntersectsWith2D(Box)

Determines if this rectangle intersects with passed box in 2d space (ingnores z value)

Offset(double, double, double)

Adds to both min and max points of the box the passed values.

PointInBox(gPoint)

Checks if a point is inside a Box.

PointInBox3D(gPoint)

Checks if a point is inside a Box.

Serialize(Serializer)

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

ToString()

Gets a System.String that represents the min and the max of the Box Object.

ToString(string)

Gets a System.String that represents the min and the max of the Box Object using the format parameter for visualization.

ToString(Serializer)

Gets a System.String that represents the min and the max of the Box Object.

TogPoints()

Returns a new gPoints contains the four corners of this 2D Box object. Returns null in case of IsEmpty or IsInfinity are true.

TransformBy(Matrix)

Transforms the box with the given Matrix.