CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbText.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_DBTEXT_H
28#define OD_DBTEXT_H
29
30#include "TD_PackPush.h"
31
32#include "DbEntity.h"
33#include "TextDefs.h"
34#include "DwgDeclareMembers.h"
35
49{
50public:
51
53
55
60
67 const OdGePoint3d& position);
68
73
79 const OdGePoint3d& alignment);
80
86 bool isDefaultAlignment() const;
87
92
98 const OdGeVector3d& normal);
99
103 virtual bool isPlanar() const { return true; }
104
106 OdGePlane& plane,
107 OdDb::Planarity& planarity) const;
108
115 double thickness() const;
116
124 double thickness);
125
137 double oblique() const;
138
152 double oblique);
153
159 double rotation() const;
160
168 double rotation);
169
173 double height() const;
174
179 virtual void setHeight(
180 double height);
181
185 double widthFactor() const;
186
192 double widthFactor);
193
196 bool isMirroredInX() const;
197
202 bool mirror);
203
206 bool isMirroredInY() const;
207
212 bool mirror);
213
218
226 virtual void setTextString(
227 const OdString& textString);
228
233
238 virtual void setTextStyle(
239 OdDbObjectId textStyleId);
240
258
278
294
311 OdDb::TextVertMode verticalMode);
312
320
322 void* pClsid) const;
323
340 virtual void adjustAlignment(
341 OdDbDatabase* pDb = 0);
342
344 OdDbDwgFiler* pFiler);
345
346 virtual void dwgOutFields(
347 OdDbDwgFiler* pFiler) const;
348
350 OdDbDxfFiler* pFiler);
351
352 virtual void dxfOutFields(
353 OdDbDxfFiler* pFiler) const;
354
356 OdDbDxfFiler* pFiler);
357
358 virtual void dxfOutFields_R12(
359 OdDbDxfFiler* pFiler) const;
360
361 void subClose();
362
363 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
364 virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
366 const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
367
369 const OdGeMatrix3d& xfm,
370 OdDbEntityPtr& pCopy) const ODRX_OVERRIDE;
371
389 OdGePoint3dArray& boundingPoints) const;
390
391 /* Constructor. */
392 /*OdDbText(const OdGePoint3d& position,
393 const OdChar* text,
394 OdDbObjectId style = OdDbObjectId::kNull,
395 double height = 0,
396 double rotation = 0);
397 */
398
400 const OdString& fieldName,
401 OdDbField* pField);
403 OdDbObjectId fieldId);
405 const OdString& fieldName);
406
416
421 virtual void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents) ODRX_OVERRIDE;
422};
423
428
429#include "TD_PackPop.h"
430
431#endif // ODDBTEXT_H
432
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbText > OdDbTextPtr
Definition: DbText.h:427
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void adjustAlignment(OdDbDatabase *pDb=0)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGePoint3d position() const
virtual void setHeight(double height)
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
virtual void setTextStyle(OdDbObjectId textStyleId)
void setVerticalMode(OdDb::TextVertMode verticalMode)
OdDbObjectId textStyle() const
void setRotation(double rotation)
void setHorizontalMode(OdDb::TextHorzMode horizontalMode)
virtual void setTextString(const OdString &textString)
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)
bool isMirroredInX() const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
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:103
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 setPosition(const OdGePoint3d &position)
OdDbObjectId setField(const OdString &fieldName, OdDbField *pField)
OdGePoint3d alignmentPoint() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
DWGMAP_DECLARE_MEMBERS(OdDbText)
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)
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