CFx SDK Documentation  2020SP3
DbText.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_DBTEXT_H
28 #define OD_DBTEXT_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 #include "TextDefs.h"
34 
48 {
49 public:
50 
52 
54 
59 
66  const OdGePoint3d& position);
67 
72 
78  const OdGePoint3d& alignment);
79 
85  bool isDefaultAlignment() const;
86 
91 
96  void setNormal(
97  const OdGeVector3d& normal);
98 
102  virtual bool isPlanar() const { return true; }
103 
105  OdGePlane& plane,
106  OdDb::Planarity& planarity) const;
107 
114  double thickness() const;
115 
123  double thickness);
124 
136  double oblique() const;
137 
151  double oblique);
152 
158  double rotation() const;
159 
167  double rotation);
168 
172  double height() const;
173 
178  void setHeight(
179  double height);
180 
184  double widthFactor() const;
185 
191  double widthFactor);
192 
195  bool isMirroredInX() const;
196 
200  void mirrorInX(
201  bool mirror);
202 
205  bool isMirroredInY() const;
206 
210  void mirrorInY(
211  bool mirror);
212 
217 
226  const OdString& textString);
227 
232 
238  OdDbObjectId textStyleId);
239 
257 
276  void setHorizontalMode(OdDb::TextHorzMode horizontalMode);
277 
293 
310  OdDb::TextVertMode verticalMode);
311 
319 
321  void* pClsid) const;
322 
339  virtual void adjustAlignment(
340  OdDbDatabase* pDb = 0);
341 
343  OdDbDwgFiler* pFiler);
344 
345  virtual void dwgOutFields(
346  OdDbDwgFiler* pFiler) const;
347 
349  OdDbDxfFiler* pFiler);
350 
351  virtual void dxfOutFields(
352  OdDbDxfFiler* pFiler) const;
353 
355  OdDbDxfFiler* pFiler);
356 
357  virtual void dxfOutFields_R12(
358  OdDbDxfFiler* pFiler) const;
359 
360  void subClose();
361 
362  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
363  virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
365  const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
366 
368  const OdGeMatrix3d& xfm,
369  OdDbEntityPtr& pCopy) const ODRX_OVERRIDE;
370 
388  OdGePoint3dArray& boundingPoints) const;
389 
390  /* Constructor. */
391  /*OdDbText(const OdGePoint3d& position,
392  const OdChar* text,
393  OdDbObjectId style = OdDbObjectId::kNull,
394  double height = 0,
395  double rotation = 0);
396  */
397 
399  const OdString& fieldName,
400  OdDbField* pField);
402  OdDbObjectId fieldId);
404  const OdString& fieldName);
405 
415 
420  virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE;
421 };
422 
427 
428 #include "TD_PackPop.h"
429 
430 #endif // ODDBTEXT_H
431 
OdDbText::rotation
double rotation() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbText::isMirroredInX
bool isMirroredInX() const
OdGePlane
Definition: GePlane.h:45
OdDbText
Definition: DbText.h:48
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbText::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
OdDbText::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbText::isDefaultAlignment
bool isDefaultAlignment() const
OdDbText::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
OdDb::Planarity
Planarity
Definition: DbEntity.h:74
OdDbText::setTextStyle
void setTextStyle(OdDbObjectId textStyleId)
OdDb::TextVertMode
TextVertMode
Definition: TextDefs.h:45
OdDbText::removeField
OdDbObjectId removeField(const OdString &fieldName)
OdDbText::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbText::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbText::removeField
OdResult removeField(OdDbObjectId fieldId)
OdDbText::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbText::subSetDatabaseDefaults
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE
OdDbText::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDbText::getBoundingPoints
void getBoundingPoints(OdGePoint3dArray &boundingPoints) const
OdDbText::setAlignmentPoint
void setAlignmentPoint(const OdGePoint3d &alignment)
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
TD_PackPop.h
OdDbText::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbText::setField
OdDbObjectId setField(const OdString &fieldName, OdDbField *pField)
OdDbText::setTextString
void setTextString(const OdString &textString)
OdDbText::normal
OdGeVector3d normal() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbText::OdDbText
OdDbText()
OdDbText::mirrorInY
void mirrorInY(bool mirror)
OdDbText::setOblique
void setOblique(double oblique)
OdDbText::subGetTransformedCopy
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_OVERRIDE
OdDbText::textStyle
OdDbObjectId textStyle() const
OdDbText::setHeight
void setHeight(double height)
OdSmartPtr< OdDbEntity >
OdGePoint3d
Definition: GePoint3d.h:55
OdDbText::verticalMode
OdDb::TextVertMode verticalMode() const
DbEntity.h
OdDbText::position
OdGePoint3d position() const
OdDbText::setThickness
void setThickness(double thickness)
OdDbText::getPlane
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
OdDbText::setWidthFactor
void setWidthFactor(double widthFactor)
OdDbText::subClose
void subClose()
OdDbText::adjustAlignment
virtual void adjustAlignment(OdDbDatabase *pDb=0)
OdDbText::isMirroredInY
bool isMirroredInY() const
OdDbText::convertFieldToText
void convertFieldToText()
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
OdDbDxfFiler
Definition: DbFiler.h:194
TextDefs.h
OdDbText::alignmentPoint
OdGePoint3d alignmentPoint() const
OdDbTextPtr
OdSmartPtr< OdDbText > OdDbTextPtr
Definition: DbText.h:426
TD_PackPush.h
OdDbText::correctSpelling
int correctSpelling()
OdDbText::setHorizontalMode
void setHorizontalMode(OdDb::TextHorzMode horizontalMode)
OdDbText::oblique
double oblique() const
OdDbText::widthFactor
double widthFactor() const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbEntity
Definition: DbEntity.h:90
OdDb::TextHorzMode
TextHorzMode
Definition: TextDefs.h:35
OdDbField
Definition: DbField.h:79
OdDbText::setRotation
void setRotation(double rotation)
OdDbText::height
double height() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbText::mirrorInX
void mirrorInX(bool mirror)
OdDbText::setVerticalMode
void setVerticalMode(OdDb::TextVertMode verticalMode)
OdDbText::textString
OdString textString() const
OdDbText::setPosition
void setPosition(const OdGePoint3d &position)
OdDbText::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbText::thickness
double thickness() const
OdDbText::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbText::horizontalMode
OdDb::TextHorzMode horizontalMode() const
OdDbText::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbText)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbText::isPlanar
virtual bool isPlanar() const
Definition: DbText.h:102
OdDbText::setNormal
void setNormal(const OdGeVector3d &normal)