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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_expected_MR_FloatGrid_std_string MR_expected_MR_FloatGrid_std_string; // Defined in `#include <MRCMisc/expected_MR_FloatGrid_std_string.h>`.
16typedef struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string; // Defined in `#include <MRCMisc/expected_MR_LoadedObjects_std_string.h>`.
17typedef struct MR_expected_MR_VdbVolume_std_string MR_expected_MR_VdbVolume_std_string; // Defined in `#include <MRCMisc/expected_MR_VdbVolume_std_string.h>`.
18typedef 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>`.
19typedef 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>`.
20typedef 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>`.
21typedef 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>`.
22typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
23typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
24typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
25
26
29
30// Determines iso-surface orientation
32{
33 // consider values less than iso as outer area
35 // consider values less than iso as inner area
38
41
46
50
55
60
64
69
75
80
86
91
95
100
104
109
113
116
119
124
127
130
136
145
155
164
174
182
190
198
206
213
220
228
236
244
252
257
261MRC_API void MR_VoxelsLoad_LoadingTiffSettings_Set_dir(MR_VoxelsLoad_LoadingTiffSettings *_this, const char *value, const char *value_end);
262
267
272
276
281
286
290
295
300
304
309
313
318
323
326
329
333
336
339
344
350
357
364
365#ifdef __cplusplus
366} // extern "C"
367#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:20
struct MR_expected_MR_LoadedObjects_std_string MR_expected_MR_LoadedObjects_std_string
Definition MRE57.h:17
MR_ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:15
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)
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
Definition MRVoxelsLoad.h:32
@ MR_VoxelsLoad_GridType_LevelSet
Definition MRVoxelsLoad.h:36
@ MR_VoxelsLoad_GridType_DenseGrid
Definition MRVoxelsLoad.h:34
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:40
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:50
Definition MRVector3.h:32