MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::SaveSettings:

Public Member Functions

auto assign_from_another (_other:&meshlib::SaveSettings) -> &mut meshlib::SaveSettings
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)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SaveSettings >
static auto construct_from (onlyValidPoints:bool, packPrimitives:bool, colors:Option<&meshlib::VertColors >, primitiveColors:Option<&meshlib::FaceColors >, uvMap:Option<&meshlib::VertCoords2 >, saveTriCornerUVCoords:bool, texture:Option<&meshlib::MeshTexture >, materialName:&str, xf:Option<&meshlib::AffineXf3d >, lengthUnit:Option< meshlib::LengthUnit >, solidColor:Option<&meshlib::Color >, telemetrySignal:bool, progress:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::SaveSettings >
static auto construct_from_another (_other:&meshlib::SaveSettings) -> meshlib::Owned< meshlib::SaveSettings >
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

Detailed Description

determines how to save points/lines/mesh Generated from class MR::SaveSettings. Derived classes: Direct: (non-virtual) MR::DracoSaveOptions MR::MeshSave::CtmSaveOptions MR::PointsSave::CtmSavePointsOptions

Generated from class MR::SaveSettings. Heap-allocated instances are held in Owned<SaveSettings>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::SaveSettings::assign_from_another ( _other:&meshlib::SaveSettings ) -> &mut meshlib::SaveSettings

Generated from method MR::SaveSettings::operator=.

Calls MR_SaveSettings_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ colors()

auto meshlib::SaveSettings::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::SaveSettings named colors.

Calls MR_SaveSettings_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.

◆ colors_mut()

auto meshlib::SaveSettings::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::SaveSettings named colors.

Calls MR_SaveSettings_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.

◆ construct_from()

auto meshlib::SaveSettings::construct_from ( onlyValidPoints:bool ,
packPrimitives:bool ,
colors:Option<&meshlib::VertColors > ,
primitiveColors:Option<&meshlib::FaceColors > ,
uvMap:Option<&meshlib::VertCoords2 > ,
saveTriCornerUVCoords:bool ,
texture:Option<&meshlib::MeshTexture > ,
materialName:& str,
xf:Option<&meshlib::AffineXf3d > ,
lengthUnit:Option< meshlib::LengthUnit > ,
solidColor:Option<&meshlib::Color > ,
telemetrySignal:bool ,
progress:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::SaveSettings >
static

Constructs MR::SaveSettings elementwise.

Calls MR_SaveSettings_ConstructFrom(). The reference to the parameter colors might be preserved in the constructed object. The reference to the parameter primitiveColors might be preserved in the constructed object. The reference to the parameter uvMap might be preserved in the constructed object. The reference to the parameter texture might be preserved in the constructed object. The reference to the parameter materialName might be preserved in the constructed object. The reference to the parameter xf might be preserved in the constructed object. The reference to the parameter lengthUnit might be preserved in the constructed object. The reference to the parameter solidColor might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::SaveSettings::construct_from_another ( _other:&meshlib::SaveSettings ) -> meshlib::Owned< meshlib::SaveSettings >
static

Generated from constructor MR::SaveSettings::SaveSettings.

Calls MR_SaveSettings_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ length_unit()

auto meshlib::SaveSettings::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::SaveSettings named lengthUnit.

Calls MR_SaveSettings_Get_lengthUnit(). The reference to this object might be preserved as the return value.

◆ length_unit_mut()

auto meshlib::SaveSettings::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::SaveSettings named lengthUnit.

Calls MR_SaveSettings_GetMutable_lengthUnit(). The reference to this object might be preserved as the return value.

◆ material_name()

auto meshlib::SaveSettings::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::SaveSettings named materialName.

Calls MR_SaveSettings_Get_materialName(). The reference to this object might be preserved as the return value.

◆ material_name_mut()

auto meshlib::SaveSettings::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::SaveSettings named materialName.

Calls MR_SaveSettings_GetMutable_materialName(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::SaveSettings::new ( ) -> meshlib::Owned< meshlib::SaveSettings >
static

Constructs an empty (default-constructed) instance.

Calls MR_SaveSettings_DefaultConstruct().

◆ only_valid_points()

auto meshlib::SaveSettings::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::SaveSettings named onlyValidPoints.

Calls MR_SaveSettings_Get_onlyValidPoints(). The reference to this object might be preserved as the return value.

◆ only_valid_points_mut()

auto meshlib::SaveSettings::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::SaveSettings named onlyValidPoints.

Calls MR_SaveSettings_GetMutable_onlyValidPoints(). The reference to this object might be preserved as the return value.

◆ pack_primitives()

auto meshlib::SaveSettings::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::SaveSettings named packPrimitives.

Calls MR_SaveSettings_Get_packPrimitives(). The reference to this object might be preserved as the return value.

◆ pack_primitives_mut()

auto meshlib::SaveSettings::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::SaveSettings named packPrimitives.

Calls MR_SaveSettings_GetMutable_packPrimitives(). The reference to this object might be preserved as the return value.

◆ primitive_colors()

auto meshlib::SaveSettings::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::SaveSettings named primitiveColors.

Calls MR_SaveSettings_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.

◆ primitive_colors_mut()

auto meshlib::SaveSettings::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::SaveSettings named primitiveColors.

Calls MR_SaveSettings_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.

◆ progress()

auto meshlib::SaveSettings::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::SaveSettings named progress.

Calls MR_SaveSettings_Get_progress(). The reference to this object might be preserved as the return value.

◆ progress_mut()

auto meshlib::SaveSettings::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::SaveSettings named progress.

Calls MR_SaveSettings_GetMutable_progress(). The reference to this object might be preserved as the return value.

◆ save_tri_corner_uv_coords()

auto meshlib::SaveSettings::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::SaveSettings named saveTriCornerUVCoords.

Calls MR_SaveSettings_Get_saveTriCornerUVCoords(). The reference to this object might be preserved as the return value.

◆ save_tri_corner_uv_coords_mut()

auto meshlib::SaveSettings::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::SaveSettings named saveTriCornerUVCoords.

Calls MR_SaveSettings_GetMutable_saveTriCornerUVCoords(). The reference to this object might be preserved as the return value.

◆ set_colors()

void meshlib::SaveSettings::set_colors ( value:Option<&meshlib::VertColors > )

optional per-vertex color to save with the geometry Modifies a member variable of class MR::SaveSettings named colors.

Calls MR_SaveSettings_Set_colors(). The reference to the parameter value might be preserved in this object in element colors.

◆ set_length_unit()

void meshlib::SaveSettings::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::SaveSettings named lengthUnit.

Calls MR_SaveSettings_Set_lengthUnit(). The reference to the parameter value might be preserved in this object in element lengthUnit.

◆ set_material_name()

void meshlib::SaveSettings::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::SaveSettings named materialName.

Calls MR_SaveSettings_Set_materialName(). The reference to the parameter value might be preserved in this object in element materialName.

◆ set_only_valid_points()

void meshlib::SaveSettings::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::SaveSettings named onlyValidPoints.

Calls MR_SaveSettings_Set_onlyValidPoints().

◆ set_pack_primitives()

void meshlib::SaveSettings::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::SaveSettings named packPrimitives.

Calls MR_SaveSettings_Set_packPrimitives().

◆ set_primitive_colors()

void meshlib::SaveSettings::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::SaveSettings named primitiveColors.

Calls MR_SaveSettings_Set_primitiveColors(). The reference to the parameter value might be preserved in this object in element primitiveColors.

◆ set_progress()

void meshlib::SaveSettings::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::SaveSettings named progress.

Calls MR_SaveSettings_Set_progress(). The reference to the parameter value might be preserved in this object in element progress.

◆ set_save_tri_corner_uv_coords()

void meshlib::SaveSettings::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::SaveSettings named saveTriCornerUVCoords.

Calls MR_SaveSettings_Set_saveTriCornerUVCoords().

◆ set_solid_color()

void meshlib::SaveSettings::set_solid_color ( value:Option<&meshlib::Color > )

the color of whole object Modifies a member variable of class MR::SaveSettings named solidColor.

Calls MR_SaveSettings_Set_solidColor(). The reference to the parameter value might be preserved in this object in element solidColor.

◆ set_telemetry_signal()

void meshlib::SaveSettings::set_telemetry_signal ( value:bool )

permit telemetry signal about saving Modifies a member variable of class MR::SaveSettings named telemetrySignal.

Calls MR_SaveSettings_Set_telemetrySignal().

◆ set_texture()

void meshlib::SaveSettings::set_texture ( value:Option<&meshlib::MeshTexture > )

optional texture to save with the geometry Modifies a member variable of class MR::SaveSettings named texture.

Calls MR_SaveSettings_Set_texture(). The reference to the parameter value might be preserved in this object in element texture.

◆ set_uv_map()

void meshlib::SaveSettings::set_uv_map ( value:Option<&meshlib::VertCoords2 > )

optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::SaveSettings named uvMap.

Calls MR_SaveSettings_Set_uvMap(). The reference to the parameter value might be preserved in this object in element uvMap.

◆ set_xf()

void meshlib::SaveSettings::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::SaveSettings named xf.

Calls MR_SaveSettings_Set_xf(). The reference to the parameter value might be preserved in this object in element xf.

◆ solid_color()

auto meshlib::SaveSettings::solid_color ( ) const -> &meshlib::std_optional_MR_Color

the color of whole object Returns a pointer to a member variable of class MR::SaveSettings named solidColor.

Calls MR_SaveSettings_Get_solidColor(). The reference to this object might be preserved as the return value.

◆ solid_color_mut()

auto meshlib::SaveSettings::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::SaveSettings named solidColor.

Calls MR_SaveSettings_GetMutable_solidColor(). The reference to this object might be preserved as the return value.

◆ telemetry_signal()

auto meshlib::SaveSettings::telemetry_signal ( ) const -> &bool

permit telemetry signal about saving Returns a pointer to a member variable of class MR::SaveSettings named telemetrySignal.

Calls MR_SaveSettings_Get_telemetrySignal(). The reference to this object might be preserved as the return value.

◆ telemetry_signal_mut()

auto meshlib::SaveSettings::telemetry_signal_mut ( ) -> &mut bool

permit telemetry signal about saving Returns a mutable pointer to a member variable of class MR::SaveSettings named telemetrySignal.

Calls MR_SaveSettings_GetMutable_telemetrySignal(). The reference to this object might be preserved as the return value.

◆ texture()

auto meshlib::SaveSettings::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::SaveSettings named texture.

Calls MR_SaveSettings_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.

◆ texture_mut()

auto meshlib::SaveSettings::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::SaveSettings named texture.

Calls MR_SaveSettings_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.

◆ uv_map()

auto meshlib::SaveSettings::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::SaveSettings named uvMap.

Calls MR_SaveSettings_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.

◆ uv_map_mut()

auto meshlib::SaveSettings::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::SaveSettings named uvMap.

Calls MR_SaveSettings_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.

◆ xf()

auto meshlib::SaveSettings::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::SaveSettings named xf.

Calls MR_SaveSettings_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.

◆ xf_mut()

auto meshlib::SaveSettings::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::SaveSettings named xf.

Calls MR_SaveSettings_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.


The documentation for this struct was generated from the following file: