mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-15 16:33:10 +00:00
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)
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#ifndef slic3r_FlushVolCalc_hpp_
|
|
#define slic3r_FlushVolCalc_hpp_
|
|
|
|
#include "libslic3r.h"
|
|
#include "FlushVolPredictor.hpp"
|
|
#include "PrintConfig.hpp"
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
extern const int g_min_flush_volume_from_support;
|
|
extern const int g_flush_volume_to_support;
|
|
extern const int g_max_flush_volume;
|
|
|
|
class FlushVolCalculator
|
|
{
|
|
public:
|
|
FlushVolCalculator(int min, int max, int flush_dataset, float multiplier = 1.0f);
|
|
~FlushVolCalculator()
|
|
{
|
|
}
|
|
|
|
int calc_flush_vol(unsigned char src_a, unsigned char src_r, unsigned char src_g, unsigned char src_b,
|
|
unsigned char dst_a, unsigned char dst_r, unsigned char dst_g, unsigned char dst_b);
|
|
|
|
int calc_flush_vol_rgb(unsigned char src_r,unsigned char src_g,unsigned char src_b,
|
|
unsigned char dst_r, unsigned char dst_g, unsigned char dst_b);
|
|
|
|
bool get_flush_vol_from_data(unsigned char src_r, unsigned char src_g, unsigned char src_b,
|
|
unsigned char dst_r, unsigned char dst_g, unsigned char dst_b, float& flush);
|
|
|
|
private:
|
|
int m_min_flush_vol;
|
|
int m_max_flush_vol;
|
|
float m_multiplier;
|
|
int m_flush_dataset;
|
|
};
|
|
|
|
|
|
}
|
|
|
|
#endif
|