Hide menu
Loading...
Searching...
No Matches

Linear dimensions with horizontal, vertical, and aligned dimension lines. More...

Inheritance diagram for cadex.Drawing.LinearDimension:
cadex.Drawing.Dimension cadex.Drawing.Element cadex.BaseObject

Public Types

enum  RotationType { Horizontal , Vertical , Aligned }
 Represents the rotation of linear dimension. More...
 
- Public Types inherited from cadex.Drawing.Dimension
enum  ArrowType {
  Undefined = 0 , ClosedFilled = 1 , ClosedBlank = 2 , Closed = 3 ,
  Dot = 4 , ArchitecturalTick = 5 , Oblique = 6 , Open = 7 ,
  OriginIndicator = 8 , OriginIndicator2 = 9 , RightAngle = 10 , Open30 = 11 ,
  DotSmall = 12 , DotBlank = 13 , DotSmallBlank = 14 , Box = 15 ,
  BoxFilled = 16 , DatumTriangle = 17 , DatumTriangleFilled = 18 , Integral = 19
}
 the arrow type. More...
 
enum  ArrowheadPlacementType { Internal , External }
 Represents the arrow head placement. More...
 

Public Member Functions

 LinearDimension (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 LinearDimension ()
 Constructor.
 
 LinearDimension (cadex.Geom.Point2d theFirstReferencePoint, cadex.Geom.Point2d theSecondReferencePoint, cadex.Geom.Point2d theDimensionLinePoint, double theMeasurementValue, cadex.Drawing.LinearDimension.RotationType theRotation)
 Constructor.
 
 LinearDimension (cadex.Geom.Point2d theFirstReferencePoint, cadex.Geom.Point2d theSecondReferencePoint, cadex.Geom.Point2d theDimensionLinePoint, double theMeasurementValue)
 
cadex.Geom.Point2d FirstReferencePoint ()
 Returns the first reference point.
 
void SetFirstReferencePoint (cadex.Geom.Point2d theFirstReferencePoint)
 Sets the first reference point.
 
cadex.Geom.Point2d SecondReferencePoint ()
 Returns the second reference point.
 
void SetSecondReferencePoint (cadex.Geom.Point2d theSecondReferencePoint)
 Sets the second reference point.
 
cadex.Geom.Point2d DimensionLinePoint ()
 Returns the dimension line point.
 
void SetDimensionLinePoint (cadex.Geom.Point2d theDimensionLinePoint)
 Sets the dimension line point.
 
cadex.Drawing.LinearDimension.RotationType Rotation ()
 Rotation determines the type of linear dimention.
 
void SetRotation (cadex.Drawing.LinearDimension.RotationType theRotation)
 Sets the rotation of the dimension.
 
- Public Member Functions inherited from cadex.Drawing.Dimension
 Dimension (global::System.IntPtr cPtr, bool cMemoryOwn)
 
cadex.Drawing.Dimension.ArrowType FirstArrowType ()
 Returns ArrowType.Undefined if IsNull().
 
void SetFirstArrowType (cadex.Drawing.Dimension.ArrowType theFirstArrowType)
 Sets type of the first arrow of dimension.
 
cadex.Drawing.Dimension.ArrowType SecondArrowType ()
 Returns ArrowType.Undefined if IsNull().
 
void SetSecondArrowType (cadex.Drawing.Dimension.ArrowType theSecondArrowType)
 
cadex.Drawing.Dimension.ArrowheadPlacementType ArrowheadPlacement ()
 Returns ArrowheadPlacementType.Internal by default or if IsNull().
 
void SetArrowheadPlacement (cadex.Drawing.Dimension.ArrowheadPlacementType theArrowheadPlacement)
 Sets the arrowhead placement.
 
bool AlignTextHorizontally ()
 Returns true if the measurement text is align horizontally.
 
void SetAlignTextHorizontally (bool theAlignTextHorizontally)
 
double MeasurementValue ()
 Returns the actual measurement.
 
void SetMeasurementValue (double theMeasurementValue)
 Sets the actual measurement.
 
cadex.Drawing.Text Text ()
 Returns the dimension text.
 
void SetText (cadex.Drawing.Text theText)
 
- Public Member Functions inherited from cadex.Drawing.Element
 Element (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void SetUuid (System.Guid theUuid)
 
System.Guid Uuid ()
 
void Accept (cadex.Drawing.ElementVisitor theVisitor)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static new bool CompareType (cadex.BaseObject theObject)
 
- Static Public Member Functions inherited from cadex.Drawing.Dimension
static new bool CompareType (cadex.BaseObject theObject)
 
static cadex.Drawing.Dimension Cast (cadex.Drawing.Element theBase)
 
- Static Public Member Functions inherited from cadex.Drawing.Element
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the Element type.
 
static cadex.Drawing.Element Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Linear dimensions with horizontal, vertical, and aligned dimension lines.

Horizontal linear dimension describes the distance between two points along OX axis.

Example of horizontal linear dimension

Vertical linear dimension describes the distance between two points along OY axis.

Example of vertical linear dimension

Aligned linear dimension describes the distance between two points.

Example of aligned linear dimension

FirstReferencePoint and SecondReferencePoint refer to points on the drawing geometry that are being measured. Two parallel extension lines come out of these points. DimensionLinePoint defines the dimension line, which is perpendicular to both extension lines.

Member Enumeration Documentation

◆ RotationType

Represents the rotation of linear dimension.

Constructor & Destructor Documentation

◆ LinearDimension() [1/2]

cadex.Drawing.LinearDimension.LinearDimension ( )
inline

Constructor.

◆ LinearDimension() [2/2]

cadex.Drawing.LinearDimension.LinearDimension ( cadex.Geom.Point2d theFirstReferencePoint,
cadex.Geom.Point2d theSecondReferencePoint,
cadex.Geom.Point2d theDimensionLinePoint,
double theMeasurementValue,
cadex.Drawing.LinearDimension.RotationType theRotation )
inline

Constructor.

Member Function Documentation

◆ DimensionLinePoint()

cadex.Geom.Point2d cadex.Drawing.LinearDimension.DimensionLinePoint ( )
inline

Returns the dimension line point.

◆ Dispose()

override void cadex.Drawing.LinearDimension.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.Drawing.Dimension.

◆ FirstReferencePoint()

cadex.Geom.Point2d cadex.Drawing.LinearDimension.FirstReferencePoint ( )
inline

Returns the first reference point.

◆ Rotation()

cadex.Drawing.LinearDimension.RotationType cadex.Drawing.LinearDimension.Rotation ( )
inline

Rotation determines the type of linear dimention.

Returns the rotation of the dimension.

◆ SecondReferencePoint()

cadex.Geom.Point2d cadex.Drawing.LinearDimension.SecondReferencePoint ( )
inline

Returns the second reference point.

◆ SetDimensionLinePoint()

void cadex.Drawing.LinearDimension.SetDimensionLinePoint ( cadex.Geom.Point2d theDimensionLinePoint)
inline

Sets the dimension line point.

◆ SetFirstReferencePoint()

void cadex.Drawing.LinearDimension.SetFirstReferencePoint ( cadex.Geom.Point2d theFirstReferencePoint)
inline

Sets the first reference point.

◆ SetRotation()

void cadex.Drawing.LinearDimension.SetRotation ( cadex.Drawing.LinearDimension.RotationType theRotation)
inline

Sets the rotation of the dimension.

◆ SetSecondReferencePoint()

void cadex.Drawing.LinearDimension.SetSecondReferencePoint ( cadex.Geom.Point2d theSecondReferencePoint)
inline

Sets the second reference point.