Isis 3 Developer Reference
|
//TODO: Remove debug printout & comment // 2016-08-25 Tracie Sucharski - Checking Directory pointer for IPCE code not ideal. More...
#include <MosaicControlNetTool.h>
Public Types | |
enum | MovementColorSource { NoMovement = 0, NoColor, MeasureCount, ResidualMagnitude } |
This enum defines how to draw the movement arrows (arrows from CP A Priori location to adjusted location). More... | |
Public Slots | |
void | loadNetwork () |
Load m_controlNetFile into memory - this will re-load the network if it's already open. More... | |
void | rebuildPointGraphics () |
Slot used to re-create the graphics items that depict the control points. More... | |
void | displayNewControlPoint (QString pointId) |
void | displayChangedControlPoint (QString pointId) |
void | displayUponControlPointDeletion () |
void | activate (bool) |
Activates the tool. More... | |
Signals | |
void | modifyControlPoint (ControlPoint *controlPoint) |
void | deleteControlPoint (ControlPoint *controlPoint) |
void | createControlPoint (double latitude, double longitude) |
void | controlPointSelected (ControlPoint *) |
void | deleteControlPoint (QString controlPointId) |
void | activated (bool) |
Public Member Functions | |
MosaicControlNetTool (MosaicSceneWidget *) | |
MosaicControlNetTool constructor. More... | |
~MosaicControlNetTool () | |
void | addToMenu (QMenu *menu) |
PvlObject | toPvl () const |
void | fromPvl (const PvlObject &obj) |
QString | projectPvlObjectName () const |
void | setMovementArrowColorSource (MovementColorSource, int, double) |
Define how the movement arrows should be drawn. More... | |
MovementColorSource | movementArrowColorSource () const |
Get the current setting for the movement arrows. More... | |
int | maxMovementColorMeasureCount () const |
Get the current measure count to become fully colored. More... | |
double | maxMovementColorResidualMagnitude () const |
Get the current max. More... | |
bool | isActive () const |
Returns the activeness of this toool. More... | |
QPixmap | getIcon (QString iconName) const |
returns the path to the icon directory. More... | |
virtual void | addTo (QMenu *menu) |
virtual void | addTo (ToolPad *toolPad) |
virtual void | addTo (QToolBar *toolBar) |
virtual QList< QAction * > | getViewActions () |
Static Public Member Functions | |
static QString | toString (MovementColorSource) |
Convert a MovementColorSource to a string for serialization purposes. More... | |
static MovementColorSource | fromMovementColorSourceString (QString) |
Convert a string back to a MovementColorSource (for serialization purposes). More... | |
Static Public Attributes | |
static const int | NUM_MOVEMENT_COLOR_SOURCE_VALUES = 4 |
This is the count of possible values of MovementColorSource (useful for loops). More... | |
Protected Member Functions | |
QAction * | getPrimaryAction () |
Adds the action to the toolpad. More... | |
QWidget * | getToolBarWidget () |
This method returns a widget that will be put in a tool bar when the tool is activated. More... | |
void | mouseButtonRelease (QPointF, Qt::MouseButton s) |
virtual void | mouseEnter () |
virtual void | mouseMove (QPointF) |
virtual void | mouseLeave () |
virtual void | mouseDoubleClick (QPointF) |
virtual void | mouseButtonPress (QPointF, Qt::MouseButton s) |
virtual void | mouseWheel (QPointF, int delta) |
virtual void | rubberBandComplete (QRectF r, Qt::MouseButton s) |
void | toolBarDestroyed (QObject *obj) |
MosaicSceneWidget * | getWidget () |
//TODO: Remove debug printout & comment // 2016-08-25 Tracie Sucharski - Checking Directory pointer for IPCE code not ideal.
Is there a better design? This might go away if we emit signals, which only IPCE classes would connect to. Handles Control Net displays
This enum defines how to draw the movement arrows (arrows from CP A Priori location to adjusted location).
These settings include whether the arrows are shown and how to color them.
NOTE: It's important to start at zero. Also, if you add to this enumeration, be sure to update NUM_MOVEMENT_COLOR_SOURCE_VALUES.
Isis::MosaicControlNetTool::MosaicControlNetTool | ( | MosaicSceneWidget * | scene | ) |
MosaicControlNetTool constructor.
parent |
References controlPointSelected(), Isis::MosaicTool::getWidget(), and NoMovement.
Isis::MosaicControlNetTool::~MosaicControlNetTool | ( | ) |
|
slotinherited |
Activates the tool.
on |
References Isis::MosaicTool::activated().
Referenced by Isis::MosaicTool::addTo().
|
signalinherited |
|
inlinevirtualinherited |
|
virtualinherited |
|
virtualinherited |
References Isis::MosaicTool::getToolBarWidget(), and Isis::MosaicTool::toolBarDestroyed().
void Isis::MosaicControlNetTool::addToMenu | ( | QMenu * | menu | ) |
|
signal |
Referenced by MosaicControlNetTool().
|
signal |
Referenced by mouseButtonRelease().
|
signal |
Referenced by mouseButtonRelease().
|
signal |
|
slot |
|
slot |
References Isis::ControlNetGraphicsItem::buildChildren().
|
slot |
|
static |
Convert a string back to a MovementColorSource (for serialization purposes).
References NoMovement, NUM_MOVEMENT_COLOR_SOURCE_VALUES, and toString().
Referenced by fromPvl().
|
virtual |
Reimplemented from Isis::MosaicTool.
References fromMovementColorSourceString(), Isis::PvlObject::hasKeyword(), loadNetwork(), Isis::toBool(), Isis::toDouble(), and Isis::toInt().
|
inherited |
returns the path to the icon directory.
References Isis::FileName::expanded().
Referenced by Isis::MosaicSelectTool::getPrimaryAction(), Isis::MosaicPanTool::getPrimaryAction(), Isis::MosaicZoomTool::getPrimaryAction(), Isis::MosaicAreaTool::getPrimaryAction(), Isis::MosaicFindTool::getPrimaryAction(), Isis::MosaicGridTool::getPrimaryAction(), getPrimaryAction(), and Isis::MosaicZoomTool::MosaicZoomTool().
|
protectedvirtual |
Adds the action to the toolpad.
toolpad |
Implements Isis::MosaicTool.
References Isis::MosaicTool::getIcon().
|
protectedvirtual |
This method returns a widget that will be put in a tool bar when the tool is activated.
This method will only be called once so it can new the widget without a problem.
Reimplemented from Isis::MosaicTool.
Reimplemented in Isis::MosaicZoomTool.
Referenced by Isis::MosaicSceneWidget::getViewActions().
|
inlineprotectedinherited |
Referenced by Isis::MosaicGridTool::autoGrid(), Isis::MosaicAreaTool::clearBox(), Isis::MosaicGridTool::clearGrid(), Isis::MosaicFindTool::clearPoint(), Isis::MosaicGridTool::domainMaxLon(), Isis::MosaicGridTool::domainMinLon(), Isis::MosaicGridTool::drawGrid(), Isis::MosaicGridTool::fromPvl(), Isis::MosaicGridTool::getToolBarWidget(), Isis::MosaicFindTool::getUserGroundPoint(), Isis::MosaicGridTool::latType(), loadNetwork(), Isis::MosaicGridTool::lonDomain(), MosaicControlNetTool(), Isis::MosaicGridTool::MosaicGridTool(), Isis::MosaicTrackTool::MosaicTrackTool(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), mouseButtonRelease(), Isis::MosaicZoomTool::mouseWheel(), Isis::MosaicGridTool::onCubesChanged(), Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicGridTool::sceneWidget(), Isis::MosaicGridTool::setLatExtents(), Isis::MosaicGridTool::setLonExtents(), Isis::MosaicTrackTool::updateLabels(), Isis::MosaicZoomTool::updateResolutionBox(), Isis::MosaicSelectTool::updateTool(), Isis::MosaicPanTool::updateTool(), Isis::MosaicZoomTool::updateTool(), Isis::MosaicAreaTool::userChangedBox(), and Isis::MosaicZoomTool::zoomFit().
|
inlineinherited |
Returns the activeness of this toool.
Referenced by Isis::MosaicSceneWidget::isControlNetToolActive(), Isis::MosaicZoomTool::mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), mouseButtonRelease(), Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicSelectTool::updateTool(), Isis::MosaicPanTool::updateTool(), Isis::MosaicZoomTool::updateTool(), and Isis::MosaicFindTool::updateTool().
|
slot |
Load m_controlNetFile into memory - this will re-load the network if it's already open.
References Isis::Project::activeControl(), Isis::Control::controlNet(), Isis::MosaicSceneWidget::directory(), Isis::MosaicTool::getWidget(), Isis::Directory::project(), setMovementArrowColorSource(), and Isis::IException::toString().
Referenced by Isis::Footprint2DView::enableControlNetTool(), and fromPvl().
int Isis::MosaicControlNetTool::maxMovementColorMeasureCount | ( | ) | const |
Get the current measure count to become fully colored.
This will return -1 if it's undefined.
Referenced by toPvl().
double Isis::MosaicControlNetTool::maxMovementColorResidualMagnitude | ( | ) | const |
Get the current max.
residual magnitude to become fully colored. This will return Null if it's undefined.
References Isis::IsSpecial(), and Isis::Null.
Referenced by toPvl().
|
signal |
Referenced by mouseButtonRelease().
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtual |
Reimplemented from Isis::MosaicTool.
References Isis::ImageList::append(), createControlPoint(), Isis::Angle::Degrees, deleteControlPoint(), Isis::ControlNetGraphicsItem::findClosestControlPoint(), Isis::MosaicSceneWidget::getProjection(), Isis::MosaicSceneWidget::getScene(), Isis::MosaicSceneWidget::getView(), Isis::MosaicTool::getWidget(), Isis::MosaicSceneItem::image(), Isis::MosaicTool::isActive(), Isis::TProjection::Latitude(), Isis::TProjection::Longitude(), modifyControlPoint(), Isis::Projection::projectionType(), Isis::TProjection::SetCoordinate(), and Isis::Projection::Triaxial.
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtualinherited |
Reimplemented in Isis::MosaicZoomTool.
Referenced by Isis::MosaicTool::MosaicTool().
MosaicControlNetTool::MovementColorSource Isis::MosaicControlNetTool::movementArrowColorSource | ( | ) | const |
Get the current setting for the movement arrows.
|
virtual |
Reimplemented from Isis::MosaicTool.
Referenced by toPvl().
|
slot |
Slot used to re-create the graphics items that depict the control points.
References Isis::ControlNetGraphicsItem::buildChildren().
|
inlineprotectedvirtualinherited |
Reimplemented in Isis::MosaicZoomTool.
Referenced by Isis::MosaicTool::MosaicTool().
void Isis::MosaicControlNetTool::setMovementArrowColorSource | ( | MovementColorSource | colorSource, |
int | maxMeasureCount, | ||
double | maxResidualMagnitude | ||
) |
Define how the movement arrows should be drawn.
This includes if movement arrows should be drawn, what criteria should be used, and how to stretch (where to transition colors) the arrows.
NOTE: This is just a quick implementation and is probably not designed correctly. This is subject to change.
colorSource | If and how to draw and color the arrows |
maxMeasureCount | The measure count to become fully colored |
maxResidualMagnitude | The max residual magnitude to become fully colored |
References MeasureCount, NoMovement, ResidualMagnitude, and Isis::ControlNetGraphicsItem::setArrowsVisible().
Referenced by loadNetwork().
|
protectedinherited |
Referenced by Isis::MosaicTool::addTo().
|
virtual |
Reimplemented from Isis::MosaicTool.
References maxMovementColorMeasureCount(), maxMovementColorResidualMagnitude(), Isis::Null, projectPvlObjectName(), toString(), and Isis::toString().
|
static |
Convert a MovementColorSource to a string for serialization purposes.
References MeasureCount, NoColor, NoMovement, and ResidualMagnitude.
Referenced by fromMovementColorSourceString(), and toPvl().
|
static |
This is the count of possible values of MovementColorSource (useful for loops).
Referenced by fromMovementColorSourceString().