Isis 3 Developer 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);
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.
Definition: MdiCubeViewport.h:53
Q_DECLARE_METATYPE(Isis::MdiCubeViewport *)
Reads and stores visible DN values.
Definition: ViewportBuffer.h:78
Cube * cube() const
Definition: CubeViewport.h:348
void registerTool(Tool *tool)
Registers the tool given tool.
Definition: MdiCubeViewport.cpp:59
MdiCubeViewport(Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0)
Definition: MdiCubeViewport.cpp:40
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.
Definition: MdiCubeViewport.cpp:138
void requestRestretch(MdiCubeViewport *, int)
void setLinked(bool b)
Change the linked state of the viewport.
Definition: MdiCubeViewport.cpp:70
void forceAbstract()
Definition: MdiCubeViewport.h:61
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: MdiCubeViewport.cpp:106
void viewRGB(int red, int green, int blue)
Definition: MdiCubeViewport.cpp:130
bool isLinked() const
Is the viewport linked with other viewports.
Definition: MdiCubeViewport.h:64
Encapsulation of Cube I/O with Change Notifications.
Definition: CubeDataThread.h:53
~MdiCubeViewport()
Definition: MdiCubeViewport.cpp:50
void viewGray(int band)
Definition: MdiCubeViewport.cpp:122
Definition: BoxcarCachingAlgorithm.h:29
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