CFx SDK Documentation  2022 SP0
DbArcAlignedText.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef _OD_DBARCALIGNEDTEXT_INC_
28 #define _OD_DBARCALIGNEDTEXT_INC_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 
35 {
36  kFit = 1,
37  kLeft = 2,
38  kRight = 3,
39  kCenter = 4
40 };
41 
43 {
45  kOnConcaveSide = 2
46 };
47 
49 {
52 };
53 
62 {
63 public:
65 
67 
68  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
69 
70  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
71 
72  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
73 
74  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
75 
80 
88  void setTextString(const OdString& textString);
89 
94 
99  void setArcId(OdDbObjectId arcId);
100 
105 
110  void setCenter(const OdGePoint3d& center);
111 
115  double radius() const;
116 
121  void setRadius(double radius);
122 
134  void setStartAngle(double startAngle);
135 
145  double startAngle() const;
146 
157  void setEndAngle(double endAngle);
158 
168  double endAngle() const;
169 
174 
179  void setNormal(const OdGeVector3d& normal);
180 
184  double offsetFromArc() const;
185 
190  void setOffsetFromArc(double offsetFromArc);
191 
195  double rightOffset() const;
196 
201  void setRightOffset(double rightOffset);
202 
206  double leftOffset() const;
207 
212  void setLeftOffset(double leftOffset);
213 
217  double textSize() const;
218 
223  void setTextSize(double textSize);
224 
228  double xScale() const;
229 
235  void setXScale(double xScale);
236 
240  double charSpacing() const;
241 
246  void setCharSpacing(double charSpacing);
247 
251  bool isReversedCharOrder() const;
252 
257  void reverseCharOrder(bool reverse);
258 
262  bool wizardFlag() const;
263 
268  void setWizardFlag(bool wizardFlag);
269 
285 
301 
315 
329  void setTextPosition(OdArcTextPosition textPosition);
330 
344 
360 
364  bool isUnderlined() const;
365 
370  void setUnderlined(bool underlined);
371 
376 
381  void setTextStyle(const OdDbObjectId &textStyleId);
382 
387  void setTextStyle(const OdString& styleName);
388 
393 
399  void setFileName(const OdString& filename);
400 
405 
411  void setBigFontFileName(const OdString& bigFontFileName);
412 
425  void setFont(
426  const OdString& typeface,
427  bool bold,
428  bool italic,
429  int charset,
430  int pitchAndFamily);
431 
432 
442  void font(
443  OdString& typeface,
444  bool& bold,
445  bool& italic,
446  int& charset,
447  int& pitchAndFamily) const;
448 
452  bool isShxFont() const;
453 
454  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const ODRX_OVERRIDE;
455 
457 
458  /* Replace OdRxObjectPtrArray */
459 
461 
462 
463  virtual void subClose() ODRX_OVERRIDE;
464 
469  void modified(const OdDbObject* pObject);
470  void erased(const OdDbObject* pObject, bool erasing);
471 };
476 
477 #include "TD_PackPop.h"
478 
479 #endif
480 
481 
OdArcTextPosition
@ kOnConvexSide
@ kOnConcaveSide
OdArcTextAlignment
@ kRight
@ kFit
@ kLeft
@ kCenter
OdArcTextDirection
@ kOutwardFromCenter
@ kInwardToTheCenter
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
void setTextSize(double textSize)
void setLeftOffset(double leftOffset)
void setRadius(double radius)
void setStartAngle(double startAngle)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
double startAngle() const
bool isReversedCharOrder() const
void setTextString(const OdString &textString)
OdDbObjectId arcId() const
void setWizardFlag(bool wizardFlag)
void setCenter(const OdGePoint3d &center)
void font(OdString &typeface, bool &bold, bool &italic, int &charset, int &pitchAndFamily) const
double rightOffset() const
double leftOffset() const
void setFileName(const OdString &filename)
void setTextDirection(OdArcTextDirection textDir)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setTextStyle(const OdDbObjectId &textStyleId)
OdString textString() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdArcTextDirection textDirection() const
bool isShxFont() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const ODRX_OVERRIDE
double endAngle() const
void setBigFontFileName(const OdString &bigFontFileName)
double charSpacing() const
OdString fileName() const
double offsetFromArc() const
void setFont(const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily)
void setEndAngle(double endAngle)
double radius() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setNormal(const OdGeVector3d &normal)
void setTextStyle(const OdString &styleName)
ODDB_DECLARE_MEMBERS(OdDbArcAlignedText)
OdArcTextPosition textPosition() const
OdArcTextAlignment alignment() const
double textSize() const
bool isUnderlined() const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE
OdString bigFontFileName() const
void setCharSpacing(double charSpacing)
void reverseCharOrder(bool reverse)
void setUnderlined(bool underlined)
OdGeVector3d normal() const
virtual void subClose() ODRX_OVERRIDE
void setArcId(OdDbObjectId arcId)
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
void setRightOffset(double rightOffset)
void setXScale(double xScale)
void setTextPosition(OdArcTextPosition textPosition)
OdGePoint3d center() const
bool wizardFlag() const
OdDbObjectId textStyle() const
void setOffsetFromArc(double offsetFromArc)
double xScale() const
void setAlignment(OdArcTextAlignment alignment)