Isis Developer Reference
ControlNetTool.h
Go to the documentation of this file.
1#ifndef ControlNetTool_h
2#define ControlNetTool_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include "Tool.h"
13#include "ControlPoint.h"
14
15#include <QAction>
16#include <QCloseEvent>
17#include <QPalette>
18#include <QPointer>
19#include <QString>
20#include <QStringList>
21
22
23namespace Isis {
24 class ControlMeasure;
25 class ControlNet;
26 class ControlPointEdit;
27 class Cube;
28 class CubeDnView;
29 class CubeViewport;
30 class Directory;
31 class MainWindow;
32 class MdiCubeViewport;
33 class QnetHoldPointDialog;
34 class SerialNumberList;
35 class Stretch;
36 class ToolPad;
37 class UniversalGroundMap;
38
72 class ControlNetTool : public Tool {
73 Q_OBJECT
74
75 public:
76 ControlNetTool (Directory *directory, QWidget *parent);
77 virtual ~ControlNetTool ();
78
79 void setControlNet(ControlNet *controlNet);
80 void paintViewport (MdiCubeViewport *cvp, QPainter *painter);
81
82 signals:
83 void modifyControlPoint(ControlPoint *controlPoint, QString serialNumber);
84 void deleteControlPoint(ControlPoint *controlPoint);
85 void createControlPoint(double latitude, double longitude, Cube *cube,
86 bool isGroundSource = false);
87
88 public slots:
89 void loadNetwork();
90
91 protected:
93
94 protected slots:
95 void mouseButtonRelease(QPoint p, Qt::MouseButton s);
96
97 private slots:
98 void paintAllViewports();
99
100 private:
101 void createActions();
102 void createMenus();
103 void drawAllMeasurements(MdiCubeViewport *vp, QPainter *painter);
104 void drawGroundMeasures (MdiCubeViewport *vp, QPainter *painter, UniversalGroundMap *groundMap);
105
106 QPointer<MainWindow> m_ControlNetTool;
107 Directory *m_directory;
108 CubeDnView *m_view;
109
110 QPointer<ControlNet> m_controlNet;
111
112 QPointer<Workspace> m_workspace;
113 };
114};
115
116#endif
a control network
Definition ControlNet.h:258
ControlNetTool Handles mouse events on CubeDnViews for control point editing for the ipce app.
Definition ControlNetTool.h:72
void createControlPoint(double latitude, double longitude, Cube *cube, bool isGroundSource=false)
void setControlNet(ControlNet *controlNet)
Set the active control net to be used for editing.
Definition ControlNetTool.cpp:113
QAction * toolPadAction(ToolPad *pad)
Adds the ControlNet tool action to the tool pad.
Definition ControlNetTool.cpp:83
void mouseButtonRelease(QPoint p, Qt::MouseButton s)
Handle mouse events on CubeViewport.
Definition ControlNetTool.cpp:139
void loadNetwork()
Definition ControlNetTool.cpp:123
void modifyControlPoint(ControlPoint *controlPoint, QString serialNumber)
virtual ~ControlNetTool()
Definition ControlNetTool.cpp:65
void paintViewport(MdiCubeViewport *cvp, QPainter *painter)
This will draw the control measures on the given cube viewport.
Definition ControlNetTool.cpp:233
void deleteControlPoint(ControlPoint *controlPoint)
ControlNetTool(Directory *directory, QWidget *parent)
ControlNet tool - Handles mouse button actions and drawing control points on viewports in the CubeDnV...
Definition ControlNetTool.cpp:58
A single control point.
Definition ControlPoint.h:356
View that displays cubes in a QView-like way.
Definition CubeDnView.h:97
IO Handler for Isis Cubes.
Definition Cube.h:168
Definition Directory.h:271
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Base class for the Qisis tools.
Definition Tool.h:67
Definition ToolPad.h:14
Universal Ground Map.
Definition UniversalGroundMap.h:69
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16