OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ExtruderPreHeating::ExtruderUsageBlcok Struct Reference

Describle the usage of a exturder in a section. More...

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/GCode/GCodeProcessor.hpp>

Public Member Functions

void initialize_step_1 (int extruder_id_, int start_id_, int start_filament_, int start_nozzle_id_)
void initialize_step_2 (int post_extrusion_start_id_)
void initialize_step_3 (int end_id_, int end_filament_, int post_extrusion_end_id_, int end_nozzle_id_)
void reset ()
 ExtruderUsageBlcok ()=default

Public Attributes

int extruder_id = -1
unsigned int start_id = -1
unsigned int end_id = -1
int start_filament = -1
int end_filament = -1
int start_nozzle_id = -1
int end_nozzle_id = -1
unsigned int post_extrusion_start_id = -1
unsigned int post_extrusion_end_id = -1
bool ignore_cooling_before_tower = false

Detailed Description

Describle the usage of a exturder in a section.

The strucutre stores the start and end lines of the sections as well as the filament used at the beginning and end of the section. Post extrusion means the final extrusion before switching to the next extruder.

Simplified GCode Flow: 1.Extruder Change Block (ext0 switch to ext1) 2.Extruder Usage Block (use ext1 to print) 3.Extruder Change Block (ext1 switch to ext0) 4.Extruder Usage Block (use ext0 to print) 5.Extruder Change Block (ext0 switch to ex1) ...

So the construct of extruder usage block relys on two extruder change block

Constructor & Destructor Documentation

◆ ExtruderUsageBlcok()

Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::ExtruderUsageBlcok ( )
default

Referenced by reset().

Here is the caller graph for this function:

Member Function Documentation

◆ initialize_step_1()

void Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::initialize_step_1 ( int extruder_id_,
int start_id_,
int start_filament_,
int start_nozzle_id_ )
inline
530 {
531 extruder_id = extruder_id_;
532 start_id = start_id_;
533 start_filament = start_filament_;
534 start_nozzle_id = start_nozzle_id_;
535 };
unsigned int start_id
Definition GCodeProcessor.hpp:520
int start_filament
Definition GCodeProcessor.hpp:522
int extruder_id
Definition GCodeProcessor.hpp:519
int start_nozzle_id
Definition GCodeProcessor.hpp:524

References extruder_id, start_filament, start_id, and start_nozzle_id.

Referenced by Slic3r::GCodeProcessor::PreCoolingInjector::build_by_extruder_blocks(), and Slic3r::GCodeProcessor::run_post_process().

Here is the caller graph for this function:

◆ initialize_step_2()

void Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::initialize_step_2 ( int post_extrusion_start_id_)
inline
536 {
537 post_extrusion_start_id = post_extrusion_start_id_;
538 }
unsigned int post_extrusion_start_id
Definition GCodeProcessor.hpp:526

References post_extrusion_start_id.

Referenced by Slic3r::GCodeProcessor::PreCoolingInjector::build_by_extruder_blocks().

Here is the caller graph for this function:

◆ initialize_step_3()

void Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::initialize_step_3 ( int end_id_,
int end_filament_,
int post_extrusion_end_id_,
int end_nozzle_id_ )
inline
539 {
540 end_id = end_id_;
541 end_filament = end_filament_;
542 post_extrusion_end_id = post_extrusion_end_id_;
543 end_nozzle_id = end_nozzle_id_;
544 }
int end_filament
Definition GCodeProcessor.hpp:523
unsigned int end_id
Definition GCodeProcessor.hpp:521
unsigned int post_extrusion_end_id
Definition GCodeProcessor.hpp:527
int end_nozzle_id
Definition GCodeProcessor.hpp:525

References end_filament, end_id, end_nozzle_id, and post_extrusion_end_id.

Referenced by Slic3r::GCodeProcessor::PreCoolingInjector::build_by_extruder_blocks().

Here is the caller graph for this function:

◆ reset()

void Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::reset ( )
inline
545 {
546 *this = ExtruderUsageBlcok();
547 }

References ExtruderUsageBlcok().

Referenced by Slic3r::GCodeProcessor::run_post_process().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ end_filament

int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::end_filament = -1

Referenced by initialize_step_3().

◆ end_id

unsigned int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::end_id = -1

Referenced by initialize_step_3().

◆ end_nozzle_id

int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::end_nozzle_id = -1

Referenced by initialize_step_3().

◆ extruder_id

int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::extruder_id = -1

Referenced by initialize_step_1().

◆ ignore_cooling_before_tower

bool Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::ignore_cooling_before_tower = false

◆ post_extrusion_end_id

unsigned int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::post_extrusion_end_id = -1

Referenced by initialize_step_3().

◆ post_extrusion_start_id

unsigned int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::post_extrusion_start_id = -1

Referenced by initialize_step_2().

◆ start_filament

int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::start_filament = -1

Referenced by initialize_step_1().

◆ start_id

unsigned int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::start_id = -1

Referenced by initialize_step_1().

◆ start_nozzle_id

int Slic3r::ExtruderPreHeating::ExtruderUsageBlcok::start_nozzle_id = -1

Referenced by initialize_step_1().


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