|
Isis 3.0 Developer's Reference (API) |
Home |
This widget encompasses the entire mosaic scene and is what you want to use from an application's point of view. More...
#include <MosaicSceneWidget.h>
Inherits QWidget.
Public Slots | |
| void | addCubes (QList< CubeDisplayProperties * >) |
| void | refit () |
| This method refits t:he items in the graphics view. | |
| void | setCubesSelectable (bool) |
| void | setProjection (Projection *) |
| This method takes ownership of proj. | |
| void | setOutlineRect (QRectF) |
Signals | |
| void | mouseEnter () |
| void | mouseMove (QPointF) |
| void | mouseLeave () |
| void | mouseDoubleClick (QPointF) |
| void | mouseButtonPress (QPointF, Qt::MouseButton s) |
| void | mouseButtonRelease (QPointF, Qt::MouseButton s) |
| void | mouseWheel (QPointF, int delta) |
| void | projectionChanged (Projection *) |
| void | rubberBandComplete (QRectF r, Qt::MouseButton s) |
| void | visibleRectChanged (QRectF) |
| void | cubesChanged () |
Public Member Functions | |
| MosaicSceneWidget (QStatusBar *status, QWidget *parent=0) | |
| virtual | ~MosaicSceneWidget () |
| MosaicGraphicsView * | getView () const |
| QGraphicsScene * | getScene () const |
| Projection * | getProjection () const |
| QList< MosaicSceneItem * > | allMosaicSceneItems () |
| void | addTo (QMenu *menu) |
| void | addTo (ToolPad *toolPad) |
| void | addToPermanent (QToolBar *toolBar) |
| void | addTo (QToolBar *toolBar) |
| bool | cubesSelectable () const |
| void | enableRubberBand (bool) |
| void | blockSelectionChange (bool) |
| bool | userHasTools () const |
| QProgressBar * | getProgress () |
| PvlObject | toPvl () const |
| void | fromPvl (const PvlObject &) |
| Call this method after loading any cubes when loading a project. | |
| void | preloadFromPvl (const PvlObject &) |
| Call this method before loading any cubes when loading a project. | |
| QRectF | cubesBoundingRect () const |
| QStringList | cubeFileNames () |
| QList< CubeDisplayProperties * > | cubeDisplays () |
| QList< QAction * > | getExportActions () |
| QList< QAction * > | getViewActions () |
Static Public Member Functions | |
| static QWidget * | getControlNetHelp (QWidget *cnetToolContainer=NULL) |
| static QWidget * | getGridHelp (QWidget *gridToolContainer=NULL) |
| static QWidget * | getLongHelp (QWidget *mosaicSceneContainer=NULL) |
| static QWidget * | getMapHelp (QWidget *mapContainer=NULL) |
| static QWidget * | getPreviewHelp (QWidget *worldViewContainer=NULL) |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *obj, QEvent *ev) |
This widget encompasses the entire mosaic scene and is what you want to use from an application's point of view.
| Isis::MosaicSceneWidget::MosaicSceneWidget | ( | QStatusBar * | status, | |
| QWidget * | parent = 0 | |||
| ) |
References blockSelectionChange(), and getView().
| Isis::MosaicSceneWidget::~MosaicSceneWidget | ( | ) | [virtual] |
| void Isis::MosaicSceneWidget::addCubes | ( | QList< CubeDisplayProperties * > | cubes | ) | [slot] |
References cubesChanged(), Isis::IException::print(), refit(), and Isis::ProgressBar::setText().
| void Isis::MosaicSceneWidget::addTo | ( | QToolBar * | toolBar | ) |
| void Isis::MosaicSceneWidget::addTo | ( | ToolPad * | toolPad | ) |
References Isis::MosaicTool::addTo().
| void Isis::MosaicSceneWidget::addTo | ( | QMenu * | menu | ) |
References Isis::MosaicTool::addTo().
| void Isis::MosaicSceneWidget::addToPermanent | ( | QToolBar * | toolBar | ) |
References Isis::PvlContainer::FindKeyword(), and Isis::Projection::Mapping().
| QList<MosaicSceneItem *> Isis::MosaicSceneWidget::allMosaicSceneItems | ( | ) | [inline] |
| void Isis::MosaicSceneWidget::blockSelectionChange | ( | bool | block | ) |
References getScene().
Referenced by Isis::MosaicSceneItem::cubeDisplayChanged(), and MosaicSceneWidget().
| QList< CubeDisplayProperties * > Isis::MosaicSceneWidget::cubeDisplays | ( | ) |
References Isis::MosaicSceneItem::cubeDisplay().
| QStringList Isis::MosaicSceneWidget::cubeFileNames | ( | ) |
| QRectF Isis::MosaicSceneWidget::cubesBoundingRect | ( | ) | const |
| void Isis::MosaicSceneWidget::cubesChanged | ( | ) | [signal] |
Referenced by addCubes().
| bool Isis::MosaicSceneWidget::cubesSelectable | ( | ) | const [inline] |
| void Isis::MosaicSceneWidget::enableRubberBand | ( | bool | enable | ) |
Referenced by Isis::MosaicZoomTool::updateTool().
| bool Isis::MosaicSceneWidget::eventFilter | ( | QObject * | obj, | |
| QEvent * | ev | |||
| ) | [protected, virtual] |
| void Isis::MosaicSceneWidget::fromPvl | ( | const PvlObject & | project | ) |
Call this method after loading any cubes when loading a project.
| project | The project Pvl |
References Isis::MosaicSceneItem::cubeDisplay(), Isis::CubeDisplayProperties::fileName(), Isis::PvlObject::FindObject(), Isis::MosaicTool::fromPvl(), getView(), Isis::PvlObject::HasObject(), Isis::PvlContainer::Keywords(), Isis::MosaicTool::projectPvlObjectName(), and Isis::toDouble().
| QWidget * Isis::MosaicSceneWidget::getControlNetHelp | ( | QWidget * | cnetToolContainer = NULL |
) | [static] |
References Isis::MosaicTool::addTo().
Referenced by Isis::MosaicController::addExportActions().
References Isis::MosaicTool::addTo().
| QProgressBar * Isis::MosaicSceneWidget::getProgress | ( | ) |
| Projection* Isis::MosaicSceneWidget::getProjection | ( | ) | const [inline] |
Referenced by Isis::MosaicGridToolConfigDialog::applySettings(), Isis::MosaicFindTool::getUserGroundPoint(), Isis::GridGraphicsItem::GridGraphicsItem(), Isis::MosaicGridTool::latType(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicSceneItem::MosaicSceneItem(), Isis::MosaicFindTool::mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicGridToolConfigDialog::readSettings(), Isis::MosaicSceneItem::reproject(), Isis::MosaicGridTool::setLatExtents(), Isis::MosaicGridTool::setLonExtents(), Isis::MosaicTrackTool::updateLabels(), and Isis::MosaicAreaTool::userChangedBox().
| QGraphicsScene* Isis::MosaicSceneWidget::getScene | ( | ) | const [inline] |
Referenced by blockSelectionChange(), Isis::MosaicAreaTool::clearBox(), Isis::MosaicGridTool::clearGrid(), Isis::MosaicFindTool::clearPoint(), Isis::ControlNetGraphicsItem::ControlNetGraphicsItem(), Isis::MosaicGridTool::drawGrid(), eventFilter(), Isis::MosaicFindTool::getUserGroundPoint(), Isis::MosaicFindTool::mouseButtonRelease(), Isis::MosaicSceneItem::reproject(), setOutlineRect(), and Isis::MosaicAreaTool::userChangedBox().
| MosaicGraphicsView* Isis::MosaicSceneWidget::getView | ( | ) | const [inline] |
Referenced by addTo(), eventFilter(), fromPvl(), Isis::MosaicFindTool::getUserGroundPoint(), MosaicSceneWidget(), Isis::MosaicZoomTool::mouseWheel(), Isis::MosaicGridTool::onCubesChanged(), refit(), Isis::MosaicZoomTool::rubberBandComplete(), setOutlineRect(), toPvl(), Isis::MosaicZoomTool::updateResolutionBox(), Isis::MosaicZoomTool::updateTool(), Isis::MosaicSelectTool::updateTool(), Isis::MosaicPanTool::updateTool(), and Isis::MosaicAreaTool::userChangedBox().
References Isis::MosaicTool::getViewActions().
| void Isis::MosaicSceneWidget::mouseButtonPress | ( | QPointF | , | |
| Qt::MouseButton | s | |||
| ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseButtonRelease | ( | QPointF | , | |
| Qt::MouseButton | s | |||
| ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseDoubleClick | ( | QPointF | ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseEnter | ( | ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseLeave | ( | ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseMove | ( | QPointF | ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::mouseWheel | ( | QPointF | , | |
| int | delta | |||
| ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::preloadFromPvl | ( | const PvlObject & | project | ) |
Call this method before loading any cubes when loading a project.
| project | The project Pvl |
References Isis::PvlObject::FindGroup(), and setProjection().
Referenced by Isis::MosaicController::readProject().
| void Isis::MosaicSceneWidget::projectionChanged | ( | Projection * | ) | [signal] |
Referenced by setProjection().
| void Isis::MosaicSceneWidget::refit | ( | ) | [slot] |
This method refits t:he items in the graphics view.
References cubesBoundingRect(), and getView().
Referenced by addCubes(), setOutlineRect(), and Isis::MosaicZoomTool::zoomFit().
| void Isis::MosaicSceneWidget::rubberBandComplete | ( | QRectF | r, | |
| Qt::MouseButton | s | |||
| ) | [signal] |
Referenced by eventFilter().
| void Isis::MosaicSceneWidget::setCubesSelectable | ( | bool | selectable | ) | [slot] |
References Isis::MosaicSceneItem::scenePropertiesChanged().
Referenced by Isis::MosaicZoomTool::updateTool(), and Isis::MosaicPanTool::updateTool().
| void Isis::MosaicSceneWidget::setOutlineRect | ( | QRectF | outline | ) | [slot] |
References getScene(), getView(), and refit().
| void Isis::MosaicSceneWidget::setProjection | ( | Projection * | proj | ) | [slot] |
This method takes ownership of proj.
References Isis::PvlContainer::FindKeyword(), Isis::Projection::Mapping(), and projectionChanged().
Referenced by preloadFromPvl().
| PvlObject Isis::MosaicSceneWidget::toPvl | ( | ) | const |
References _FILEINFO_, Isis::MosaicSceneItem::cubeDisplay(), Isis::CubeDisplayProperties::fileName(), getView(), Isis::Projection::Mapping(), Isis::MosaicTool::projectPvlObjectName(), Isis::ReadWrite, Isis::PvlContainer::SetName(), Isis::MosaicTool::toPvl(), Isis::toString(), and Isis::IException::User.
Referenced by Isis::MosaicController::saveProject().
| bool Isis::MosaicSceneWidget::userHasTools | ( | ) | const [inline] |
Referenced by Isis::MosaicSceneItem::MosaicSceneItem().
| void Isis::MosaicSceneWidget::visibleRectChanged | ( | QRectF | ) | [signal] |