2022-07-15 15:37:19 +00:00
|
|
|
#ifndef _WIPE_TOWER_DIALOG_H_
|
|
|
|
#define _WIPE_TOWER_DIALOG_H_
|
|
|
|
|
2025-02-25 07:26:10 +00:00
|
|
|
#include <wx/webview.h>
|
2023-05-25 03:53:44 +00:00
|
|
|
|
2022-12-12 09:01:29 +00:00
|
|
|
|
2025-02-25 07:26:10 +00:00
|
|
|
class WipingDialog : public wxDialog
|
2023-05-25 03:53:44 +00:00
|
|
|
{
|
2022-07-15 15:37:19 +00:00
|
|
|
public:
|
2025-02-25 07:26:10 +00:00
|
|
|
using VolumeMatrix = std::vector<std::vector<double>>;
|
2024-06-17 12:34:18 +00:00
|
|
|
|
2025-02-25 07:26:10 +00:00
|
|
|
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; }
|
2023-05-25 03:53:44 +00:00
|
|
|
|
2022-07-15 15:37:19 +00:00
|
|
|
private:
|
2025-02-25 07:26:10 +00:00
|
|
|
int CalcFlushingVolume(const wxColour& from_, const wxColour& to_, int min_flush_volume);
|
|
|
|
wxString BuildTableObjStr();
|
|
|
|
wxString BuildTextObjStr();
|
|
|
|
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 };
|
2022-07-15 15:37:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WIPE_TOWER_DIALOG_H_
|