OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::FilamentInfo Struct Reference

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

Collaboration diagram for Slic3r::FilamentInfo:

Public Member Functions

int get_ams_id () const
int get_slot_id () const
std::string get_display_filament_type () const

Public Attributes

int id {0}
std::string type
std::string color
std::string filament_id
std::string brand
float used_m {0.f}
float used_g {0.f}
int tray_id {0}
float distance {0.f}
int ctype = 0
std::vector< std::string > colors = std::vector<std::string>()
int mapping_result = 0
bool used_for_support {false}
bool used_for_object {false}
std::vector< int > group_id
double nozzle_diameter {0.0}
std::string nozzle_volume_type
std::string ams_id
std::string slot_id

Detailed Description

Member Function Documentation

◆ get_ams_id()

int Slic3r::FilamentInfo::get_ams_id ( ) const
inline
63 {
64 if (ams_id.empty()) { return -1; };
65
66 try
67 {
68 return stoi(ams_id);
69 }
70 catch (...) {};
71
72 return -1;
73 };
std::string ams_id
Definition ProjectTask.hpp:58

References ams_id.

◆ get_display_filament_type()

std::string Slic3r::FilamentInfo::get_display_filament_type ( ) const
inline
88 {
89 if (type == "PLA-S")
90 return "Sup.PLA";
91 else if (type == "PA-S")
92 return "Sup.PA";
93 else if (type == "ABS-S")
94 return "Sup.ABS";
95 else
96 return type;
97 return type;
98 }
std::string type
Definition ProjectTask.hpp:40

References type.

◆ get_slot_id()

int Slic3r::FilamentInfo::get_slot_id ( ) const
inline
76 {
77 if (slot_id.empty()) { return -1; };
78
79 try {
80 return stoi(slot_id);
81 } catch (...) {};
82
83 return -1;
84 };
std::string slot_id
Definition ProjectTask.hpp:59

References slot_id.

Member Data Documentation

◆ ams_id

std::string Slic3r::FilamentInfo::ams_id

Referenced by get_ams_id().

◆ brand

std::string Slic3r::FilamentInfo::brand

◆ color

std::string Slic3r::FilamentInfo::color

◆ colors

std::vector<std::string> Slic3r::FilamentInfo::colors = std::vector<std::string>()

◆ ctype

int Slic3r::FilamentInfo::ctype = 0

◆ distance

float Slic3r::FilamentInfo::distance {0.f}
47{0.f};

◆ filament_id

std::string Slic3r::FilamentInfo::filament_id

◆ group_id

std::vector<int> Slic3r::FilamentInfo::group_id

◆ id

int Slic3r::FilamentInfo::id {0}
39{0}; // filament id = extruder id, start with 0.

◆ mapping_result

int Slic3r::FilamentInfo::mapping_result = 0

◆ nozzle_diameter

double Slic3r::FilamentInfo::nozzle_diameter {0.0}
54{0.0};

◆ nozzle_volume_type

std::string Slic3r::FilamentInfo::nozzle_volume_type

◆ slot_id

std::string Slic3r::FilamentInfo::slot_id

Referenced by get_slot_id().

◆ tray_id

int Slic3r::FilamentInfo::tray_id {0}
46{0}; // start with 0

◆ type

std::string Slic3r::FilamentInfo::type

◆ used_for_object

bool Slic3r::FilamentInfo::used_for_object {false}
52{false};

◆ used_for_support

bool Slic3r::FilamentInfo::used_for_support {false}
51{false};

◆ used_g

float Slic3r::FilamentInfo::used_g {0.f}
45{0.f};

◆ used_m

float Slic3r::FilamentInfo::used_m {0.f}
44{0.f};

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