qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QCPSelectableCursor Class Reference

QCustomPlot: selectable cursor interface. More...

#include <ccQCustomPlot.h>

Inheritance diagram for QCPSelectableCursor:
Inheritance graph
[legend]
Collaboration diagram for QCPSelectableCursor:
Collaboration graph
[legend]

Public Member Functions

 QCPSelectableCursor (QCPAxis *keyAxis, QCPAxis *valueAxis)
 Default constructor.
 
virtual bool isSelectable (QPoint click) const
 Returns whether the item is "selectable" when the mouse is clicked at a given position.
 
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.
 
double pixelToValue (int pixY) const
 Converts a pixel value (Y) to the equivalent value.
 
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
 

Detailed Description

QCustomPlot: selectable cursor interface.


The documentation for this class was generated from the following file: