CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
RText.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_RTEXT_H
28#define OD_RTEXT_H
29
30#include "TD_PackPush.h"
31
32#ifdef RTEXT_EXPORTS
33#define RTEXT_EXPORT OD_TOOLKIT_EXPORT
34#define RTEXT_EXPORT_STATIC OD_STATIC_EXPORT
35#else
36#define RTEXT_EXPORT OD_TOOLKIT_IMPORT
37#define RTEXT_EXPORT_STATIC OD_STATIC_IMPORT
38#endif
39
40#include "DbEntity.h"
41class OdDbEntityImpl;
42
53{
54public:
56
61
66 void setNormal(const OdGeVector3d &normal);
67
72
78 void setPoint(const OdGePoint3d &point);
79
85 double getRotAngle() const;
92 void setRotAngle(double rotAngle);
93
97 double getHeight() const;
102 void setHeight(double height);
103
107 bool isStringExpression() const;
112 void setToExpression(bool isExpression);
113
122 void enableMTextSequences(bool enable);
135 void setStringContents(const OdString &stringContents);
136
152 void setTextStyle(OdDbObjectId textStyleId);
158
160 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
161
163 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
164
165 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
166
168
169 virtual OdResult subGetTransformedCopy(const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
170
171 void subClose();
172
173protected:
175 RText(OdDbEntityImpl* pImpl);
176};
177
182
183#include "TD_PackPop.h"
184
185#endif // OD_RTEXT_H
186
OdResult
Definition: OdResult.h:29
OdSmartPtr< RText > OdRTextPtr
Definition: RText.h:181
#define RTEXT_EXPORT
Definition: RText.h:36
Definition: RText.h:53
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