libslic3r
Library for generating gcode from 3d models
Public Member Functions | Public Attributes | List of all members
Slic3r::GCode Class Reference

#include <GCode.hpp>

Public Member Functions

 GCode ()
 
const Pointlast_pos () const
 
void set_last_pos (const Point &pos)
 
bool last_pos_defined () const
 
void apply_print_config (const PrintConfig &print_config)
 
template<typename Iter >
void set_extruders (Iter begin, Iter end)
 Template function. More...
 
template<typename T >
void set_extruders (const std::vector< T > &extruder_ids)
 
template<typename T >
void set_extruders (const std::set< T > &extruder_ids)
 
void set_origin (const Pointf &pointf)
 
std::string preamble ()
 
std::string notes ()
 
std::string change_layer (const Layer &layer)
 
std::string extrude (const ExtrusionEntity &entity, std::string description="", double speed=-1)
 
std::string extrude (ExtrusionLoop loop, std::string description="", double speed=-1)
 
std::string extrude (const ExtrusionPath &path, std::string description="", double speed=-1)
 
std::string travel_to (const Point &point, ExtrusionRole role, std::string comment)
 
bool needs_retraction (const Polyline &travel, ExtrusionRole role=erNone)
 
std::string retract (bool toolchange=false)
 
std::string unretract ()
 
std::string set_extruder (unsigned int extruder_id)
 
Pointf point_to_gcode (const Point &point)
 

Public Attributes

Pointf origin
 
FullPrintConfig config
 
GCodeWriter writer
 
PlaceholderParserplaceholder_parser
 
OozePrevention ooze_prevention
 
Wipe wipe
 
AvoidCrossingPerimeters avoid_crossing_perimeters
 
bool enable_loop_clipping
 
bool enable_cooling_markers
 
size_t layer_count
 
int layer_index
 
const Layerlayer
 
std::map< const PrintObject *, Point_seam_position
 
bool first_layer
 
float elapsed_time
 
float elapsed_time_bridges
 
float elapsed_time_external
 
double volumetric_speed
 

Constructor & Destructor Documentation

◆ GCode()

Slic3r::GCode::GCode ( )

Member Function Documentation

◆ apply_print_config()

void Slic3r::GCode::apply_print_config ( const PrintConfig print_config)

◆ change_layer()

std::string Slic3r::GCode::change_layer ( const Layer layer)

◆ extrude() [1/3]

std::string Slic3r::GCode::extrude ( const ExtrusionEntity entity,
std::string  description = "",
double  speed = -1 
)

◆ extrude() [2/3]

std::string Slic3r::GCode::extrude ( ExtrusionLoop  loop,
std::string  description = "",
double  speed = -1 
)

◆ extrude() [3/3]

std::string Slic3r::GCode::extrude ( const ExtrusionPath path,
std::string  description = "",
double  speed = -1 
)

◆ last_pos()

const Point & Slic3r::GCode::last_pos ( ) const

◆ last_pos_defined()

bool Slic3r::GCode::last_pos_defined ( ) const

◆ needs_retraction()

bool Slic3r::GCode::needs_retraction ( const Polyline travel,
ExtrusionRole  role = erNone 
)

◆ notes()

std::string Slic3r::GCode::notes ( )

◆ point_to_gcode()

Pointf Slic3r::GCode::point_to_gcode ( const Point point)

◆ preamble()

std::string Slic3r::GCode::preamble ( )

◆ retract()

std::string Slic3r::GCode::retract ( bool  toolchange = false)

◆ set_extruder()

std::string Slic3r::GCode::set_extruder ( unsigned int  extruder_id)

◆ set_extruders() [1/3]

template<typename Iter >
void Slic3r::GCode::set_extruders ( Iter  begin,
Iter  end 
)
inline

Template function.

◆ set_extruders() [2/3]

template<typename T >
void Slic3r::GCode::set_extruders ( const std::vector< T > &  extruder_ids)
inline

◆ set_extruders() [3/3]

template<typename T >
void Slic3r::GCode::set_extruders ( const std::set< T > &  extruder_ids)
inline

◆ set_last_pos()

void Slic3r::GCode::set_last_pos ( const Point pos)

◆ set_origin()

void Slic3r::GCode::set_origin ( const Pointf pointf)

◆ travel_to()

std::string Slic3r::GCode::travel_to ( const Point point,
ExtrusionRole  role,
std::string  comment 
)

◆ unretract()

std::string Slic3r::GCode::unretract ( )

Member Data Documentation

◆ _seam_position

std::map<const PrintObject*,Point> Slic3r::GCode::_seam_position

◆ avoid_crossing_perimeters

AvoidCrossingPerimeters Slic3r::GCode::avoid_crossing_perimeters

◆ config

FullPrintConfig Slic3r::GCode::config

◆ elapsed_time

float Slic3r::GCode::elapsed_time

◆ elapsed_time_bridges

float Slic3r::GCode::elapsed_time_bridges

◆ elapsed_time_external

float Slic3r::GCode::elapsed_time_external

◆ enable_cooling_markers

bool Slic3r::GCode::enable_cooling_markers

◆ enable_loop_clipping

bool Slic3r::GCode::enable_loop_clipping

◆ first_layer

bool Slic3r::GCode::first_layer

◆ layer

const Layer* Slic3r::GCode::layer

◆ layer_count

size_t Slic3r::GCode::layer_count

◆ layer_index

int Slic3r::GCode::layer_index

◆ ooze_prevention

OozePrevention Slic3r::GCode::ooze_prevention

◆ origin

Pointf Slic3r::GCode::origin

◆ placeholder_parser

PlaceholderParser* Slic3r::GCode::placeholder_parser

◆ volumetric_speed

double Slic3r::GCode::volumetric_speed

◆ wipe

Wipe Slic3r::GCode::wipe

◆ writer

GCodeWriter Slic3r::GCode::writer

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