Isis Developer Reference
MdiCubeViewport.h
Go to the documentation of this file.
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
17class QPaintEvent;
18template < class T > class QList;
19
20namespace Isis {
21 class Cube;
22 class Tool;
23 class ViewportBuffer;
24
40 Q_OBJECT
41
42 public:
44 QWidget *parent = 0);
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);
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
Q_DECLARE_METATYPE(Isis::MdiCubeViewport *)
Encapsulation of Cube I/O with Change Notifications.
Definition CubeDataThread.h:59
IO Handler for Isis Cubes.
Definition Cube.h:168
Widget to display Isis cubes for qt apps.
Definition CubeViewport.h:122
Cube * cube() const
Definition CubeViewport.h:338
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
void requestRestretch(MdiCubeViewport *, int)
void setLinked(bool b)
Change the linked state of the viewport.
Definition MdiCubeViewport.cpp:58
void restretch(ViewportBuffer *buffer)
This is called by internal viewport buffers when a stretch action should be performed.
Definition MdiCubeViewport.cpp:126
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition MdiCubeViewport.cpp:94
void registerTool(Tool *tool)
Registers the tool given tool.
Definition MdiCubeViewport.cpp:47
void forceAbstract()
Definition MdiCubeViewport.h:47
bool isLinked() const
Is the viewport linked with other viewports.
Definition MdiCubeViewport.h:50
MdiCubeViewport(Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0)
Definition MdiCubeViewport.cpp:28
void viewGray(int band)
Definition MdiCubeViewport.cpp:110
~MdiCubeViewport()
Definition MdiCubeViewport.cpp:38
void viewRGB(int red, int green, int blue)
Definition MdiCubeViewport.cpp:118
Base class for the Qisis tools.
Definition Tool.h:67
Reads and stores visible DN values.
Definition ViewportBuffer.h:63
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16