CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbSSet.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#ifndef _DBSSET_H_
25#define _DBSSET_H_
26
27#include "Ge/GePoint3d.h"
28#include "DbDatabase.h"
29#include "DbObjectId.h"
30#include "DbObject.h"
31#include "DbObjectIterator.h"
32#include "ResBuf.h"
33#include "DbSubentId.h"
34#include "SSet.h"
35
36//class OdDbSelectionSet;
37//class OdDbBlockTableRecord;
38
39
46{
47protected:
49public:
51
52 virtual bool accept(const OdDbObjectId& entityId) const = 0;
53};
54
56
57
60
67{
68protected:
70public:
71 static OdDbParametrizedSFPtr createObject(const OdResBuf* pSpec, const OdDbDatabase* pDb);
72
73 virtual void setSpecification(const OdResBuf* /*pSpec*/, const OdDbDatabase* /*pDb*/ = 0) {}
74 virtual OdResBufPtr specification() const { return OdResBufPtr(); }
75 virtual const OdDbDatabase* database() const { return 0; }
76};
77
78
88//class ODRX_ABSTRACT TOOLKIT_EXPORT OdDbSelectionSetIterator : public OdRxObject
90{
91public:
93
98 virtual OdDbObjectId objectId() const = 0;
99
100protected:
102};
103
108
113
124{
125protected:
127public:
129
137
138 virtual const OdDbDatabase* database() const = 0;
139
143 //virtual OdSelectionSetIteratorPtr newIterator() const = 0;
144
145 virtual OdDbObjectIdArray objectIdArray() const = 0;
146
147 // operations on the selection set
148
155 static OdDbSelectionSetPtr select(const OdDbDatabase *pDb, const OdRxObject* pFilter = 0);
156
168 const OdDbObjectId& vpId,
169 int nPoints,
170 const OdGePoint3d* wcsPts,
173 const OdRxObject* pFilter = 0);
174
178 //virtual OdUInt32 numEntities() const = 0;
179
187 //virtual void append(OdDbStub* entityId, OdDbSelectionMethod* pMethod = 0) = 0;
188
189 virtual void append(const OdDbObjectId& entityId, OdDbSelectionMethod* pMethod = 0) = 0;
190
197 virtual void append(const OdDbObjectIdArray& entityIds, OdDbSelectionMethod* pMethod = 0);
198
199
200 //virtual void append(const OdDbBaseFullSubentPath& subent, OdDbSelectionMethod* pMethod = 0) = 0;
201
208 virtual void append(const OdDbFullSubentPath& subent, OdDbSelectionMethod* pMethod = 0) = 0;
209
215 virtual void append(const OdSelectionSet* pSSet);
216
223 //virtual void remove(OdDbStub* entityId) = 0;
224
230 virtual void remove(const OdDbObjectId& entityId) = 0;
231
237 virtual void remove(const OdDbObjectIdArray& entityIds);
238
239
240 //virtual void remove(const OdDbBaseFullSubentPath& subent) = 0;
241
247 virtual void remove(const OdDbFullSubentPath& subent) = 0;
248
254 virtual void remove(const OdSelectionSet* pSSet);
255
262 //virtual bool isMember(OdDbStub* entityId) const = 0;
263
269 virtual bool isMember(const OdDbObjectId& entityId) const = 0;
270
271
272 //virtual bool isMember(const OdDbBaseFullSubentPath& subent) const = 0;
273
279 virtual bool isMember(const OdDbFullSubentPath& subent) const = 0;
280
282 //virtual OdDbSelectionMethodPtr method(OdDbStub* entityId) const = 0;
283
289 virtual OdDbSelectionMethodPtr method(const OdDbObjectId& entityId) const = 0;
290
299 virtual OdUInt32 subentCount(OdDbStub* rootEntityId = 0) const = 0;
300
311 virtual bool getSubentity(const OdDbObjectId& entityId, OdUInt32 i, OdDbFullSubentPath& path) const = 0;
312
316 virtual OdDbSelectionMethodPtr method(const OdDbFullSubentPath& subent) const = 0;
317};
318
319#endif //_DBSSET_H_
OdSmartPtr< OdResBuf > OdResBufPtr
Definition: DbDatabase.h:105
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbSelectionSetIterator > OdDbSelectionSetIteratorPtr
Definition: DbSSet.h:107
OdSmartPtr< OdDbParametrizedSF > OdDbParametrizedSFPtr
Definition: DbSSet.h:59
OdSmartPtr< OdDbSelectionSet > OdDbSelectionSetPtr
Definition: DbSSet.h:112
OdSmartPtr< OdDbSelectionFilter > OdDbSelectionFilterPtr
Definition: DbSSet.h:55
unsigned int OdUInt32
#define ODRX_ABSTRACT
virtual OdResBufPtr specification() const
Definition: DbSSet.h:74
virtual const OdDbDatabase * database() const
Definition: DbSSet.h:75
virtual void setSpecification(const OdResBuf *, const OdDbDatabase *=0)
Definition: DbSSet.h:73
static OdDbParametrizedSFPtr createObject(const OdResBuf *pSpec, const OdDbDatabase *pDb)
virtual bool accept(const OdDbObjectId &entityId) const =0
ODRX_DECLARE_MEMBERS(OdDbSelectionFilter)
ODRX_DECLARE_MEMBERS(OdDbSelectionSet)
TD_USING(OdSelectionSet::isMember)
virtual bool isMember(const OdDbObjectId &entityId) const =0
static OdDbSelectionSetPtr createObject(const OdDbDatabase *pDb)
virtual bool getSubentity(const OdDbObjectId &entityId, OdUInt32 i, OdDbFullSubentPath &path) const =0
virtual void remove(const OdDbFullSubentPath &subent)=0
virtual OdDbObjectIdArray objectIdArray() const =0
TD_USING(OdSelectionSet::remove)
virtual void remove(const OdSelectionSet *pSSet)
virtual void remove(const OdDbObjectIdArray &entityIds)
static OdDbSelectionSetPtr select(const OdDbDatabase *pDb, const OdRxObject *pFilter=0)
virtual OdDbSelectionMethodPtr method(const OdDbObjectId &entityId) const =0
virtual OdUInt32 subentCount(OdDbStub *rootEntityId=0) const =0
virtual bool isMember(const OdDbFullSubentPath &subent) const =0
static OdDbSelectionSetPtr select(const OdDbObjectId &vpId, int nPoints, const OdGePoint3d *wcsPts, OdDbVisualSelection::Mode mode=OdDbVisualSelection::kCrossing, OdUInt32 sm=OdDbVisualSelection::kDisableSubents, const OdRxObject *pFilter=0)
virtual void append(const OdDbObjectIdArray &entityIds, OdDbSelectionMethod *pMethod=0)
virtual const OdDbDatabase * database() const =0
TD_USING(OdSelectionSet::append)
virtual void append(const OdDbFullSubentPath &subent, OdDbSelectionMethod *pMethod=0)=0
virtual OdDbSelectionMethodPtr method(const OdDbFullSubentPath &subent) const =0
virtual void append(const OdDbObjectId &entityId, OdDbSelectionMethod *pMethod=0)=0
virtual void append(const OdSelectionSet *pSSet)
virtual void remove(const OdDbObjectId &entityId)=0
TD_USING(OdSelectionSet::method)
ODRX_DECLARE_MEMBERS(OdDbSelectionSetIterator)
virtual OdDbObjectId objectId() const =0
virtual void remove(OdDbStub *entityId)=0
virtual bool isMember(OdDbStub *entityId) const =0
virtual void append(OdDbStub *entityId, OdDbSelectionMethod *pMethod=0)=0
virtual OdDbSelectionMethodPtr method(OdDbStub *entityId) const =0