Isis Developer Reference
Footprint2DView.h
Go to the documentation of this file.
1#ifndef Footprint2DView_h
2#define Footprint2DView_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QList>
13#include <QMap>
14#include <QSize>
15
17#include "FileName.h"
18#include "ImageList.h"
19
20class QAction;
21class QEvent;
22class QMainWindow;
23class QToolBar;
24class QWidgetAction;
25class QXmlStreamWriter;
26
27namespace Isis {
28
29 class ControlPoint;
30 class Directory;
31 class Image;
32 class ImageFileListWidget;
33 class MosaicSceneWidget;
34 class Project;
35 class ToolPad;
36
101
102 Q_OBJECT
103
104 public:
105 Footprint2DView(Directory *directory, QWidget *parent=0);
107
110
111 void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const;
112
113 signals:
114 void modifyControlPoint(ControlPoint *controlPoint);
115 void deleteControlPoint(ControlPoint *controlPoint);
116 void createControlPoint(double latitude, double longitude);
117
119 void controlPointAdded(QString newPointId);
120
121 public slots:
122 void enableControlNetTool(bool value);
123
124 protected:
125 bool eventFilter(QObject *watched, QEvent *event);
126
127 private slots:
128 void onItemAdded(ProjectItem *item);
129 void onItemsAdded();
130 void onItemRemoved(ProjectItem *item);
131 void onQueueSelectionChanged();
132 void onMosItemRemoved(Image *image);
133
134 private:
135 void enableActions();
136
137 private:
138 MosaicSceneWidget *m_sceneWidget;
139 ImageFileListWidget *m_fileListWidget;
140 QMainWindow *m_window;
141 ImageList m_images;
142 QMap<Image *, ProjectItem *> m_imageItemMap;
143 Directory *m_directory;
144
145 QToolBar *m_permToolBar;
146 QToolBar *m_activeToolBar;
147 ToolPad *m_toolPad;
148 };
149}
150
151#endif
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework.
Definition AbstractProjectItemView.h:79
A single control point.
Definition ControlPoint.h:356
Definition Directory.h:271
File name manipulation and expansion.
Definition FileName.h:100
View for displaying footprints of images in a QMos like way.
Definition Footprint2DView.h:100
ImageFileListWidget * fileListWidget()
Accessor for the FileListWidget.
Definition Footprint2DView.cpp:162
~Footprint2DView()
Destructor.
Definition Footprint2DView.cpp:139
MosaicSceneWidget * mosaicSceneWidget()
Accessor for the MosaicSceneWidget.
Definition Footprint2DView.cpp:154
void modifyControlPoint(ControlPoint *controlPoint)
void save(QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
Save the footprint view widgets (ImageFileListWidget and MosaicSceneWidget to an XML file.
Definition Footprint2DView.cpp:354
Footprint2DView(Directory *directory, QWidget *parent=0)
Constructor.
Definition Footprint2DView.cpp:51
bool eventFilter(QObject *watched, QEvent *event)
Event filter to filter out drag and drop events.
Definition Footprint2DView.cpp:175
void deleteControlPoint(ControlPoint *controlPoint)
void controlPointAdded(QString newPointId)
void enableControlNetTool(bool value)
A slot function that is called when directory emits a siganl that an active control network is set.
Definition Footprint2DView.cpp:317
void createControlPoint(double latitude, double longitude)
A colored, grouped cube list.
Definition ImageFileListWidget.h:64
This represents a cube in a project-based GUI interface.
Definition Image.h:105
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:53
This widget encompasses the entire mosaic scene.
Definition MosaicSceneWidget.h:153
The main project for ipce.
Definition Project.h:287
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition ProjectItem.h:134
Definition ToolPad.h:14
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16