ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvHistogramWindow.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Qt
11 #include <QDialog>
12 
13 // CV_DB_LIB
14 #include <ecvScalarField.h>
15 
16 // QCustomPlot
17 #include <qcustomplot.h>
18 
19 class QCPArrow;
20 class QCPBarsWithText;
21 class QCPColoredBars;
22 class QCPHiddenArea;
23 class QCPTextElement;
24 
25 class Ui_HistogramDialog;
26 
29  Q_OBJECT
30 
31 public:
33  explicit ccHistogramWindow(QWidget* parent = 0);
34 
36  virtual ~ccHistogramWindow();
37 
39  void setTitle(const QString& str);
41  void setAxisLabels(const QString& xLabel, const QString& yLabel);
42 
44 
51  void fromSF(ccScalarField* sf,
52  unsigned initialNumberOfClasses = 0,
53  bool numberOfClassesCanBeChanged = true,
54  bool showNaNValuesInGrey = true);
55 
58 
64  void fromBinArray(const std::vector<unsigned>& histoValues,
65  double minVal,
66  double maxVal);
67 
69 
73  void setCurveValues(const std::vector<double>& curveValues);
74 
79  };
82  m_colorScheme = scheme;
83  }
84 
86 
87  void setSolidColor(QColor color) { m_solidColor = color; }
89 
91 
93  void clear();
95  void refresh();
97 
99  void refreshBars();
100 
102  inline const std::vector<unsigned>& histoValues() const {
103  return m_histoValues;
104  }
106  inline double minVal() const { return m_minVal; }
108  inline double maxVal() const { return m_maxVal; }
109 
110 public: // Axis label display Options
111  enum class AxisDisplayOption {
112  None = 0x0,
113  XAxis = 0x01,
114  YAxis = 0x02,
115  All = XAxis | YAxis
116  };
117  Q_DECLARE_FLAGS(AxisDisplayOptions, AxisDisplayOption)
118 
119  // SF interactor mode
120  enum class SFInteractionMode {
121  None = 0x0,
122  DisplayRange = 0x01,
123  SaturationRange = 0x02,
124  All = DisplayRange | SaturationRange
125  };
126  Q_DECLARE_FLAGS(SFInteractionModes, SFInteractionMode)
127 
128 
129  void setSFInteractionMode(SFInteractionModes modes);
130  void setAxisDisplayOption(AxisDisplayOptions axisOptions);
131  // Used to disable automatic refresh after resize event
132  // Must refresh manually from client code if this is set to false
133  void setRefreshAfterResize(bool refreshAfterResize);
134 
135  void setMinDispValue(double);
136  void setMaxDispValue(double);
137  void setMinSatValue(double);
138  void setMaxSatValue(double);
139 
140 signals:
141 
142  void sfMinDispValChanged(double);
143  void sfMaxDispValChanged(double);
144  void sfMinSatValChanged(double);
145  void sfMaxSatValChanged(double);
146 
147 protected: // methods
149 
151  void setNumberOfClasses(size_t n);
152 
153  // mouse events handling
154  void mousePressEvent(QMouseEvent* event);
155  void mouseMoveEvent(QMouseEvent* event);
156  void wheelEvent(QWheelEvent* event);
157  void resizeEvent(QResizeEvent* event);
158 
160  unsigned getMaxHistoVal();
161 
163  void clearInternal();
164 
166  bool computeBinArrayFromSF(size_t binCount);
167 
169  void updateOverlayCurveWidth(int w, int h);
170 
171 protected: // attributes
172  // Title
173  QString m_titleStr;
174  QCPTextElement* m_titlePlot;
175 
179  QColor m_solidColor;
182 
185  // Whether the number of classes can be changed or not
189 
191 
192  // histogram data
194  std::vector<unsigned> m_histoValues;
195  double m_minVal;
196  double m_maxVal;
197  unsigned m_maxHistoVal;
198 
201  std::vector<double> m_curveValues;
202 
203  // vertical indicator
207 
210 
211  AxisDisplayOptions m_axisDisplayOptions;
212 
213 protected: // SF interactor mode
215  SFInteractionModes m_sfInteractionModes;
216 
226  };
229 
236 
243 
246 };
247 
249 class ccHistogramWindowDlg : public QDialog {
250  Q_OBJECT
251 
252 public:
254  explicit ccHistogramWindowDlg(QWidget* parent = 0);
256  virtual ~ccHistogramWindowDlg();
257 
259  inline ccHistogramWindow* window() { return m_win; }
260 
262  bool exportToCSV(QString filename) const;
263 
264 protected:
266  void onExportToCSV();
267 
269  void onExportToImage();
270 
271 protected:
272  // Associated histogram window
274 
276  Ui_HistogramDialog* m_gui;
277 };
QCustomPlot::xAxis
QCPAxis * xAxis
Definition: qcustomplot.h:2219
QCP::aeAll
@ aeAll
0xFFFF All elements
Definition: qcustomplot.h:194
ImageFileFilter::GetSaveFilename
static QString GetSaveFilename(const QString &dialogTitle, const QString &baseName, const QString &imageSavePath, QWidget *parentWidget=nullptr)
Helper: select an output image filename.
Definition: ImageFileFilter.cpp:74
QCPArrow
QCustomPlot: small arrows at the bottom.
Definition: ecvQCustomPlot.h:332
ImageFileFilter.h
ccHistogramWindow::NONE
@ NONE
Definition: ecvHistogramWindow.h:219
colors
double colors[3]
Definition: TriangleMeshIO.cpp:53
ccHistogramWindow::m_histogram
QCPColoredBars * m_histogram
Definition: ecvHistogramWindow.h:193
QCPLayoutGrid::addElement
bool addElement(int row, int column, QCPLayoutElement *element)
Definition: qcustomplot.cpp:2562
ccHistogramWindow::m_colorScheme
HISTOGRAM_COLOR_SCHEME m_colorScheme
Color scheme.
Definition: ecvHistogramWindow.h:177
QtCompat::endl
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
QCustomPlot::setAutoAddPlottableToLegend
void setAutoAddPlottableToLegend(bool on)
Definition: qcustomplot.cpp:9507
QCPSelectableCursor::currentVal
double currentVal() const
Definition: ecvQCustomPlot.h:195
filename
std::string filename
Definition: PointCloudIO.cpp:47
QCPAbstractPlottable::setPen
void setPen(const QPen &pen)
Definition: qcustomplot.cpp:7136
ccHistogramWindow::m_solidColor
QColor m_solidColor
Solid color.
Definition: ecvHistogramWindow.h:179
s_csvSep
static const QChar s_csvSep(';')
ccScalarField::getColorRampSteps
unsigned getColorRampSteps() const
Returns number of color ramp steps.
Definition: ecvScalarField.h:194
QCPArrow::setColor
void setColor(int r, int g, int b)
Sets triangle 'inside' color.
Definition: ecvQCustomPlot.h:349
QCustomPlot::clearGraphs
int clearGraphs()
Definition: qcustomplot.cpp:10066
ecvQCustomPlot.h
QCPBars::setData
void setData(QCPBarDataMap *data, bool copy=false)
Definition: qcustomplot.cpp:19594
qcustomplot.h
ccScalarField::Range::stop
ScalarType stop() const
Definition: ecvScalarField.h:44
QtCompat.h
x
normal_z x
Definition: my_point_types.h:165
ecvColor::darkGrey
constexpr Rgb darkGrey(MAX/2, MAX/2, MAX/2)
ccHistogramWindow::fromSF
void fromSF(ccScalarField *sf, unsigned initialNumberOfClasses=0, bool numberOfClassesCanBeChanged=true, bool showNaNValuesInGrey=true)
Computes histogram from a scalar field.
Definition: ecvHistogramWindow.cpp:127
QCPSelectableCursor::pixelToKey
double pixelToKey(int pixX) const
Converts a pixel value (X) to the equivalent key.
Definition: ecvQCustomPlot.h:213
ccHistogramWindow::m_verticalIndicatorPositionPercent
double m_verticalIndicatorPositionPercent
Definition: ecvHistogramWindow.h:206
cloudViewer::ScalarField::getValue
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
ccHistogramWindow::AxisDisplayOption::None
@ None
ecvPS::SaveFile
static const QString SaveFile()
Definition: ecvPersistentSettings.h:21
ecvHistogramWindow.h
ccColorScale::Shared
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
QCPBarsWithText::appendText
void appendText(QString text)
Definition: ecvQCustomPlot.h:29
ccScalarField::getColor
const ecvColor::Rgb * getColor(ScalarType value) const
Definition: ecvScalarField.h:139
signals
#define signals
Definition: PythonPlugin.cpp:26
ccScalarField::Range::start
ScalarType start() const
Definition: ecvScalarField.h:43
ccHistogramWindow::m_areaRight
QCPHiddenArea * m_areaRight
Right greyed area.
Definition: ecvHistogramWindow.h:234
ccColorScalesManager::GetDefaultScale
static ccColorScale::Shared GetDefaultScale(DEFAULT_SCALES scale=BGYR)
Returns a pre-defined color scale (static shortcut)
Definition: ecvColorScalesManager.h:61
ccHistogramWindow::sfMaxDispValChanged
void sfMaxDispValChanged(double)
ecvColor::lightGrey
constexpr Rgb lightGrey(static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8), static_cast< ColorCompType >(MAX *0.8))
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
ccHistogramWindow::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition: ecvHistogramWindow.cpp:710
ccHistogramWindowDlg::onExportToCSV
void onExportToCSV()
When the export to CSV file button is pressed.
Definition: ecvHistogramWindow.cpp:915
ccHistogramWindow::setColorScale
void setColorScale(ccColorScale::Shared scale)
Sets gradient color scale.
Definition: ecvHistogramWindow.h:90
ccHistogramWindow::m_titleStr
QString m_titleStr
Definition: ecvHistogramWindow.h:173
QCPColoredBars::setData
void setData(const QVector< double > &key, const QVector< double > &value)
Definition: ecvQCustomPlot.h:88
ccHistogramWindow::m_minVal
double m_minVal
Definition: ecvHistogramWindow.h:195
ccHistogramWindow
Histogram widget.
Definition: ecvHistogramWindow.h:28
ccHistogramWindow::m_titlePlot
QCPTextElement * m_titlePlot
Definition: ecvHistogramWindow.h:174
ccScalarField::setSaturationStop
void setSaturationStop(ScalarType val)
Sets the value at which to stop color gradient.
Definition: ecvScalarField.cpp:275
ccScalarField::setSaturationStart
void setSaturationStart(ScalarType val)
Sets the value at which to start color gradient.
Definition: ecvScalarField.cpp:266
QCPLayout::remove
bool remove(QCPLayoutElement *element)
Definition: qcustomplot.cpp:2193
ccHistogramWindow::~ccHistogramWindow
virtual ~ccHistogramWindow()
Destructor.
Definition: ecvHistogramWindow.cpp:85
ecvColor::RgbTpl::r
Type r
Definition: ecvColorTypes.h:54
QCustomPlot::replot
Q_SLOT void replot(QCustomPlot::RefreshPriority refreshPriority=QCustomPlot::rpHint)
Definition: qcustomplot.cpp:10636
QCPLayerable::setAntialiased
void setAntialiased(bool enabled)
Definition: qcustomplot.cpp:981
color
math::float4 color
Definition: LineSetBuffers.cpp:46
QCustomPlot::clearPlottables
int clearPlottables()
Definition: qcustomplot.cpp:9877
ccHistogramWindow::m_histoValues
std::vector< unsigned > m_histoValues
Definition: ecvHistogramWindow.h:194
ccHistogramWindow::maxVal
double maxVal() const
Returns the current histogram max value.
Definition: ecvHistogramWindow.h:108
qtCompatWheelEventDelta
double qtCompatWheelEventDelta(const QWheelEvent *event) noexcept
Definition: QtCompat.h:751
ccHistogramWindow::SFInteractionMode
SFInteractionMode
Definition: ecvHistogramWindow.h:120
ccHistogramWindow::setSolidColor
void setSolidColor(QColor color)
Sets solid color.
Definition: ecvHistogramWindow.h:87
QCPColoredBars::clearData
virtual void clearData()
Definition: ecvQCustomPlot.h:117
QCPGraph
A plottable representing a graph in a plot.
Definition: qcustomplot.h:2973
ccColorScalesManager
Color scales manager/container.
Definition: ecvColorScalesManager.h:17
QCPBarsWithText::setText
void setText(QString text)
Definition: ecvQCustomPlot.h:28
QCPAxis::setLabel
void setLabel(const QString &str)
Definition: qcustomplot.cpp:4897
width
int width
Definition: FileIOFactory.cpp:142
ecvFileUtils::defaultDocPath
QString defaultDocPath()
Shortcut for getting the documents location path.
Definition: ecvFileUtils.h:30
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
ccHistogramWindow::setColorScheme
void setColorScheme(HISTOGRAM_COLOR_SCHEME scheme)
Sets how the gradient bars should be colored.
Definition: ecvHistogramWindow.h:81
ccHistogramWindow::setTitle
void setTitle(const QString &str)
Sets title.
Definition: ecvHistogramWindow.cpp:106
QCPBars::setWidth
void setWidth(double width)
Definition: qcustomplot.cpp:19544
ccHistogramWindow::m_selectedItem
SELECTABLE_ITEMS m_selectedItem
Currently selected item.
Definition: ecvHistogramWindow.h:228
ccHistogramWindowDlg::ccHistogramWindowDlg
ccHistogramWindowDlg(QWidget *parent=0)
Default constructor.
Definition: ecvHistogramWindow.cpp:842
height
int height
Definition: FileIOFactory.cpp:143
ccHistogramWindow::refreshBars
void refreshBars()
Updates the histogram bars only.
Definition: ecvHistogramWindow.cpp:276
ccHistogramWindow::refresh
void refresh()
Updates the display.
Definition: ecvHistogramWindow.cpp:323
cloudViewer::ScalarField::getMin
ScalarType getMin() const
Returns the minimum value.
Definition: ScalarField.h:72
QCPAbstractPlottable::setAntialiasedFill
void setAntialiasedFill(bool enabled)
Definition: qcustomplot.cpp:7101
y
normal_z y
Definition: my_point_types.h:168
ccHistogramWindow::m_arrowLeft
QCPArrow * m_arrowLeft
Left arrow.
Definition: ecvHistogramWindow.h:238
event
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
ccHistogramWindow::wheelEvent
void wheelEvent(QWheelEvent *event)
Definition: ecvHistogramWindow.cpp:822
ccHistogramWindow::m_arrowRight
QCPArrow * m_arrowRight
Right arrow.
Definition: ecvHistogramWindow.h:241
QCustomPlot::yAxis
QCPAxis * yAxis
Definition: qcustomplot.h:2219
cloudViewer::core::None
constexpr utility::nullopt_t None
Definition: TensorKey.h:20
ccHistogramWindow::ccHistogramWindow
ccHistogramWindow(QWidget *parent=0)
Default constructor.
Definition: ecvHistogramWindow.cpp:35
QCPGraph::setData
void setData(QCPDataMap *data, bool copy=false)
Definition: qcustomplot.cpp:14909
ccHistogramWindowDlg
Encapsulating dialog for ccHistogramWindow.
Definition: ecvHistogramWindow.h:249
ccHistogramWindow::AxisDisplayOption::XAxis
@ XAxis
ccHistogramWindow::SFInteractionMode::DisplayRange
@ DisplayRange
QCPSelectableCursor::isSelectable
virtual bool isSelectable(QPoint click) const
Definition: ecvQCustomPlot.h:188
ccHistogramWindow::LEFT_AREA
@ LEFT_AREA
Definition: ecvHistogramWindow.h:220
e
const double * e
Definition: essential_matrix_poly.h:10
ccHistogramWindow::m_lastMouseClick
QPoint m_lastMouseClick
Last mouse click.
Definition: ecvHistogramWindow.h:245
QCPBarsWithText
QCustomPlot: vertical bar with text along side.
Definition: ecvQCustomPlot.h:21
ecvColor::RgbTpl::g
Type g
Definition: ecvColorTypes.h:54
ccHistogramWindow::USE_SOLID_COLOR
@ USE_SOLID_COLOR
Definition: ecvHistogramWindow.h:76
ccHistogramWindow::setCurveValues
void setCurveValues(const std::vector< double > &curveValues)
Sets overlay curve values.
Definition: ecvHistogramWindow.cpp:170
QCPBarsWithText::setTextAlignment
void setTextAlignment(bool left)
Definition: ecvQCustomPlot.h:30
CCShareable::link
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
ccHistogramWindow::HISTOGRAM_COLOR_SCHEME
HISTOGRAM_COLOR_SCHEME
Definition: ecvHistogramWindow.h:75
ecvFileUtils.h
ccHistogramWindowDlg::exportToCSV
bool exportToCSV(QString filename) const
Exports histogram to a CSV file.
Definition: ecvHistogramWindow.cpp:866
CCShareable::release
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
cloudViewer::ScalarField::getMax
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
ccHistogramWindow::computeBinArrayFromSF
bool computeBinArrayFromSF(size_t binCount)
Dynamically computes histogram bins from scalar field.
Definition: ecvHistogramWindow.cpp:179
ccHistogramWindow::histoValues
const std::vector< unsigned > & histoValues() const
Returns the current histogram bins.
Definition: ecvHistogramWindow.h:102
ecvScalarField.h
QCPSelectableCursor::setCurrentVal
void setCurrentVal(double val)
Definition: ecvQCustomPlot.h:204
QCPAbstractPlottable::setName
void setName(const QString &name)
Definition: qcustomplot.cpp:7092
QCPAxis::setSubTickLength
void setSubTickLength(int inside, int outside=0)
Definition: qcustomplot.cpp:4819
ccHistogramWindowDlg::window
ccHistogramWindow * window()
Returns encapsulated ccHistogramWindow.
Definition: ecvHistogramWindow.h:259
ecvPersistentSettings.h
ccHistogramWindow::AxisDisplayOption::YAxis
@ YAxis
ccHistogramWindowDlg::~ccHistogramWindowDlg
virtual ~ccHistogramWindowDlg()
Destructor.
Definition: ecvHistogramWindow.cpp:861
ccHistogramWindow::setMinSatValue
void setMinSatValue(double)
Definition: ecvHistogramWindow.cpp:622
ccHistogramWindowDlg::m_win
ccHistogramWindow * m_win
Definition: ecvHistogramWindow.h:273
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
ccHistogramWindow::m_arrowLeftlastValue
double m_arrowLeftlastValue
Definition: ecvHistogramWindow.h:239
ccHistogramWindow::m_overlayCurve
QCPGraph * m_overlayCurve
Overlay curve.
Definition: ecvHistogramWindow.h:200
image
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
ccHistogramWindow::setRefreshAfterResize
void setRefreshAfterResize(bool refreshAfterResize)
Definition: ecvHistogramWindow.cpp:319
QCPColoredBars
QCustomPlot: colored histogram.
Definition: ecvQCustomPlot.h:73
QCPSelectableCursor::setRange
void setRange(double minVal, double maxVal)
Definition: ecvQCustomPlot.h:207
QCPAxis::setTickLength
void setTickLength(int inside, int outside=0)
Definition: qcustomplot.cpp:4764
ccHistogramWindow::m_axisDisplayOptions
AxisDisplayOptions m_axisDisplayOptions
Definition: ecvHistogramWindow.h:211
ecvGui::ParamStruct::displayedNumPrecision
unsigned displayedNumPrecision
Displayed numbers precision.
Definition: ecvGuiParameters.h:100
ccHistogramWindowDlg::onExportToImage
void onExportToImage()
When the export to Image file button is pressed.
Definition: ecvHistogramWindow.cpp:946
ecvGuiParameters.h
QCustomPlot::addGraph
QCPGraph * addGraph(QCPAxis *keyAxis=0, QCPAxis *valueAxis=0)
Definition: qcustomplot.cpp:10007
ccHistogramWindow::sfMaxSatValChanged
void sfMaxSatValChanged(double)
ecvColor::RgbTpl::b
Type b
Definition: ecvColorTypes.h:54
ccHistogramWindow::m_areaRightlastValue
double m_areaRightlastValue
Definition: ecvHistogramWindow.h:235
ccHistogramWindow::RIGHT_ARROW
@ RIGHT_ARROW
Definition: ecvHistogramWindow.h:224
ccHistogramWindow::m_areaLeftlastValue
double m_areaLeftlastValue
Definition: ecvHistogramWindow.h:232
ccHistogramWindow::AxisDisplayOption
AxisDisplayOption
Definition: ecvHistogramWindow.h:111
ccScalarField::Range::min
ScalarType min() const
Definition: ecvScalarField.h:42
ecvGui::Parameters
static const ParamStruct & Parameters()
Returns the stored values of each parameter.
Definition: ecvGuiParameters.cpp:24
ccHistogramWindow::setNumberOfClasses
void setNumberOfClasses(size_t n)
Changes the current number of classes.
Definition: ecvHistogramWindow.cpp:255
ccHistogramWindow::fromBinArray
void fromBinArray(const std::vector< unsigned > &histoValues, double minVal, double maxVal)
Definition: ecvHistogramWindow.cpp:153
ccScalarField::saturationRange
const Range & saturationRange() const
Access to the range of saturation values.
Definition: ecvScalarField.h:114
QCustomPlot
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:2020
QCustomPlot::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: qcustomplot.cpp:11028
ccScalarField::setMaxDisplayed
void setMaxDisplayed(ScalarType val)
Sets the maximum displayed value.
Definition: ecvScalarField.cpp:261
ccScalarField::getHistogram
const Histogram & getHistogram() const
Returns associated histogram values (for display)
Definition: ecvScalarField.h:206
ccHistogramWindow::setAxisLabels
void setAxisLabels(const QString &xLabel, const QString &yLabel)
Sets axis labels.
Definition: ecvHistogramWindow.cpp:108
ccHistogramWindow::m_refreshAfterResize
bool m_refreshAfterResize
Definition: ecvHistogramWindow.h:190
count
int count
Definition: FileIOFactory.cpp:132
ccHistogramWindow::sfMinDispValChanged
void sfMinDispValChanged(double)
QCustomPlot::plotLayout
QCPLayoutGrid * plotLayout() const
Definition: qcustomplot.h:2081
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ccHistogramWindow::setMaxSatValue
void setMaxSatValue(double)
Definition: ecvHistogramWindow.cpp:639
ecvColorScalesManager.h
ccHistogramWindow::m_associatedSF
ccScalarField * m_associatedSF
Associated scalar field.
Definition: ecvHistogramWindow.h:184
ecvColor::RgbTpl
RGB color structure.
Definition: ecvColorTypes.h:49
ccScalarField::getColorScale
const ccColorScale::Shared & getColorScale() const
Returns associated color scale.
Definition: ecvScalarField.h:186
ccHistogramWindow::m_sfInteractionModes
SFInteractionModes m_sfInteractionModes
Which SF interaction modes are enabled.
Definition: ecvHistogramWindow.h:215
std
Definition: Eigen.h:85
ccHistogramWindow::m_drawVerticalIndicator
bool m_drawVerticalIndicator
Definition: ecvHistogramWindow.h:205
ccScalarField::symmetricalScale
bool symmetricalScale() const
Returns whether the color scale s symmetrical or not.
Definition: ecvScalarField.h:174
ccHistogramWindow::m_arrowRightlastValue
double m_arrowRightlastValue
Definition: ecvHistogramWindow.h:242
ccHistogramWindow::sfMinSatValChanged
void sfMinSatValChanged(double)
ccHistogramWindow::USE_SF_SCALE
@ USE_SF_SCALE
Definition: ecvHistogramWindow.h:78
ecvPS::CurrentPath
static const QString CurrentPath()
Definition: ecvPersistentSettings.h:39
ccScalarField::Range::max
ScalarType max() const
Definition: ecvScalarField.h:45
ccScalarField::setMinDisplayed
void setMinDisplayed(ScalarType val)
Sets the minimum displayed value.
Definition: ecvScalarField.cpp:256
ccHistogramWindow::setMaxDispValue
void setMaxDispValue(double)
Definition: ecvHistogramWindow.cpp:605
ccHistogramWindow::m_colorScale
ccColorScale::Shared m_colorScale
Gradient color scale.
Definition: ecvHistogramWindow.h:181
QCPLayerable::setVisible
void setVisible(bool on)
Definition: qcustomplot.cpp:944
ccHistogramWindow::LEFT_ARROW
@ LEFT_ARROW
Definition: ecvHistogramWindow.h:223
ecvColor::red
constexpr Rgb red(MAX, 0, 0)
ccHistogramWindow::m_vertBar
QCPBarsWithText * m_vertBar
Definition: ecvHistogramWindow.h:204
ccHistogramWindow::BOTH_ARROWS
@ BOTH_ARROWS
Definition: ecvHistogramWindow.h:225
ccScalarField::Range
Scalar field range structure.
Definition: ecvScalarField.h:36
ccHistogramWindow::m_renderingFont
QFont m_renderingFont
Rendering font.
Definition: ecvHistogramWindow.h:209
ccHistogramWindow::minVal
double minVal() const
Returns the current histogram min value.
Definition: ecvHistogramWindow.h:106
ccHistogramWindow::updateOverlayCurveWidth
void updateOverlayCurveWidth(int w, int h)
Updates overlay curve width depending on the widget display size.
Definition: ecvHistogramWindow.cpp:656
ecvColor::blue
constexpr Rgb blue(0, 0, MAX)
QCPColoredBars::rect
QRect rect() const
Definition: ecvQCustomPlot.h:114
QCPHiddenArea
QCustomPlot: greyed areas.
Definition: ecvQCustomPlot.h:255
ccHistogramWindow::USE_CUSTOM_COLOR_SCALE
@ USE_CUSTOM_COLOR_SCALE
Definition: ecvHistogramWindow.h:77
ccHistogramWindow::SFInteractionMode::SaturationRange
@ SaturationRange
ccHistogramWindow::clear
void clear()
Clears the display.
Definition: ecvHistogramWindow.cpp:87
ccHistogramWindow::SELECTABLE_ITEMS
SELECTABLE_ITEMS
Selectable items in "SF interaction" mode.
Definition: ecvHistogramWindow.h:218
ccHistogramWindow::setAxisDisplayOption
void setAxisDisplayOption(AxisDisplayOptions axisOptions)
Definition: ecvHistogramWindow.cpp:315
ccHistogramWindow::m_maxHistoVal
unsigned m_maxHistoVal
Definition: ecvHistogramWindow.h:197
ccHistogramWindow::BOTH_AREAS
@ BOTH_AREAS
Definition: ecvHistogramWindow.h:222
QCustomPlot::setAntialiasedElements
void setAntialiasedElements(const QCP::AntialiasedElements &antialiasedElements)
Definition: qcustomplot.cpp:9419
ccHistogramWindow::m_maxVal
double m_maxVal
Definition: ecvHistogramWindow.h:196
ccHistogramWindow::setSFInteractionMode
void setSFInteractionMode(SFInteractionModes modes)
Enables SF interaction mode.
Definition: ecvHistogramWindow.cpp:311
QCPAbstractPlottable::setBrush
void setBrush(const QBrush &brush)
Definition: qcustomplot.cpp:7157
ccHistogramWindow::getMaxHistoVal
unsigned getMaxHistoVal()
Returns current maximum bin size.
Definition: ecvHistogramWindow.cpp:245
QCPLayoutGrid::insertRow
void insertRow(int newIndex)
Definition: qcustomplot.cpp:2752
ccHistogramWindow::m_numberOfClassesCanBeChanged
bool m_numberOfClassesCanBeChanged
Definition: ecvHistogramWindow.h:188
cloudViewer::ScalarField::currentSize
unsigned currentSize() const
Definition: ScalarField.h:100
ccHistogramWindow::m_curveValues
std::vector< double > m_curveValues
Definition: ecvHistogramWindow.h:201
ccScalarField::displayRange
const Range & displayRange() const
Access to the range of displayed values.
Definition: ecvScalarField.h:108
ccHistogramWindow::setMinDispValue
void setMinDispValue(double)
Definition: ecvHistogramWindow.cpp:588
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
ccHistogramWindow::resizeEvent
void resizeEvent(QResizeEvent *event)
Definition: ecvHistogramWindow.cpp:667
QCPAbstractPlottable::pen
QPen pen() const
Definition: qcustomplot.h:1704
ccHistogramWindow::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition: ecvHistogramWindow.cpp:676
QCPAxis::setRange
Q_SLOT void setRange(const QCPRange &range)
Definition: qcustomplot.cpp:4166
ccHistogramWindow::m_areaLeft
QCPHiddenArea * m_areaLeft
Left greyed area.
Definition: ecvHistogramWindow.h:231
ccHistogramWindowDlg::m_gui
Ui_HistogramDialog * m_gui
Associated widgets.
Definition: ecvHistogramWindow.h:276
ccHistogramWindow::RIGHT_AREA
@ RIGHT_AREA
Definition: ecvHistogramWindow.h:221
ccHistogramWindow::AxisDisplayOption::All
@ All