3#include "MRVoxelsFwd.h"
6#include <openvdb/util/NullInterrupter.h>
20 , progressThreadId_{ std::this_thread::get_id() } {}
25 if ( cb_ && progressThreadId_ == std::this_thread::get_id() )
26 wasInterrupted_ = !cb_(
float( std::clamp( percent, 0, 100 ) ) / 100.0f );
27 return wasInterrupted_;
32 bool wasInterrupted_{
false };
34 std::thread::id progressThreadId_;
bool getWasInterrupted() const
Definition MRVDBProgressInterrupter.h:29
virtual bool wasInterrupted(int percent=-1) override
Definition MRVDBProgressInterrupter.h:21
ProgressInterrupter(ProgressCallback cb)
Definition MRVDBProgressInterrupter.h:19
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
This class implements OpenVdb interrupter interface and provides ability to use MR::ProgressCallback ...
Definition MRVDBProgressInterrupter.h:18