TranslateCurveTool Class Reference

#include <TranslateCurveTool.h>

Inheritance diagram for TranslateCurveTool:

PlotToolInterface

List of all members.


Detailed Description

Plot tool for translating curves.

Public Types

enum  Direction { Vertical, Horizontal }

Public Slots

void selectCurvePoint (QwtPlotCurve *curve, int point_index)
 Select curve to translate, using the specified point as base point.
void selectDestination (const QwtDoublePoint &point)
 Select the coordinates where the base point should end up (modulo projection on d_dir direction).

Signals

void statusText (const QString &)
 Emitted whenever a new message should be presented to the user.

Public Member Functions

virtual int rtti () const
 TranslateCurveTool (Graph *graph, ApplicationWindow *app, Direction dir, const QObject *status_target=NULL, const char *status_slot="")
 Standard constructor.

Private Attributes

ApplicationWindowd_app
QwtDoublePoint d_curve_point
Direction d_dir
QwtPlotCurve * d_selected_curve
PlotToolInterfaced_sub_tool

Member Enumeration Documentation

enum TranslateCurveTool::Direction

Enumerator:
Vertical 
Horizontal 


Constructor & Destructor Documentation

TranslateCurveTool::TranslateCurveTool ( Graph graph,
ApplicationWindow app,
Direction  dir,
const QObject *  status_target = NULL,
const char *  status_slot = "" 
)

Standard constructor.

Parameters:
graph the Graph to operate on (or rather, on whose image markers to operate on)
app parent window of graph
dir the direction in which to translate curves
status_target target to which the statusText(const QString&) signal will be connected
status_slot slot on status_target to which the statusText(const QString&) signal will be connected The status_target/status_slot arguments are provided, because statusText(const QString&) is emitted during initialization, before there's any other chance of connecting to it.


Member Function Documentation

virtual int TranslateCurveTool::rtti (  )  const [inline, virtual]

Reimplemented from PlotToolInterface.

void TranslateCurveTool::selectCurvePoint ( QwtPlotCurve *  curve,
int  point_index 
) [slot]

Select curve to translate, using the specified point as base point.

void TranslateCurveTool::selectDestination ( const QwtDoublePoint &  point  )  [slot]

Select the coordinates where the base point should end up (modulo projection on d_dir direction).

void TranslateCurveTool::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.


Member Data Documentation

ApplicationWindow* TranslateCurveTool::d_app [private]

QwtDoublePoint TranslateCurveTool::d_curve_point [private]

Direction TranslateCurveTool::d_dir [private]

QwtPlotCurve* TranslateCurveTool::d_selected_curve [private]

PlotToolInterface* TranslateCurveTool::d_sub_tool [private]


The documentation for this class was generated from the following files:
Generated on Thu Feb 7 13:59:29 2008 for QtiPlot by  doxygen 1.5.4