Isis Developer Reference
Workspace.h
Go to the documentation of this file.
1 #ifndef Workspace_h
2 #define Workspace_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 
13 
14 #include <QMdiArea>
15 #include <QPointer>
16 
17 template< class T > class QVector;
18 
19 namespace Isis {
20  class Cube;
21  class Image;
22  class ImageList;
23  class MdiCubeViewport;
24  class ToolList;
25 
78  class Workspace : public QWidget {
79  Q_OBJECT
80 
81  public:
89  Workspace(bool selfContained, QWidget *parent = 0);
90 
96  Workspace(const Workspace &other);
97 
102  virtual ~Workspace();
103 
110 
117  Workspace &operator=(Workspace other);
118 
124  void addImages(ImageList *images);
125 
131  bool confirmClose();
132 
139  QWidget *cubeToMdiWidget(Cube *cube);
140 
146  QMdiArea *mdiArea();
147 
148  signals:
153 
159 
160  public slots:
161 
167  void addCubeViewport(QString cubename);
168 
174  void addCubeViewportFromList(QString cubelist);
175 
176 
183 
189  void addBrowseView(QString cube);
190 
191  protected slots:
192 
199 
200  private:
202  QPointer<QMdiArea> m_mdi;
204  QVector< MdiCubeViewport * > * m_cubeViewportList;
206  ToolList *m_tools;
207  };
208 };
209 
210 #endif
Isis::SunShadowTool
Tool for measuring shadow heights.
Definition: SunShadowTool.h:39
FileName.h
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::Cube::fileName
virtual QString fileName() const
Returns the opened cube's filename.
Definition: Cube.cpp:1563
Cube.h
Isis::ToolList
Allows tools to share data between each other.
Definition: ToolList.h:32
Isis::Cube::setVirtualBands
void setVirtualBands(const QList< QString > &vbands)
This allows the programmer to specify a subset of bands to work with.
Definition: Cube.cpp:1321
MdiCubeViewport.h
HistogramTool.h
Isis::BandTool
Definition: BandTool.h:46
QList< QString >
Isis::Tool::menuName
virtual QString menuName() const
Anytime a tool is created, you must give it a name for the menu.
Definition: Tool.h:83
Isis::Workspace::operator=
Workspace & operator=(Workspace other)
Is equal to comparsion.
Definition: Workspace.cpp:250
Isis::MeasureTool
Tool for measuring distances.
Definition: MeasureTool.h:58
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::ToolList::append
void append(Tool *tool)
Definition: ToolList.cpp:21
QMenu
FileTool.h
Isis::WindowTool
Definition: WindowTool.h:25
FindTool.h
Isis::Workspace::addCubeViewport
void addCubeViewport(QString cubename)
Method adds the name of a cube into Workspace as a CubeViewport.
Definition: Workspace.cpp:339
ScatterPlotTool.h
Isis::MatchTool
Match tool operations.
Definition: MatchTool.h:216
Isis::Tool::addToPermanent
virtual void addToPermanent(QToolBar *toolbar)
Definition: Tool.h:97
Isis::StatisticsTool
Definition: StatisticsTool.h:121
Image.h
Isis::Workspace::cubeViewportActivated
void cubeViewportActivated(MdiCubeViewport *)
Signal triggered when a Cube is activated in the Workspace.
ToolPad.h
Isis::IString::ToInteger
int ToInteger() const
Returns the object string as an integer.
Definition: IString.cpp:718
EditTool.h
QToolBar
Isis::Workspace::cubeToMdiWidget
QWidget * cubeToMdiWidget(Cube *cube)
Converts a cube to an MdiWidget.
Definition: Workspace.cpp:280
IString.h
WindowTool.h
ViewportMdiSubWindow.h
BandTool.h
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::Workspace::addBrowseView
void addBrowseView(QString cube)
Method is called to add a Cube from BrowseView.
Definition: Workspace.cpp:490
Isis::Workspace::confirmClose
bool confirmClose()
Confirms that the user wishes toc lose the Workspace.
Definition: Workspace.cpp:267
Isis::Workspace::activateViewport
void activateViewport(QMdiSubWindow *w)
This method activates the Viewport.
Definition: Workspace.cpp:222
Isis::Workspace::cubeViewportAdded
void cubeViewportAdded(MdiCubeViewport *)
Signal triggered when a Cube is added to the Workspace.
Isis::PanTool
Definition: PanTool.h:18
QnetNavTool.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::Workspace::mdiArea
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition: Workspace.cpp:295
AdvancedTrackTool.h
Isis::HelpTool
Qisis Help Tool.
Definition: HelpTool.h:26
Isis::SpatialPlotTool
Spatial Plots.
Definition: SpatialPlotTool.h:62
Isis::IException::toString
QString toString() const
Returns a string representation of this exception.
Definition: IException.cpp:537
MeasureTool.h
Isis::MdiCubeViewport::viewRGB
void viewRGB(int red, int green, int blue)
Definition: MdiCubeViewport.cpp:118
Isis::SpectralPlotTool
Plot cube DN statistics against the cube band numbers.
Definition: SpectralPlotTool.h:57
QnetTool.h
FeatureNomenclatureTool.h
Isis::ViewportMdiSubWindow
This is an actual viewport window in qview/qnet/etc.
Definition: ViewportMdiSubWindow.h:25
Isis::Image::cube
Cube * cube()
Get the Cube pointer associated with this display property.
Definition: Image.cpp:287
Isis::FeatureNomenclatureTool
Display nomenclature on MDI Cube Viewports.
Definition: FeatureNomenclatureTool.h:56
Isis::Tool::addTo
void addTo(ViewportMainWindow *mw)
Adds the tool to the application.
Definition: Tool.cpp:78
Workspace.h
Isis::QnetTool
Qnet tool operations.
Definition: QnetTool.h:256
StatisticsTool.h
Isis::ToolList::count
int count() const
Definition: ToolList.cpp:36
ImageList.h
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ZoomTool
Handles zoom operations for Isis qt apps.
Definition: ZoomTool.h:56
Isis::Workspace::addImages
void addImages(ImageList *images)
Adds a list of Images to a viewport.
Definition: Workspace.cpp:260
Isis::EditTool
Interactive image edit tool.
Definition: EditTool.h:70
Isis::FindTool
Tool to locate a point on a cube that is projected and/or has a camera model.
Definition: FindTool.h:115
Isis::ToolPad
Definition: ToolPad.h:14
Isis::SpecialPixelTool
Sets the colors for the special pixel values.
Definition: SpecialPixelTool.h:35
Isis::ViewportMdiSubWindow::viewport
MdiCubeViewport * viewport()
Grabs the viewport.
Definition: ViewportMdiSubWindow.cpp:45
Isis::CubeAttributeInput::bands
std::vector< QString > bands() const
Return a vector of the input bands specified.
Definition: CubeAttribute.cpp:82
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
MatchTool.h
Isis::Tool::activate
void activate(bool)
Activates the tool.
Definition: Tool.cpp:131
Isis::RubberBandTool
Rubber banding tool.
Definition: RubberBandTool.h:50
Isis::StretchTool
Stretch image edit tool.
Definition: StretchTool.h:85
Isis::Workspace::Workspace
Workspace(bool selfContained, QWidget *parent=0)
Constructor for Workspace.
Definition: Workspace.cpp:58
Isis::ScatterPlotTool
Scatter Plot Tool.
Definition: ScatterPlotTool.h:27
HelpTool.h
Isis::CubeAttributeInput
Manipulate and parse attributes of input cube filenames.
Definition: CubeAttribute.h:381
Isis::Workspace::cubeViewportList
QVector< MdiCubeViewport * > * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
Definition: Workspace.cpp:238
RubberBandTool.h
Isis::HistogramTool
Tool for histograms.
Definition: HistogramTool.h:40
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Isis::Workspace::~Workspace
virtual ~Workspace()
Deconstructor.
Definition: Workspace.cpp:208
Isis::Tool::addToActive
void addToActive(QToolBar *toolbar)
Definition: Tool.cpp:112
SpecialPixelTool.h
Isis::QnetNavTool
Qnet Navigation Tool.
Definition: QnetNavTool.h:121
StretchTool.h
Isis::AdvancedTrackTool
Tool to display info for a point on a cube.
Definition: AdvancedTrackTool.h:91
Isis::Workspace
Definition: Workspace.h:78
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
QMdiSubWindow
SpectralPlotTool.h
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
PanTool.h
SpatialPlotTool.h
Isis::Cube::open
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing.
Definition: Cube.cpp:627
QnetFileTool.h
Isis::Workspace::addCubeViewportFromList
void addCubeViewportFromList(QString cubelist)
Method adds cubes into Workspace as a CubeViewport from a list of cubes.
Definition: Workspace.cpp:391
TrackTool.h
Isis::CubeViewport::cube
Cube * cube() const
Definition: CubeViewport.h:338
Isis::StereoTool
Tool for computing parallax.
Definition: StereoTool.h:59
Isis::TrackTool
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
ZoomTool.h
CubeAttribute.h
SunShadowTool.h
StereoTool.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::QnetFileTool
Qnet File operations.
Definition: QnetFileTool.h:79
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
ToolList.h