Isis Developer Reference
|
Base class for the MosaicTools. More...
#include <MosaicTool.h>
Public Slots | |
void | activate (bool) |
Activates the tool. More... | |
Signals | |
void | activated (bool) |
Public Member Functions | |
MosaicTool (MosaicSceneWidget *) | |
~MosaicTool () | |
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 () |
virtual PvlObject | toPvl () const |
virtual void | fromPvl (const PvlObject &obj) |
virtual QString | projectPvlObjectName () const |
Protected Slots | |
virtual void | updateTool () |
Protected Member Functions | |
virtual void | mouseEnter () |
virtual void | mouseMove (QPointF) |
virtual void | mouseLeave () |
virtual void | mouseDoubleClick (QPointF) |
virtual void | mouseButtonPress (QPointF, Qt::MouseButton s) |
virtual void | mouseButtonRelease (QPointF, Qt::MouseButton s) |
virtual void | mouseWheel (QPointF, int delta) |
virtual void | rubberBandComplete (QRectF r, Qt::MouseButton s) |
void | toolBarDestroyed (QObject *obj) |
MosaicSceneWidget * | getWidget () |
virtual QAction * | getPrimaryAction ()=0 |
This method returns an action that is used to activate this tool. More... | |
virtual QWidget * | getToolBarWidget () |
This method returns a widget that will be put in a tool bar when the tool is activated. More... | |
Base class for the MosaicTools.
Isis::MosaicTool::MosaicTool | ( | MosaicSceneWidget * | scene | ) |
Isis::MosaicTool::~MosaicTool | ( | ) |
|
slot |
|
signal |
Referenced by activate(), Isis::MosaicGridTool::getToolBarWidget(), and MosaicTool().
|
inlinevirtual |
|
virtual |
References getToolBarWidget(), and toolBarDestroyed().
|
virtual |
References activate(), Isis::ToolPad::addAction(), and getPrimaryAction().
|
virtual |
Reimplemented in Isis::MosaicGridTool, Isis::MosaicFindTool, Isis::MosaicControlNetTool, and Isis::MosaicAreaTool.
References _FILEINFO_, Isis::IException::Programmer, and projectPvlObjectName().
Referenced by Isis::MosaicSceneWidget::fromPvl().
QPixmap Isis::MosaicTool::getIcon | ( | QString | iconName | ) | const |
returns the path to the icon directory.
References Isis::FileName::expanded().
Referenced by Isis::MosaicAreaTool::getPrimaryAction(), Isis::MosaicControlNetTool::getPrimaryAction(), Isis::MosaicFindTool::getPrimaryAction(), Isis::MosaicGridTool::getPrimaryAction(), Isis::MosaicPanTool::getPrimaryAction(), Isis::MosaicSelectTool::getPrimaryAction(), Isis::MosaicZoomTool::getPrimaryAction(), and Isis::MosaicZoomTool::MosaicZoomTool().
|
protectedpure virtual |
This method returns an action that is used to activate this tool.
This method will only be called once so it can new the action without a problem.
Implemented in Isis::MosaicZoomTool, Isis::MosaicSelectTool, Isis::MosaicPanTool, Isis::MosaicGridTool, Isis::MosaicFindTool, Isis::MosaicControlNetTool, and Isis::MosaicAreaTool.
Referenced by addTo().
|
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 in Isis::MosaicZoomTool, Isis::MosaicGridTool, Isis::MosaicFindTool, Isis::MosaicControlNetTool, and Isis::MosaicAreaTool.
Referenced by addTo().
Reimplemented in Isis::MosaicZoomTool.
Referenced by Isis::MosaicSceneWidget::getViewActions().
|
inlineprotected |
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::MosaicControlNetTool::loadNetwork(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicControlNetTool::MosaicControlNetTool(), Isis::MosaicGridTool::MosaicGridTool(), Isis::MosaicTrackTool::MosaicTrackTool(), Isis::MosaicControlNetTool::mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), Isis::MosaicZoomTool::mouseWheel(), Isis::MosaicGridTool::onCubesChanged(), Isis::MosaicGridTool::onProjectionChanged(), Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicGridTool::sceneWidget(), Isis::MosaicGridTool::setLatExtents(), Isis::MosaicGridTool::setLonExtents(), Isis::MosaicTrackTool::updateLabels(), Isis::MosaicZoomTool::updateResolutionBox(), Isis::MosaicPanTool::updateTool(), Isis::MosaicSelectTool::updateTool(), Isis::MosaicZoomTool::updateTool(), Isis::MosaicAreaTool::userChangedBox(), and Isis::MosaicZoomTool::zoomFit().
|
inline |
Returns the activeness of this toool.
Referenced by Isis::MosaicSceneWidget::isControlNetToolActive(), Isis::MosaicControlNetTool::mouseButtonRelease(), Isis::MosaicZoomTool::mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicFindTool::updateTool(), Isis::MosaicPanTool::updateTool(), Isis::MosaicSelectTool::updateTool(), and Isis::MosaicZoomTool::updateTool().
|
protectedvirtual |
Referenced by MosaicTool().
|
protectedvirtual |
Reimplemented in Isis::MosaicFindTool, Isis::MosaicAreaTool, Isis::MosaicZoomTool, and Isis::MosaicControlNetTool.
Referenced by MosaicTool().
|
protectedvirtual |
Referenced by MosaicTool().
|
inlineprotectedvirtual |
Referenced by MosaicTool().
|
inlineprotectedvirtual |
Referenced by MosaicTool().
|
protectedvirtual |
Referenced by MosaicTool().
|
protectedvirtual |
Reimplemented in Isis::MosaicZoomTool.
Referenced by MosaicTool().
|
virtual |
Reimplemented in Isis::MosaicGridTool, Isis::MosaicFindTool, Isis::MosaicControlNetTool, and Isis::MosaicAreaTool.
Referenced by Isis::MosaicSceneWidget::fromPvl(), fromPvl(), Isis::MosaicSceneWidget::save(), Isis::MosaicSceneWidget::toPvl(), and toPvl().
|
inlineprotectedvirtual |
Reimplemented in Isis::MosaicZoomTool.
Referenced by MosaicTool().
|
virtual |
Reimplemented in Isis::MosaicGridTool, Isis::MosaicFindTool, Isis::MosaicControlNetTool, and Isis::MosaicAreaTool.
References _FILEINFO_, Isis::IException::Programmer, and projectPvlObjectName().
Referenced by Isis::MosaicSceneWidget::save(), and Isis::MosaicSceneWidget::toPvl().
|
inlineprotectedvirtualslot |
Referenced by MosaicTool().