CFx SDK Documentation  2020SP3
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 
OdResult
OdResult
Definition: OdResult.h:29
OdDbArcAlignedText::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbArcAlignedText::setXScale
void setXScale(double xScale)
OdDbArcAlignedText
Definition: DbArcAlignedText.h:62
OdDbArcAlignedText::setArcId
void setArcId(OdDbObjectId arcId)
kInwardToTheCenter
@ kInwardToTheCenter
Definition: DbArcAlignedText.h:51
OdDbArcAlignedText::setTextStyle
void setTextStyle(const OdDbObjectId &textStyleId)
OdDbArcAlignedText::subClose
virtual void subClose() ODRX_OVERRIDE
OdDbArcAlignedText::rightOffset
double rightOffset() const
OdDbArcAlignedText::setCharSpacing
void setCharSpacing(double charSpacing)
OdDbArcAlignedText::setCenter
void setCenter(const OdGePoint3d &center)
OdDbObjectId
Definition: DbObjectId.h:99
OdDbArcAlignedText::setUnderlined
void setUnderlined(bool underlined)
OdDbArcAlignedText::fileName
OdString fileName() const
kCenter
@ kCenter
Definition: DbArcAlignedText.h:39
OdDbArcAlignedText::setTextDirection
void setTextDirection(OdArcTextDirection textDir)
OdDbArcAlignedText::textString
OdString textString() const
OdDbArcAlignedText::normal
OdGeVector3d normal() const
OdArray< OdRxObjectPtr >
OdDbArcAlignedText::font
void font(OdString &typeface, bool &bold, bool &italic, int &charset, int &pitchAndFamily) const
OdDbArcAlignedText::center
OdGePoint3d center() const
OdDbArcAlignedText::setRadius
void setRadius(double radius)
OdDbArcAlignedText::setTextStyle
void setTextStyle(const OdString &styleName)
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbArcAlignedText::setLeftOffset
void setLeftOffset(double leftOffset)
OdDbArcAlignedText::endAngle
double endAngle() const
OdDbArcAlignedText::setTextString
void setTextString(const OdString &textString)
OdDbArcAlignedText::reverseCharOrder
void reverseCharOrder(bool reverse)
OdDbArcAlignedText::radius
double radius() const
OdDbArcAlignedText::setEndAngle
void setEndAngle(double endAngle)
OdDbArcAlignedText::isShxFont
bool isShxFont() const
OdDbArcAlignedText::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const ODRX_OVERRIDE
OdDbArcAlignedText::textPosition
OdArcTextPosition textPosition() const
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
OdDbArcAlignedText::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbArcAlignedText::arcId
OdDbObjectId arcId() const
DbEntity.h
OdDbArcAlignedText::isUnderlined
bool isUnderlined() const
OdDbArcAlignedText::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbArcAlignedText::textStyle
OdDbObjectId textStyle() const
OdDbArcAlignedText::startAngle
double startAngle() const
OdDbArcAlignedText::setRightOffset
void setRightOffset(double rightOffset)
OdDbArcAlignedText::xScale
double xScale() const
OdDbArcAlignedText::OdDbArcAlignedText
OdDbArcAlignedText()
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbArcAlignedText::charSpacing
double charSpacing() const
OdDbArcAlignedText::setOffsetFromArc
void setOffsetFromArc(double offsetFromArc)
OdDbArcAlignedText::setFont
void setFont(const OdString &typeface, bool bold, bool italic, int charset, int pitchAndFamily)
OdDbArcAlignedText::textSize
double textSize() const
TD_PackPush.h
OdArcTextAlignment
OdArcTextAlignment
Definition: DbArcAlignedText.h:35
OdDbArcAlignedText::wizardFlag
bool wizardFlag() const
OdDbArcAlignedText::bigFontFileName
OdString bigFontFileName() const
OdDbArcAlignedText::isReversedCharOrder
bool isReversedCharOrder() const
kLeft
@ kLeft
Definition: DbArcAlignedText.h:37
OdDbArcAlignedText::textDirection
OdArcTextDirection textDirection() const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdArcTextPosition
OdArcTextPosition
Definition: DbArcAlignedText.h:43
OdDbEntity
Definition: DbEntity.h:90
kOnConvexSide
@ kOnConvexSide
Definition: DbArcAlignedText.h:44
OdDbArcAlignedText::offsetFromArc
double offsetFromArc() const
OdDbArcAlignedText::setFileName
void setFileName(const OdString &filename)
OdDbArcAlignedText::setWizardFlag
void setWizardFlag(bool wizardFlag)
OdDbArcAlignedText::leftOffset
double leftOffset() const
OdDbArcAlignedText::setNormal
void setNormal(const OdGeVector3d &normal)
kOutwardFromCenter
@ kOutwardFromCenter
Definition: DbArcAlignedText.h:50
OdDbArcAlignedText::setTextPosition
void setTextPosition(OdArcTextPosition textPosition)
kOnConcaveSide
@ kOnConcaveSide
Definition: DbArcAlignedText.h:45
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbArcAlignedText::setStartAngle
void setStartAngle(double startAngle)
OdDbArcAlignedText::setTextSize
void setTextSize(double textSize)
OdDbArcAlignedText::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
kFit
@ kFit
Definition: DbArcAlignedText.h:36
OdArcTextDirection
OdArcTextDirection
Definition: DbArcAlignedText.h:49
OdDbArcAlignedText::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbArcAlignedText::setAlignment
void setAlignment(OdArcTextAlignment alignment)
OdDbArcAlignedText::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbArcAlignedText)
OdDbArcAlignedText::alignment
OdArcTextAlignment alignment() const
kRight
@ kRight
Definition: DbArcAlignedText.h:38
OdDbObject
Definition: DbObject.h:211
OdDbArcAlignedText::setBigFontFileName
void setBigFontFileName(const OdString &bigFontFileName)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbArcAlignedText::subExplode
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE