CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbAttribute.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_DB_ATTRIBUTE_
28#define _OD_DB_ATTRIBUTE_
29
30#include "TD_PackPush.h"
31
32#include "DbText.h"
33#include "DbMText.h"
34#include "DwgDeclareMembers.h"
35
44{
45public:
46
49
53 const OdString tag() const;
54
59 void setTag(
60 const OdString& tagString);
61
65 virtual bool isInvisible() const;
66
73 bool invisible);
74
78 bool isConstant() const;
79
83 bool isVerifiable() const;
84
88 bool isPreset() const;
89
94
100 OdUInt16 fieldLength);
101
103 OdDbDwgFiler* pFiler);
104
105 virtual void dwgOutFields(
106 OdDbDwgFiler* pFiler) const;
107
109 OdDbDxfFiler* pFiler);
110
111 virtual void dxfOutFields(
112 OdDbDxfFiler* pFiler) const;
113
115 OdDbDxfFiler* pFiler);
116
117 virtual void dxfOutFields_R12(
118 OdDbDxfFiler* pFiler) const;
119
121 void* pClsid) const;
122
123 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
124 virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
125
140 const OdGeMatrix3d& blkXform);
141
157 const OdDbAttributeDefinition* pAttDef,
158 const OdGeMatrix3d& blkXform);
159
165 void setLockPositionInBlock(bool lock);
166
167 // multiline attribute support
168 bool isMTextAttribute() const;
171 void convertIntoMTextAttribute (bool val = true);
173 //bool isReallyLocked() const;
174 virtual void subClose() ODRX_OVERRIDE;
175};
180
181#include "TD_PackPop.h"
182
183#endif
184
#define DBENT_EXPORT
Definition: DbExport.h:67
unsigned short OdUInt16
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
DWGMAP_DECLARE_MEMBERS(OdDbAttribute)
virtual bool isInvisible() const
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)
virtual void setAttributeFromBlock(const OdDbAttributeDefinition *pAttDef, const OdGeMatrix3d &blkXform)
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
virtual void subClose() ODRX_OVERRIDE
bool isConstant() const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) 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 updateMTextAttribute()
void convertIntoMTextAttribute(bool val=true)