Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::DracoSaveOptions) -> &mut meshlib::DracoSaveOptions |
| auto | compression_level () const -> &core::ffi::c_int |
| auto | compression_level_mut () -> &mut core::ffi::c_int |
| void | set_compression_level (value:core::ffi::c_int) |
| auto | position_quantization_bits () const -> &core::ffi::c_int |
| auto | position_quantization_bits_mut () -> &mut core::ffi::c_int |
| void | set_position_quantization_bits (value:core::ffi::c_int) |
| auto | only_valid_points () const -> &bool |
| auto | only_valid_points_mut () -> &mut bool |
| void | set_only_valid_points (value:bool) |
| auto | pack_primitives () const -> &bool |
| auto | pack_primitives_mut () -> &mut bool |
| void | set_pack_primitives (value:bool) |
| auto | colors () const -> *const *const meshlib::ffi::MR_VertColors |
| auto | colors_mut () -> *mut *const meshlib::ffi::MR_VertColors |
| void | set_colors (value:Option<&meshlib::VertColors >) |
| auto | primitive_colors () const -> *const *const meshlib::ffi::MR_FaceColors |
| auto | primitive_colors_mut () -> *mut *const meshlib::ffi::MR_FaceColors |
| void | set_primitive_colors (value:Option<&meshlib::FaceColors >) |
| auto | uv_map () const -> *const *const meshlib::ffi::MR_VertCoords2 |
| auto | uv_map_mut () -> *mut *const meshlib::ffi::MR_VertCoords2 |
| void | set_uv_map (value:Option<&meshlib::VertCoords2 >) |
| auto | save_tri_corner_uv_coords () const -> &bool |
| auto | save_tri_corner_uv_coords_mut () -> &mut bool |
| void | set_save_tri_corner_uv_coords (value:bool) |
| auto | texture () const -> *const *const meshlib::ffi::MR_MeshTexture |
| auto | texture_mut () -> *mut *const meshlib::ffi::MR_MeshTexture |
| void | set_texture (value:Option<&meshlib::MeshTexture >) |
| auto | material_name () const -> &meshlib::std_string |
| auto | material_name_mut () -> &mut meshlib::std_string |
| void | set_material_name (value:&str) |
| auto | xf () const -> *const *const meshlib::AffineXf3d |
| auto | xf_mut () -> *mut *const meshlib::AffineXf3d |
| void | set_xf (value:Option<&meshlib::AffineXf3d >) |
| auto | length_unit () const -> &meshlib::std_optional_MR_LengthUnit |
| auto | length_unit_mut () -> &mut meshlib::std_optional_MR_LengthUnit |
| void | set_length_unit (value:Option< meshlib::LengthUnit >) |
| auto | solid_color () const -> &meshlib::std_optional_MR_Color |
| auto | solid_color_mut () -> &mut meshlib::std_optional_MR_Color |
| void | set_solid_color (value:Option<&meshlib::Color >) |
| auto | telemetry_signal () const -> &bool |
| auto | telemetry_signal_mut () -> &mut bool |
| void | set_telemetry_signal (value:bool) |
| auto | progress () const -> &meshlib::std_function_bool_from_float |
| auto | progress_mut () -> &mut meshlib::std_function_bool_from_float |
| void | set_progress (value:&meshlib::std_function_bool_from_float) |
| auto | upcast_to_save_settings () const -> &meshlib::SaveSettings |
| auto | upcast_to_save_settings_mut () -> &mut meshlib::SaveSettings |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::DracoSaveOptions > |
| static auto | construct_from_another (_other:&meshlib::DracoSaveOptions) -> meshlib::Owned< meshlib::DracoSaveOptions > |
| static auto | static_downcast_from_save_settings (object:&meshlib::SaveSettings) -> &Self |
| static auto | static_downcast_from_save_settings_mut (object:&mut meshlib::SaveSettings) -> &mut Self |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
options for saving in Google Draco format Generated from class MR::DracoSaveOptions. Base classes: Direct: (non-virtual) MR::SaveSettings
Generated from class MR::DracoSaveOptions. Heap-allocated instances are held in Owned<DracoSaveOptions>.
| auto meshlib::DracoSaveOptions::assign_from_another | ( | _other:&meshlib::DracoSaveOptions | ) | -> &mut meshlib::DracoSaveOptions |
Generated from method MR::DracoSaveOptions::operator=.
Calls MR_DracoSaveOptions_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::DracoSaveOptions::colors | ( | ) | const -> *const *const meshlib::ffi::MR_VertColors |
optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named colors.
Calls MR_DracoSaveOptions_Get_colors(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::colors_mut | ( | ) | -> *mut *const meshlib::ffi::MR_VertColors |
optional per-vertex color to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named colors.
Calls MR_DracoSaveOptions_GetMutable_colors(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::compression_level | ( | ) | const -> &core::ffi::c_int |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Returns a pointer to a member variable of class MR::DracoSaveOptions named compressionLevel.
Calls MR_DracoSaveOptions_Get_compressionLevel(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::compression_level_mut | ( | ) | -> &mut core::ffi::c_int |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named compressionLevel.
Calls MR_DracoSaveOptions_GetMutable_compressionLevel(). The reference to this object might be preserved as the return value.
|
static |
Generated from constructor MR::DracoSaveOptions::DracoSaveOptions.
Calls MR_DracoSaveOptions_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::DracoSaveOptions::length_unit | ( | ) | const -> &meshlib::std_optional_MR_LengthUnit |
units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::DracoSaveOptions named lengthUnit.
Calls MR_DracoSaveOptions_Get_lengthUnit(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::length_unit_mut | ( | ) | -> &mut meshlib::std_optional_MR_LengthUnit |
units of input coordinates and transformation, to be serialized if the format supports it Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named lengthUnit.
Calls MR_DracoSaveOptions_GetMutable_lengthUnit(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::material_name | ( | ) | const -> &meshlib::std_string |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a pointer to a member variable of class MR::DracoSaveOptions named materialName.
Calls MR_DracoSaveOptions_Get_materialName(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::material_name_mut | ( | ) | -> &mut meshlib::std_string |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named materialName.
Calls MR_DracoSaveOptions_GetMutable_materialName(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_DracoSaveOptions_DefaultConstruct().
| auto meshlib::DracoSaveOptions::only_valid_points | ( | ) | const -> &bool |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a pointer to a member variable of class MR::DracoSaveOptions named onlyValidPoints.
Calls MR_DracoSaveOptions_Get_onlyValidPoints(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::only_valid_points_mut | ( | ) | -> &mut bool |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named onlyValidPoints.
Calls MR_DracoSaveOptions_GetMutable_onlyValidPoints(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::pack_primitives | ( | ) | const -> &bool |
whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a pointer to a member variable of class MR::DracoSaveOptions named packPrimitives.
Calls MR_DracoSaveOptions_Get_packPrimitives(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::pack_primitives_mut | ( | ) | -> &mut bool |
whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named packPrimitives.
Calls MR_DracoSaveOptions_GetMutable_packPrimitives(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::position_quantization_bits | ( | ) | const -> &core::ffi::c_int |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Returns a pointer to a member variable of class MR::DracoSaveOptions named positionQuantizationBits.
Calls MR_DracoSaveOptions_Get_positionQuantizationBits(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::position_quantization_bits_mut | ( | ) | -> &mut core::ffi::c_int |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named positionQuantizationBits.
Calls MR_DracoSaveOptions_GetMutable_positionQuantizationBits(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::primitive_colors | ( | ) | const -> *const *const meshlib::ffi::MR_FaceColors |
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a pointer to a member variable of class MR::DracoSaveOptions named primitiveColors.
Calls MR_DracoSaveOptions_Get_primitiveColors(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::primitive_colors_mut | ( | ) | -> *mut *const meshlib::ffi::MR_FaceColors |
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named primitiveColors.
Calls MR_DracoSaveOptions_GetMutable_primitiveColors(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::progress | ( | ) | const -> &meshlib::std_function_bool_from_float |
to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::DracoSaveOptions named progress.
Calls MR_DracoSaveOptions_Get_progress(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::progress_mut | ( | ) | -> &mut meshlib::std_function_bool_from_float |
to report save progress and cancel saving if user desires Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named progress.
Calls MR_DracoSaveOptions_GetMutable_progress(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::save_tri_corner_uv_coords | ( | ) | const -> &bool |
if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a pointer to a member variable of class MR::DracoSaveOptions named saveTriCornerUVCoords.
Calls MR_DracoSaveOptions_Get_saveTriCornerUVCoords(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::save_tri_corner_uv_coords_mut | ( | ) | -> &mut bool |
if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named saveTriCornerUVCoords.
Calls MR_DracoSaveOptions_GetMutable_saveTriCornerUVCoords(). The reference to this object might be preserved as the return value.
| void meshlib::DracoSaveOptions::set_colors | ( | value:Option<&meshlib::VertColors > | ) |
optional per-vertex color to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named colors.
Calls MR_DracoSaveOptions_Set_colors(). The reference to the parameter value might be preserved in this object in element colors.
| void meshlib::DracoSaveOptions::set_compression_level | ( | value:core::ffi::c_int | ) |
0 - fastest encoding and decoding but the worst compression, 10 - the best compression Modifies a member variable of class MR::DracoSaveOptions named compressionLevel.
Calls MR_DracoSaveOptions_Set_compressionLevel().
| void meshlib::DracoSaveOptions::set_length_unit | ( | value:Option< meshlib::LengthUnit > | ) |
units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::DracoSaveOptions named lengthUnit.
Calls MR_DracoSaveOptions_Set_lengthUnit(). The reference to the parameter value might be preserved in this object in element lengthUnit.
| void meshlib::DracoSaveOptions::set_material_name | ( | value:& | str | ) |
the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY) Modifies a member variable of class MR::DracoSaveOptions named materialName.
Calls MR_DracoSaveOptions_Set_materialName(). The reference to the parameter value might be preserved in this object in element materialName.
| void meshlib::DracoSaveOptions::set_only_valid_points | ( | value:bool | ) |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices Modifies a member variable of class MR::DracoSaveOptions named onlyValidPoints.
Calls MR_DracoSaveOptions_Set_onlyValidPoints().
| void meshlib::DracoSaveOptions::set_pack_primitives | ( | value:bool | ) |
whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only Modifies a member variable of class MR::DracoSaveOptions named packPrimitives.
Calls MR_DracoSaveOptions_Set_packPrimitives().
| void meshlib::DracoSaveOptions::set_position_quantization_bits | ( | value:core::ffi::c_int | ) |
the number of bits to quantize vertex coordinates to (in the range [1, 30]); 0 - no quantization, the coordinates are saved losslessly Modifies a member variable of class MR::DracoSaveOptions named positionQuantizationBits.
Calls MR_DracoSaveOptions_Set_positionQuantizationBits().
| void meshlib::DracoSaveOptions::set_primitive_colors | ( | value:Option<&meshlib::FaceColors > | ) |
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other Modifies a member variable of class MR::DracoSaveOptions named primitiveColors.
Calls MR_DracoSaveOptions_Set_primitiveColors(). The reference to the parameter value might be preserved in this object in element primitiveColors.
| void meshlib::DracoSaveOptions::set_progress | ( | value:&meshlib::std_function_bool_from_float | ) |
to report save progress and cancel saving if user desires Modifies a member variable of class MR::DracoSaveOptions named progress.
Calls MR_DracoSaveOptions_Set_progress(). The reference to the parameter value might be preserved in this object in element progress.
| void meshlib::DracoSaveOptions::set_save_tri_corner_uv_coords | ( | value:bool | ) |
if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software) Modifies a member variable of class MR::DracoSaveOptions named saveTriCornerUVCoords.
Calls MR_DracoSaveOptions_Set_saveTriCornerUVCoords().
| void meshlib::DracoSaveOptions::set_solid_color | ( | value:Option<&meshlib::Color > | ) |
the color of whole object Modifies a member variable of class MR::DracoSaveOptions named solidColor.
Calls MR_DracoSaveOptions_Set_solidColor(). The reference to the parameter value might be preserved in this object in element solidColor.
| void meshlib::DracoSaveOptions::set_telemetry_signal | ( | value:bool | ) |
permit telemetry signal about saving Modifies a member variable of class MR::DracoSaveOptions named telemetrySignal.
Calls MR_DracoSaveOptions_Set_telemetrySignal().
| void meshlib::DracoSaveOptions::set_texture | ( | value:Option<&meshlib::MeshTexture > | ) |
optional texture to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named texture.
Calls MR_DracoSaveOptions_Set_texture(). The reference to the parameter value might be preserved in this object in element texture.
| void meshlib::DracoSaveOptions::set_uv_map | ( | value:Option<&meshlib::VertCoords2 > | ) |
optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::DracoSaveOptions named uvMap.
Calls MR_DracoSaveOptions_Set_uvMap(). The reference to the parameter value might be preserved in this object in element uvMap.
| void meshlib::DracoSaveOptions::set_xf | ( | value:Option<&meshlib::AffineXf3d > | ) |
this transformation can optionally be applied to all vertices (points) of saved object Modifies a member variable of class MR::DracoSaveOptions named xf.
Calls MR_DracoSaveOptions_Set_xf(). The reference to the parameter value might be preserved in this object in element xf.
| auto meshlib::DracoSaveOptions::solid_color | ( | ) | const -> &meshlib::std_optional_MR_Color |
the color of whole object Returns a pointer to a member variable of class MR::DracoSaveOptions named solidColor.
Calls MR_DracoSaveOptions_Get_solidColor(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::solid_color_mut | ( | ) | -> &mut meshlib::std_optional_MR_Color |
the color of whole object Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named solidColor.
Calls MR_DracoSaveOptions_GetMutable_solidColor(). The reference to this object might be preserved as the return value.
|
static |
Static downcast from the base class MR::SaveSettings.
Calls MR_DracoSaveOptions_StaticDowncastFrom_MR_SaveSettings(). Undefined behavior if the object isn't actually a DracoSaveOptions.
|
static |
Static downcast from the base class MR::SaveSettings.
Calls MR_DracoSaveOptions_MutableStaticDowncastFrom_MR_SaveSettings(). Undefined behavior if the object isn't actually a DracoSaveOptions.
| auto meshlib::DracoSaveOptions::telemetry_signal | ( | ) | const -> &bool |
permit telemetry signal about saving Returns a pointer to a member variable of class MR::DracoSaveOptions named telemetrySignal.
Calls MR_DracoSaveOptions_Get_telemetrySignal(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::telemetry_signal_mut | ( | ) | -> &mut bool |
permit telemetry signal about saving Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named telemetrySignal.
Calls MR_DracoSaveOptions_GetMutable_telemetrySignal(). The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::texture | ( | ) | const -> *const *const meshlib::ffi::MR_MeshTexture |
optional texture to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named texture.
Calls MR_DracoSaveOptions_Get_texture(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::texture_mut | ( | ) | -> *mut *const meshlib::ffi::MR_MeshTexture |
optional texture to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named texture.
Calls MR_DracoSaveOptions_GetMutable_texture(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::upcast_to_save_settings | ( | ) | const -> &meshlib::SaveSettings |
Upcasts to the base class MR::SaveSettings.
Calls MR_DracoSaveOptions_UpcastTo_MR_SaveSettings().
| auto meshlib::DracoSaveOptions::upcast_to_save_settings_mut | ( | ) | -> &mut meshlib::SaveSettings |
Upcasts to the base class MR::SaveSettings.
Calls MR_DracoSaveOptions_MutableUpcastTo_MR_SaveSettings().
| auto meshlib::DracoSaveOptions::uv_map | ( | ) | const -> *const *const meshlib::ffi::MR_VertCoords2 |
optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::DracoSaveOptions named uvMap.
Calls MR_DracoSaveOptions_Get_uvMap(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::uv_map_mut | ( | ) | -> *mut *const meshlib::ffi::MR_VertCoords2 |
optional per-vertex uv coordinate to save with the geometry Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named uvMap.
Calls MR_DracoSaveOptions_GetMutable_uvMap(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::xf | ( | ) | const -> *const *const meshlib::AffineXf3d |
this transformation can optionally be applied to all vertices (points) of saved object Returns a pointer to a member variable of class MR::DracoSaveOptions named xf.
Calls MR_DracoSaveOptions_Get_xf(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.
| auto meshlib::DracoSaveOptions::xf_mut | ( | ) | -> *mut *const meshlib::AffineXf3d |
this transformation can optionally be applied to all vertices (points) of saved object Returns a mutable pointer to a member variable of class MR::DracoSaveOptions named xf.
Calls MR_DracoSaveOptions_GetMutable_xf(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.