CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbArcAlignedText.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
34#ifdef ATEXT_EXPORTS
35#define ATEXT_EXPORT OD_TOOLKIT_EXPORT
36#define ATEXT_EXPORT_STATIC OD_STATIC_EXPORT
37#else
38#define ATEXT_EXPORT OD_TOOLKIT_IMPORT
39#define ATEXT_EXPORT_STATIC OD_STATIC_IMPORT
40#endif
41
43{
44 kFit = 1,
45 kLeft = 2,
46 kRight = 3,
47 kCenter = 4
48};
49
51{
54};
55
57{
60};
61
70{
71public:
73
75
77
78 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
79
81
82 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
83
88
96 void setTextString(const OdString& textString);
97
102
108
113
118 void setCenter(const OdGePoint3d& center);
119
123 double radius() const;
124
129 void setRadius(double radius);
130
142 void setStartAngle(double startAngle);
143
153 double startAngle() const;
154
165 void setEndAngle(double endAngle);
166
176 double endAngle() const;
177
182
187 void setNormal(const OdGeVector3d& normal);
188
192 double offsetFromArc() const;
193
198 void setOffsetFromArc(double offsetFromArc);
199
203 double rightOffset() const;
204
209 void setRightOffset(double rightOffset);
210
214 double leftOffset() const;
215
220 void setLeftOffset(double leftOffset);
221
225 double textSize() const;
226
231 void setTextSize(double textSize);
232
236 double xScale() const;
237
243 void setXScale(double xScale);
244
248 double charSpacing() const;
249
254 void setCharSpacing(double charSpacing);
255
260
265 void reverseCharOrder(bool reverse);
266
270 bool wizardFlag() const;
271
276 void setWizardFlag(bool wizardFlag);
277
293
309
323
338
352
368
372 bool isUnderlined() const;
373
378 void setUnderlined(bool underlined);
379
384
389 void setTextStyle(const OdDbObjectId &textStyleId);
390
395 void setTextStyle(const OdString& styleName);
396
401
407 void setFileName(const OdString& filename);
408
413
419 void setBigFontFileName(const OdString& bigFontFileName);
420
434 const OdString& typeface,
435 bool bold,
436 bool italic,
437 int charset,
438 int pitchAndFamily);
439
440
450 void font(
451 OdString& typeface,
452 bool& bold,
453 bool& italic,
454 int& charset,
455 int& pitchAndFamily) const;
456
460 bool isShxFont() const;
461
462 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const ODRX_OVERRIDE;
463
465
466 /* Replace OdRxObjectPtrArray */
467
469
470
471 virtual void subClose() ODRX_OVERRIDE;
472
477 void modified(const OdDbObject* pObject);
478 void erased(const OdDbObject* pObject, bool erasing);
479};
484
485#include "TD_PackPop.h"
486
487#endif
488
489
OdArcTextPosition
@ kOnConvexSide
@ kOnConcaveSide
#define ATEXT_EXPORT
OdArcTextAlignment
@ kRight
@ kFit
@ kLeft
@ kCenter
OdArcTextDirection
@ kOutwardFromCenter
@ kInwardToTheCenter
#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)