19 #if defined(ON_OS_WINDOWS_GDI)
365 tjBottomLeft = tjBottom | tjLeft,
366 tjBottomCenter = tjBottom | tjCenter,
367 tjBottomRight = tjBottom | tjRight,
368 tjMiddleLeft = tjMiddle | tjLeft,
369 tjMiddleCenter = tjMiddle | tjCenter,
370 tjMiddleRight = tjMiddle | tjRight,
371 tjTopLeft = tjTop | tjLeft,
372 tjTopCenter = tjTop | tjCenter,
373 tjTopRight = tjTop | tjRight,
463 ON::eAnnotationType
Type()
const;
773 double dimstyle_textheight,
774 double dimstyle_textgap,
775 ON::eTextDisplayMode dimstyle_textalignment,
826 double dimstyle_textheight,
827 double dimstyle_textgap,
828 ON::eTextDisplayMode dimstyle_textalignment,
1048 arrow0_pt_index = 1,
1050 arrow1_pt_index = 3,
1051 userpositionedtext_pt_index = 4,
1055 text_pivot_pt = 10000,
1124 int bGrowBox =
false,
1194 int gdi_height_of_I,
1249 center_pt_index = 0,
1256 text_pivot_pt = 10000,
1314 int bGrowBox =
false,
1337 double offset_distance
1432 userpositionedtext_pt_index = 0,
1439 text_pivot_pt = 10000,
1440 arcstart_pt = 10001,
1443 arccenter_pt = 10004,
1444 extension0_pt = 10005,
1445 extension1_pt = 10006
1497 int bGrowBox =
false,
1640 int gdi_height_of_I,
1736 definition_pt_index = 0,
1737 leader_end_pt_index = 1,
1741 text_pivot_pt = 10000,
1742 offset_pt_0 = 10001,
1771 double default_offset = 1.0
1787 double default_offset = 1.0
1797 ON_BOOL32 bGrowBox =
false
1803 int bGrowBox =
false,
1918 int direction,
double default_offset,
1963 int bGrowBox =
false,
2057 text_pivot_pt = 10000,
2116 int bGrowBox =
false,
2247 ON_BOOL32
GetBBox(
double* box_min,
double* box_max, ON_BOOL32 grow_box =
false)
const;
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
bool GetExtensionLines(ON_Line extensions[2]) const
ON_BOOL32 Write(ON_BinaryArchive &file) const
ON_BOOL32 GetBBox(double *, double *, ON_BOOL32=false) const
ON_BOOL32 Transform(const ON_Xform &xform)
ON_BOOL32 Read(ON_BinaryArchive &file)
ON_3dPoint Dim3dPoint(int point_index) const
bool CreateFromArc(const ON_Arc &arc)
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
bool GetArc(ON_Arc &arc) const
ON_2dPoint Dim2dPoint(int point_index) const
void ConvertBack(ON_AngularDimension2 &target)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
double NumericValue() const
void SetDimpointOffset(int index, double offset)
static const wchar_t * DefaultText()
bool CreateFromV2(const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
void GetV2Form(ON_AngularDimension &dim)
void SetAngle(double angle)
double DimpointOffset(int index) const
void SetRadius(double radius)
bool CreateFromPoints(const ON_3dPoint &apex, const ON_3dPoint &p0, const ON_3dPoint &p1, ON_3dPoint &arcpt, ON_3dVector &Normal)
bool UserPositionedText() const
ON_Annotation2 & operator=(const ON_Annotation &)
void SetPlane(const ON_Plane &)
virtual double NumericValue() const
void SetTextDisplayMode(ON::eTextDisplayMode)
void SetTextFormula(const wchar_t *s)
unsigned int m_justification
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
ON::eTextDisplayMode TextDisplayMode() const
ON_DEPRECATED const ON_wString & UserText() const
void SetTextValue(const wchar_t *text_value)
bool EvaluatePoint(const class ON_ObjRef &objref, ON_3dPoint &P) const
ON_Annotation2Text m_usertext
void SetPoints(const ON_2dPointArray &)
ON::eAnnotationType Type() const
virtual void SetJustification(unsigned int justification)
ON_BOOL32 Read(ON_BinaryArchive &)
const ON_Plane & Plane() const
ON::object_type ObjectType() const
ON_BOOL32 GetECStoWCSXform(ON_Xform &) const
void SetType(ON::eAnnotationType)
bool GetTextPoint(ON_2dPoint &text_2d_point) const
static const wchar_t * DefaultText()
ON::eTextDisplayMode m_textdisplaymode
const wchar_t * TextFormula() const
ON_DEPRECATED void SetUserText(const wchar_t *text_value)
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
void SetUserPositionedText(int bUserPositionedText)
ON_Annotation2(const ON_Annotation &)
ON_BOOL32 Write(ON_BinaryArchive &) 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
ON::eAnnotationType m_type
void SetPoint(int, const ON_2dPoint &)
const wchar_t * TextValue() const
virtual unsigned int Justification()
bool m_userpositionedtext
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
void SetPointCount(int count)
ON_BOOL32 GetWCStoECSXform(ON_Xform &xform) const
const ON_2dPointArray & Points() const
ON_2dPoint Point(int) const
ON_BOOL32 Transform(const ON_Xform &xform)
virtual void ConvertBack(ON_Annotation &target)
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
void SetText(const char *s)
void SetText(const wchar_t *s)
ON_Annotation2Text & operator=(const wchar_t *)
ON_Annotation2Text & operator=(const char *)
bool GetArrowHeadTip(ON_2dPoint &arrowhead_tip) const
ON_BOOL32 GetBBox(double *, double *, ON_BOOL32=false) const
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 Write(ON_BinaryArchive &) const
bool GetTextDirection(ON_2dVector &text_dir) const
ON_3dPoint Dim3dPoint(int point_index) const
ON_BOOL32 Transform(const ON_Xform &xform)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
void GetV2Form(ON_Leader &leader)
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
void AddPoint(const ON_2dPoint &point)
bool GetArrowHeadDirection(ON_2dVector &arrowhead_dir) const
bool CreateFromV2(const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
ON_2dPoint Dim2dPoint(int point_index) const
bool RemovePoint(int index=-1)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
ON_DimensionExtra * DimensionExtension()
ON_BOOL32 GetBBox(double *, double *, ON_BOOL32=false) const
int GetDimensionLineSegments(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
bool CreateFromV2(const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
ON_2dPoint Dim2dPoint(int point_index) const
static const wchar_t * DefaultText()
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 Write(ON_BinaryArchive &) const
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
double NumericValue() const
ON_BOOL32 Transform(const ON_Xform &xform)
ON_3dPoint Dim3dPoint(int point_index) const
const ON_DimensionExtra * DimensionExtension() const
void GetV2Form(ON_LinearDimension &dim)
ON_2dPoint Dim2dPoint(int point_index, double default_offset=1.0) const
double NumericValue() const
ON_BOOL32 Read(ON_BinaryArchive &file)
ON_BOOL32 Write(ON_BinaryArchive &file) const
void SetDirection(int direction)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
ON_BOOL32 GetBBox(double *boxmin, double *boxmax, ON_BOOL32 bGrowBox=false) const
int ImpliedDirection() const
ON_BOOL32 Transform(const ON_Xform &xform)
static const wchar_t * DefaultText()
ON_3dPoint Dim3dPoint(int point_index, double default_offset=1.0) const
void CalcKinkPoints(ON_2dPoint p0, ON_2dPoint p1, int direction, double default_offset, ON_2dPoint &k0, ON_2dPoint &k1) const
void SetKinkOffset(int index, double offset)
double KinkOffset(int index) const
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
bool GetArrowHeadTip(ON_2dPoint &arrowhead_tip) const
ON_BOOL32 Transform(const ON_Xform &xform)
double NumericValue() const
ON_BOOL32 Write(ON_BinaryArchive &) const
ON_2dPoint Dim2dPoint(int point_index) const
bool CreateFromPoints(ON_3dPoint center, ON_3dPoint arrowtip, ON_3dVector xaxis, ON_3dVector normal, double offset_distance)
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
ON_BOOL32 GetBBox(double *, double *, ON_BOOL32=false) const
void GetV2Form(ON_RadialDimension &dim)
static const wchar_t * DefaultDiameterText()
bool CreateFromV2(const ON_Annotation &v2_ann, const ON_3dmAnnotationSettings &settings, int dimstyle_index)
ON_3dPoint Dim3dPoint(int point_index) const
bool GetArrowHeadDirection(ON_2dVector &arrowhead_dir) const
static const wchar_t * DefaultRadiusText()
const ON_3dPoint & Point() const
ON_BOOL32 Read(ON_BinaryArchive &ar)
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
void SetFontFace(const wchar_t *face)
void SetPoint(const ON_3dPoint &point)
ON::object_type ObjectType() const
const wchar_t * TextString() const
void SetTextString(const wchar_t *string)
bool IsDeformable() const
ON_BOOL32 Write(ON_BinaryArchive &ar) const
void Dump(ON_TextLog &log) const
const wchar_t * FontFace() const
void SetAlwaysOnTop(bool bTop)
void SetTransparent(bool bTransparent)
ON_BOOL32 Transform(const ON_Xform &xform)
void SetItalic(bool bItalic)
ON_BOOL32 GetBBox(double *box_min, double *box_max, ON_BOOL32 grow_box=false) const
ON_BOOL32 Read(ON_BinaryArchive &)
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
void GetV2Form(ON_TextEntity &text)
void SetMaskOffsetFactor(double offset)
ON_BOOL32 IsValid(ON_TextLog *text_log=0) const
ON_BOOL32 GetBBox(double *, double *, ON_BOOL32=false) const
ON_BOOL32 Transform(const ON_Xform &xform)
void SetMaskColorSource(int source)
ON_Color MaskColor() const
void SetMaskColor(ON_Color color)
bool DrawTextMask() const
double MaskOffsetFactor() const
ON_BOOL32 Write(ON_BinaryArchive &) const
unsigned int Justification()
void SetAnnotativeScaling(bool b)
int MaskColorSource() const
bool AnnotativeScaling() const
void SetDrawTextMask(bool bDraw)
void SetJustification(unsigned int justification)