MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.SaveSettings Class Reference
Inheritance diagram for meshlib.SaveSettings:

Public Member Functions

 SaveSettings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 SaveSettings ()
 SaveSettings (boolean onlyValidPoints, boolean packPrimitives, meshlib.VertColors colors, meshlib.FaceColors primitiveColors, meshlib.VertCoords2 uvMap, boolean saveTriCornerUVCoords, meshlib.MeshTexture texture, java.lang.String materialName, meshlib.AffineXf3d xf, meshlib.LengthUnit lengthUnit, meshlib.Color solidColor, boolean telemetrySignal, meshlib.std_function_bool_from_float progress)
 SaveSettings (meshlib.SaveSettings _other)
meshlib.SaveSettings assignFromAnother (meshlib.SaveSettings _other)
boolean onlyValidPoints ()
void setOnlyValidPoints (boolean value)
boolean packPrimitives ()
void setPackPrimitives (boolean value)
java.lang.foreign.MemorySegment colors ()
void setColors (meshlib.VertColors value)
java.lang.foreign.MemorySegment primitiveColors ()
void setPrimitiveColors (meshlib.FaceColors value)
java.lang.foreign.MemorySegment uvMap ()
void setUvMap (meshlib.VertCoords2 value)
boolean saveTriCornerUVCoords ()
void setSaveTriCornerUVCoords (boolean value)
java.lang.foreign.MemorySegment texture ()
void setTexture (meshlib.MeshTexture value)
meshlib.std_string materialName ()
void setMaterialName (java.lang.String value)
java.lang.foreign.MemorySegment xf ()
void setXf (meshlib.AffineXf3d value)
meshlib.std_optional_MR_LengthUnit lengthUnit ()
void setLengthUnit (meshlib.LengthUnit value)
meshlib.std_optional_MR_Color solidColor ()
void setSolidColor (meshlib.Color value)
boolean telemetrySignal ()
void setTelemetrySignal (boolean value)
meshlib.std_function_bool_from_float progress ()
void setProgress (meshlib.std_function_bool_from_float value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ SaveSettings() [1/4]

meshlib.SaveSettings.SaveSettings ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ SaveSettings() [2/4]

meshlib.SaveSettings.SaveSettings ( )

Constructs an empty (default-constructed) instance.

Calls MR_SaveSettings_DefaultConstruct().

◆ SaveSettings() [3/4]

meshlib.SaveSettings.SaveSettings ( boolean onlyValidPoints,
boolean packPrimitives,
meshlib.VertColors colors,
meshlib.FaceColors primitiveColors,
meshlib.VertCoords2 uvMap,
boolean saveTriCornerUVCoords,
meshlib.MeshTexture texture,
java.lang.String materialName,
meshlib.AffineXf3d xf,
meshlib.LengthUnit lengthUnit,
meshlib.Color solidColor,
boolean telemetrySignal,
meshlib.std_function_bool_from_float progress )

Constructs MR::SaveSettings elementwise. 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.

Calls MR_SaveSettings_ConstructFrom().

◆ SaveSettings() [4/4]

meshlib.SaveSettings.SaveSettings ( meshlib.SaveSettings _other)

Generated from constructor MR::SaveSettings::SaveSettings. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_SaveSettings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.SaveSettings meshlib.SaveSettings.assignFromAnother ( meshlib.SaveSettings _other)

Generated from method MR::SaveSettings::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_SaveSettings_AssignFromAnother().

◆ colors()

java.lang.foreign.MemorySegment meshlib.SaveSettings.colors ( )

optional per-vertex color to save with the geometry Returns a pointer to a member variable of class MR::SaveSettings named colors. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_colors(). Some types are raw C types, see the C bindings for the details.

◆ lengthUnit()

meshlib.std_optional_MR_LengthUnit meshlib.SaveSettings.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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_lengthUnit().

◆ materialName()

meshlib.std_string meshlib.SaveSettings.materialName ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_materialName().

◆ onlyValidPoints()

boolean meshlib.SaveSettings.onlyValidPoints ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_onlyValidPoints().

◆ packPrimitives()

boolean meshlib.SaveSettings.packPrimitives ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_packPrimitives().

◆ primitiveColors()

java.lang.foreign.MemorySegment meshlib.SaveSettings.primitiveColors ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_primitiveColors(). Some types are raw C types, see the C bindings for the details.

◆ progress()

meshlib.std_function_bool_from_float meshlib.SaveSettings.progress ( )

to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::SaveSettings named progress. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_progress().

◆ saveTriCornerUVCoords()

boolean meshlib.SaveSettings.saveTriCornerUVCoords ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_saveTriCornerUVCoords().

◆ setColors()

void meshlib.SaveSettings.setColors ( meshlib.VertColors value)

optional per-vertex color to save with the geometry Modifies a member variable of class MR::SaveSettings named colors. The reference to the parameter value might be preserved in this object in element colors.

Calls MR_SaveSettings_Set_colors().

◆ setLengthUnit()

void meshlib.SaveSettings.setLengthUnit ( meshlib.LengthUnit value)

units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::SaveSettings named lengthUnit. The reference to the parameter value might be preserved in this object in element lengthUnit.

Calls MR_SaveSettings_Set_lengthUnit().

◆ setMaterialName()

void meshlib.SaveSettings.setMaterialName ( java.lang.String value)

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. The reference to the parameter value might be preserved in this object in element materialName.

Calls MR_SaveSettings_Set_materialName().

◆ setOnlyValidPoints()

void meshlib.SaveSettings.setOnlyValidPoints ( boolean value)

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().

◆ setPackPrimitives()

void meshlib.SaveSettings.setPackPrimitives ( boolean value)

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().

◆ setPrimitiveColors()

void meshlib.SaveSettings.setPrimitiveColors ( meshlib.FaceColors value)

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. The reference to the parameter value might be preserved in this object in element primitiveColors.

Calls MR_SaveSettings_Set_primitiveColors().

◆ setProgress()

void meshlib.SaveSettings.setProgress ( meshlib.std_function_bool_from_float value)

to report save progress and cancel saving if user desires Modifies a member variable of class MR::SaveSettings named progress. The reference to the parameter value might be preserved in this object in element progress.

Calls MR_SaveSettings_Set_progress().

◆ setSaveTriCornerUVCoords()

void meshlib.SaveSettings.setSaveTriCornerUVCoords ( boolean value)

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().

◆ setSolidColor()

void meshlib.SaveSettings.setSolidColor ( meshlib.Color value)

the color of whole object Modifies a member variable of class MR::SaveSettings named solidColor. The reference to the parameter value might be preserved in this object in element solidColor.

Calls MR_SaveSettings_Set_solidColor().

◆ setTelemetrySignal()

void meshlib.SaveSettings.setTelemetrySignal ( boolean value)

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

Calls MR_SaveSettings_Set_telemetrySignal().

◆ setTexture()

void meshlib.SaveSettings.setTexture ( meshlib.MeshTexture value)

optional texture to save with the geometry Modifies a member variable of class MR::SaveSettings named texture. The reference to the parameter value might be preserved in this object in element texture.

Calls MR_SaveSettings_Set_texture().

◆ setUvMap()

void meshlib.SaveSettings.setUvMap ( meshlib.VertCoords2 value)

optional per-vertex uv coordinate to save with the geometry Modifies a member variable of class MR::SaveSettings named uvMap. The reference to the parameter value might be preserved in this object in element uvMap.

Calls MR_SaveSettings_Set_uvMap().

◆ setXf()

void meshlib.SaveSettings.setXf ( meshlib.AffineXf3d value)

this transformation can optionally be applied to all vertices (points) of saved object Modifies a member variable of class MR::SaveSettings named xf. The reference to the parameter value might be preserved in this object in element xf.

Calls MR_SaveSettings_Set_xf().

◆ solidColor()

meshlib.std_optional_MR_Color meshlib.SaveSettings.solidColor ( )

the color of whole object Returns a pointer to a member variable of class MR::SaveSettings named solidColor. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_solidColor().

◆ telemetrySignal()

boolean meshlib.SaveSettings.telemetrySignal ( )

permit telemetry signal about saving Returns a pointer to a member variable of class MR::SaveSettings named telemetrySignal. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_telemetrySignal().

◆ texture()

java.lang.foreign.MemorySegment meshlib.SaveSettings.texture ( )

optional texture to save with the geometry Returns a pointer to a member variable of class MR::SaveSettings named texture. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_texture(). Some types are raw C types, see the C bindings for the details.

◆ uvMap()

java.lang.foreign.MemorySegment meshlib.SaveSettings.uvMap ( )

optional per-vertex uv coordinate to save with the geometry Returns a pointer to a member variable of class MR::SaveSettings named uvMap. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_uvMap(). Some types are raw C types, see the C bindings for the details.

◆ xf()

java.lang.foreign.MemorySegment meshlib.SaveSettings.xf ( )

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. The reference to this object might be preserved as the return value.

Calls MR_SaveSettings_Get_xf(). Some types are raw C types, see the C bindings for the details.


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