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

Public Member Functions

 Settings (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Settings ()
 Settings (meshlib.LengthUnit targetUnit, meshlib.std_function_bool_from_float progress, meshlib.std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_funct__3b3c018b openFolder)
 Settings (meshlib.sceneload.Settings _other)
meshlib.sceneload.Settings assignFromAnother (meshlib.sceneload.Settings _other)
meshlib.std_optional_MR_LengthUnit targetUnit ()
void setTargetUnit (meshlib.LengthUnit value)
meshlib.std_function_bool_from_float progress ()
void setProgress (meshlib.std_function_bool_from_float value)
meshlib.std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_funct__3b3c018b openFolder ()
void setOpenFolder (meshlib.std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_funct__3b3c018b 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

Generated from class MR::SceneLoad::Settings.

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

Constructor & Destructor Documentation

◆ Settings() [1/4]

meshlib.sceneload.Settings.Settings ( 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.

◆ Settings() [2/4]

meshlib.sceneload.Settings.Settings ( )

Constructs an empty (default-constructed) instance.

Calls MR_SceneLoad_Settings_DefaultConstruct().

◆ Settings() [3/4]

Constructs MR::SceneLoad::Settings elementwise. The reference to the parameter targetUnit might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. The reference to the parameter openFolder might be preserved in the constructed object.

Calls MR_SceneLoad_Settings_ConstructFrom().

◆ Settings() [4/4]

meshlib.sceneload.Settings.Settings ( meshlib.sceneload.Settings _other)

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

Calls MR_SceneLoad_Settings_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.sceneload.Settings meshlib.sceneload.Settings.assignFromAnother ( meshlib.sceneload.Settings _other)

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

Calls MR_SceneLoad_Settings_AssignFromAnother().

◆ openFolder()

Returns a pointer to a member variable of class MR::SceneLoad::Settings named openFolder. The reference to this object might be preserved as the return value.

Calls MR_SceneLoad_Settings_Get_openFolder().

◆ progress()

meshlib.std_function_bool_from_float meshlib.sceneload.Settings.progress ( )

to report loading progress and allow the user to cancel it Returns a pointer to a member variable of class MR::SceneLoad::Settings named progress. The reference to this object might be preserved as the return value.

Calls MR_SceneLoad_Settings_Get_progress().

◆ setOpenFolder()

Modifies a member variable of class MR::SceneLoad::Settings named openFolder. The reference to the parameter value might be preserved in this object in element openFolder.

Calls MR_SceneLoad_Settings_Set_openFolder().

◆ setProgress()

void meshlib.sceneload.Settings.setProgress ( meshlib.std_function_bool_from_float value)

to report loading progress and allow the user to cancel it Modifies a member variable of class MR::SceneLoad::Settings named progress. The reference to the parameter value might be preserved in this object in element progress.

Calls MR_SceneLoad_Settings_Set_progress().

◆ setTargetUnit()

void meshlib.sceneload.Settings.setTargetUnit ( meshlib.LengthUnit value)

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Modifies a member variable of class MR::SceneLoad::Settings named targetUnit. The reference to the parameter value might be preserved in this object in element targetUnit.

Calls MR_SceneLoad_Settings_Set_targetUnit().

◆ targetUnit()

meshlib.std_optional_MR_LengthUnit meshlib.sceneload.Settings.targetUnit ( )

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Returns a pointer to a member variable of class MR::SceneLoad::Settings named targetUnit. The reference to this object might be preserved as the return value.

Calls MR_SceneLoad_Settings_Get_targetUnit().


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