IFilterStats.hpp
1 #pragma once
2 
3 
4 #include "DM/IGeometry.hpp"
5 #include "DM/AutoLink.hpp" //enable autolink
6 
7 DM_NAMESPACE_BEGIN
8 
9 /// \brief accumulate statistical information about the results of filtering
10 /** May be attached to an IFilter, in which case accumulate(.) is called for every result, just before it is returned from the filter.
11  Mind that IFilter::clone() does not clone its IFilterStats.
12  Thus, if IFilterStats shall be called from multiple threads, then you may need to implement a mutex.
13 */
14 class DM_API IFilterStats : public ObjectBase
15 {
16 public:
17  virtual void accumulate( GeometryHandle filtered, GeometryHandle orig, bool filterResult ) = 0;
18 };
19 
21 
22 
23 DM_NAMESPACE_END
accumulate statistical information about the results of filtering
Definition: IFilterStats.hpp:14
Smart pointer class using reference counting with support for DM objects (see ObjectBase)
Definition: Handle.hpp:75
Definition: M/c++_api/inc/DM/ObjectBase.hpp:8