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 
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);
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
FileName.h
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
Isis::CubeViewport::redBuffer
ViewportBuffer * redBuffer()
Returns the red viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:421
Isis::CubeViewport::viewportUpdated
void viewportUpdated()
Emitted when viewport updated.
MdiCubeViewport.h
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::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::CubeViewport::p_pixmap
QPixmap p_pixmap
The qpixmap.
Definition: CubeViewport.h:610
Isis::MdiCubeViewport::MdiCubeViewport
MdiCubeViewport(Cube *cube, Isis::CubeDataThread *cdt=0, QWidget *parent=0)
Definition: MdiCubeViewport.cpp:28
Isis::MdiCubeViewport::paintEvent
void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: MdiCubeViewport.cpp:94
Isis::MdiCubeViewport::requestRestretch
void requestRestretch(MdiCubeViewport *, int)
Tool.h
Isis::CubeViewport::viewRGB
virtual void viewRGB(int redBand, int greenBand, int blueBand)
View cube as color.
Definition: CubeViewport.cpp:2002
Isis::StretchTool::Red
@ Red
Red Band.
Definition: StretchTool.h:98
IString.h
Isis::CubeDataThread
Encapsulation of Cube I/O with Change Notifications.
Definition: CubeDataThread.h:59
CubeViewport.h
Isis::MdiCubeViewport::setLinked
void setLinked(bool b)
Change the linked state of the viewport.
Definition: MdiCubeViewport.cpp:58
Isis::MdiCubeViewport::linkChanging
void linkChanging(bool)
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::MdiCubeViewport::viewRGB
void viewRGB(int red, int green, int blue)
Definition: MdiCubeViewport.cpp:118
Isis::StretchTool::Blue
@ Blue
Blue Band.
Definition: StretchTool.h:100
Isis::StretchTool::Gray
@ Gray
Gray Band.
Definition: StretchTool.h:97
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::viewGray
void viewGray(int band)
Definition: MdiCubeViewport.cpp:110
std
Namespace for the standard library.
Isis::MdiCubeViewport::~MdiCubeViewport
~MdiCubeViewport()
Definition: MdiCubeViewport.cpp:38
Isis::CubeViewport::blueBuffer
ViewportBuffer * blueBuffer()
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:441
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Isis::MdiCubeViewport *)
Isis::MdiCubeViewport::forceAbstract
void forceAbstract()
Definition: MdiCubeViewport.h:47
Isis::CubeViewport::viewGray
virtual void viewGray(int band)
View cube as gray.
Definition: CubeViewport.cpp:1918
RubberBandTool.h
Isis::StretchTool::Green
@ Green
Green Band.
Definition: StretchTool.h:99
Isis::CubeViewport::paintEvent
virtual void paintEvent(QPaintEvent *e)
Repaint the viewport.
Definition: CubeViewport.cpp:1089
StretchTool.h
Isis::MdiCubeViewport::registerTool
void registerTool(Tool *tool)
Registers the tool given tool.
Definition: MdiCubeViewport.cpp:47
Isis::CubeViewport::grayBuffer
ViewportBuffer * grayBuffer()
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Definition: CubeViewport.h:411
Isis::CubeViewport::cube
Cube * cube() const
Definition: CubeViewport.h:338
Isis::CubeViewport::greenBuffer
ViewportBuffer * greenBuffer()
Returns the green viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:431
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16