Isis Developer Reference
QnetFileTool.h
Go to the documentation of this file.
1 #ifndef QnetFileTool_h
2 #define QnetFileTool_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "FileTool.h"
13 #include <QCloseEvent>
14 
15 class QString;
16 class QWidget;
17 
18 namespace Isis {
19  class ControlNet;
20  class ControlPoint;
21  class QnetTool;
22  class SerialNumberList;
23 
79  class QnetFileTool : public FileTool {
80  Q_OBJECT
81 
82  public:
83  QnetFileTool(QnetTool *qnetTool, QWidget *parent);
84  ~QnetFileTool();
85 
86  virtual void addTo(QMenu *menu);
87 
90 
91  signals:
93  void controlNetworkUpdated(QString cNetName);
95  void newGroundFile();
96  void newDemFile();
97 
98  public slots:
99  virtual void open();
100  virtual void exit(QCloseEvent *event = NULL);
101  virtual void save();
102  virtual void saveAs();
103  void loadPointImages(ControlPoint *point);
104  void loadImage(const QString &serialNumber);
105  void setDirty();
106 
107  private:
108  QString m_cnetFileName;
109  bool m_isDirty;
110  QAction *m_openGround;
111  QAction *m_openDem;
112  QnetTool *m_qnetTool;
113  };
114 };
115 
116 #endif
Isis::QnetTool::serialNumberList
SerialNumberList * serialNumberList()
Definition: QnetTool.cpp:2589
Isis::QnetFileTool::saveAs
virtual void saveAs()
Save control network with given file.
Definition: QnetFileTool.cpp:281
FileName.h
Isis::QnetFileTool::newControlNetwork
void newControlNetwork(ControlNet *)
QWidget
Cube.h
MdiCubeViewport.h
Isis::FileTool::saveAction
QPointer< QAction > saveAction()
Definition: FileTool.h:72
Isis::QnetFileTool::newDemFile
void newDemFile()
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::QnetFileTool::serialNumberList
SerialNumberList * serialNumberList()
Definition: QnetFileTool.cpp:91
Isis::FileTool::addTo
void addTo(QMenu *menu)
Adds the file tool's actions to the menu.
Definition: FileTool.cpp:169
QMenu
Target.h
Isis::ControlNet::SetTarget
void SetTarget(const QString &target)
Sets the target name and target radii, if available.
Definition: ControlNet.cpp:1692
Isis::ControlPoint::GetNumMeasures
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
Isis::ControlNet::Write
void Write(const QString &filename, bool pvl=false)
Writes out the control network.
Definition: ControlNet.cpp:311
FileTool.h
Isis::SerialNumber::Compose
static QString Compose(Pvl &label, bool def2filename=false)
Compose a SerialNumber from a PVL.
Definition: SerialNumber.cpp:38
Isis::QnetFileTool::save
virtual void save()
Save control network with given file.
Definition: QnetFileTool.cpp:265
Isis::QnetFileTool::newGroundFile
void newGroundFile()
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::QnetFileTool::serialNumberListUpdated
void serialNumberListUpdated()
Isis::QnetFileTool::loadPointImages
void loadPointImages(ControlPoint *point)
Load images for the given point.
Definition: QnetFileTool.cpp:359
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::ControlNet::SetUserName
void SetUserName(const QString &name)
Set the user name of the control network.
Definition: ControlNet.cpp:1730
Isis::FileTool::openAction
QPointer< QAction > openAction()
Definition: FileTool.h:68
ControlNet.h
Isis::QnetTool::workspace
Workspace * workspace() const
Definition: QnetTool.cpp:2599
Isis::Workspace::mdiArea
QMdiArea * mdiArea()
This method returns the QMdiArea.
Definition: Workspace.cpp:295
Isis::IException::toString
QString toString() const
Returns a string representation of this exception.
Definition: IException.cpp:537
SerialNumberList.h
Isis::FileTool::fileSelected
void fileSelected(QString)
This signal is called when a file is selected.
Application.h
QnetTool.h
Workspace.h
Isis::ControlNet::SetImages
void SetImages(const QString &imageListFile)
Creates the ControlNet's image cameras based on an input file.
Definition: ControlNet.cpp:1566
Isis::QnetTool
Qnet tool operations.
Definition: QnetTool.h:256
ControlPoint.h
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::QnetFileTool::~QnetFileTool
~QnetFileTool()
Definition: QnetFileTool.cpp:74
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::QnetFileTool::open
virtual void open()
Open a list of cubes.
Definition: QnetFileTool.cpp:118
Isis::FileTool::exit
virtual void exit()
Exit the program, this slot called when the exit is chosen from the File menu.
Definition: FileTool.cpp:972
Isis::Progress
Program progress reporter.
Definition: Progress.h:42
Camera.h
Isis::QnetFileTool::addTo
virtual void addTo(QMenu *menu)
Adds the file tool's actions to the menu.
Definition: QnetFileTool.cpp:78
Isis::FileTool
Definition: FileTool.h:59
std
Namespace for the standard library.
Isis::QnetFileTool::setDirty
void setDirty()
Sets save net flag to true.
Definition: QnetFileTool.cpp:369
Isis::QnetFileTool::QnetFileTool
QnetFileTool(QnetTool *qnetTool, QWidget *parent)
Constructor.
Definition: QnetFileTool.cpp:33
Isis::Workspace::cubeViewportList
QVector< MdiCubeViewport * > * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
Definition: Workspace.cpp:238
Isis::QnetFileTool::controlNet
ControlNet * controlNet()
Definition: QnetFileTool.cpp:86
Isis::QnetFileTool::loadImage
void loadImage(const QString &serialNumber)
Load given cube in Workspace.
Definition: QnetFileTool.cpp:329
Isis::SerialNumberList::fileName
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:399
QMdiSubWindow
Isis::QnetFileTool::controlNetworkUpdated
void controlNetworkUpdated(QString cNetName)
Isis::Application::UserName
static QString UserName()
Returns the user name.
Definition: Application.cpp:816
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
QnetFileTool.h
SerialNumber.h
QAction
Isis::QnetTool::controlNet
ControlNet * controlNet()
Definition: QnetTool.cpp:2579
Progress.h
Isis::FileName::path
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
ControlMeasure.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