CFx SDK Documentation  2023 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbText > OdDbTextPtr
Definition: DbText.h:426
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void adjustAlignment(OdDbDatabase *pDb=0)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGePoint3d position() const
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
void setVerticalMode(OdDb::TextVertMode verticalMode)
OdDbObjectId textStyle() const
void setRotation(double rotation)
void setHorizontalMode(OdDb::TextHorzMode horizontalMode)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbObjectId removeField(const OdString &fieldName)
bool isDefaultAlignment() const
OdDb::TextVertMode verticalMode() const
double height() const
void setAlignmentPoint(const OdGePoint3d &alignment)
void setTextStyle(OdDbObjectId textStyleId)
bool isMirroredInX() const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbText)
double rotation() const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
void setThickness(double thickness)
void setNormal(const OdGeVector3d &normal)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
void setWidthFactor(double widthFactor)
void setOblique(double oblique)
void getBoundingPoints(OdGePoint3dArray &boundingPoints) const
OdDb::TextHorzMode horizontalMode() const
virtual bool isPlanar() const
Definition: DbText.h:102
double oblique() const
virtual OdResult subGetClassID(void *pClsid) const
void mirrorInY(bool mirror)
OdGeVector3d normal() const
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_OVERRIDE
OdResult removeField(OdDbObjectId fieldId)
void convertFieldToText()
double widthFactor() const
void subClose()
void setTextString(const OdString &textString)
void setPosition(const OdGePoint3d &position)
OdDbObjectId setField(const OdString &fieldName, OdDbField *pField)
OdGePoint3d alignmentPoint() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
double thickness() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void mirrorInX(bool mirror)
bool isMirroredInY() const
OdString textString() const
int correctSpelling()
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setHeight(double height)
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
TextHorzMode
Definition: TextDefs.h:35
TextVertMode
Definition: TextDefs.h:45
Planarity
Definition: DbEntity.h:74