CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbAttributeDefinition.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_ATTRDEF_
28#define _OD_DB_ATTRDEF_
29
30#include "TD_PackPush.h"
31
32#include "DbText.h"
33#include "DbMText.h"
34#include "DwgDeclareMembers.h"
35
43{
44public:
45
48
52 const OdString prompt() const;
53
59 const OdString& promptString);
60
64 const OdString tag() const;
65
70 void setTag(
71 const OdString& tagString);
72
76 bool isInvisible() const;
77
84 bool invisible);
85
89 virtual bool isConstant() const;
90
95 void setConstant(bool constant);
96
100 bool isVerifiable() const;
101
106 void setVerifiable(bool);
107
111 bool isPreset() const;
112
117 void setPreset(bool);
118
123
129 OdUInt16 fieldLength);
130
132 void* pClsid) const;
133
135 OdDbDwgFiler* pFiler);
136
137 virtual void dwgOutFields(
138 OdDbDwgFiler* pFiler) const;
139
141 OdDbDxfFiler* pFiler);
142
143 virtual void dxfOutFields(
144 OdDbDxfFiler* pFiler) const;
145
147 OdDbDxfFiler* pFiler);
148
149 virtual void dxfOutFields_R12(
150 OdDbDxfFiler* pFiler) const;
151
153 OdGiWorldDraw* pWd) const;
155 OdGiViewportDraw* pVd) const;
157
159 OdDbIdPair& Idpair,
160 OdDbObject* pOwnerObject,
161 OdDbIdMapping& ownerIdMap);
162
164 void setLockPositionInBlock(bool bValue);
165 // multiline attribute definition support
171 virtual void subClose() ODRX_OVERRIDE;
172};
177
178#include "TD_PackPop.h"
179
180#endif
181
#define DBENT_EXPORT
Definition: DbExport.h:67
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)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
const OdString tag() const
bool lockPositionInBlock() const
DWGMAP_DECLARE_MEMBERS(OdDbAttributeDefinition)
bool isVerifiable() const
void convertIntoMTextAttributeDefinition(bool val=true)
bool isMTextAttributeDefinition() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdUInt16 fieldLength() const
virtual bool isConstant() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
const OdString prompt() const
virtual OdResult subGetClassID(void *pClsid) const