geopro/src/render/ColorLutBuilder.hpp

11 lines
356 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <vtkSmartPointer.h>
#include <vtkLookupTable.h>
#include "model/ColorScale.hpp"
namespace geopro::render {
// 由 core 阶梯色阶构建 N 级 vtkLookupTable区间 [vmin, vmax]。
vtkSmartPointer<vtkLookupTable> buildLut(const geopro::core::ColorScale& cs, double vmin, double vmax, int n = 256);
} // namespace geopro::render