SciDAVis  1.D4
Public Types | Signals | Public Member Functions | Protected Member Functions | Private Attributes
DataPickerTool Class Reference

Plot tool for selecting, moving or removing individual points of a curve. More...

#include <DataPickerTool.h>

Inheritance diagram for DataPickerTool:
PlotToolInterface

List of all members.

Public Types

enum  Mode { Display, Move, Remove }
enum  MoveMode { Free, Vertical, Horizontal }
- Public Types inherited from PlotToolInterface
enum  RTTI {
  DataPicker, ScreenPicker, LineProfile, MultiPeak,
  RangeSelector, TranslateCurve
}

Signals

void selected (QwtPlotCurve *, int)
 Emitted whenever a new data point has been selected.
void statusText (const QString &)

Public Member Functions

 DataPickerTool (Graph *graph, ApplicationWindow *app, Mode mode, const QObject *status_target=NULL, const char *status_slot="")
virtual bool eventFilter (QObject *obj, QEvent *event)
bool keyEventFilter (QKeyEvent *ke)
Mode mode () const
virtual RTTI rtti () const
QwtPlotCurve * selectedCurve () const
virtual ~DataPickerTool ()
- Public Member Functions inherited from PlotToolInterface
 PlotToolInterface (Graph *graph)
virtual ~PlotToolInterface ()

Protected Member Functions

virtual void append (const QPoint &point)
virtual bool end (bool ok)
virtual void move (const QPoint &point)
void moveBy (int dx, int dy)
void removePoint ()
void setSelection (QwtPlotCurve *curve, int point_index)
virtual QwtText trackerText (const QwtDoublePoint &point) const

Private Attributes

ApplicationWindowd_app
Mode d_mode
MoveMode d_move_mode
QPoint d_move_target_pos
QwtPlotCurve * d_selected_curve
int d_selected_point
QwtPlotMarker d_selection_marker

Additional Inherited Members

- Protected Attributes inherited from PlotToolInterface
Graphd_graph

Detailed Description

Plot tool for selecting, moving or removing individual points of a curve.


Member Enumeration Documentation

Enumerator:
Display 
Move 
Remove 
Enumerator:
Free 
Vertical 
Horizontal 

Constructor & Destructor Documentation

DataPickerTool::DataPickerTool ( Graph graph,
ApplicationWindow app,
Mode  mode,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)
DataPickerTool::~DataPickerTool ( )
virtual

Member Function Documentation

void DataPickerTool::append ( const QPoint &  point)
protectedvirtual
bool DataPickerTool::end ( bool  ok)
protectedvirtual
bool DataPickerTool::eventFilter ( QObject *  obj,
QEvent *  event 
)
virtual
bool DataPickerTool::keyEventFilter ( QKeyEvent *  ke)
Mode DataPickerTool::mode ( ) const
inline

References d_mode.

void DataPickerTool::move ( const QPoint &  point)
protectedvirtual
void DataPickerTool::moveBy ( int  dx,
int  dy 
)
protected

References d_move_target_pos, d_selected_curve, end(), and move().

Referenced by keyEventFilter().

void DataPickerTool::removePoint ( )
protected
virtual RTTI DataPickerTool::rtti ( ) const
inlinevirtual
void DataPickerTool::selected ( QwtPlotCurve *  ,
int   
)
signal

Emitted whenever a new data point has been selected.

Referenced by eventFilter(), and keyEventFilter().

QwtPlotCurve* DataPickerTool::selectedCurve ( ) const
inline

References d_selected_curve.

void DataPickerTool::setSelection ( QwtPlotCurve *  curve,
int  point_index 
)
protected
void DataPickerTool::statusText ( const QString &  )
signal

Emitted whenever a new message should be presented to the user.

You don't have to connect to this signal if you alreay specified a reciever during initialization.

Referenced by DataPickerTool(), move(), and setSelection().

QwtText DataPickerTool::trackerText ( const QwtDoublePoint &  point) const
protectedvirtual

Member Data Documentation

ApplicationWindow* DataPickerTool::d_app
private

Referenced by end(), move(), and setSelection().

Mode DataPickerTool::d_mode
private
MoveMode DataPickerTool::d_move_mode
private

Referenced by eventFilter(), and move().

QPoint DataPickerTool::d_move_target_pos
private

Referenced by end(), move(), moveBy(), and setSelection().

QwtPlotCurve* DataPickerTool::d_selected_curve
private
int DataPickerTool::d_selected_point
private
QwtPlotMarker DataPickerTool::d_selection_marker
private

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