Isis 3 Programmer Reference
|
Base class for the MosaicTools. More...
#include <MosaicTool.h>
Public Slots | |
void | activate (bool) |
Activates the tool. | |
Signals | |
void | activated (bool) |
Public Member Functions | |
MosaicTool (MosaicSceneWidget *) | |
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 () |
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. | |
virtual QWidget * | getToolBarWidget () |
This method returns a widget that will be put in a tool bar when the tool is activated. | |
Private Member Functions | |
void | enableToolBar () |
Enables entire tool bar. | |
void | disableToolBar () |
Disables entire tool bar. | |
Private Attributes | |
bool | p_active |
Is the tool active? | |
MosaicSceneWidget * | p_widget |
QAction * | p_primaryAction |
QAction * | p_toolBarAction |
Base class for the MosaicTools.
2011-04-14 Steven Lambright Refactored to use the new MosaicSceneWidget
2011-09-27 Steven Lambright - No longer produces errors when given a NULL MosaicSceneWidget.
2011-11-04 Steven Lambright - Added getViewActions().
Definition at line 37 of file MosaicTool.h.
Isis::MosaicTool::MosaicTool | ( | MosaicSceneWidget * | scene | ) |
Definition at line 16 of file MosaicTool.cpp.
Isis::MosaicTool::~MosaicTool | ( | ) |
Definition at line 43 of file MosaicTool.cpp.
|
slot |
|
inlinevirtual |
Definition at line 63 of file MosaicTool.h.
|
virtual |
Definition at line 70 of file MosaicTool.cpp.
|
virtual |
Definition at line 52 of file MosaicTool.cpp.
|
private |
Disables entire tool bar.
Definition at line 174 of file MosaicTool.cpp.
|
private |
Enables entire tool bar.
Definition at line 185 of file MosaicTool.cpp.
|
virtual |
Reimplemented in Isis::MosaicGridTool.
Definition at line 101 of file MosaicTool.cpp.
QPixmap Isis::MosaicTool::getIcon | ( | QString | iconName | ) | const |
returns the path to the icon directory.
Definition at line 115 of file MosaicTool.cpp.
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::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, Isis::MosaicGridTool, Isis::MosaicPanTool, Isis::MosaicSelectTool, Isis::MosaicTrackTool, and Isis::MosaicZoomTool.
|
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::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, Isis::MosaicGridTool, and Isis::MosaicZoomTool.
Definition at line 192 of file MosaicTool.cpp.
Definition at line 84 of file MosaicTool.cpp.
|
inlineprotected |
Definition at line 96 of file MosaicTool.h.
|
inline |
Returns the activeness of this toool.
Definition at line 50 of file MosaicTool.h.
References p_active.
Referenced by Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicControlNetTool::updateTool(), Isis::MosaicFindTool::updateTool(), Isis::MosaicSelectTool::updateTool(), and Isis::MosaicZoomTool::updateTool().
|
protectedvirtual |
Definition at line 130 of file MosaicTool.cpp.
|
protectedvirtual |
Definition at line 134 of file MosaicTool.cpp.
|
protectedvirtual |
Definition at line 126 of file MosaicTool.cpp.
|
inlineprotectedvirtual |
Definition at line 81 of file MosaicTool.h.
|
inlineprotectedvirtual |
Definition at line 83 of file MosaicTool.h.
|
protectedvirtual |
Definition at line 122 of file MosaicTool.cpp.
|
protectedvirtual |
Definition at line 139 of file MosaicTool.cpp.
|
virtual |
Reimplemented in Isis::MosaicGridTool.
Definition at line 110 of file MosaicTool.cpp.
|
inlineprotectedvirtual |
Reimplemented in Isis::MosaicZoomTool.
Definition at line 88 of file MosaicTool.h.
|
protected |
Definition at line 165 of file MosaicTool.cpp.
|
virtual |
Reimplemented in Isis::MosaicGridTool.
Definition at line 89 of file MosaicTool.cpp.
|
inlineprotectedvirtualslot |
Definition at line 80 of file MosaicTool.h.
|
private |
|
private |
Definition at line 124 of file MosaicTool.h.
|
private |
Definition at line 125 of file MosaicTool.h.
|
private |
Definition at line 122 of file MosaicTool.h.