Isis 3 Programmer Reference
MdiCubeViewport.h
1 #ifndef MdiCubeViewport_h
2 #define MdiCubeViewport_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "CubeViewport.h"
13 
14 #include <QMetaType>
15 
16 
17 class QPaintEvent;
18 template < class T > class QList;
19 
20 namespace Isis {
21  class Cube;
22  class Tool;
23  class ViewportBuffer;
24 
39  class MdiCubeViewport : public CubeViewport {
40  Q_OBJECT
41 
42  public:
44  QWidget *parent = 0);
45  ~MdiCubeViewport();
46 
47  void forceAbstract() {}
48 
50  bool isLinked() const {
51  return p_linked;
52  };
53 
54  void registerTool(Tool *tool);
55  void paintEvent(QPaintEvent *e);
56  void restretch(ViewportBuffer *buffer);
57 
58 
59  signals:
60  void linkChanging(bool);
61  void requestRestretch(MdiCubeViewport *, int);
62 
63 
64  public slots:
65  void setLinked(bool b);
66  void viewGray(int band);
67  void viewRGB(int red, int green, int blue);
68 
69 
70  private:
71  bool p_linked;
72  QList<Tool *> p_toolList;
73 
74  };
75 }
76 
78 
79 #endif
Isis::ViewportBuffer
Reads and stores visible DN values.
Definition: ViewportBuffer.h:63
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::MdiCubeViewport::paintEvent
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: MdiCubeViewport.cpp:94
Isis::CubeDataThread
Encapsulation of Cube I/O with Change Notifications.
Definition: CubeDataThread.h:59
Isis::MdiCubeViewport::setLinked
void setLinked(bool b)
Change the linked state of the viewport.
Definition: MdiCubeViewport.cpp:58
Isis::MdiCubeViewport::isLinked
bool isLinked() const
Is the viewport linked with other viewports.
Definition: MdiCubeViewport.h:50
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::CubeViewport
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
Isis::MdiCubeViewport::restretch
void restretch(ViewportBuffer *buffer)
This is called by internal viewport buffers when a stretch action should be performed.
Definition: MdiCubeViewport.cpp:126
Isis::MdiCubeViewport::registerTool
void registerTool(Tool *tool)
Registers the tool given tool.
Definition: MdiCubeViewport.cpp:47
Isis::CubeViewport::cube
Cube * cube() const
Definition: CubeViewport.h:338
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.