Isis 3.0
Home
Isis::MosaicSceneWidget Class Reference

This widget encompasses the entire mosaic scene. More...

#include <MosaicSceneWidget.h>

Inherits QWidget.

Public Slots

void addImages (ImageList)
 
void removeImages (ImageList)
 
void refit ()
 This method refits t:he items in the graphics view. More...
 
void setCubesSelectable (bool)
 
void setProjection (Projection *)
 This method takes ownership of proj. More...
 
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 ()
 
void queueSelectionChanged ()
 
void modifyControlPoint (ControlPoint *controlPoint)
 
void deleteControlPoint (ControlPoint *controlPoint)
 
void createControlPoint (double latitude, double longitude)
 
void controlPointSelected (ControlPoint *)
 
void controlPointChanged (QString pointId)
 
void controlPointAdded (QString pointId)
 
void deleteControlPoint (QString pointId)
 
void controlPointDeleted ()
 

Public Member Functions

 MosaicSceneWidget (QStatusBar *status, bool showTools, bool internalizeToolBarsAndProgress, Directory *directory, QWidget *parent=0)
 Create a scene widget. More...
 
virtual ~MosaicSceneWidget ()
 
MosaicGraphicsViewgetView () const
 
QGraphicsScenegetScene () const
 
ProjectiongetProjection () const
 
QList< MosaicSceneItem * > allMosaicSceneItems ()
 
void addTo (QMenu *menu)
 
void addTo (ToolPad *toolPad)
 
void addToPermanent (QToolBar *toolBar)
 
void addTo (QToolBar *toolBar)
 
bool contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 This is called by MosaicGraphicsScene::contextMenuEvent. More...
 
MosaicSceneItemcubeToMosaic (Image *)
 
bool cubesSelectable () const
 
void enableRubberBand (bool)
 
bool blockSelectionChange (bool)
 
bool userHasTools () const
 
QProgressBargetProgress ()
 
PvlObject toPvl () const
 
void fromPvl (const PvlObject &)
 Call this method after loading any cubes when loading a project. More...
 
void load (XmlStackedHandlerReader *xmlReader)
 
void save (QXmlStreamWriter &stream, Project *project, FileName newProjectRoot) const
 
QRectF cubesBoundingRect () const
 
QStringList cubeFileNames ()
 
Directorydirectory () const
 
ImageList images ()
 
ImageList selectedImages ()
 Returns a list of all the cubes selected in the scene. More...
 
QList< QAction * > getExportActions ()
 
QList< QAction * > getViewActions ()
 
QList< QAction * > supportedActions (ImageList *)
 Get a list of actions this scene can perform given "images". More...
 
double moveDownOne (MosaicSceneItem *)
 
double moveDownOne (Image *)
 
QList< double > moveDownOne (ImageList *)
 
double moveToBottom (MosaicSceneItem *)
 This doesn't compress the Z values - the original Z values of this scene item is guaranteed to be empty after this operation. More...
 
double moveToBottom (Image *)
 This doesn't compress the Z values - the original Z value of this image is guaranteed to be empty after this operation. More...
 
QList< double > moveToBottom (ImageList *)
 This doesn't compress the Z values - the original Z values of these images are guaranteed to be empty after this operation. More...
 
double moveUpOne (MosaicSceneItem *)
 
double moveUpOne (Image *)
 
QList< double > moveUpOne (ImageList *)
 
double moveToTop (MosaicSceneItem *)
 This doesn't compress the Z values - the original Z values of this scene item is guaranteed to be empty after this operation. More...
 
double moveToTop (Image *)
 This doesn't compress the Z values - the original Z value of this image is guaranteed to be empty after this operation. More...
 
QList< double > moveToTop (ImageList *)
 This doesn't compress the Z values - the original Z values of these images are guaranteed to be empty after this operation. More...
 
double moveZ (MosaicSceneItem *sceneItem, double newZ, bool newZValueMightExist=true)
 This method moves the given scene item to the given Z value. More...
 
double moveZ (Image *image, double newZ, bool newZValueMightExist=true)
 
template<typename DataType >
QList< QAction * > supportedActions (DataType)
 Return an empty list of actions for unknown data types. More...
 
bool isControlNetToolActive ()
 

Static Public Member Functions

static QWidgetgetControlNetHelp (QWidget *cnetToolContainer=NULL)
 
static QWidgetgetGridHelp (QWidget *gridToolContainer=NULL)
 
static QWidgetgetLongHelp (QWidget *mosaicSceneContainer=NULL)
 
static QWidgetgetMapHelp (QWidget *mapContainer=NULL)
 
static QWidgetgetPreviewHelp (QWidget *worldViewContainer=NULL)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *ev)
 

Detailed Description

This widget encompasses the entire mosaic scene.

This widget is a self-contained 2D footprint view using Qt's graphics scene/view framework.

Author
????-??-?? Stacy Alley

Constructor & Destructor Documentation

Isis::MosaicSceneWidget::MosaicSceneWidget ( QStatusBar *  status,
bool  showTools,
bool  internalizeToolBarsAndProgress,
Directory directory,
QWidget parent = 0 
)
Isis::MosaicSceneWidget::~MosaicSceneWidget ( )
virtual

Member Function Documentation

void Isis::MosaicSceneWidget::addImages ( ImageList  images)
slot
void Isis::MosaicSceneWidget::addTo ( QMenu *  menu)
void Isis::MosaicSceneWidget::addTo ( ToolPad toolPad)
void Isis::MosaicSceneWidget::addTo ( QToolBar toolBar)
void Isis::MosaicSceneWidget::addToPermanent ( QToolBar toolBar)
QList<MosaicSceneItem *> Isis::MosaicSceneWidget::allMosaicSceneItems ( )
inline
bool Isis::MosaicSceneWidget::blockSelectionChange ( bool  block)
bool Isis::MosaicSceneWidget::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
void Isis::MosaicSceneWidget::controlPointAdded ( QString  pointId)
signal

Referenced by MosaicSceneWidget().

void Isis::MosaicSceneWidget::controlPointChanged ( QString  pointId)
signal
void Isis::MosaicSceneWidget::controlPointDeleted ( )
signal
void Isis::MosaicSceneWidget::controlPointSelected ( ControlPoint _t1)
signal
void Isis::MosaicSceneWidget::createControlPoint ( double  latitude,
double  longitude 
)
signal

Referenced by MosaicSceneWidget().

QStringList Isis::MosaicSceneWidget::cubeFileNames ( )
void Isis::MosaicSceneWidget::cubesChanged ( )
signal

Referenced by addImages().

bool Isis::MosaicSceneWidget::cubesSelectable ( ) const
inline
void Isis::MosaicSceneWidget::deleteControlPoint ( ControlPoint controlPoint)
signal

Referenced by MosaicSceneWidget().

void Isis::MosaicSceneWidget::deleteControlPoint ( QString  pointId)
signal
Directory * Isis::MosaicSceneWidget::directory ( ) const
void Isis::MosaicSceneWidget::enableRubberBand ( bool  enable)
bool Isis::MosaicSceneWidget::eventFilter ( QObject obj,
QEvent *  ev 
)
protectedvirtual
void Isis::MosaicSceneWidget::fromPvl ( const PvlObject project)
QWidget * Isis::MosaicSceneWidget::getControlNetHelp ( QWidget cnetToolContainer = NULL)
static
QList< QAction * > Isis::MosaicSceneWidget::getExportActions ( )
QWidget * Isis::MosaicSceneWidget::getGridHelp ( QWidget gridToolContainer = NULL)
static
QWidget * Isis::MosaicSceneWidget::getLongHelp ( QWidget mosaicSceneContainer = NULL)
static
QWidget * Isis::MosaicSceneWidget::getMapHelp ( QWidget mapContainer = NULL)
static
QWidget * Isis::MosaicSceneWidget::getPreviewHelp ( QWidget worldViewContainer = NULL)
static
QProgressBar * Isis::MosaicSceneWidget::getProgress ( )
QList< QAction * > Isis::MosaicSceneWidget::getViewActions ( )
ImageList Isis::MosaicSceneWidget::images ( )
bool Isis::MosaicSceneWidget::isControlNetToolActive ( )
void Isis::MosaicSceneWidget::load ( XmlStackedHandlerReader xmlReader)
void Isis::MosaicSceneWidget::modifyControlPoint ( ControlPoint controlPoint)
signal

Referenced by MosaicSceneWidget().

void Isis::MosaicSceneWidget::mouseButtonPress ( QPointF  _t1,
Qt::MouseButton  s 
)
signal

Referenced by eventFilter().

void Isis::MosaicSceneWidget::mouseButtonRelease ( QPointF  _t1,
Qt::MouseButton  s 
)
signal

Referenced by eventFilter().

void Isis::MosaicSceneWidget::mouseDoubleClick ( QPointF  _t1)
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  _t1)
signal

Referenced by eventFilter().

void Isis::MosaicSceneWidget::mouseWheel ( QPointF  _t1,
int  delta 
)
signal

Referenced by eventFilter().

double Isis::MosaicSceneWidget::moveDownOne ( MosaicSceneItem item)

References moveZ().

Referenced by moveDownOne().

double Isis::MosaicSceneWidget::moveDownOne ( Image image)

References cubeToMosaic(), and moveDownOne().

QList< double > Isis::MosaicSceneWidget::moveDownOne ( ImageList images)

References moveDownOne().

double Isis::MosaicSceneWidget::moveToBottom ( MosaicSceneItem item)

This doesn't compress the Z values - the original Z values of this scene item is guaranteed to be empty after this operation.

Referenced by moveToBottom().

double Isis::MosaicSceneWidget::moveToBottom ( Image image)

This doesn't compress the Z values - the original Z value of this image is guaranteed to be empty after this operation.

References cubeToMosaic(), and moveToBottom().

QList< double > Isis::MosaicSceneWidget::moveToBottom ( ImageList images)

This doesn't compress the Z values - the original Z values of these images are guaranteed to be empty after this operation.

References moveToBottom().

double Isis::MosaicSceneWidget::moveToTop ( MosaicSceneItem item)

This doesn't compress the Z values - the original Z values of this scene item is guaranteed to be empty after this operation.

Referenced by moveToTop().

double Isis::MosaicSceneWidget::moveToTop ( Image image)

This doesn't compress the Z values - the original Z value of this image is guaranteed to be empty after this operation.

References cubeToMosaic(), and moveToTop().

QList< double > Isis::MosaicSceneWidget::moveToTop ( ImageList images)

This doesn't compress the Z values - the original Z values of these images are guaranteed to be empty after this operation.

References moveToTop().

double Isis::MosaicSceneWidget::moveUpOne ( MosaicSceneItem item)

References moveZ().

Referenced by moveUpOne().

double Isis::MosaicSceneWidget::moveUpOne ( Image image)

References cubeToMosaic(), and moveUpOne().

QList< double > Isis::MosaicSceneWidget::moveUpOne ( ImageList images)

References moveUpOne().

double Isis::MosaicSceneWidget::moveZ ( MosaicSceneItem sceneItem,
double  newZ,
bool  newZValueMightExist = true 
)

This method moves the given scene item to the given Z value.

By default, this does not create gaps in the Z-values and makes the necessary room/adjustments for the new item to go to it's spot. If the last operation was moveToTop or moveToBottom, because those methods don't compress/adjust the surrounding Z values, we can avoid any and all adjustments here (significant performance boost) by using newZValueMightExist=false.

N = # items in the scene The time complexity of this method is N if newZValueMightExist. The time complexity of this method is constant if !newZValueMightExist.

Parameters
sceneItemThe item in this scene to change the Z value
newZThe new Z value for the item
newZValueMightExistTrue if an item in the scene might occupy the new Z value

Referenced by moveDownOne(), moveUpOne(), and moveZ().

double Isis::MosaicSceneWidget::moveZ ( Image image,
double  newZ,
bool  newZValueMightExist = true 
)

References cubeToMosaic(), and moveZ().

void Isis::MosaicSceneWidget::projectionChanged ( Projection _t1)
signal

Referenced by setProjection().

void Isis::MosaicSceneWidget::queueSelectionChanged ( )
signal

Referenced by MosaicSceneWidget().

void Isis::MosaicSceneWidget::refit ( )
slot

This method refits t:he items in the graphics view.

References cubesBoundingRect(), and getView().

Referenced by addImages(), setOutlineRect(), and Isis::MosaicZoomTool::zoomFit().

void Isis::MosaicSceneWidget::removeImages ( ImageList  images)
slot
void Isis::MosaicSceneWidget::rubberBandComplete ( QRectF  r,
Qt::MouseButton  s 
)
signal

Referenced by eventFilter().

ImageList Isis::MosaicSceneWidget::selectedImages ( )

Returns a list of all the cubes selected in the scene.

Returns
QList<Cube *>

References Isis::ImageList::append(), getScene(), and Isis::MosaicSceneItem::image().

Referenced by contextMenuEvent().

void Isis::MosaicSceneWidget::setCubesSelectable ( bool  selectable)
slot
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 fromPvl().

QList< QAction * > Isis::MosaicSceneWidget::supportedActions ( ImageList images)

Get a list of actions this scene can perform given "images".

References cubeToMosaic(), Isis::Directory::project(), and Isis::WorkOrder::setData().

template<typename DataType >
QList<QAction *> Isis::MosaicSceneWidget::supportedActions ( DataType  )
inline

Return an empty list of actions for unknown data types.

bool Isis::MosaicSceneWidget::userHasTools ( ) const
inline
void Isis::MosaicSceneWidget::visibleRectChanged ( QRectF  _t1)
signal

The documentation for this class was generated from the following files: