![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
QCustomPlot: selectable cursor interface. More...
#include <ecvQCustomPlot.h>


Public Member Functions | |
| QCPSelectableCursor (QCPAxis *keyAxis, QCPAxis *valueAxis) | |
| Default constructor. More... | |
| virtual bool | isSelectable (QPoint click) const |
| double | currentVal () const |
| double | minVal () const |
| double | maxVal () const |
| void | range (double &minVal, double &maxVal) const |
| void | setCurrentVal (double val) |
| void | setRange (double minVal, double maxVal) |
| double | pixelToKey (int pixX) const |
| Converts a pixel value (X) to the equivalent key. More... | |
| double | pixelToValue (int pixY) const |
| Converts a pixel value (Y) to the equivalent value. More... | |
| virtual void | clearData () |
| double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const override |
Protected Member Functions | |
| void | drawLegendIcon (QCPPainter *painter, const QRectF &rect) const override |
| QCPRange | getKeyRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth) const override |
| QCPRange | getValueRange (bool &foundRange, QCP::SignDomain inSignDomain=QCP::sdBoth, const QCPRange &inKeyRange=QCPRange()) const override |
Protected Attributes | |
| double | mCurrentVal |
| double | mMinVal |
| double | mMaxVal |
| QPoint | mLastPos |
| int | mLastRadius |
QCustomPlot: selectable cursor interface.
Definition at line 173 of file ecvQCustomPlot.h.
|
inlineexplicit |
Default constructor.
Definition at line 178 of file ecvQCustomPlot.h.
|
inlinevirtual |
Definition at line 222 of file ecvQCustomPlot.h.
|
inline |
Definition at line 195 of file ecvQCustomPlot.h.
References mCurrentVal.
Referenced by ccHistogramWindow::mouseMoveEvent(), ccHistogramWindow::setMaxDispValue(), ccHistogramWindow::setMaxSatValue(), ccHistogramWindow::setMinDispValue(), and ccHistogramWindow::setMinSatValue().
|
inlineoverrideprotected |
Definition at line 231 of file ecvQCustomPlot.h.
|
inlineoverrideprotected |
Definition at line 233 of file ecvQCustomPlot.h.
|
inlineoverrideprotected |
Definition at line 239 of file ecvQCustomPlot.h.
|
inlinevirtual |
Returns whether the item is "selectable" when the mouse is clicked at a given position
Definition at line 188 of file ecvQCustomPlot.h.
References mLastPos, and mLastRadius.
Referenced by ccHistogramWindow::mousePressEvent().
|
inline |
Definition at line 197 of file ecvQCustomPlot.h.
References mMaxVal.
Referenced by range(), and setRange().
|
inline |
Definition at line 196 of file ecvQCustomPlot.h.
References mMinVal.
Referenced by range(), and setRange().
|
inline |
Converts a pixel value (X) to the equivalent key.
Definition at line 213 of file ecvQCustomPlot.h.
Referenced by ccHistogramWindow::mouseMoveEvent().
|
inline |
Converts a pixel value (Y) to the equivalent value.
Definition at line 217 of file ecvQCustomPlot.h.
|
inline |
|
inlineoverride |
Definition at line 223 of file ecvQCustomPlot.h.
|
inline |
Definition at line 204 of file ecvQCustomPlot.h.
References max(), mCurrentVal, min(), mMaxVal, and mMinVal.
Referenced by ccHistogramWindow::refresh(), ccHistogramWindow::setMaxDispValue(), ccHistogramWindow::setMaxSatValue(), ccHistogramWindow::setMinDispValue(), and ccHistogramWindow::setMinSatValue().
|
inline |
Definition at line 207 of file ecvQCustomPlot.h.
References maxVal(), minVal(), mMaxVal, and mMinVal.
Referenced by ccHistogramWindow::refresh().
|
protected |
Definition at line 248 of file ecvQCustomPlot.h.
Referenced by currentVal(), QCPHiddenArea::draw(), QCPArrow::draw(), and setCurrentVal().
|
protected |
Definition at line 250 of file ecvQCustomPlot.h.
Referenced by QCPHiddenArea::draw(), QCPArrow::draw(), and isSelectable().
|
protected |
Definition at line 251 of file ecvQCustomPlot.h.
Referenced by QCPHiddenArea::draw(), QCPArrow::draw(), and isSelectable().
|
protected |
Definition at line 249 of file ecvQCustomPlot.h.
Referenced by QCPHiddenArea::draw(), maxVal(), range(), setCurrentVal(), and setRange().
|
protected |
Definition at line 249 of file ecvQCustomPlot.h.
Referenced by QCPHiddenArea::draw(), minVal(), range(), setCurrentVal(), and setRange().