CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbBlockIterator.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 ODDBBLOCKITERATOR_H
28#define ODDBBLOCKITERATOR_H
29
30#include "RxObject.h"
31#include "OdArrayPreDef.h"
32
33class OdDbObjectId;
34class OdDbFilter;
37
43
54{
55protected:
57public:
58 //DOM-IGNORE-BEGIN
60 //DOM-IGNORE-END
61
69 virtual void start() = 0;
70
75 virtual OdDbObjectId next() = 0;
76
81 virtual OdDbObjectId id() const = 0;
82
89 virtual bool seek(
90 OdDbObjectId objectId) = 0;
91
99 const OdDbBlockTableRecord* pBtr);
100
109 const OdDbBlockTableRecord* pBtr,
110 const OdDbFilter* pFilter);
111
120 const OdDbBlockTableRecord* pBtr,
121 const OdArray<OdSmartPtr<OdDbFilter> >& filters);
122
123};
124
136{
137protected:
139public:
140 //DOM-IGNORE-BEGIN
142 //DOM-IGNORE-END
143
156 virtual double estimatedHitFraction() const = 0;
157
163 virtual bool accepts(
164 OdDbObjectId objectId) const = 0;
165
178 virtual bool buffersForComposition() const;
179
190 virtual void addToBuffer(
191 OdDbObjectId objectId);
192};
193
199
200
201#endif // ODDBBLOCKITERATOR_H
OdSmartPtr< OdDbBlockIterator > OdDbBlockIteratorPtr
OdSmartPtr< OdDbFilteredBlockIterator > OdDbFilteredBlockIteratorPtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
static OdDbBlockIteratorPtr newBlockIterator(const OdDbBlockTableRecord *pBtr)
static OdDbBlockIteratorPtr newFilteredIterator(const OdDbBlockTableRecord *pBtr, const OdDbFilter *pFilter)
virtual bool seek(OdDbObjectId objectId)=0
virtual void start()=0
static OdDbBlockIteratorPtr newCompositeIterator(const OdDbBlockTableRecord *pBtr, const OdArray< OdSmartPtr< OdDbFilter > > &filters)
virtual OdDbObjectId next()=0
virtual OdDbObjectId id() const =0
ODRX_DECLARE_MEMBERS(OdDbBlockIterator)
ODRX_DECLARE_MEMBERS(OdDbFilteredBlockIterator)
virtual void addToBuffer(OdDbObjectId objectId)
virtual double estimatedHitFraction() const =0
virtual bool buffersForComposition() const
virtual bool accepts(OdDbObjectId objectId) const =0