1. Use the minimum flush between nozzle volume and flush in datalist 2. Add a new param to decide the datalist to use github:7445 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Id87c98ca5069e7b328974d641d7a81dfbf9c50a0 (cherry picked from commit 2be29b784727330732170b5c2ff0ba9d5e79d82f)
68 lines
2.0 KiB
C++
68 lines
2.0 KiB
C++
#ifndef _WIPE_TOWER_DIALOG_H_
|
|
#define _WIPE_TOWER_DIALOG_H_
|
|
|
|
#include <wx/dialog.h>
|
|
#include <wx/webview.h>
|
|
#include "libslic3r/PrintConfig.hpp"
|
|
#include "Widgets/SpinInput.hpp"
|
|
|
|
#include "RammingChart.hpp"
|
|
|
|
|
|
class RammingPanel : public wxPanel {
|
|
public:
|
|
RammingPanel(wxWindow* parent);
|
|
RammingPanel(wxWindow* parent,const std::string& data);
|
|
std::string get_parameters();
|
|
|
|
private:
|
|
Chart* m_chart = nullptr;
|
|
SpinInput* m_widget_volume = nullptr;
|
|
SpinInput* m_widget_ramming_line_width_multiplicator = nullptr;
|
|
SpinInput* m_widget_ramming_step_multiplicator = nullptr;
|
|
SpinInput* m_widget_time = nullptr;
|
|
int m_ramming_step_multiplicator;
|
|
int m_ramming_line_width_multiplicator;
|
|
|
|
void line_parameters_changed();
|
|
};
|
|
|
|
|
|
class RammingDialog : public wxDialog {
|
|
public:
|
|
RammingDialog(wxWindow* parent,const std::string& parameters);
|
|
std::string get_parameters() { return m_output_data; }
|
|
private:
|
|
RammingPanel* m_panel_ramming = nullptr;
|
|
std::string m_output_data;
|
|
};
|
|
|
|
|
|
class WipingDialog : public wxDialog
|
|
{
|
|
public:
|
|
using VolumeMatrix = std::vector<std::vector<double>>;
|
|
|
|
WipingDialog(wxWindow* parent,const std::vector<std::vector<int>>& extra_flush_volume, const int max_flush_volume = Slic3r::g_max_flush_volume);
|
|
VolumeMatrix CalcFlushingVolumes(int extruder_id);
|
|
std::vector<double> GetFlattenMatrix()const;
|
|
std::vector<double> GetMultipliers()const;
|
|
bool GetSubmitFlag() const { return m_submit_flag; }
|
|
|
|
private:
|
|
int CalcFlushingVolume(const wxColour& from_, const wxColour& to_, int min_flush_volume, int nozzle_flush_dataset);
|
|
wxString BuildTableObjStr();
|
|
wxString BuildTextObjStr(bool multi_language = true);
|
|
void StoreFlushData(int extruder_num, const std::vector<std::vector<double>>& flush_volume_vecs, const std::vector<double>& flush_multipliers);
|
|
|
|
wxWebView* m_webview;
|
|
std::vector<std::vector<int>> m_extra_flush_volume;
|
|
int m_max_flush_volume;
|
|
|
|
VolumeMatrix m_raw_matrixs;
|
|
std::vector<double> m_flush_multipliers;
|
|
bool m_submit_flag{ false };
|
|
};
|
|
|
|
#endif // _WIPE_TOWER_DIALOG_H_
|