1 #ifndef INCLUDE_ONCE_BA229016_D8DA_4EB4_89B7_7F5CCD722A60 2 #define INCLUDE_ONCE_BA229016_D8DA_4EB4_89B7_7F5CCD722A60 12 QLabel* statusBar=
nullptr;
13 QTransform coordTransform;
14 std::vector<float> wavelengths, radiances;
16 float azimuth=NAN, elevation=NAN;
19 RadiancePlot(QLabel* statusBar, QWidget* parent=
nullptr);
20 void setData(
const float* wavelengths,
const float* radiances,
unsigned size,
21 float azimuth,
float elevation);
24 void paintEvent(QPaintEvent *event)
override;
25 void keyPressEvent(QKeyEvent* event)
override;
26 void mouseMoveEvent(QMouseEvent* event)
override;
27 void leaveEvent(QEvent* event)
override;
30 QMarginsF calcPlotMargins(QPainter
const& p, std::vector<std::pair<float,QString>>
const& ticksY)
const;
31 void drawAxes(QPainter& p, std::vector<std::pair<float,QString>>
const& ticksX,
32 std::vector<std::pair<float,QString>>
const& ticksY,
33 float xMin,
float xMax,
float yMin,
float yMax)
const;
34 std::vector<std::pair<float,QString>> genTicks(std::vector<float>
const& values,
const float min=NAN)
const;
35 std::unique_ptr<QTextDocument> makeQTextDoc()
const;
37 float calcLuminance()
const;
Definition: RadiancePlot.hpp:10