Isis 3 Programmer Reference
MosaicControlNetTool.h
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 
122  void controlPointSelected(ControlPoint *);
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);
130  void displayUponControlPointDeletion();
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 
172  };
173 };
174 
175 #endif
Isis::MosaicControlNetTool::maxMovementColorMeasureCount
int maxMovementColorMeasureCount() const
Get the current measure count to become fully colored.
Definition: MosaicControlNetTool.cpp:251
Isis::MosaicControlNetTool::MeasureCount
@ MeasureCount
Show movement arrows colored by measure count.
Definition: MosaicControlNetTool.h:92
QWidget
Isis::MosaicControlNetTool::m_measureCount
int m_measureCount
This is the measure count at which we start coloring the movement arrows.
Definition: MosaicControlNetTool.h:169
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::MosaicControlNetTool::NoMovement
@ NoMovement
Do not show movement arrows.
Definition: MosaicControlNetTool.h:88
Isis::MosaicControlNetTool::closeNetwork
void closeNetwork()
Close the open network, if one is open.
Definition: MosaicControlNetTool.cpp:503
Isis::MosaicControlNetTool::openControlNet
void openControlNet()
Loads a control net from a file.
Definition: MosaicControlNetTool.cpp:568
Isis::MosaicControlNetTool::MovementColorSource
MovementColorSource
This enum defines how to draw the movement arrows (arrows from CP A Priori location to adjusted locat...
Definition: MosaicControlNetTool.h:86
QMenu
Isis::MosaicControlNetTool::displayConnectivity
void displayConnectivity()
Displays the connectivity of Control Points.
Definition: MosaicControlNetTool.cpp:423
Isis::MosaicControlNetTool::maxMovementColorResidualMagnitude
double maxMovementColorResidualMagnitude() const
Get the current max.
Definition: MosaicControlNetTool.cpp:265
Isis::MosaicControlNetTool::getPrimaryAction
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicControlNetTool.cpp:327
Isis::MosaicControlNetTool::loadNetwork
void loadNetwork()
Load m_controlNetFile into memory - this will re-load the network if it's already open.
Definition: MosaicControlNetTool.cpp:610
Isis::MosaicControlNetTool::MosaicControlNetTool
MosaicControlNetTool(MosaicSceneWidget *)
MosaicControlNetTool constructor.
Definition: MosaicControlNetTool.cpp:48
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::MosaicControlNetTool::movementArrowColorSource
MovementColorSource movementArrowColorSource() const
Get the current setting for the movement arrows.
Definition: MosaicControlNetTool.cpp:243
Isis::MosaicControlNetTool::updateTool
void updateTool()
This slot opens and reopens this tool properly.
Definition: MosaicControlNetTool.cpp:392
Isis::MosaicTool
Base class for the MosaicTools.
Definition: MosaicTool.h:37
Isis::MosaicControlNetTool::NUM_MOVEMENT_COLOR_SOURCE_VALUES
static const int NUM_MOVEMENT_COLOR_SOURCE_VALUES
This is the count of possible values of MovementColorSource (useful for loops).
Definition: MosaicControlNetTool.h:97
Isis::MosaicControlNetTool::rebuildPointGraphics
void rebuildPointGraphics()
Slot used to re-create the graphics items that depict the control points.
Definition: MosaicControlNetTool.cpp:471
Isis::MosaicControlNetTool::m_residualMagnitude
double m_residualMagnitude
This is the residual magnitude at which we coloring the movement arrows.
Definition: MosaicControlNetTool.h:171
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::MosaicControlNetTool::setMovementArrowColorSource
void setMovementArrowColorSource(MovementColorSource, int, double)
Define how the movement arrows should be drawn.
Definition: MosaicControlNetTool.cpp:226
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::MosaicControlNetTool::ResidualMagnitude
@ ResidualMagnitude
Show movement arrows colored by residual magnitude.
Definition: MosaicControlNetTool.h:94
Isis::MosaicControlNetTool::m_movementArrowColorSource
MovementColorSource m_movementArrowColorSource
This defines the drawing mode of the apriori to adjusted arrows.
Definition: MosaicControlNetTool.h:167
Isis::ControlNetGraphicsItem
Control Network Display on Mosaic Scene.
Definition: ControlNetGraphicsItem.h:37
Isis::MosaicControlNetTool::fromMovementColorSourceString
static MovementColorSource fromMovementColorSourceString(QString)
Convert a string back to a MovementColorSource (for serialization purposes).
Definition: MosaicControlNetTool.cpp:306
Isis::MosaicControlNetTool
//TODO: Remove debug printout & comment // 2016-08-25 Tracie Sucharski - Checking Directory pointer f...
Definition: MosaicControlNetTool.h:74
Isis::MosaicControlNetTool::getToolBarWidget
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition: MosaicControlNetTool.cpp:344
Isis::MosaicControlNetTool::toString
static QString toString(MovementColorSource)
Convert a MovementColorSource to a string for serialization purposes.
Definition: MosaicControlNetTool.cpp:278
Isis::MosaicControlNetTool::displayControlNet
void displayControlNet()
The user toggled the cnet visibility - re-sync the graphics item visibility with the action.
Definition: MosaicControlNetTool.cpp:413
QDialog
QObject
QAction
Isis::MosaicControlNetTool::configMovement
void configMovement()
Bring up a movement arrow configuration dialog.
Definition: MosaicControlNetTool.cpp:381
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicControlNetTool::NoColor
@ NoColor
Show black movement arrows.
Definition: MosaicControlNetTool.h:90
Isis::MosaicControlNetTool::objectDestroyed
void objectDestroyed(QObject *)
An object was destroyed, NULL it out.
Definition: MosaicControlNetTool.cpp:544