Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
ON_AngularDimension2 Class Reference

#include <pcl/surface/3rdparty/opennurbs/opennurbs_annotation2.h>

+ Inheritance diagram for ON_AngularDimension2:
+ Collaboration diagram for ON_AngularDimension2:

Public Types

enum  POINT_INDEX {
  userpositionedtext_pt_index = 0 , start_pt_index = 1 , end_pt_index = 2 , arc_pt_index = 3 ,
  dim_pt_count = 4 , text_pivot_pt = 10000 , arcstart_pt = 10001 , arcend_pt = 10002 ,
  arcmid_pt = 10003 , arccenter_pt = 10004 , extension0_pt = 10005 , extension1_pt = 10006
}
 
- 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

 ON_AngularDimension2 ()
 
 ~ON_AngularDimension2 ()
 
ON_BOOL32 Transform (const ON_Xform &xform)
 
ON_2dPoint Dim2dPoint (int point_index) const
 
ON_3dPoint Dim3dPoint (int point_index) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=0) 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
 
ON_BOOL32 Write (ON_BinaryArchive &file) const
 
ON_BOOL32 Read (ON_BinaryArchive &file)
 
bool CreateFromPoints (const ON_3dPoint &apex, const ON_3dPoint &p0, const ON_3dPoint &p1, ON_3dPoint &arcpt, ON_3dVector &Normal)
 
bool CreateFromArc (const ON_Arc &arc)
 
bool CreateFromV2 (const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
 
bool GetArc (ON_Arc &arc) const
 
bool GetExtensionLines (ON_Line extensions[2]) const
 
void SetAngle (double angle)
 
double Angle () const
 
void SetRadius (double radius)
 
double Radius () const
 
double NumericValue () const
 
int StyleIndex () const
 
void SetStyleIndex (int)
 
void ConvertBack (ON_AngularDimension2 &target)
 
void GetV2Form (ON_AngularDimension &dim)
 
int GetDimensionArcSegments (ON_RECT gdi_text_rect, int gdi_height_of_I, ON_Xform gdi_to_world, const ON_DimStyle &dimstyle, double dimscale, const ON_Viewport *vp, double a[6], bool &bInside) const
 
double DimpointOffset (int index) const
 
void SetDimpointOffset (int index, double offset)
 
- Public Member Functions inherited from ON_Annotation2
 ON_Annotation2 ()
 
 ~ON_Annotation2 ()
 
 ON_Annotation2 (const ON_Annotation &)
 
ON_Annotation2operator= (const ON_Annotation &)
 
void Create ()
 
void Destroy ()
 
void EmergencyDestroy ()
 
ON::object_type ObjectType () const
 
int Dimension () const
 
bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
bool IsText () const
 
bool IsLeader () const
 
bool IsDimension () const
 
int Index () const
 
void SetIndex (int)
 
void SetHeight (double)
 
double Height () const
 
void SetType (ON::eAnnotationType)
 
ON::eAnnotationType Type () const
 
void SetPlane (const ON_Plane &)
 
const ON_PlanePlane () const
 
int PointCount () const
 
void SetPointCount (int count)
 
void SetPoints (const ON_2dPointArray &)
 
const ON_2dPointArrayPoints () const
 
void SetPoint (int, const ON_2dPoint &)
 
ON_2dPoint Point (int) const
 
ON_DEPRECATED void SetUserText (const wchar_t *text_value)
 
ON_DEPRECATED const ON_wStringUserText () const
 
const wchar_t * TextValue () const
 
void SetTextValue (const wchar_t *text_value)
 
const wchar_t * TextFormula () const
 
void SetTextFormula (const wchar_t *s)
 
void SetUserPositionedText (int bUserPositionedText)
 
bool UserPositionedText () const
 
void SetTextDisplayMode (ON::eTextDisplayMode)
 
ON::eTextDisplayMode TextDisplayMode () const
 
ON_BOOL32 GetECStoWCSXform (ON_Xform &) const
 
ON_BOOL32 GetWCStoECSXform (ON_Xform &xform) const
 
void ReservePoints (int)
 
virtual void ConvertBack (ON_Annotation &target)
 
virtual void SetJustification (unsigned int justification)
 
virtual unsigned int Justification ()
 
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
 
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 GetTextPoint (ON_2dPoint &text_2d_point) const
 
- Public Member Functions inherited from ON_Geometry
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
virtual ~ON_Geometry ()
 
ON_BoundingBox BoundingBox () const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual void ClearBoundingBox ()
 
virtual bool IsDeformable () const
 
virtual bool MakeDeformable ()
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
virtual ON_BOOL32 HasBrepForm () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
- Public Member Functions inherited from ON_Object
bool CopyFrom (const ON_Object *src)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
virtual ~ON_Object ()
 
void EmergencyDestroy ()
 
virtual void MemoryRelocate ()
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void Dump (ON_TextLog &) const
 
virtual unsigned int SizeOf () const
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual ON_UUID ModelObjectId () const
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
int SetUserStrings (int count, const ON_UserString *user_strings, bool bReplace)
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int UserStringCount () const
 
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
void PurgeUserData ()
 
ON_UserDataFirstUserData () const
 
void TransformUserData (const ON_Xform &xform)
 
void CopyUserData (const ON_Object &source_object)
 
void MoveUserData (ON_Object &source_object)
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 1385 of file opennurbs_annotation2.h.

Member Enumeration Documentation

◆ POINT_INDEX

Enumerator
userpositionedtext_pt_index 
start_pt_index 
end_pt_index 
arc_pt_index 
dim_pt_count 
text_pivot_pt 
arcstart_pt 
arcend_pt 
arcmid_pt 
arccenter_pt 
extension0_pt 
extension1_pt 

Definition at line 1425 of file opennurbs_annotation2.h.

Constructor & Destructor Documentation

◆ ON_AngularDimension2()

ON_AngularDimension2::ON_AngularDimension2 ( )

◆ ~ON_AngularDimension2()

ON_AngularDimension2::~ON_AngularDimension2 ( )

Member Function Documentation

◆ Angle()

double ON_AngularDimension2::Angle ( ) const

◆ ConvertBack()

void ON_AngularDimension2::ConvertBack ( ON_AngularDimension2 target)

◆ CreateFromArc()

bool ON_AngularDimension2::CreateFromArc ( const ON_Arc arc)

◆ CreateFromPoints()

bool ON_AngularDimension2::CreateFromPoints ( const ON_3dPoint apex,
const ON_3dPoint p0,
const ON_3dPoint p1,
ON_3dPoint arcpt,
ON_3dVector Normal 
)

◆ CreateFromV2()

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

◆ DefaultText()

static const wchar_t* ON_AngularDimension2::DefaultText ( )
static

◆ Dim2dPoint()

ON_2dPoint ON_AngularDimension2::Dim2dPoint ( int  point_index) const

◆ Dim3dPoint()

ON_3dPoint ON_AngularDimension2::Dim3dPoint ( int  point_index) const

◆ DimpointOffset()

double ON_AngularDimension2::DimpointOffset ( int  index) const

◆ GetArc()

bool ON_AngularDimension2::GetArc ( ON_Arc arc) const

◆ GetBBox()

ON_BOOL32 ON_AngularDimension2::GetBBox ( double *  ,
double *  ,
ON_BOOL32  = false 
) const
virtual

Implements ON_Geometry.

◆ GetDimensionArcSegments()

int ON_AngularDimension2::GetDimensionArcSegments ( ON_RECT  gdi_text_rect,
int  gdi_height_of_I,
ON_Xform  gdi_to_world,
const ON_DimStyle dimstyle,
double  dimscale,
const ON_Viewport vp,
double  a[6],
bool &  bInside 
) const

◆ GetExtensionLines()

bool ON_AngularDimension2::GetExtensionLines ( ON_Line  extensions[2]) const

◆ GetTightBoundingBox()

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

Reimplemented from ON_Geometry.

◆ GetV2Form()

void ON_AngularDimension2::GetV2Form ( ON_AngularDimension dim)

◆ IsValid()

ON_BOOL32 ON_AngularDimension2::IsValid ( ON_TextLog text_log = 0) const
virtual

Reimplemented from ON_Annotation2.

◆ NumericValue()

double ON_AngularDimension2::NumericValue ( ) const
virtual

Reimplemented from ON_Annotation2.

◆ Radius()

double ON_AngularDimension2::Radius ( ) const

◆ Read()

ON_BOOL32 ON_AngularDimension2::Read ( ON_BinaryArchive file)
virtual

Reimplemented from ON_Annotation2.

◆ SetAngle()

void ON_AngularDimension2::SetAngle ( double  angle)

◆ SetDimpointOffset()

void ON_AngularDimension2::SetDimpointOffset ( int  index,
double  offset 
)

◆ SetRadius()

void ON_AngularDimension2::SetRadius ( double  radius)

◆ SetStyleIndex()

void ON_AngularDimension2::SetStyleIndex ( int  )

◆ StyleIndex()

int ON_AngularDimension2::StyleIndex ( ) const

◆ Transform()

ON_BOOL32 ON_AngularDimension2::Transform ( const ON_Xform xform)
virtual

Reimplemented from ON_Annotation2.

◆ Write()

ON_BOOL32 ON_AngularDimension2::Write ( ON_BinaryArchive file) const
virtual

Reimplemented from ON_Annotation2.

Member Data Documentation

◆ m_angle

double ON_AngularDimension2::m_angle

Definition at line 1612 of file opennurbs_annotation2.h.

◆ m_radius

double ON_AngularDimension2::m_radius

Definition at line 1613 of file opennurbs_annotation2.h.


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