MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.gcodesave.Functions Class Reference

Static Public Member Functions

static void toGcode (meshlib.std_vector_std_string gcode, java.lang.String file, meshlib.std_function_bool_from_float callback)
static void toGcode (meshlib.std_vector_std_string gcode, meshlib.std_ostream out, meshlib.std_function_bool_from_float callback)
static void toAnySupportedFormat (meshlib.std_vector_std_string gcode, java.lang.String file, meshlib.std_function_bool_from_float callback)
static void toAnySupportedFormat (meshlib.std_vector_std_string gcode, meshlib.std_ostream out, java.lang.String extension, meshlib.std_function_bool_from_float callback)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ toAnySupportedFormat() [1/2]

void meshlib.gcodesave.Functions.toAnySupportedFormat ( meshlib.std_vector_std_string gcode,
java.lang.String file,
meshlib.std_function_bool_from_float callback )
static

detects the format from file extension and saves G-code in it Generated from function MR::GcodeSave::toAnySupportedFormat.

Calls MR_GcodeSave_toAnySupportedFormat_3(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toAnySupportedFormat() [2/2]

void meshlib.gcodesave.Functions.toAnySupportedFormat ( meshlib.std_vector_std_string gcode,
meshlib.std_ostream out,
java.lang.String extension,
meshlib.std_function_bool_from_float callback )
static

extension in *.ext format Generated from function MR::GcodeSave::toAnySupportedFormat.

Calls MR_GcodeSave_toAnySupportedFormat_4(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toGcode() [1/2]

void meshlib.gcodesave.Functions.toGcode ( meshlib.std_vector_std_string gcode,
java.lang.String file,
meshlib.std_function_bool_from_float callback )
static

saves G-code commands in *.gcode file (or any text file), one command per line Generated from function MR::GcodeSave::toGcode.

Calls MR_GcodeSave_toGcode_std_filesystem_path(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ toGcode() [2/2]

void meshlib.gcodesave.Functions.toGcode ( meshlib.std_vector_std_string gcode,
meshlib.std_ostream out,
meshlib.std_function_bool_from_float callback )
static

Generated from function MR::GcodeSave::toGcode.

Calls MR_GcodeSave_toGcode_std_ostream(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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