52 std::filesystem::path
path;
54 std::string
format =
"slice_{0:0{1}}.tif";
66#ifndef MR_PARSING_FOR_PB11_BINDINGS
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
named object in the data model
Definition MRObject.h:60
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRVOXELS_API Expected< void > toGav(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels in Gav-format in given destination.
MRVOXELS_API Expected< void > toRawFloat(const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
Save voxels in raw format with each value as 32-bit float in given binary stream.
MRVOXELS_API Expected< void > saveAllSlicesToImage(const VdbVolume &vdbVolume, const SavingSettings &settings)
save all slices by the active plane through all voxel planes along the active axis to an image file
MRVOXELS_API Expected< void > toAnySupportedFormat(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Saves voxels in a file, detecting the format from file extension.
MRVOXELS_API Expected< void > saveSliceToImage(const std::filesystem::path &path, const VdbVolume &vdbVolume, const SlicePlane &slicePlain, int sliceNumber, ProgressCallback callback={})
save the slice by the active plane through the sliceNumber to an image file
MRVOXELS_API Expected< void > toRawAutoname(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save raw voxels file, writing parameters in file name.
MRVOXELS_API Expected< void > toVdb(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels file in OpenVDB format.
SlicePlane
Plane of slice in which to find path.
Definition MRVoxelPath.h:29
Expected< void >(*)(const VdbVolume &, const std::filesystem::path &, ProgressCallback) VoxelsSaver
Definition MRVoxelsSave.h:67
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRVOXELS_API Expected< void > saveObjectVoxelsToFile(const Object &object, const std::filesystem::path &path, const ProgressCallback &callback={})
Definition MRVoxelsSave.h:50
ProgressCallback cb
Definition MRVoxelsSave.h:58
SlicePlane slicePlane
Definition MRVoxelsSave.h:56
std::filesystem::path path
Definition MRVoxelsSave.h:52
std::string format
Definition MRVoxelsSave.h:54