Hide menu
Loading...
Searching...
No Matches
cadex.Drawing.DiametricDimension Class Reference

Describes diametric dimension measures of circles. More...

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

Public Member Functions

 DiametricDimension (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 DiametricDimension ()
 Constructor.
 
 DiametricDimension (cadex.Geom.Point2d theFirstChordPoint, cadex.Geom.Point2d theSecondChordPoint, cadex.Geom.Point2d theDimensionEndPoint, double theMeasurementValue)
 Constructor.
 
cadex.Geom.Point2d FirstChordPoint ()
 Returns the first chord point.
 
void SetFirstChordPoint (cadex.Geom.Point2d theFirstChordPoint)
 Sets the first chord point.
 
cadex.Geom.Point2d SecondChordPoint ()
 Returns the second chord point.
 
void SetSecondChordPoint (cadex.Geom.Point2d theSecondChordPoint)
 Sets the second chord point.
 
cadex.Geom.Point2d DimensionEndPoint ()
 Returns the dimension end point.
 
void SetDimensionEndPoint (cadex.Geom.Point2d theDimensionEndPoint)
 Sets the dimension end point.
 
bool StartsFromCenter ()
 Returns true if the dimension line passes through the center of measured entity.
 
void SetStartsFromCenter (bool theStartsFromCenter)
 
- 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)
 
- Protected Member Functions inherited from cadex.Drawing.Dimension
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.Drawing.Element
override void Dispose (bool disposing)
 

Additional Inherited Members

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

Detailed Description

Describes diametric dimension measures of circles.

FirstChordPoint and SecondChordPoint refer to points on the drawing geometry that are being measured. DimensionEndPoint defines the end point of dimension line.

Example of diametric dimension

Constructor & Destructor Documentation

◆ DiametricDimension() [1/2]

cadex.Drawing.DiametricDimension.DiametricDimension ( )
inline

Constructor.

◆ DiametricDimension() [2/2]

cadex.Drawing.DiametricDimension.DiametricDimension ( cadex.Geom.Point2d theFirstChordPoint,
cadex.Geom.Point2d theSecondChordPoint,
cadex.Geom.Point2d theDimensionEndPoint,
double theMeasurementValue )
inline

Constructor.

Member Function Documentation

◆ DimensionEndPoint()

cadex.Geom.Point2d cadex.Drawing.DiametricDimension.DimensionEndPoint ( )
inline

Returns the dimension end point.

◆ Dispose()

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

Reimplemented from cadex.BaseObject.

◆ FirstChordPoint()

cadex.Geom.Point2d cadex.Drawing.DiametricDimension.FirstChordPoint ( )
inline

Returns the first chord point.

◆ SecondChordPoint()

cadex.Geom.Point2d cadex.Drawing.DiametricDimension.SecondChordPoint ( )
inline

Returns the second chord point.

◆ SetDimensionEndPoint()

void cadex.Drawing.DiametricDimension.SetDimensionEndPoint ( cadex.Geom.Point2d theDimensionEndPoint)
inline

Sets the dimension end point.

◆ SetFirstChordPoint()

void cadex.Drawing.DiametricDimension.SetFirstChordPoint ( cadex.Geom.Point2d theFirstChordPoint)
inline

Sets the first chord point.

◆ SetSecondChordPoint()

void cadex.Drawing.DiametricDimension.SetSecondChordPoint ( cadex.Geom.Point2d theSecondChordPoint)
inline

Sets the second chord point.

◆ StartsFromCenter()

bool cadex.Drawing.DiametricDimension.StartsFromCenter ( )
inline

Returns true if the dimension line passes through the center of measured entity.