CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbGroup.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 _ODDBGROUP_INCLUDED_
28#define _ODDBGROUP_INCLUDED_
29
30#include "TD_PackPush.h"
31
32#include "DbObject.h"
33#include "DwgDeclareMembers.h"
34
36class OdCmColor;
37class OdDbGroupImpl;
38class OdDbGroup;
39
48{
49public:
51
61 OdDb::OpenMode openMode) = 0;
62
66 virtual OdDbObjectId objectId() const = 0;
67
71 virtual bool done() const = 0;
72
79 virtual bool next() = 0;
80
81 /*
82 virtual OdResult subGetClassID(void* pClsid) const;
83 */
84protected:
86};
91
101{
102public:
104
106
111
116
122 const OdString& description);
123
127 bool isSelectable() const;
128
135 bool selectable);
136
140 OdString name() const;
141
146 void setName(const OdString& name);
147
154 bool isNotAccessible() const;
155
159 bool isAnonymous() const;
160
168
174 void append(
175 OdDbObjectId objectId);
176
181 void append(
182 const OdDbObjectIdArray& objectIds);
183
190 OdDbObjectId objectId);
191
197 const OdDbObjectIdArray& objectIds);
198
206 OdUInt32 insertionIndex,
207 OdDbObjectId objectId);
208
214 OdUInt32 insertionIndex,
215 const OdDbObjectIdArray& objectIds);
216
222 void remove(
223 OdDbObjectId objectId);
224
233 OdUInt32 entityIndex);
234
239 void remove(
240 const OdDbObjectIdArray& objectIds);
241
255 const OdDbObjectIdArray& objectIds);
256
265 OdDbObjectId oldId,
266 OdDbObjectId newId);
267
279 OdUInt32 fromIndex,
280 OdUInt32 toIndex,
281 OdUInt32 numItems);
282
289 void clear();
290
295
301 bool has(
302 const OdDbEntity* pEntity) const;
303
310 OdDbObjectIdArray& objectIds) const;
311
325 OdDbObjectId objectId,
326 OdUInt32& index) const;
327
331 void reverse();
332
344 OdUInt16 colorIndex);
345
352 const OdCmColor& color);
353
360 const OdString& layer);
361
368 OdDbObjectId layerId);
369
376 const OdString& linetype);
377
384 OdDbObjectId linetypeID);
385
392 double linetypeScale);
393
400 OdDb::Visibility visibility);
401
408 const OdString& plotStyleName);
409
416 OdDb::LineWeight lineWeight);
417
419 bool newVal);
421 const OdString& materialName);
423 OdDbObjectId materialID);
424
426 OdDbDwgFiler* pFiler);
427
428 virtual void dwgOutFields(
429 OdDbDwgFiler* pFiler) const;
430
432 OdDbDxfFiler* pFiler);
433
434 virtual void dxfOutFields(
435 OdDbDxfFiler* pFiler) const;
436
437 virtual void copied (
438 const OdDbObject* pObject,
439 const OdDbObject* pNewObject);
440
441 virtual void appendToOwner(
442 OdDbIdPair& idPair,
443 OdDbObject* pOwnerObject,
444 OdDbIdMapping& ownerIdMap);
445
447 void* pClsid) const;
448
449 virtual void subClose() ODRX_OVERRIDE;
450 virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
451 virtual OdDbObjectPtr subDeepClone(OdDbIdMapping& ownerIdMap, OdDbObject*, bool bPrimary) const ODRX_OVERRIDE;
452
453 /*
454 void setHighlight(bool newVal);
455 virtual void applyPartialUndo(OdDbDwgFiler* undoFiler, OdRxClass* classObj);
456 virtual OdResult subErase(bool erasing = true);
457 virtual void goodbye(const OdDbObject* dbObj);
458 */
459
460};
461
466
467#include "TD_PackPop.h"
468
469#endif //_ODDBGROUP_INCLUDED_
470
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbGroupIterator > OdDbGroupIteratorPtr
Definition: DbGroup.h:90
unsigned int OdUInt32
unsigned short OdUInt16
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
OdResult setMaterial(OdDbObjectId materialID)
void setPlotStyleName(const OdString &plotStyleName)
void removeAt(OdUInt32 index, const OdDbObjectIdArray &objectIds)
void setLayer(OdDbObjectId layerId)
bool isAnonymous() const
void append(OdDbObjectId objectId)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void copied(const OdDbObject *pObject, const OdDbObject *pNewObject)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void getIndex(OdDbObjectId objectId, OdUInt32 &index) const
void setDescription(const OdString &description)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
bool isSelectable() const
virtual void subClose() ODRX_OVERRIDE
void setLineweight(OdDb::LineWeight lineWeight)
void remove(const OdDbObjectIdArray &objectIds)
void setColorIndex(OdUInt16 colorIndex)
void prepend(OdDbObjectId objectId)
void prepend(const OdDbObjectIdArray &objectIds)
void removeAt(OdUInt32 entityIndex)
void reverse()
OdDbGroupIteratorPtr newIterator()
virtual OdResult subGetClassID(void *pClsid) const
void setLayer(const OdString &layer)
OdString name() const
OdUInt32 numEntities() const
DWGMAP_DECLARE_MEMBERS(OdDbGroup)
OdResult setMaterial(const OdString &materialName)
OdResult setHighlight(bool newVal)
bool isNotAccessible() const
void setColor(const OdCmColor &color)
void setLinetype(const OdString &linetype)
void setSelectable(bool selectable)
bool has(const OdDbEntity *pEntity) const
void setAnonymous()
void transfer(OdUInt32 fromIndex, OdUInt32 toIndex, OdUInt32 numItems)
void setName(const OdString &name)
void replace(OdDbObjectId oldId, OdDbObjectId newId)
void clear()
void insertAt(OdUInt32 insertionIndex, OdDbObjectId objectId)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setVisibility(OdDb::Visibility visibility)
void setLinetype(OdDbObjectId linetypeID)
void append(const OdDbObjectIdArray &objectIds)
void insertAt(OdUInt32 insertionIndex, const OdDbObjectIdArray &objectIds)
void remove(OdDbObjectId objectId)
OdString description() const
OdUInt32 allEntityIds(OdDbObjectIdArray &objectIds) const
void setLinetypeScale(double linetypeScale)
virtual void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
virtual bool next()=0
ODRX_DECLARE_MEMBERS(OdDbGroupIterator)
virtual bool done() const =0
virtual OdDbObjectId objectId() const =0
virtual OdDbObjectPtr getObject(OdDb::OpenMode openMode)=0
GLuint index
Definition: gles2_ext.h:265
GLuint const GLchar * name
Definition: gles2_ext.h:265
LineWeight
Definition: OdaDefs.h:386
Visibility
Definition: DbObject.h:146
OpenMode
Definition: DbObjectId.h:54