CFx SDK Documentation  2022 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdResult
Definition: OdResult.h:29
OdSmartPtr< RText > OdRTextPtr
Definition: RText.h:173
Definition: RText.h:45
bool isStringExpression() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
void enableMTextSequences(bool enable)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setTextStyle(const OdString &name)
void setNormal(const OdGeVector3d &normal)
void subClose()
void setStringContents(const OdString &stringContents)
OdGePoint3d getPoint() const
bool enabledMTextSequences() const
RText(OdDbEntityImpl *pImpl)
OdString textStyleName() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setTextStyle(OdDbObjectId textStyleId)
void setToExpression(bool isExpression)
void setHeight(double height)
OdDbObjectId textStyleId() const
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
double getHeight() const
OdString getStringContents() const
OdGeVector3d normal() const
double getRotAngle() const
void setRotAngle(double rotAngle)
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
ODRX_DECLARE_MEMBERS(RText)
void setPoint(const OdGePoint3d &point)
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110