CFx SDK Documentation  2020SP3
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 
OdResult
OdResult
Definition: OdResult.h:29
OdDbText
Definition: DbText.h:48
OdString
Definition: OdString.h:95
DbText.h
OdDbAttribute::lockPositionInBlock
bool lockPositionInBlock() const
OdDbAttribute::isInvisible
bool isInvisible() const
OdDbAttribute::dxfOutFields_R12
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbAttribute::fieldLength
OdUInt16 fieldLength() const
OdDbAttribute::OdDbAttribute
OdDbAttribute()
OdDbAttribute::setLockPositionInBlock
void setLockPositionInBlock(bool lock)
OdUInt16
unsigned short OdUInt16
Definition: OdPlatformSettings.h:760
OdDbAttribute
Definition: DbAttribute.h:45
OdDbAttribute::setAttributeFromBlock
void setAttributeFromBlock(const OdGeMatrix3d &blkXform)
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbAttribute::isVerifiable
bool isVerifiable() const
OdDbAttribute::isPreset
bool isPreset() const
DbMText.h
OdDbAttribute::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbAttribute::isConstant
bool isConstant() const
OdSmartPtr
Definition: SmartPtr.h:58
OdDbAttribute::setTag
void setTag(const OdString &tagString)
OdDbAttribute::updateMTextAttribute
void updateMTextAttribute()
OdDbMText
Definition: DbMText.h:137
OdDbAttribute::setAttributeFromBlock
void setAttributeFromBlock(const OdDbAttributeDefinition *pAttDef, const OdGeMatrix3d &blkXform)
OdDbAttribute::tag
const OdString tag() const
OdDbAttribute::isMTextAttribute
bool isMTextAttribute() const
OdDbAttribute::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdDbAttribute::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbAttribute::setInvisible
void setInvisible(bool invisible)
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbAttribute::convertIntoMTextAttribute
void convertIntoMTextAttribute(bool val=true)
OdDbAttribute::setFieldLength
void setFieldLength(OdUInt16 fieldLength)
TD_PackPush.h
OdDbAttribute::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbAttribute::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
OdDbAttribute::setMTextAttribute
void setMTextAttribute(OdDbMText *)
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbAttribute::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbAttribute::dxfInFields_R12
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
OdDbAttribute::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbAttribute::subClose
virtual void subClose() ODRX_OVERRIDE
OdDbAttribute::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbAttribute)
OdDbAttributeDefinition
Definition: DbAttributeDefinition.h:44
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbAttribute::getMTextAttribute
OdDbMTextPtr getMTextAttribute() const