Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::DoubleSlider::ExtrudersSequence Struct Reference

#include <src/slic3r/GUI/DoubleSlider.hpp>

+ Collaboration diagram for Slic3r::DoubleSlider::ExtrudersSequence:

Public Member Functions

bool operator== (const ExtrudersSequence &other) const
 
bool operator!= (const ExtrudersSequence &other) const
 
void add_extruder (size_t pos, size_t extruder_id=size_t(0))
 
void delete_extruder (size_t pos)
 
void init (size_t extruders_count)
 

Public Attributes

bool is_mm_intervals = true
 
double interval_by_mm = 3.0
 
int interval_by_layers = 10
 
bool random_sequence { false }
 
bool color_repetition { false }
 
std::vector< size_t > extruders = { 0 }
 

Detailed Description

Member Function Documentation

◆ add_extruder()

void Slic3r::DoubleSlider::ExtrudersSequence::add_extruder ( size_t  pos,
size_t  extruder_id = size_t(0) 
)
inline
184 {
185 extruders.insert(extruders.begin() + pos+1, extruder_id);
186 }
std::vector< size_t > extruders
Definition DoubleSlider.hpp:162

References extruders.

Referenced by Slic3r::GUI::ExtruderSequenceDialog::apply_extruder_sequence().

+ Here is the caller graph for this function:

◆ delete_extruder()

void Slic3r::DoubleSlider::ExtrudersSequence::delete_extruder ( size_t  pos)
inline
189 {
190 if (extruders.size() == 1)
191 return;// last item can't be deleted
192 extruders.erase(extruders.begin() + pos);
193 }

References extruders.

Referenced by Slic3r::GUI::ExtruderSequenceDialog::apply_extruder_sequence().

+ Here is the caller graph for this function:

◆ init()

void Slic3r::DoubleSlider::ExtrudersSequence::init ( size_t  extruders_count)
inline
196 {
197 extruders.clear();
198 for (size_t extruder = 0; extruder < extruders_count; extruder++)
199 extruders.push_back(extruder);
200 }

References extruders.

Referenced by Slic3r::DoubleSlider::Control::SetTicksValues().

+ Here is the caller graph for this function:

◆ operator!=()

bool Slic3r::DoubleSlider::ExtrudersSequence::operator!= ( const ExtrudersSequence other) const
inline
174 {
175 return (other.is_mm_intervals != this->is_mm_intervals ) ||
176 (other.interval_by_mm != this->interval_by_mm ) ||
177 (other.interval_by_layers != this->interval_by_layers ) ||
178 (other.random_sequence != this->random_sequence ) ||
179 (other.color_repetition != this->color_repetition ) ||
180 (other.extruders != this->extruders ) ;
181 }
bool random_sequence
Definition DoubleSlider.hpp:160
double interval_by_mm
Definition DoubleSlider.hpp:158

References color_repetition, extruders, interval_by_layers, interval_by_mm, is_mm_intervals, and random_sequence.

◆ operator==()

bool Slic3r::DoubleSlider::ExtrudersSequence::operator== ( const ExtrudersSequence other) const
inline
165 {
166 return (other.is_mm_intervals == this->is_mm_intervals ) &&
167 (other.interval_by_mm == this->interval_by_mm ) &&
168 (other.interval_by_layers == this->interval_by_layers ) &&
169 (other.random_sequence == this->random_sequence ) &&
170 (other.color_repetition == this->color_repetition ) &&
171 (other.extruders == this->extruders ) ;
172 }

References color_repetition, extruders, interval_by_layers, interval_by_mm, is_mm_intervals, and random_sequence.

Member Data Documentation

◆ color_repetition

bool Slic3r::DoubleSlider::ExtrudersSequence::color_repetition { false }

◆ extruders

◆ interval_by_layers

int Slic3r::DoubleSlider::ExtrudersSequence::interval_by_layers = 10

◆ interval_by_mm

double Slic3r::DoubleSlider::ExtrudersSequence::interval_by_mm = 3.0

◆ is_mm_intervals

bool Slic3r::DoubleSlider::ExtrudersSequence::is_mm_intervals = true

◆ random_sequence


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