CFx SDK Documentation  2023 SP0
DbAttribute.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_DB_ATTRIBUTE_
28 #define _OD_DB_ATTRIBUTE_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbText.h"
33 #include "DbMText.h"
34 
45 {
46 public:
47 
50 
54  const OdString tag() const;
55 
60  void setTag(
61  const OdString& tagString);
62 
66  bool isInvisible() const;
67 
74  bool invisible);
75 
79  bool isConstant() const;
80 
84  bool isVerifiable() const;
85 
89  bool isPreset() const;
90 
95 
101  OdUInt16 fieldLength);
102 
104  OdDbDwgFiler* pFiler);
105 
106  virtual void dwgOutFields(
107  OdDbDwgFiler* pFiler) const;
108 
110  OdDbDxfFiler* pFiler);
111 
112  virtual void dxfOutFields(
113  OdDbDxfFiler* pFiler) const;
114 
116  OdDbDxfFiler* pFiler);
117 
118  virtual void dxfOutFields_R12(
119  OdDbDxfFiler* pFiler) const;
120 
122  void* pClsid) const;
123 
124  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
125  virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
126 
141  const OdGeMatrix3d& blkXform);
142 
158  const OdDbAttributeDefinition* pAttDef,
159  const OdGeMatrix3d& blkXform);
160 
165  bool lockPositionInBlock() const;
166  void setLockPositionInBlock(bool lock);
167 
168  // multiline attribute support
169  bool isMTextAttribute() const;
172  void convertIntoMTextAttribute (bool val = true);
174  //bool isReallyLocked() const;
175  virtual void subClose() ODRX_OVERRIDE;
176 };
181 
182 #include "TD_PackPop.h"
183 
184 #endif
185 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
unsigned short OdUInt16
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setFieldLength(OdUInt16 fieldLength)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
bool isPreset() const
bool isMTextAttribute() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
bool isVerifiable() const
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
const OdString tag() const
void setMTextAttribute(OdDbMText *)
OdDbMTextPtr getMTextAttribute() const
void setInvisible(bool invisible)
void setAttributeFromBlock(const OdGeMatrix3d &blkXform)
void setTag(const OdString &tagString)
OdUInt16 fieldLength() const
ODDB_DECLARE_MEMBERS(OdDbAttribute)
virtual void subClose() ODRX_OVERRIDE
bool isConstant() const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
bool isInvisible() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
virtual OdResult subGetClassID(void *pClsid) const
void setLockPositionInBlock(bool lock)
bool lockPositionInBlock() const
void setAttributeFromBlock(const OdDbAttributeDefinition *pAttDef, const OdGeMatrix3d &blkXform)
void updateMTextAttribute()
void convertIntoMTextAttribute(bool val=true)