Isis 3 Programmer Reference
|
This displays a box with a given distance from a point. More...
#include <MosaicAreaTool.h>
Public Slots | |
void | userChangedBox () |
void | clearBox () |
void | activate (bool) |
Activates the tool. | |
Signals | |
void | activated (bool) |
Public Member Functions | |
MosaicAreaTool (MosaicSceneWidget *) | |
MosaicAreaTool constructor. | |
void | addToMenu (QMenu *menu) |
Adds the pan action to the given menu. | |
PvlObject | toPvl () const |
void | fromPvl (const PvlObject &obj) |
QString | projectPvlObjectName () const |
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 () |
Protected Slots | |
virtual void | updateTool () |
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. | |
QWidget * | createToolBarWidget () |
Creates the widget to add to the tool bar. | |
void | mouseButtonRelease (QPointF, Qt::MouseButton) |
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 () |
Private Member Functions | |
QRectF | calcLatLonRange (QPointF centerLatLon, Distance size) |
Given a distance and a center lat,lon this will return the bounding lat,lon rect. | |
void | enableToolBar () |
Enables entire tool bar. | |
void | disableToolBar () |
Disables entire tool bar. | |
Private Attributes | |
QAction * | m_drawBox |
QLineEdit * | m_lonLineEdit |
Input for longitude. | |
QLineEdit * | m_latLineEdit |
Input for latitude. | |
QLineEdit * | m_areaLineEdit |
Input for latitude. | |
QGraphicsPolygonItem * | m_box |
QAction * | m_action |
bool | p_active |
Is the tool active? | |
MosaicSceneWidget * | p_widget |
QAction * | p_primaryAction |
QAction * | p_toolBarAction |
This displays a box with a given distance from a point.
2011-09-27 Steven Lambright - Improved user documentation
2012-04-16 Jeannie Backer - Added forward declaration for PvlObject. Added #include for PvlKeyword and PvlObject classes in implementation file.
2016-05-18 Ian Humphrey - Explicity made bounding lines cosmetic so that they always appear as 1 pixel wide on screen (Qt4 to Qt5).
Definition at line 28 of file MosaicAreaTool.h.
Isis::MosaicAreaTool::MosaicAreaTool | ( | MosaicSceneWidget * | scene | ) |
MosaicAreaTool constructor.
parent |
Definition at line 35 of file MosaicAreaTool.cpp.
References m_areaLineEdit, m_latLineEdit, and m_lonLineEdit.
|
slotinherited |
|
inlinevirtualinherited |
Definition at line 63 of file MosaicTool.h.
|
virtualinherited |
Definition at line 70 of file MosaicTool.cpp.
|
virtualinherited |
Definition at line 52 of file MosaicTool.cpp.
void Isis::MosaicAreaTool::addToMenu | ( | QMenu * | menu | ) |
Adds the pan action to the given menu.
menu |
Definition at line 287 of file MosaicAreaTool.cpp.
|
private |
Given a distance and a center lat,lon this will return the bounding lat,lon rect.
The distance is the distance across the entire rectangle (i.e. width and height).
Definition at line 387 of file MosaicAreaTool.cpp.
References calcLatLonRange(), Isis::Angle::Degrees, Isis::Distance::Meters, and Isis::Angle::Radians.
Referenced by calcLatLonRange().
|
slot |
Definition at line 370 of file MosaicAreaTool.cpp.
|
protected |
Creates the widget to add to the tool bar.
parent |
Definition at line 337 of file MosaicAreaTool.cpp.
|
privateinherited |
Disables entire tool bar.
Definition at line 174 of file MosaicTool.cpp.
|
privateinherited |
Enables entire tool bar.
Definition at line 185 of file MosaicTool.cpp.
|
virtual |
Reimplemented from Isis::MosaicTool.
Definition at line 306 of file MosaicAreaTool.cpp.
|
inherited |
returns the path to the icon directory.
Definition at line 115 of file MosaicTool.cpp.
References Isis::FileName::expanded().
Referenced by getPrimaryAction(), Isis::MosaicControlNetTool::getPrimaryAction(), Isis::MosaicFindTool::getPrimaryAction(), Isis::MosaicGridTool::getPrimaryAction(), Isis::MosaicPanTool::getPrimaryAction(), Isis::MosaicSelectTool::getPrimaryAction(), Isis::MosaicZoomTool::getPrimaryAction(), and Isis::MosaicZoomTool::MosaicZoomTool().
|
protectedvirtual |
Adds the action to the toolpad.
toolpad |
Implements Isis::MosaicTool.
Definition at line 220 of file MosaicAreaTool.cpp.
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.
Definition at line 238 of file MosaicAreaTool.cpp.
References m_areaLineEdit, m_latLineEdit, and m_lonLineEdit.
Definition at line 84 of file MosaicTool.cpp.
|
inlineprotectedinherited |
Definition at line 96 of file MosaicTool.h.
|
inlineinherited |
Returns the activeness of this toool.
Definition at line 50 of file MosaicTool.h.
References Isis::MosaicTool::p_active.
Referenced by Isis::MosaicZoomTool::rubberBandComplete(), Isis::MosaicControlNetTool::updateTool(), Isis::MosaicFindTool::updateTool(), Isis::MosaicSelectTool::updateTool(), and Isis::MosaicZoomTool::updateTool().
|
protectedvirtualinherited |
Definition at line 130 of file MosaicTool.cpp.
|
protectedvirtual |
Reimplemented from Isis::MosaicTool.
Definition at line 343 of file MosaicAreaTool.cpp.
|
protectedvirtualinherited |
Definition at line 126 of file MosaicTool.cpp.
|
inlineprotectedvirtualinherited |
Definition at line 81 of file MosaicTool.h.
|
inlineprotectedvirtualinherited |
Definition at line 83 of file MosaicTool.h.
|
protectedvirtualinherited |
Definition at line 122 of file MosaicTool.cpp.
|
protectedvirtualinherited |
Definition at line 139 of file MosaicTool.cpp.
|
virtual |
Reimplemented from Isis::MosaicTool.
Definition at line 324 of file MosaicAreaTool.cpp.
|
inlineprotectedvirtualinherited |
Reimplemented in Isis::MosaicZoomTool.
Definition at line 88 of file MosaicTool.h.
|
protectedinherited |
Definition at line 165 of file MosaicTool.cpp.
|
virtual |
Reimplemented from Isis::MosaicTool.
Definition at line 292 of file MosaicAreaTool.cpp.
|
inlineprotectedvirtualslotinherited |
Definition at line 80 of file MosaicTool.h.
|
slot |
Definition at line 52 of file MosaicAreaTool.cpp.
|
private |
Definition at line 57 of file MosaicAreaTool.h.
|
private |
Input for latitude.
Definition at line 55 of file MosaicAreaTool.h.
Referenced by getToolBarWidget(), and MosaicAreaTool().
|
private |
Definition at line 56 of file MosaicAreaTool.h.
|
private |
Definition at line 52 of file MosaicAreaTool.h.
|
private |
Input for latitude.
Definition at line 54 of file MosaicAreaTool.h.
Referenced by getToolBarWidget(), and MosaicAreaTool().
|
private |
Input for longitude.
Definition at line 53 of file MosaicAreaTool.h.
Referenced by getToolBarWidget(), and MosaicAreaTool().
|
privateinherited |
Is the tool active?
Definition at line 120 of file MosaicTool.h.
Referenced by Isis::MosaicTool::isActive().
|
privateinherited |
Definition at line 124 of file MosaicTool.h.
|
privateinherited |
Definition at line 125 of file MosaicTool.h.
|
privateinherited |
Definition at line 122 of file MosaicTool.h.