CFx SDK Documentation  2020SP3
RText.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_RTEXT_H
28 #define OD_RTEXT_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 class OdDbEntityImpl;
34 
45 {
46 public:
48 
53 
58  void setNormal(const OdGeVector3d &normal);
59 
64 
70  void setPoint(const OdGePoint3d &point);
71 
77  double getRotAngle() const;
84  void setRotAngle(double rotAngle);
85 
89  double getHeight() const;
94  void setHeight(double height);
95 
99  bool isStringExpression() const;
104  void setToExpression(bool isExpression);
105 
109  bool enabledMTextSequences() const;
114  void enableMTextSequences(bool enable);
127  void setStringContents(const OdString &stringContents);
128 
144  void setTextStyle(OdDbObjectId textStyleId);
149  void setTextStyle(const OdString& name);
150 
152  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
153 
155  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
156 
157  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
158 
159  virtual OdResult subTransformBy(const OdGeMatrix3d& xfm);
160 
161  virtual OdResult subGetTransformedCopy(const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
162 
163  void subClose();
164 
165 protected:
166  RText();
167  RText(OdDbEntityImpl* pImpl);
168 };
169 
174 
175 #include "TD_PackPop.h"
176 
177 #endif // OD_RTEXT_H
178 
RText::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
RText::setTextStyle
void setTextStyle(OdDbObjectId textStyleId)
RText::setNormal
void setNormal(const OdGeVector3d &normal)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
RText::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
RText::isStringExpression
bool isStringExpression() const
RText::getPoint
OdGePoint3d getPoint() const
OdDbObjectId
Definition: DbObjectId.h:99
RText::setStringContents
void setStringContents(const OdString &stringContents)
RText::subGetTransformedCopy
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
TD_PackPop.h
RText::textStyleName
OdString textStyleName() const
RText::RText
RText(OdDbEntityImpl *pImpl)
RText::textStyleId
OdDbObjectId textStyleId() const
RText::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
RText::setToExpression
void setToExpression(bool isExpression)
RText::getStringContents
OdString getStringContents() const
RText::subClose
void subClose()
OdSmartPtr< OdDbEntity >
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
RText::enabledMTextSequences
bool enabledMTextSequences() const
RText::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
RText::getRotAngle
double getRotAngle() const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
RText::setRotAngle
void setRotAngle(double rotAngle)
RText::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(RText)
OdDbDxfFiler
Definition: DbFiler.h:194
OdRTextPtr
OdSmartPtr< RText > OdRTextPtr
Definition: RText.h:173
TD_PackPush.h
OdGiWorldDraw
Definition: GiWorldDraw.h:44
RText::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbEntity
Definition: DbEntity.h:90
RText::setPoint
void setPoint(const OdGePoint3d &point)
RText::subTransformBy
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
RText::RText
RText()
RText::setTextStyle
void setTextStyle(const OdString &name)
RText::getHeight
double getHeight() const
RText
Definition: RText.h:45
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
RText::setHeight
void setHeight(double height)
RText::enableMTextSequences
void enableMTextSequences(bool enable)
OdDbDwgFiler
Definition: DbFiler.h:1031
RText::normal
OdGeVector3d normal() const