CFx SDK Documentation  2020SP3
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 
OdDbAttributeDefinition::prompt
const OdString prompt() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbText
Definition: DbText.h:48
OdString
Definition: OdString.h:95
OdDbAttributeDefinition::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbAttributeDefinition::setConstant
void setConstant(bool constant)
DbText.h
OdDbAttributeDefinition::isMTextAttributeDefinition
bool isMTextAttributeDefinition() const
OdDbAttributeDefinition::subViewportDraw
void subViewportDraw(OdGiViewportDraw *pVd) const
OdDbAttributeDefinition::setVerifiable
void setVerifiable(bool)
OdDbAttributeDefinition::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbAttributeDefinition::getMTextAttributeDefinition
OdDbMTextPtr getMTextAttributeDefinition() const
OdDbAttributeDefinition::updateMTextAttributeDefinition
void updateMTextAttributeDefinition()
OdDbAttributeDefinition::appendToOwner
void appendToOwner(OdDbIdPair &Idpair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
OdDbIdPair
Definition: DbIdMapping.h:60
OdDbAttributeDefinition::setInvisible
void setInvisible(bool invisible)
OdDbAttributeDefinition::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbAttributeDefinition::fieldLength
OdUInt16 fieldLength() const
OdDbAttributeDefinition::tag
const OdString tag() const
OdDbAttributeDefinition::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdUInt16
unsigned short OdUInt16
Definition: OdPlatformSettings.h:760
OdDbAttributeDefinition::isConstant
bool isConstant() const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbAttributeDefinition::convertIntoMTextAttributeDefinition
void convertIntoMTextAttributeDefinition(bool val=true)
DbMText.h
OdDbAttributeDefinition::isVerifiable
bool isVerifiable() const
OdDbAttributeDefinition::setPrompt
void setPrompt(const OdString &promptString)
OdSmartPtr
Definition: SmartPtr.h:58
OdDbAttributeDefinition::subClose
virtual void subClose() ODRX_OVERRIDE
OdDbAttributeDefinition::setPreset
void setPreset(bool)
OdDbAttributeDefinition::lockPositionInBlock
bool lockPositionInBlock() const
OdDbMText
Definition: DbMText.h:137
OdDbAttributeDefinition::isPreset
bool isPreset() const
OdDbAttributeDefinition::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDbAttributeDefinition::setTag
void setTag(const OdString &tagString)
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbAttributeDefinition::OdDbAttributeDefinition
OdDbAttributeDefinition()
OdDbAttributeDefinition::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbAttributeDefinition::isInvisible
bool isInvisible() const
OdDbAttributeDefinition::setLockPositionInBlock
void setLockPositionInBlock(bool bValue)
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdGiDrawableTraits
Definition: Gi.h:71
OdDbAttributeDefinition::setMTextAttributeDefinition
void setMTextAttributeDefinition(OdDbMText *)
OdDbAttributeDefinition::setFieldLength
void setFieldLength(OdUInt16 fieldLength)
OdDbAttributeDefinition::subWorldDraw
bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbAttributeDefinition::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbAttributeDefinition)
OdDbAttributeDefinition
Definition: DbAttributeDefinition.h:44
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbAttributeDefinition::subSetAttributes
OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
OdDbAttributeDefinition::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50