QtiPlot  0.9.8.2
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ScreenPickerTool Class Reference

#include <ScreenPickerTool.h>

Inheritance diagram for ScreenPickerTool:
PlotToolInterface DrawPointTool ImageProfilesTool

Public Types

enum  MoveRestriction { NoRestriction, Vertical, Horizontal }
- Public Types inherited from PlotToolInterface
enum  RttiValues {
  Rtti_PlotTool = 0, Rtti_RangeSelector, Rtti_DataPicker, Rtti_TranslateCurveTool,
  Rtti_MultiPeakFitTool, Rtti_LineProfileTool, Rtti_AddWidgetTool, Rtti_DrawDataPoints,
  Rtti_ImageProfilesTool, Rtti_SubtractLineTool, Rtti_PlotUserTool = 1000
}

Signals

void statusText (const QString &)

Public Member Functions

virtual void append (const QwtDoublePoint &pos)
 ScreenPickerTool (Graph *graph, const QObject *status_target=NULL, const char *status_slot="")
void setMoveRestriction (ScreenPickerTool::MoveRestriction r)
double xValue ()
double yValue ()
virtual ~ScreenPickerTool ()
- Public Member Functions inherited from PlotToolInterface
 PlotToolInterface (Graph *graph, const QObject *status_target=NULL, const char *status_slot="")
virtual int rtti () const
virtual ~PlotToolInterface ()

Protected Member Functions

virtual void append (const QPoint &point)
virtual bool eventFilter (QObject *obj, QEvent *event)

Protected Attributes

MoveRestriction d_move_restriction
QwtPlotMarker d_selection_marker
- Protected Attributes inherited from PlotToolInterface
Graphd_graph
const char * d_status_slot
const QObject * d_status_target

Detailed Description

Plot tool for selecting arbitrary points.

This is a rather thin wrapper around QwtPlotPicker, providing selection of points on a Graph/Plot and displaying coordinates.

Member Enumeration Documentation

Enumerator:
NoRestriction 
Vertical 
Horizontal 

Constructor & Destructor Documentation

ScreenPickerTool::ScreenPickerTool ( Graph graph,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)
ScreenPickerTool::~ScreenPickerTool ( )
virtual

Member Function Documentation

void ScreenPickerTool::append ( const QwtDoublePoint &  pos)
virtual
void ScreenPickerTool::append ( const QPoint &  point)
protectedvirtual

References append().

bool ScreenPickerTool::eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual

Reimplemented in DrawPointTool.

References append(), and d_selection_marker.

void ScreenPickerTool::setMoveRestriction ( ScreenPickerTool::MoveRestriction  r)
inline

References d_move_restriction.

void ScreenPickerTool::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 append(), ImageProfilesTool::append(), DrawPointTool::appendPoint(), and ScreenPickerTool().

double ScreenPickerTool::xValue ( )
inline

References d_selection_marker.

Referenced by ImageProfilesTool::clone().

double ScreenPickerTool::yValue ( )
inline

References d_selection_marker.

Referenced by ImageProfilesTool::clone().

Member Data Documentation

MoveRestriction ScreenPickerTool::d_move_restriction
protected

Referenced by append(), and setMoveRestriction().

QwtPlotMarker ScreenPickerTool::d_selection_marker
protected

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