QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_RadialDimension2 Class Reference

#include <opennurbs_annotation2.h>

Inheritance diagram for ON_RadialDimension2:
ON_Annotation2 ON_Geometry ON_Object

Public Types

enum  POINT_INDEX {
  center_pt_index = 0 , arrow_pt_index = 1 , tail_pt_index = 2 , knee_pt_index = 3 ,
  dim_pt_count = 4 , text_pivot_pt = 10000
}
 
- Public Types inherited from ON_Annotation2
enum  eTextJustification {
  tjUndefined = 0 , tjLeft = 1<<0 , tjCenter = 1<<1 , tjRight = 1<<2 ,
  tjBottom = 1<<16 , tjMiddle = 1<<17 , tjTop = 1<<18 , tjBottomLeft = tjBottom | tjLeft ,
  tjBottomCenter = tjBottom | tjCenter , tjBottomRight = tjBottom | tjRight , tjMiddleLeft = tjMiddle | tjLeft , tjMiddleCenter = tjMiddle | tjCenter ,
  tjMiddleRight = tjMiddle | tjRight , tjTopLeft = tjTop | tjLeft , tjTopCenter = tjTop | tjCenter , tjTopRight = tjTop | tjRight
}
 

Public Member Functions

bool CreateFromPoints (ON_3dPoint center, ON_3dPoint arrowtip, ON_3dVector xaxis, ON_3dVector normal, double offset_distance)
 
bool CreateFromV2 (const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
 
ON_2dPoint Dim2dPoint (int point_index) const
 
ON_3dPoint Dim3dPoint (int point_index) const
 
bool GetArrowHeadDirection (ON_2dVector &arrowhead_dir) const
 
bool GetArrowHeadTip (ON_2dPoint &arrowhead_tip) const
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
void GetV2Form (ON_RadialDimension &dim)
 
ON_BOOL32 IsValid (ON_TextLog *text_log=0) const
 
double NumericValue () const
 
 ON_RadialDimension2 ()
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
void SetStyleIndex (int)
 
int StyleIndex () const
 
ON_BOOL32 Transform (const ON_Xform &xform)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_RadialDimension2 ()
 
- Public Member Functions inherited from ON_Annotation2
virtual void ConvertBack (ON_Annotation &target)
 
void Create ()
 
void Destroy ()
 
int Dimension () const
 
void EmergencyDestroy ()
 
bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
ON_BOOL32 GetECStoWCSXform (ON_Xform &) const
 
bool GetTextPoint (ON_2dPoint &text_2d_point) const
 
bool GetTextXform (const ON_RECT gdi_text_rect, const ON_Font &font, const ON_DimStyle &dimstyle, double dimscale, const ON_Viewport *vp, const ON_Xform *model_xform, ON_Xform &text_xform) const
 
bool GetTextXform (ON_RECT gdi_text_rect, const ON_Font &font, const ON_DimStyle &dimstyle, double dimscale, const ON_Viewport *vp, ON_Xform &xform) const
 
bool GetTextXform (ON_RECT gdi_text_rect, int gdi_height_of_I, double dimstyle_textheight, double dimstyle_textgap, ON::eTextDisplayMode dimstyle_textalignment, double dimscale, ON_3dVector cameraX, ON_3dVector cameraY, const ON_Xform *model_xform, ON_Xform &text_xform) const
 
bool GetTextXform (ON_RECT gdi_text_rect, int gdi_height_of_I, double dimstyle_textheight, double dimstyle_textgap, ON::eTextDisplayMode dimstyle_textalignment, double dimscale, ON_3dVector cameraX, ON_3dVector cameraY, ON_Xform &xform) const
 
ON_BOOL32 GetWCStoECSXform (ON_Xform &xform) const
 
double Height () const
 
int Index () const
 
bool IsDimension () const
 
bool IsLeader () const
 
bool IsText () const
 
virtual unsigned int Justification ()
 
ON::object_type ObjectType () const
 
 ON_Annotation2 ()
 
 ON_Annotation2 (const ON_Annotation &)
 
ON_Annotation2operator= (const ON_Annotation &)
 
const ON_PlanePlane () const
 
ON_2dPoint Point (int) const
 
int PointCount () const
 
const ON_2dPointArrayPoints () const
 
void ReservePoints (int)
 
void SetHeight (double)
 
void SetIndex (int)
 
virtual void SetJustification (unsigned int justification)
 
void SetPlane (const ON_Plane &)
 
void SetPoint (int, const ON_2dPoint &)
 
void SetPointCount (int count)
 
void SetPoints (const ON_2dPointArray &)
 
void SetTextDisplayMode (ON::eTextDisplayMode)
 
void SetType (ON::eAnnotationType)
 
void SetUserPositionedText (int bUserPositionedText)
 
void SetUserText (const wchar_t *)
 
ON::eTextDisplayMode TextDisplayMode () const
 
ON::eAnnotationType Type () const
 
bool UserPositionedText () const
 
const ON_wStringUserText () const
 
 ~ON_Annotation2 ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual void ClearBoundingBox ()
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual ON_BOOL32 HasBrepForm () const
 
virtual bool IsDeformable () const
 
virtual bool IsMorphable () const
 
virtual bool MakeDeformable ()
 
virtual bool Morph (const ON_SpaceMorph &morph)
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
virtual void Dump (ON_TextLog &) const
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
virtual unsigned int SizeOf () const
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Static Public Member Functions

static const wchar_t * DefaultDiameterText ()
 
static const wchar_t * DefaultRadiusText ()
 
- Static Public Member Functions inherited from ON_Annotation2
static const wchar_t * DefaultText ()
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_RadialDimension2)
 

Additional Inherited Members

- Public Attributes inherited from ON_Annotation2
int m_index
 
unsigned int m_justification
 
ON_Plane m_plane
 
ON_2dPointArray m_points
 
ON::eTextDisplayMode m_textdisplaymode
 
double m_textheight
 
ON::eAnnotationType m_type
 
bool m_userpositionedtext
 
ON_Annotation2Text m_usertext
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Member Enumeration Documentation

◆ POINT_INDEX

Enumerator
center_pt_index 
arrow_pt_index 
tail_pt_index 
knee_pt_index 
dim_pt_count 
text_pivot_pt 

Constructor & Destructor Documentation

◆ ON_RadialDimension2()

ON_RadialDimension2::ON_RadialDimension2 ( )

◆ ~ON_RadialDimension2()

ON_RadialDimension2::~ON_RadialDimension2 ( )

Member Function Documentation

◆ CreateFromPoints()

bool ON_RadialDimension2::CreateFromPoints ( ON_3dPoint center,
ON_3dPoint arrowtip,
ON_3dVector xaxis,
ON_3dVector normal,
double offset_distance )

◆ CreateFromV2()

bool ON_RadialDimension2::CreateFromV2 ( const ON_Annotation & v2_ann,
const ON_3dmAnnotationSettings & settings,
int dimstyle_index )

◆ DefaultDiameterText()

const wchar_t * ON_RadialDimension2::DefaultDiameterText ( )
static

◆ DefaultRadiusText()

const wchar_t * ON_RadialDimension2::DefaultRadiusText ( )
static

◆ Dim2dPoint()

ON_2dPoint ON_RadialDimension2::Dim2dPoint ( int point_index) const

◆ Dim3dPoint()

ON_3dPoint ON_RadialDimension2::Dim3dPoint ( int point_index) const

◆ GetArrowHeadDirection()

bool ON_RadialDimension2::GetArrowHeadDirection ( ON_2dVector & arrowhead_dir) const

◆ GetArrowHeadTip()

bool ON_RadialDimension2::GetArrowHeadTip ( ON_2dPoint & arrowhead_tip) const

◆ GetBBox()

ON_BOOL32 ON_RadialDimension2::GetBBox ( double * boxmax,
double * boxmin,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ GetTightBoundingBox()

bool ON_RadialDimension2::GetTightBoundingBox ( ON_BoundingBox & tight_bbox,
int bGrowBox = false,
const ON_Xform * xform = 0 ) const
virtual

Reimplemented from ON_Geometry.

◆ GetV2Form()

void ON_RadialDimension2::GetV2Form ( ON_RadialDimension & dim)

◆ IsValid()

ON_BOOL32 ON_RadialDimension2::IsValid ( ON_TextLog * text_log = 0) const
virtual

Reimplemented from ON_Annotation2.

◆ NumericValue()

double ON_RadialDimension2::NumericValue ( ) const
virtual

Reimplemented from ON_Annotation2.

◆ ON_OBJECT_DECLARE()

ON_RadialDimension2::ON_OBJECT_DECLARE ( ON_RadialDimension2 )
private

◆ Read()

ON_BOOL32 ON_RadialDimension2::Read ( ON_BinaryArchive & archive)
virtual

Reimplemented from ON_Annotation2.

◆ SetStyleIndex()

void ON_RadialDimension2::SetStyleIndex ( int i)

◆ StyleIndex()

int ON_RadialDimension2::StyleIndex ( ) const

◆ Transform()

ON_BOOL32 ON_RadialDimension2::Transform ( const ON_Xform & xform)
virtual

Reimplemented from ON_Annotation2.

◆ Write()

ON_BOOL32 ON_RadialDimension2::Write ( ON_BinaryArchive & archive) const
virtual

Reimplemented from ON_Annotation2.


The documentation for this class was generated from the following files: