MeshLib C Docs
Loading...
Searching...
No Matches
MRVoxelsLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.h>
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_expected_MR_FloatGrid_std_string MR_expected_MR_FloatGrid_std_string; // Defined in `#include <MRCMisc/expected_MR_FloatGrid_std_string.h>`.
17typedef struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjects_std_string.h>`.
18typedef struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string; // Defined in `#include <MRCMisc/expected_MR_VdbVolume_std_string.h>`.
19typedef struct MR_expected_MR_VoxelsLoad_RawParameters_std_string MR_expected_MR_VoxelsLoad_RawParameters_std_string; // Defined in `#include <MRCMisc/expected_MR_VoxelsLoad_RawParameters_std_string.h>`.
20typedef struct MR_expected_std_vector_MR_FloatGrid_std_string MR_expected_std_vector_MR_FloatGrid_std_string; // Defined in `#include <MRCMisc/expected_std_vector_MR_FloatGrid_std_string.h>`.
21typedef struct MR_expected_std_vector_MR_VdbVolume_std_string MR_expected_std_vector_MR_VdbVolume_std_string; // Defined in `#include <MRCMisc/expected_std_vector_MR_VdbVolume_std_string.h>`.
22typedef struct MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string; // Defined in `#include <MRCMisc/expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string.h>`.
23typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
24typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
25typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
26
27
30
31// Determines iso-surface orientation
32typedef int32_t MR_VoxelsLoad_GridType;
33enum // MR_VoxelsLoad_GridType
34{
35 // consider values less than iso as outer area
37 // consider values less than iso as inner area
39};
40
43
48
52
57
62
66
71
77
82
88
93
97
102
106
111
115
118
121
126
129
132
138
147
157
166
176
184
192
200
208
215
222
230
238
246
254
259
263MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_dir(MR_VoxelsLoad_LoadingTiffSettings *_this, const char *value, const char *value_end);
264
269
274
278
283
288
292
297
302
306
311
315
320
325
328
331
335
338
341
346
352
359
366
367#ifdef __cplusplus
368} // extern "C"
369#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_istream MR_std_istream
Definition MRCtm.h:21
struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string
Definition MRE57.h:17
int32_t MR_ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:16
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRSceneRoot.h:15
MRC_API const MR_Vector3f * MR_VoxelsLoad_LoadingTiffSettings_Get_voxelSize(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_cb(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromAnySupportedFormat(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_DefaultConstruct(void)
MRC_API MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string * MR_makeObjectVoxelsFromFile(const char *file, const char *file_end, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
MRC_API MR_std_filesystem_path * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_dir(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Destroy(const MR_VoxelsLoad_LoadingTiffSettings *_this)
Destroys a heap-allocated instance of MR_VoxelsLoad_LoadingTiffSettings. Does nothing if the pointer ...
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_VoxelsLoad_LoadingTiffSettings *_other)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_AssignFromAnother(MR_VoxelsLoad_RawParameters *_this, const MR_VoxelsLoad_RawParameters *_other)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_gridType(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_VoxelsLoad_GridType value)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_3_std_istream(MR_std_istream *in, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API const MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_OffsetPtr(const MR_VoxelsLoad_RawParameters *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_OffsetPtr(const MR_VoxelsLoad_LoadingTiffSettings *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_VoxelsLoad_GridType * MR_VoxelsLoad_LoadingTiffSettings_Get_gridType(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_OffsetMutablePtr(MR_VoxelsLoad_RawParameters *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_expected_MR_VoxelsLoad_RawParameters_std_string * MR_VoxelsLoad_findRawParameters(MR_std_filesystem_path *file)
MRC_API const MR_Vector3f * MR_VoxelsLoad_RawParameters_Get_voxelSize(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_MR_LoadedObjects_std_string * MR_makeObjectFromVoxelsFile(const char *file, const char *file_end, const MR_std_function_bool_from_float *callback)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromGav_std_filesystem_path(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API const bool * MR_VoxelsLoad_RawParameters_Get_gridLevelSet(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_Vector3f * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_voxelSize(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_expected_std_vector_MR_VdbVolume_std_string * MR_VoxelsLoad_fromVdb(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
int32_t MR_VoxelsLoad_GridType
Definition MRVoxelsLoad.h:32
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_ConstructFromAnother(const MR_VoxelsLoad_RawParameters *_other)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_DefaultConstructArray(size_t num_elems)
MRC_API const MR_Vector3i * MR_VoxelsLoad_RawParameters_Get_dimensions(const MR_VoxelsLoad_RawParameters *_this)
MRC_API const MR_std_function_bool_from_float * MR_VoxelsLoad_LoadingTiffSettings_Get_cb(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_2(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_VoxelsLoad_GridType * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_gridType(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_DestroyArray(const MR_VoxelsLoad_LoadingTiffSettings *_this)
Destroys a heap-allocated array of MR_VoxelsLoad_LoadingTiffSettings. Does nothing if the pointer is ...
MRC_API void MR_VoxelsLoad_RawParameters_Set_dimensions(MR_VoxelsLoad_RawParameters *_this, MR_Vector3i value)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_ConstructFrom(MR_Vector3i dimensions, MR_Vector3f voxelSize, bool gridLevelSet, MR_ScalarType scalarType)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_DefaultConstructArray(size_t num_elems)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromVdb_std_istream(MR_std_istream *in, const MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_loadTiffDir(const MR_VoxelsLoad_LoadingTiffSettings *settings)
MRC_API MR_Vector3f * MR_VoxelsLoad_RawParameters_GetMutable_voxelSize(MR_VoxelsLoad_RawParameters *_this)
MRC_API const MR_ScalarType * MR_VoxelsLoad_RawParameters_Get_scalarType(const MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_AssignFromAnother(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_PassBy _other_pass_by, MR_VoxelsLoad_LoadingTiffSettings *_other)
MRC_API const MR_std_filesystem_path * MR_VoxelsLoad_LoadingTiffSettings_Get_dir(const MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_ConstructFrom(const char *dir, const char *dir_end, MR_Vector3f voxelSize, MR_VoxelsLoad_GridType gridType, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_3_std_filesystem_path(const char *file, const char *file_end, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_3_std_filesystem_path(const char *file, const char *file_end, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API bool * MR_VoxelsLoad_RawParameters_GetMutable_gridLevelSet(MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_std_vector_MR_VdbVolume_std_string * MR_VoxelsLoad_fromAnySupportedFormat(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_RawParameters_Set_gridLevelSet(MR_VoxelsLoad_RawParameters *_this, bool value)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_dir(MR_VoxelsLoad_LoadingTiffSettings *_this, const char *value, const char *value_end)
MRC_API MR_VoxelsLoad_RawParameters * MR_VoxelsLoad_RawParameters_DefaultConstruct(void)
@ MR_VoxelsLoad_GridType_LevelSet
Definition MRVoxelsLoad.h:38
@ MR_VoxelsLoad_GridType_DenseGrid
Definition MRVoxelsLoad.h:36
MRC_API MR_std_function_bool_from_float * MR_VoxelsLoad_LoadingTiffSettings_GetMutable_cb(MR_VoxelsLoad_LoadingTiffSettings *_this)
MRC_API void MR_VoxelsLoad_RawParameters_DestroyArray(const MR_VoxelsLoad_RawParameters *_this)
Destroys a heap-allocated array of MR_VoxelsLoad_RawParameters. Does nothing if the pointer is null.
MRC_API void MR_VoxelsLoad_RawParameters_Set_voxelSize(MR_VoxelsLoad_RawParameters *_this, MR_Vector3f value)
MRC_API MR_expected_MR_FloatGrid_std_string * MR_VoxelsLoad_gridFromRaw_2(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_RawParameters_Destroy(const MR_VoxelsLoad_RawParameters *_this)
Destroys a heap-allocated instance of MR_VoxelsLoad_RawParameters. Does nothing if the pointer is nul...
struct MR_VoxelsLoad_LoadingTiffSettings MR_VoxelsLoad_LoadingTiffSettings
Generated from class MR::VoxelsLoad::LoadingTiffSettings.
Definition MRVoxelsLoad.h:42
MRC_API void MR_VoxelsLoad_RawParameters_Set_scalarType(MR_VoxelsLoad_RawParameters *_this, MR_ScalarType value)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromGav_std_istream(MR_std_istream *in, const MR_std_function_bool_from_float *cb)
MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_voxelSize(MR_VoxelsLoad_LoadingTiffSettings *_this, MR_Vector3f value)
MRC_API MR_expected_MR_VdbVolume_std_string * MR_VoxelsLoad_fromRaw_3_std_istream(MR_std_istream *in, const MR_VoxelsLoad_RawParameters *params, const MR_std_function_bool_from_float *cb)
MRC_API MR_VoxelsLoad_LoadingTiffSettings * MR_VoxelsLoad_LoadingTiffSettings_OffsetMutablePtr(MR_VoxelsLoad_LoadingTiffSettings *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_ScalarType * MR_VoxelsLoad_RawParameters_GetMutable_scalarType(MR_VoxelsLoad_RawParameters *_this)
MRC_API MR_expected_std_vector_MR_FloatGrid_std_string * MR_VoxelsLoad_gridsFromVdb_std_filesystem_path(const char *file, const char *file_end, const MR_std_function_bool_from_float *cb)
MRC_API MR_Vector3i * MR_VoxelsLoad_RawParameters_GetMutable_dimensions(MR_VoxelsLoad_RawParameters *_this)
MR_PassBy
Definition common.h:19
struct MR_expected_MR_FloatGrid_std_string MR_expected_MR_FloatGrid_std_string
Definition expected_MR_FloatGrid_std_string.h:18
struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string
Definition expected_MR_VdbVolume_std_string.h:18
struct MR_expected_MR_VoxelsLoad_RawParameters_std_string MR_expected_MR_VoxelsLoad_RawParameters_std_string
Definition expected_MR_VoxelsLoad_RawParameters_std_string.h:18
struct MR_VoxelsLoad_RawParameters MR_VoxelsLoad_RawParameters
Definition expected_MR_VoxelsLoad_RawParameters_std_string.h:12
struct MR_expected_std_vector_MR_FloatGrid_std_string MR_expected_std_vector_MR_FloatGrid_std_string
Definition expected_std_vector_MR_FloatGrid_std_string.h:18
struct MR_expected_std_vector_MR_VdbVolume_std_string MR_expected_std_vector_MR_VdbVolume_std_string
Definition expected_std_vector_MR_VdbVolume_std_string.h:18
struct MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string MR_expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string
Definition expected_std_vector_std_shared_ptr_MR_ObjectVoxels_std_string.h:18
#define MRC_API
Definition exports.h:11
Definition MRVector3.h:51
Definition MRVector3.h:33