21 ProgressCallback callback = {} );
23 ProgressCallback callback = {} );
25 ProgressCallback callback = {} );
42 ProgressCallback callback = {} );
44 ProgressCallback callback = {} );
46 ProgressCallback callback = {} );
50 ProgressCallback callback = {} );
52 ProgressCallback callback = {} );
61 std::filesystem::path path;
63 std::string format =
"slice_{0:0{1}}.tif";
67 ProgressCallback cb = {};
75#ifndef MR_PARSING_FOR_ANY_BINDINGS
76using VoxelsSaver = Expected<void>( * )(
const VdbVolume&,
const std::filesystem::path&, ProgressCallback );
#define MRVOXELS_API
Definition MRVoxelsFwd.h:14
Definition MRFloatGrid.h:21
Definition MRObjectSaveSettings.h:11
Definition MRVoxelsSave.h:59
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={})
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={})
MRVOXELS_API Expected< void > gridToRawFloat(const FloatGrid &grid, const Vector3i &dims, 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 > 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 > gridToAnySupportedFormat(const FloatGrid &grid, const Vector3i &dims, const std::filesystem::path &file, ProgressCallback callback={})
Saves voxels in a file, detecting the format from file extension.
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={})
MRVOXELS_API Expected< void > gridToVdb(const FloatGrid &grid, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels file in OpenVDB format.
MRVOXELS_API Expected< void > gridToRawAutoname(const FloatGrid &grid, const Vector3i &dims, const std::filesystem::path &file, ProgressCallback callback={})
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API Expected< void > saveObjectVoxelsToFile(const Object &object, const std::filesystem::path &path, const ObjectSave::Settings &settings)