File failed to load: https://isis.astrogeology.usgs.gov/3.9.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Developer Reference
MosaicControlNetTool.h
Go to the documentation of this file.
1 #ifndef MosaicControlNetTool_h
2 #define MosaicControlNetTool_h
3 
4 #include "MosaicTool.h"
5 
6 class QDialog;
7 class QLabel;
8 class QPushButton;
9 
10 namespace Isis {
11  class ControlNet;
12  class ControlNetGraphicsItem;
13  class ControlPoint;
14 // class ControlPointEdit;
15  class Image;
16  class ImageList;
17 
75  Q_OBJECT
76 
77  public:
95  };
97  static const int NUM_MOVEMENT_COLOR_SOURCE_VALUES = 4;
98 
101 
102  void addToMenu(QMenu *menu);
103 
104  PvlObject toPvl() const;
105  void fromPvl(const PvlObject &obj);
106  QString projectPvlObjectName() const;
107 
110 
111  int maxMovementColorMeasureCount() const;
112  double maxMovementColorResidualMagnitude() const;
113 
114  static QString toString(MovementColorSource);
116 
117  signals:
118  void modifyControlPoint(ControlPoint *controlPoint);
119  void deleteControlPoint(ControlPoint *controlPoint);
120  void createControlPoint(double latitude, double longitude);
121 
123  void deleteControlPoint(QString controlPointId);
124 
125  public slots:
126  void loadNetwork();
127  void rebuildPointGraphics();
128  void displayNewControlPoint(QString pointId);
129  void displayChangedControlPoint(QString pointId);
131 
132  protected:
135  void mouseButtonRelease(QPointF, Qt::MouseButton s);
136 
137  private slots:
138  void configMovement();
139  void updateTool();
140  void openControlNet();
141  void displayControlNet();
142  void displayConnectivity();
143  void closeNetwork();
144  void randomizeColors();
145 
146  void objectDestroyed(QObject *);
147 
148  private:
149  void createDialog();
150 
151  Image *takeImage(QString sn, ImageList &images);
152 
153  QPushButton *m_loadControlNetButton;
154  QPushButton *m_displayControlNetButton;
155  QPushButton *m_displayConnectivity;
156  QPushButton *m_configMovement;
157  QPushButton *m_closeNetwork;
158  QPushButton *m_randomizeColors;
159  QAction *m_connectivity;
160  ControlNet *m_controlNet;
161  ControlNetGraphicsItem *m_controlNetGraphics;
162  QLabel *m_controlNetFileLabel;
163  QString m_controlNetFile;
164 // ControlPointEdit *m_pointEditor;
165 
167  MovementColorSource m_movementArrowColorSource;
169  int m_measureCount;
171  double m_residualMagnitude;
172  };
173 };
174 
175 #endif
//TODO: Remove debug printout & comment // 2016-08-25 Tracie Sucharski - Checking Directory pointer f...
Definition: MosaicControlNetTool.h:74
void loadNetwork()
Load m_controlNetFile into memory - this will re-load the network if it's already open...
Definition: MosaicControlNetTool.cpp:610
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
void displayUponControlPointDeletion()
Definition: MosaicControlNetTool.cpp:493
MovementColorSource movementArrowColorSource() const
Get the current setting for the movement arrows.
Definition: MosaicControlNetTool.cpp:243
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
void mouseButtonRelease(QPointF, Qt::MouseButton s)
Definition: MosaicControlNetTool.cpp:673
double maxMovementColorResidualMagnitude() const
Get the current max.
Definition: MosaicControlNetTool.cpp:265
Show movement arrows colored by measure count.
Definition: MosaicControlNetTool.h:92
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicControlNetTool.cpp:327
Base class for the MosaicTools.
Definition: MosaicTool.h:37
void displayChangedControlPoint(QString pointId)
Definition: MosaicControlNetTool.cpp:478
void fromPvl(const PvlObject &obj)
Definition: MosaicControlNetTool.cpp:183
void deleteControlPoint(ControlPoint *controlPoint)
void rebuildPointGraphics()
Slot used to re-create the graphics items that depict the control points.
Definition: MosaicControlNetTool.cpp:471
a control network
Definition: ControlNet.h:271
int maxMovementColorMeasureCount() const
Get the current measure count to become fully colored.
Definition: MosaicControlNetTool.cpp:251
Show movement arrows colored by residual magnitude.
Definition: MosaicControlNetTool.h:94
~MosaicControlNetTool()
Definition: MosaicControlNetTool.cpp:129
PvlObject toPvl() const
Definition: MosaicControlNetTool.cpp:162
static QString toString(MovementColorSource)
Convert a MovementColorSource to a string for serialization purposes.
Definition: MosaicControlNetTool.cpp:278
QString projectPvlObjectName() const
Definition: MosaicControlNetTool.cpp:209
Control Network Display on Mosaic Scene.
Definition: ControlNetGraphicsItem.h:37
A single control point.
Definition: ControlPoint.h:369
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
MosaicControlNetTool(MosaicSceneWidget *)
MosaicControlNetTool constructor.
Definition: MosaicControlNetTool.cpp:48
void displayNewControlPoint(QString pointId)
Definition: MosaicControlNetTool.cpp:484
void controlPointSelected(ControlPoint *)
static const int NUM_MOVEMENT_COLOR_SOURCE_VALUES
This is the count of possible values of MovementColorSource (useful for loops).
Definition: MosaicControlNetTool.h:97
void setMovementArrowColorSource(MovementColorSource, int, double)
Define how the movement arrows should be drawn.
Definition: MosaicControlNetTool.cpp:226
void modifyControlPoint(ControlPoint *controlPoint)
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Show black movement arrows.
Definition: MosaicControlNetTool.h:90
void createControlPoint(double latitude, double longitude)
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
MovementColorSource
This enum defines how to draw the movement arrows (arrows from CP A Priori location to adjusted locat...
Definition: MosaicControlNetTool.h:86
Do not show movement arrows.
Definition: MosaicControlNetTool.h:88
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition: MosaicControlNetTool.cpp:344
static MovementColorSource fromMovementColorSourceString(QString)
Convert a string back to a MovementColorSource (for serialization purposes).
Definition: MosaicControlNetTool.cpp:306
void addToMenu(QMenu *menu)

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/12/2023 23:24:30