Isis 3 Programmer Reference
ScatterPlotTool.h
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 
Cube display widget for certain Isis MDI applications.
QScopedPointer< QList< QPointer< ScatterPlotWindow > > > m_plotWindows
This is a list of all of the plot windows used for painting/alarming.
QAction * toolPadAction(ToolPad *pad)
Configure the QAction for this tool.
virtual void paintViewport(MdiCubeViewport *vp, QPainter *painter)
When a viewport needs repainted this is called.
ScatterPlotTool(QWidget *parent)
ScatterPlotTool constructor.
QAction * toolAction()
Get the action which activates this tool.
void onScatterPlotConfigAccepted()
The user has asked to create a scatter plot.
QPointer< QAction > m_action
The action which activates this tool.
void mouseLeave()
The user moused out of the viewport.
void onScatterPlotConfigRejected()
The user has cancelled creating a scatter plot.
QPointer< ScatterPlotConfigDialog > m_configDialog
This is the configuration dialog for a new scatter plot.
void showNewScatterPlotConfig()
Ask the user to give us information for a new scatter plot.
void repaintViewports()
This is a helper method for asking every viewport to repaint.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
void setActionChecked(bool checked)
Gives the programmer more flexibility on when the action button for this tool is checked or not...
void mouseMove(QPoint p, Qt::MouseButton)
The user has moved their mouse on the cube viewport.
Scatter Plot Tool.
QWidget * createToolBarWidget(QStackedWidget *parent)
Create the toolbar options widget for this tool&#39;s options.