CFx SDK Documentation  2022 SP0
DbAttributeDefinition.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_ATTRDEF_
28 #define _OD_DB_ATTRDEF_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbText.h"
33 #include "DbMText.h"
34 
44 {
45 public:
46 
49 
53  const OdString prompt() const;
54 
59  void setPrompt(
60  const OdString& promptString);
61 
65  const OdString tag() const;
66 
71  void setTag(
72  const OdString& tagString);
73 
77  bool isInvisible() const;
78 
85  bool invisible);
86 
90  bool isConstant() const;
91 
96  void setConstant(bool constant);
97 
101  bool isVerifiable() const;
102 
107  void setVerifiable(bool);
108 
112  bool isPreset() const;
113 
118  void setPreset(bool);
119 
124 
130  OdUInt16 fieldLength);
131 
133  void* pClsid) const;
134 
136  OdDbDwgFiler* pFiler);
137 
138  virtual void dwgOutFields(
139  OdDbDwgFiler* pFiler) const;
140 
142  OdDbDxfFiler* pFiler);
143 
144  virtual void dxfOutFields(
145  OdDbDxfFiler* pFiler) const;
146 
148  OdDbDxfFiler* pFiler);
149 
150  virtual void dxfOutFields_R12(
151  OdDbDxfFiler* pFiler) const;
152 
154  OdGiWorldDraw* pWd) const;
156  OdGiViewportDraw* pVd) const;
158 
160  OdDbIdPair& Idpair,
161  OdDbObject* pOwnerObject,
162  OdDbIdMapping& ownerIdMap);
163 
164  bool lockPositionInBlock() const;
165  void setLockPositionInBlock(bool bValue);
166  // multiline attribute definition support
170  void convertIntoMTextAttributeDefinition (bool val = true);
172  virtual void subClose() ODRX_OVERRIDE;
173 };
178 
179 #include "TD_PackPop.h"
180 
181 #endif
182 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
unsigned int OdUInt32
unsigned short OdUInt16
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
OdDbMTextPtr getMTextAttributeDefinition() const
void subViewportDraw(OdGiViewportDraw *pVd) const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
void setInvisible(bool invisible)
void setConstant(bool constant)
bool subWorldDraw(OdGiWorldDraw *pWd) const
bool isInvisible() const
void updateMTextAttributeDefinition()
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
void setLockPositionInBlock(bool bValue)
virtual void subClose() ODRX_OVERRIDE
OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
void setMTextAttributeDefinition(OdDbMText *)
void appendToOwner(OdDbIdPair &Idpair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
void setTag(const OdString &tagString)
void setFieldLength(OdUInt16 fieldLength)
void setPrompt(const OdString &promptString)
ODDB_DECLARE_MEMBERS(OdDbAttributeDefinition)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
const OdString tag() const
bool lockPositionInBlock() const
bool isVerifiable() const
void convertIntoMTextAttributeDefinition(bool val=true)
bool isMTextAttributeDefinition() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdUInt16 fieldLength() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
const OdString prompt() const
virtual OdResult subGetClassID(void *pClsid) const