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
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);
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
77Q_DECLARE_METATYPE(Isis::MdiCubeViewport *);
78
79#endif
Encapsulation of Cube I/O with Change Notifications.
IO Handler for Isis Cubes.
Definition Cube.h:168
Widget to display Isis cubes for qt apps.
Cube * cube() const
Cube display widget for certain Isis MDI applications.
void setLinked(bool b)
Change the linked state of the viewport.
void restretch(ViewportBuffer *buffer)
This is called by internal viewport buffers when a stretch action should be performed.
void paintEvent(QPaintEvent *e)
Repaint the viewport.
void registerTool(Tool *tool)
Registers the tool given tool.
bool isLinked() const
Is the viewport linked with other viewports.
Base class for the Qisis tools.
Definition Tool.h:67
Reads and stores visible DN values.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16