Isis 3.0 Developer's Reference (API) |
Home |
//TODO: Remove debug printout & comment More...
#include <MosaicControlNetTool.h>
Inherits Isis::MosaicTool.
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 | activate (bool) |
Activates the tool. |
Signals | |
void | activated (bool) |
Public Member Functions | |
MosaicControlNetTool (MosaicSceneWidget *) | |
MosaicControlNetTool constructor. | |
~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. | |
MovementColorSource | movementArrowColorSource () const |
Get the current setting for the movement arrows. | |
int | maxMovementColorMeasureCount () const |
Get the current measure count to become fully colored. | |
double | maxMovementColorResidualMagnitude () const |
Get the current max. | |
bool | isActive () const |
Returns the activeness of this toool. | |
QPixmap | getIcon (QString iconName) const |
returns the path to the icon directory. | |
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. | |
static MovementColorSource | fromMovementColorSourceString (QString) |
Convert a string back to a MovementColorSource (for serialization purposes). |
Static Public Attributes | |
static const int | NUM_MOVEMENT_COLOR_SOURCE_VALUES = 4 |
This is the count of possible values of MovementColorSource (useful for loops). |
Protected Slots | |
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) |
Protected Member Functions | |
QAction * | getPrimaryAction () |
Adds the action to the toolpad. | |
QWidget * | getToolBarWidget () |
This method returns a widget that will be put in a tool bar when the tool is activated. | |
void | mouseButtonRelease (QPointF, Qt::MouseButton s) |
MosaicSceneWidget * | getWidget () |
//TODO: Remove debug printout & comment
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 | ) |
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 | ) |
|
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(), 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(), getPrimaryAction(), Isis::MosaicGridTool::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(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicGridTool::MosaicGridTool(), Isis::MosaicTrackTool::MosaicTrackTool(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::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::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().
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().
|
protectedvirtualslotinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtual |
Reimplemented from Isis::MosaicTool.
References Isis::MosaicTool::isActive().
|
protectedvirtualslotinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualslotinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualslotinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtualslotinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtualslotinherited |
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().
|
inlineprotectedvirtualslotinherited |
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().
|
protectedslotinherited |
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().