MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::GcodeProcessor Struct Reference
Inheritance diagram for meshlib::GcodeProcessor:

Public Member Functions

auto assign_from_another (_other:&meshlib::GcodeProcessor) -> &mut meshlib::GcodeProcessor
void reset ()
void set_gcode_source (gcodeSource:&meshlib::std_vector_std_string)
auto process_source () -> meshlib::Owned< meshlib::std_vector_MR_GcodeProcessor_MoveAction >
auto process_line (line:&str, externalStorage:&mut meshlib::std_vector_MR_GcodeProcessor_Command) -> meshlib::Owned< meshlib::GcodeProcessor_MoveAction >
void set_cnc_machine_settings (settings:&meshlib::CNCMachineSettings)
auto get_cnc_machine_settings () -> &meshlib::CNCMachineSettings

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::GcodeProcessor >
static auto construct_from_another (_other:&meshlib::GcodeProcessor) -> meshlib::Owned< meshlib::GcodeProcessor >
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

class to process g-code source and generate toolpath Generated from class MR::GcodeProcessor.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::GcodeProcessor::GcodeProcessor.

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

◆ get_cnc_machine_settings()

auto meshlib::GcodeProcessor::get_cnc_machine_settings ( ) -> &meshlib::CNCMachineSettings

Generated from method MR::GcodeProcessor::getCNCMachineSettings.

Calls MR_GcodeProcessor_getCNCMachineSettings().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_GcodeProcessor_DefaultConstruct().

◆ process_line()

auto meshlib::GcodeProcessor::process_line ( line:& str,
externalStorage:&mut meshlib::std_vector_MR_GcodeProcessor_Command  ) -> meshlib::Owned< meshlib::GcodeProcessor_MoveAction >

process all commands from one line g-code source and generate corresponding move action;

Parameters
externalStorageto avoid memory allocation on each line Generated from method MR::GcodeProcessor::processLine.

Calls MR_GcodeProcessor_processLine().

◆ process_source()

auto meshlib::GcodeProcessor::process_source ( ) -> meshlib::Owned< meshlib::std_vector_MR_GcodeProcessor_MoveAction >

process all lines g-code source and generate corresponding move actions Generated from method MR::GcodeProcessor::processSource.

Calls MR_GcodeProcessor_processSource().

◆ reset()

void meshlib::GcodeProcessor::reset ( )

reset internal states Generated from method MR::GcodeProcessor::reset.

Calls MR_GcodeProcessor_reset().

◆ set_cnc_machine_settings()

void meshlib::GcodeProcessor::set_cnc_machine_settings ( settings:&meshlib::CNCMachineSettings )

settings Generated from method MR::GcodeProcessor::setCNCMachineSettings.

Calls MR_GcodeProcessor_setCNCMachineSettings().

◆ set_gcode_source()

void meshlib::GcodeProcessor::set_gcode_source ( gcodeSource:&meshlib::std_vector_std_string )

set g-code source Generated from method MR::GcodeProcessor::setGcodeSource.

Calls MR_GcodeProcessor_setGcodeSource().


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