Isis Developer Reference
ScatterPlotTool.h
Go to the documentation of this file.
1 #ifndef ScatterPlotTool_h
2 #define ScatterPlotTool_h
3 
4 #include "Tool.h"
5 
6 #include <QPointer>
7 #include <QScopedPointer>
8 
9 class QAction;
10 template< class T > class QVector;
11 class QWidget;
12 
13 namespace Isis {
14  class MdiCubeViewport;
15  class ScatterPlotConfigDialog;
16  class ScatterPlotWindow;
17 
27  class ScatterPlotTool : public Tool {
28  Q_OBJECT
29 
30  public:
31  ScatterPlotTool(QWidget *parent);
32  void setActionChecked(bool checked);
33 
34  virtual void paintViewport(MdiCubeViewport *vp, QPainter *painter);
35 
36  public slots:
40 
41  protected slots:
42  void mouseMove(QPoint p, Qt::MouseButton);
43  void mouseLeave();
44  void repaintViewports();
45 
46  protected:
47  QWidget *createToolBarWidget(QStackedWidget *parent);
49 
51 
52  private:
54  QPointer<QAction> m_action;
56  QPointer<ScatterPlotConfigDialog> m_configDialog;
58  QScopedPointer< QList< QPointer<ScatterPlotWindow> > > m_plotWindows;
59  };
60 };
61 
62 
63 
64 
65 #endif
66 
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
MdiCubeViewport.h
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::Tool::cubeViewportList
CubeViewportList * cubeViewportList() const
Return the list of cubeviewports.
Definition: Tool.cpp:390
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::ScatterPlotTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
Create the toolbar options widget for this tool's options.
Definition: ScatterPlotTool.cpp:91
Isis::Tool::toolIconDir
QString toolIconDir() const
returns the path to the icon directory.
Definition: Tool.h:113
Isis::ScatterPlotTool::setActionChecked
void setActionChecked(bool checked)
Gives the programmer more flexibility on when the action button for this tool is checked or not.
Definition: ScatterPlotTool.cpp:31
Isis::ScatterPlotTool::mouseLeave
void mouseLeave()
The user moused out of the viewport.
Definition: ScatterPlotTool.cpp:173
ScatterPlotTool.h
Tool.h
Isis::ScatterPlotTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
Configure the QAction for this tool.
Definition: ScatterPlotTool.cpp:59
ToolPad.h
IString.h
Isis::ScatterPlotTool::paintViewport
virtual void paintViewport(MdiCubeViewport *vp, QPainter *painter)
When a viewport needs repainted this is called.
Definition: ScatterPlotTool.cpp:43
Isis::ScatterPlotTool::onScatterPlotConfigRejected
void onScatterPlotConfigRejected()
The user has cancelled creating a scatter plot.
Definition: ScatterPlotTool.cpp:149
Isis::ScatterPlotWindow
Scatter Plot Window.
Definition: ScatterPlotWindow.h:28
ScatterPlotWindow.h
Isis::ScatterPlotWindow::paint
virtual void paint(MdiCubeViewport *vp, QPainter *painter)
If the viewport is showing the x axis cube data or y axis cube data, and alarming is enabled,...
Definition: ScatterPlotWindow.cpp:316
Isis::Tool::workspace
Workspace * workspace()
Definition: Tool.cpp:344
Isis::ScatterPlotConfigDialog
This configuration dialog is for users to determine the scatter plot parameters required to create a ...
Definition: ScatterPlotConfigDialog.h:29
Isis::ScatterPlotTool::repaintViewports
void repaintViewports()
This is a helper method for asking every viewport to repaint.
Definition: ScatterPlotTool.cpp:186
Isis::ToolPad
Definition: ToolPad.h:14
Isis::ScatterPlotTool::onScatterPlotConfigAccepted
void onScatterPlotConfigAccepted()
The user has asked to create a scatter plot.
Definition: ScatterPlotTool.cpp:114
Isis::ScatterPlotTool::ScatterPlotTool
ScatterPlotTool(QWidget *parent)
ScatterPlotTool constructor.
Definition: ScatterPlotTool.cpp:20
Isis::ScatterPlotWindow::setMousePosition
void setMousePosition(MdiCubeViewport *vp, QPoint mouseLoc)
Saves the current mouse position in the viewport so that the plot can be alarmed around that position...
Definition: ScatterPlotWindow.cpp:405
Isis::ScatterPlotTool
Scatter Plot Tool.
Definition: ScatterPlotTool.h:27
ScatterPlotConfigDialog.h
Isis::ScatterPlotTool::showNewScatterPlotConfig
void showNewScatterPlotConfig()
Ask the user to give us information for a new scatter plot.
Definition: ScatterPlotTool.cpp:198
QObject
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis::ScatterPlotTool::mouseMove
void mouseMove(QPoint p, Qt::MouseButton)
The user has moved their mouse on the cube viewport.
Definition: ScatterPlotTool.cpp:160
QAction
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis::ScatterPlotTool::toolAction
QAction * toolAction()
Get the action which activates this tool.
Definition: ScatterPlotTool.cpp:80
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16