Isis 3 Programmer Reference
MdiCubeViewport.h
Go to the documentation of this file.
1 #ifndef MdiCubeViewport_h
2 #define MdiCubeViewport_h
3 
26 #include "CubeViewport.h"
27 
28 #include <QMetaType>
29 
30 
31 class QPaintEvent;
32 template < class T > class QList;
33 
34 namespace Isis {
35  class Cube;
36  class Tool;
37  class ViewportBuffer;
38 
53  class MdiCubeViewport : public CubeViewport {
54  Q_OBJECT
55 
56  public:
58  QWidget *parent = 0);
59  ~MdiCubeViewport();
60 
61  void forceAbstract() {}
62 
64  bool isLinked() const {
65  return p_linked;
66  };
67 
68  void registerTool(Tool *tool);
69  void paintEvent(QPaintEvent *e);
70  void restretch(ViewportBuffer *buffer);
71 
72 
73  signals:
74  void linkChanging(bool);
75  void requestRestretch(MdiCubeViewport *, int);
76 
77 
78  public slots:
79  void setLinked(bool b);
80  void viewGray(int band);
81  void viewRGB(int red, int green, int blue);
82 
83 
84  private:
85  bool p_linked;
86  QList<Tool *> p_toolList;
87 
88  };
89 }
90 
92 
93 #endif
Cube display widget for certain Isis MDI applications.
Reads and stores visible DN values.
Cube * cube() const
Definition: CubeViewport.h:348
void registerTool(Tool *tool)
Registers the tool given tool.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *&#39;s to be stored in a QVariant.
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
void restretch(ViewportBuffer *buffer)
This is called by internal viewport buffers when a stretch action should be performed.
void setLinked(bool b)
Change the linked state of the viewport.
void paintEvent(QPaintEvent *e)
Repaint the viewport.
bool isLinked() const
Is the viewport linked with other viewports.
Encapsulation of Cube I/O with Change Notifications.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
IO Handler for Isis Cubes.
Definition: Cube.h:170