19 #if defined(ON_OS_WINDOWS_GDI)
68 void SetText(
const char* s );
69 void SetText(
const wchar_t* s );
103 unsigned int SizeOf()
const;
118 void SetParentUUID(
ON_UUID parent_uuid);
120 bool DrawTextMask()
const;
121 void SetDrawTextMask(
bool bDraw);
123 int MaskColorSource()
const;
124 void SetMaskColorSource(
int source);
130 double MaskOffsetFactor()
const;
131 void SetMaskOffsetFactor(
double offset);
175 unsigned int SizeOf()
const;
190 void SetParentUUID(
ON_UUID parent_uuid);
195 int ArrowPosition()
const;
196 void SetArrowPosition(
int position);
202 double DistanceScale()
const;
203 void SetDistanceScale(
double s);
206 void SetModelSpaceBasePoint(
ON_3dPoint basepoint);
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,
398 bool IsLeader()
const;
410 bool IsDimension()
const;
438 double NumericValue()
const;
450 void SetHeight(
double);
451 double Height()
const;
462 void SetType( ON::eAnnotationType);
463 ON::eAnnotationType Type()
const;
485 int PointCount()
const;
486 void SetPointCount(
int count);
529 ON_DEPRECATED
void SetUserText(
const wchar_t* text_value );
532 ON_DEPRECATED
const ON_wString& UserText()
const;
557 const wchar_t* TextValue()
const;
578 void SetTextValue(
const wchar_t* text_value );
598 const wchar_t* TextFormula()
const;
618 void SetTextFormula(
const wchar_t* s );
637 void SetUserPositionedText(
int bUserPositionedText );
638 bool UserPositionedText()
const;
651 void SetTextDisplayMode( ON::eTextDisplayMode);
652 ON::eTextDisplayMode TextDisplayMode()
const;
665 ON_BOOL32 GetECStoWCSXform(
ON_Xform&)
const;
677 ON_BOOL32 GetWCStoECSXform(
ON_Xform& xform)
const;
687 void ReservePoints(
int);
696 static const wchar_t* DefaultText();
726 void SetJustification(
unsigned int justification);
729 unsigned int Justification();
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,
927 bool GetTextPoint(
ON_2dPoint& text_2d_point )
const;
1048 arrow0_pt_index = 1,
1050 arrow1_pt_index = 3,
1051 userpositionedtext_pt_index = 4,
1055 text_pivot_pt = 10000,
1124 int bGrowBox =
false,
1144 int StyleIndex()
const;
1145 void SetStyleIndex(
int);
1192 int GetDimensionLineSegments(
1194 int gdi_height_of_I,
1249 center_pt_index = 0,
1256 text_pivot_pt = 10000,
1314 int bGrowBox =
false,
1332 bool CreateFromPoints(
1337 double offset_distance
1357 int StyleIndex()
const;
1358 void SetStyleIndex(
int);
1366 static const wchar_t* DefaultDiameterText();
1367 static const wchar_t* DefaultRadiusText();
1378 bool GetArrowHeadDirection(
ON_2dVector& arrowhead_dir )
const;
1379 bool GetArrowHeadTip(
ON_2dPoint& arrowhead_tip )
const;
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,
1530 bool CreateFromPoints(
1558 bool GetArc(
ON_Arc& arc )
const;
1560 bool GetExtensionLines(
ON_Line extensions[2])
const;
1563 void SetAngle(
double angle);
1564 double Angle()
const;
1565 void SetRadius(
double radius);
1566 double Radius()
const;
1584 int StyleIndex()
const;
1585 void SetStyleIndex(
int);
1638 int GetDimensionArcSegments(
1640 int gdi_height_of_I,
1658 double DimpointOffset(
1668 void SetDimpointOffset(
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,
1835 int StyleIndex()
const;
1836 void SetStyleIndex(
int);
1848 int ImpliedDirection()
const;
1858 int Direction()
const;
1859 void SetDirection(
int direction);
1892 double KinkOffset(
int index)
const;
1893 void SetKinkOffset(
int index,
double offset);
1918 int direction,
double default_offset,
1963 int bGrowBox =
false,
1977 int FontIndex()
const;
1978 void SetFontIndex(
int);
1988 bool DrawTextMask()
const;
1989 void SetDrawTextMask(
bool bDraw);
1994 int MaskColorSource()
const;
1995 void SetMaskColorSource(
int source);
2004 double MaskOffsetFactor()
const;
2005 void SetMaskOffsetFactor(
double offset);
2010 bool AnnotativeScaling()
const;
2011 void SetAnnotativeScaling(
bool b);
2057 text_pivot_pt = 10000,
2116 int bGrowBox =
false,
2132 bool RemovePoint(
int index = -1);
2148 bool GetTextDirection(
ON_2dVector& text_dir )
const;
2149 bool GetArrowHeadDirection(
ON_2dVector& arrowhead_dir )
const;
2150 bool GetArrowHeadTip(
ON_2dPoint& arrowhead_tip )
const;
2247 ON_BOOL32
GetBBox(
double* box_min,
double* box_max, ON_BOOL32 grow_box =
false)
const;
2272 void SetHeight(
int);
2274 const wchar_t* TextString()
const;
2275 void SetTextString(
const wchar_t*
string);
2277 const wchar_t* FontFace()
const;
2278 void SetFontFace(
const wchar_t* face);
2291 void SetAlwaysOnTop(
bool bTop);
2292 bool AlwaysOnTop()
const;
2304 void SetTransparent(
bool bTransparent);
2305 bool Transparent()
const;
2317 void SetBold(
bool bBold);
2330 void SetItalic(
bool bItalic);
2331 bool Italic()
const;
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Archive() const
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
virtual ON_BOOL32 GetDescription(ON_wString &description)
virtual ON_BOOL32 Transform(const ON_Xform &xform)
virtual bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
virtual bool MakeDeformable()
ON_BOOL32 Read(ON_BinaryArchive &)
virtual void SetJustification(unsigned int justification)
ON::eAnnotationType m_type
virtual ON::object_type ObjectType() const
ON::eTextDisplayMode m_textdisplaymode
virtual bool IsDeformable() const
virtual unsigned int Justification()
ON_Annotation2Text m_usertext
virtual int Dimension() const =0
unsigned int m_justification
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
ON_Geometry & operator=(const ON_Geometry &)
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
ON_BOOL32 Write(ON_BinaryArchive &) const
const ON_wString & operator=(const ON_wString &)
virtual void ConvertBack(ON_Annotation &target)
unsigned int SizeOf() const
ON_BOOL32 Transform(const ON_Xform &xform)
static const wchar_t * DefaultText()
virtual ON_BOOL32 GetBBox(double *boxmin, double *boxmax, int bGrowBox=false) const =0
bool m_userpositionedtext
virtual void Dump(ON_TextLog &) const
virtual bool EvaluatePoint(const class ON_ObjRef &objref, ON_3dPoint &P) const
void Dump(ON_TextLog &text_log) const
virtual double NumericValue() const