Isis Developer Reference
|
#include <Directory.h>
Public Slots | |
void | cleanupBundleObservationViews (QObject *) |
Removes pointers to deleted BundleObservationView objects. | |
void | cleanupCnetEditorViewWidgets (QObject *) |
Removes pointers to deleted CnetEditorWidget objects. | |
void | cleanupCubeDnViewWidgets (QObject *) |
Removes pointers to deleted CubeDnView objects. | |
void | cleanupFileListWidgets (QObject *) |
Removes pointers to deleted ImageFileListWidget objects. | |
void | cleanupFootprint2DViewWidgets (QObject *) |
Removes pointers to deleted Footprint2DView objects. | |
void | cleanupControlPointEditViewWidget (QObject *) |
Delete the ControlPointEditWidget and set it's pointer to NULL. | |
void | cleanupMatrixViewWidgets (QObject *) |
Removes pointers to deleted MatrixSceneWidget objects. | |
void | cleanupSensorInfoWidgets (QObject *) |
Removes pointers to deleted SensorInfoWidget objects. | |
void | cleanupTargetInfoWidgets (QObject *) |
Removes pointers to deleted TargetInfoWidget objects. | |
void | cleanupTemplateEditorWidgets (QObject *) |
Removes pointers to deleted TemplateEditorWidget objects. | |
void | cleanupJigsawRunWidget (QObject *) |
void | updateControlNetEditConnections () |
Updates the SIGNAL/SLOT connections for the cotrol net editor. | |
void | modifyControlPoint (ControlPoint *controlPoint, QString serialNumber="") |
Slot that is connected from a left mouse button operation on views. | |
void | deleteControlPoint (ControlPoint *controlPoint) |
Slot that is connected from a middle mouse button operation on views. | |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
Slot that is connected from a right mouse button operation on views. | |
void | updateRecentProjects (Project *project) |
Adds a new Project object to the list of recent projects if it has not already been added. | |
void | updateRecentProjects () |
Loads and displays a list of recently opened projects in the file menu. | |
Signals | |
void | directoryCleaned () |
void | newWarning () |
void | newDockAvailable (QMainWindow *newWidget) |
void | newWidgetAvailable (QWidget *newWidget) |
void | closeView (QWidget *widget) |
void | cnetModified () |
void | activeControlModified () |
void | redrawMeasures () |
void | cleanProject (bool) |
Public Member Functions | |
Directory (QObject *parent=0) | |
The Constructor. | |
~Directory () | |
The Destructor. | |
void | clean () |
Cleans directory of everything to do with the current project. | |
void | setHistoryContainer (QDockWidget *historyContainer) |
Set up the history info in the history dockable widget. | |
void | setWarningContainer (QDockWidget *warningContainer) |
Set up the warning info in the warning dockable widget. | |
void | setRecentProjectsList (QStringList recentProjects) |
Add recent projects to the recent projects list. | |
QStringList | recentProjectsList () |
Public accessor for the list of recent projects. | |
BundleObservationView * | addBundleObservationView (FileItemQsp fileItem) |
Add the BundleObservationView to the window. | |
ControlHealthMonitorView * | addControlHealthMonitorView () |
CnetEditorView * | addCnetEditorView (Control *control, QString objectName="") |
Add the widget for the cnet editor view to the window. | |
CubeDnView * | addCubeDnView (QString objectName="") |
Add the qview workspace to the window. | |
Footprint2DView * | addFootprint2DView (QString objectName="") |
Add the qmos view widget to the window. | |
JigsawRunWidget * | addJigsawRunWidget () |
MatrixSceneWidget * | addMatrixView () |
Add the matrix view widget to the window. | |
TargetInfoWidget * | addTargetInfoView (TargetBodyQsp target) |
Add target body data view widget to the window. | |
TemplateEditorWidget * | addTemplateEditorView (Template *currentTemplate) |
Add template editor view widget to the window. | |
SensorInfoWidget * | addSensorInfoView (GuiCameraQsp camera) |
Add sensor data view widget to the window. | |
ImageFileListWidget * | addImageFileListView (QString objectName="") |
Add an imageFileList widget to the window. | |
ControlPointEditView * | addControlPointEditView () |
ProjectItemTreeView * | addProjectItemTreeView () |
Adds a ProjectItemTreeView to the window. | |
ProjectItemModel * | model () |
Gets the ProjectItemModel for this directory. | |
Project * | project () const |
Gets the Project for this directory. | |
QList< QAction * > | fileMenuActions () |
Get the list of actions that the Directory can provide for the file menu. | |
QList< QAction * > | projectMenuActions () |
Get the list of actions that the Directory can provide for the project menu. | |
QList< QAction * > | editMenuActions () |
Get the list of actions that the Directory can provide for the edit menu. | |
QList< QAction * > | viewMenuActions () |
Get the list of actions that the Directory can provide for the view menu. | |
QList< QAction * > | settingsMenuActions () |
Get the list of actions that the Directory can provide for the settings menu. | |
QList< QAction * > | helpMenuActions () |
Get the list of actions that the Directory can provide for the help menu. | |
QList< QAction * > | permToolBarActions () |
Get the list of actions that the Directory can provide for the permanent Tool Bar. | |
QList< QAction * > | activeToolBarActions () |
Get the list of actions that the Directory can provide for the active Tool Bar. | |
QList< QAction * > | toolPadActions () |
Get the list of actions that the Directory can provide for the Tool Pad. | |
QList< BundleObservationView * > | bundleObservationViews () |
QList< CnetEditorView * > | cnetEditorViews () |
Returns a list of all the control network views for this directory. | |
QList< CubeDnView * > | cubeDnViews () |
Accessor for the list of CubeDnViews currently available. | |
QList< Footprint2DView * > | footprint2DViews () |
Accessor for the list of Footprint2DViews currently available. | |
QList< MatrixSceneWidget * > | matrixViews () |
Accessor for the list of MatrixSceneWidgets currently available. | |
QList< SensorInfoWidget * > | sensorInfoViews () |
Accessor for the list of SensorInfoWidgets currently available. | |
QList< TargetInfoWidget * > | targetInfoViews () |
Accessor for the list of TargetInfoWidgets currently available. | |
QList< TemplateEditorWidget * > | templateEditorViews () |
Accessor for the list of TemplateEditorWidgets currently available. | |
QList< ImageFileListWidget * > | imageFileListViews () |
Accessor for the list of ImageFileListWidgets currently available. | |
QList< QProgressBar * > | progressBars () |
Gets the ControlNetEditor associated with this the Directory. | |
ControlHealthMonitorView * | controlHealthMonitorView () |
ControlPointEditView * | controlPointEditView () |
Gets the ControlPointEditWidget associated with the Directory. | |
JigsawRunWidget * | jigsawRunWidget () |
bool | controlUsedInCnetEditorWidget (Control *control) |
@description Return true if control is not currently being viewed in a CnetEditorWidget | |
QString | editPointId () |
Return the current control point id loaded in the ControlPointEditWidget. | |
template<typename DataType > | |
QList< QAction * > | supportedActions (DataType data) |
Returns a list of supported actions for a WorkOrder. | |
void | showWarning (QString text) |
Displays a Warning. | |
template<typename Data > | |
void | showWarning (QString text, Data data) |
Shows warning text for a Widget. | |
QWidget * | warningWidget () |
Returns a pointer to the warning widget. | |
QAction * | redoAction () |
Creates an Action to redo the last action. | |
QAction * | undoAction () |
Creates an Action to undo the last action. | |
void | load (XmlStackedHandlerReader *xmlReader) |
Loads the Directory from an XML file. | |
void | save (QXmlStreamWriter &stream, FileName newProjectRoot) const |
Save the directory to an XML file. | |
|
explicit |
The Constructor.
IException::Programmer | To handle the event that a Project cannot be created. |
IException::Programmer | To handle the event that a Directory cannot be created because the WorkOrders we are attempting to add to the Directory are corrupt. |
References _FILEINFO_, activeControlModified(), cleanProject(), cnetModified(), Isis::IException::Programmer, project(), and updateRecentProjects().
Isis::Directory::~Directory | ( | ) |
The Destructor.
|
signal |
Referenced by addCubeDnView(), addFootprint2DView(), and Directory().
Get the list of actions that the Directory can provide for the active Tool Bar.
BundleObservationView * Isis::Directory::addBundleObservationView | ( | FileItemQsp | fileItem | ) |
Add the BundleObservationView to the window.
References cleanupBundleObservationViews(), newWidgetAvailable(), and Isis::FileName::originalPath().
Referenced by Isis::BundleObservationViewWorkOrder::execute().
CnetEditorView * Isis::Directory::addCnetEditorView | ( | Control * | control, |
QString | objectName = "" ) |
Add the widget for the cnet editor view to the window.
Control | to edit. |
References cleanupCnetEditorViewWidgets(), Isis::CnetEditorView::cnetEditorWidget(), cnetModified(), Isis::TableView::content(), Isis::DisplayProperties::displayName(), Isis::Control::displayProperties(), Isis::CnetEditorWidget::measureTableView(), modifyControlPoint(), newWidgetAvailable(), Isis::CnetEditorWidget::pointTableView(), project(), and Isis::TableViewContent::setActiveControlNet().
Referenced by Isis::CnetEditorViewWorkOrder::execute().
ControlHealthMonitorView * Isis::Directory::addControlHealthMonitorView | ( | ) |
References Isis::Project::activeControl(), controlHealthMonitorView(), newWidgetAvailable(), and project().
Referenced by Isis::ControlHealthMonitorWorkOrder::execute().
ControlPointEditView * Isis::Directory::addControlPointEditView | ( | ) |
References Isis::Project::activeControl(), cleanupControlPointEditViewWidget(), cnetModified(), controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), newWidgetAvailable(), project(), Isis::ControlPointEditWidget::setControl(), and Isis::ControlPointEditWidget::setSerialNumberList().
Referenced by createControlPoint(), deleteControlPoint(), and modifyControlPoint().
CubeDnView * Isis::Directory::addCubeDnView | ( | QString | objectName = "" | ) |
Add the qview workspace to the window.
References activeControlModified(), cleanupCubeDnViewWidgets(), createControlPoint(), deleteControlPoint(), modifyControlPoint(), newWidgetAvailable(), project(), redrawMeasures(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::CubeDnViewWorkOrder::execute().
Footprint2DView * Isis::Directory::addFootprint2DView | ( | QString | objectName = "" | ) |
Add the qmos view widget to the window.
References activeControlModified(), cleanupFootprint2DViewWidgets(), cnetModified(), createControlPoint(), deleteControlPoint(), modifyControlPoint(), Isis::Footprint2DView::mosaicSceneWidget(), newWidgetAvailable(), project(), redrawMeasures(), and Isis::AbstractProjectItemView::setModel().
Referenced by Isis::Footprint2DViewWorkOrder::execute().
ImageFileListWidget * Isis::Directory::addImageFileListView | ( | QString | objectName = "" | ) |
Add an imageFileList widget to the window.
References cleanupFileListWidgets().
Referenced by Isis::ImageFileListViewWorkOrder::execute().
JigsawRunWidget * Isis::Directory::addJigsawRunWidget | ( | ) |
References cleanupJigsawRunWidget(), jigsawRunWidget(), and newWidgetAvailable().
Referenced by Isis::JigsawWorkOrder::execute().
MatrixSceneWidget * Isis::Directory::addMatrixView | ( | ) |
Add the matrix view widget to the window.
References cleanupMatrixViewWidgets(), and newWidgetAvailable().
Referenced by Isis::MatrixViewWorkOrder::execute().
ProjectItemTreeView * Isis::Directory::addProjectItemTreeView | ( | ) |
Adds a ProjectItemTreeView to the window.
References Isis::AbstractProjectItemView::setModel().
SensorInfoWidget * Isis::Directory::addSensorInfoView | ( | GuiCameraQsp | camera | ) |
Add sensor data view widget to the window.
References cleanupSensorInfoWidgets(), and newWidgetAvailable().
Referenced by Isis::SensorGetInfoWorkOrder::execute().
TargetInfoWidget * Isis::Directory::addTargetInfoView | ( | TargetBodyQsp | target | ) |
Add target body data view widget to the window.
References cleanupTargetInfoWidgets(), and newWidgetAvailable().
Referenced by Isis::TargetGetInfoWorkOrder::execute().
TemplateEditorWidget * Isis::Directory::addTemplateEditorView | ( | Template * | currentTemplate | ) |
Add template editor view widget to the window.
References cleanupTemplateEditorWidgets(), Isis::FileName::name(), and newWidgetAvailable().
Referenced by Isis::TemplateEditViewWorkOrder::execute().
QList< BundleObservationView * > Isis::Directory::bundleObservationViews | ( | ) |
void Isis::Directory::clean | ( | ) |
Cleans directory of everything to do with the current project.
This function was implemented to be called from the Project::clear function to allow for a new project to be opened in IPCE.
References directoryCleaned().
Referenced by Isis::Project::clear().
|
signal |
Referenced by Directory().
|
slot |
Removes pointers to deleted BundleObservationView objects.
Referenced by addBundleObservationView().
|
slot |
Removes pointers to deleted CnetEditorWidget objects.
References Isis::Project::activeControl(), Isis::Control::closeControlNet(), and project().
Referenced by addCnetEditorView().
|
slot |
Delete the ControlPointEditWidget and set it's pointer to NULL.
References controlPointEditView().
Referenced by addControlPointEditView().
|
slot |
Removes pointers to deleted CubeDnView objects.
Referenced by addCubeDnView().
|
slot |
Removes pointers to deleted ImageFileListWidget objects.
Referenced by addImageFileListView().
|
slot |
Removes pointers to deleted Footprint2DView objects.
Referenced by addFootprint2DView().
|
slot |
References jigsawRunWidget().
Referenced by addJigsawRunWidget().
|
slot |
Removes pointers to deleted MatrixSceneWidget objects.
Referenced by addMatrixView().
|
slot |
Removes pointers to deleted SensorInfoWidget objects.
Referenced by addSensorInfoView().
|
slot |
Removes pointers to deleted TargetInfoWidget objects.
Referenced by addTargetInfoView().
|
slot |
Removes pointers to deleted TemplateEditorWidget objects.
Referenced by addTemplateEditorView().
|
signal |
QList< CnetEditorView * > Isis::Directory::cnetEditorViews | ( | ) |
Returns a list of all the control network views for this directory.
Referenced by Isis::CnetEditorViewWorkOrder::undoExecution().
|
signal |
Referenced by addCnetEditorView(), addControlPointEditView(), addFootprint2DView(), and Directory().
ControlHealthMonitorView * Isis::Directory::controlHealthMonitorView | ( | ) |
Referenced by addControlHealthMonitorView().
ControlPointEditView * Isis::Directory::controlPointEditView | ( | ) |
Gets the ControlPointEditWidget associated with the Directory.
Referenced by addControlPointEditView(), cleanupControlPointEditViewWidget(), createControlPoint(), deleteControlPoint(), and modifyControlPoint().
bool Isis::Directory::controlUsedInCnetEditorWidget | ( | Control * | control | ) |
@description Return true if control is not currently being viewed in a CnetEditorWidget
|
slot |
Slot that is connected from a right mouse button operation on views.
latitude | (double) Latitude location where the control point was created |
longitude | (double) Longitude location where the control point was created |
cube | (Cube *) The Cube in the CubeDnView that was used to select location for new control point. This parameter will be empty if control point was selected from Footprint2DView. |
isGroundSource | (bool) Indicates whether the Cube in the CubeDnView that was used to select location for new control point is a ground source. This parameter will be empty if control point was selected from Footprint2DView. |
References addControlPointEditView(), controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPointEditWidget::createControlPoint(), and Isis::ControlPointEditWidget::editPointId().
Referenced by addCubeDnView(), and addFootprint2DView().
QList< CubeDnView * > Isis::Directory::cubeDnViews | ( | ) |
Accessor for the list of CubeDnViews currently available.
Referenced by Isis::CubeDnViewWorkOrder::execute(), and Isis::CubeDnViewWorkOrder::setupExecution().
|
slot |
Slot that is connected from a middle mouse button operation on views.
controlPoint | (ControlPoint *) The control point selected from view for editing |
References addControlPointEditView(), controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPointEditWidget::deletePoint(), Isis::ControlPoint::GetId(), and redrawMeasures().
Referenced by addCubeDnView(), addFootprint2DView(), and updateControlNetEditConnections().
|
signal |
Referenced by clean().
Get the list of actions that the Directory can provide for the edit menu.
QString Isis::Directory::editPointId | ( | ) |
Return the current control point id loaded in the ControlPointEditWidget.
Referenced by Isis::ControlPointGraphicsItem::paint().
Get the list of actions that the Directory can provide for the file menu.
QList< Footprint2DView * > Isis::Directory::footprint2DViews | ( | ) |
Accessor for the list of Footprint2DViews currently available.
Referenced by Isis::Footprint2DViewWorkOrder::execute(), and Isis::Footprint2DViewWorkOrder::setupExecution().
Get the list of actions that the Directory can provide for the help menu.
QList< ImageFileListWidget * > Isis::Directory::imageFileListViews | ( | ) |
Accessor for the list of ImageFileListWidgets currently available.
Referenced by Isis::ImageFileListViewWorkOrder::execute(), and Isis::ImageFileListViewWorkOrder::setupExecution().
JigsawRunWidget * Isis::Directory::jigsawRunWidget | ( | ) |
Referenced by addJigsawRunWidget(), and cleanupJigsawRunWidget().
void Isis::Directory::load | ( | XmlStackedHandlerReader * | xmlReader | ) |
Loads the Directory from an XML file.
xmlReader | The reader that takes in and parses the XML file. |
QList< MatrixSceneWidget * > Isis::Directory::matrixViews | ( | ) |
Accessor for the list of MatrixSceneWidgets currently available.
Referenced by Isis::MatrixViewWorkOrder::setupExecution(), and Isis::MatrixViewWorkOrder::undoExecution().
ProjectItemModel * Isis::Directory::model | ( | ) |
Gets the ProjectItemModel for this directory.
Referenced by Isis::CubeDnViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::RemoveImagesWorkOrder::execute(), Isis::JigsawSetupDialog::JigsawSetupDialog(), Isis::Project::setActiveControl(), Isis::Project::setActiveImageList(), Isis::RemoveImagesWorkOrder::setupExecution(), Isis::ImportImagesWorkOrder::undoExecution(), Isis::ImportMapTemplateWorkOrder::undoExecution(), Isis::ImportRegistrationTemplateWorkOrder::undoExecution(), and Isis::ImportShapesWorkOrder::undoExecution().
|
slot |
Slot that is connected from a left mouse button operation on views.
controlPoint | (ControlPoint *) The control point selected from view for editing |
serialNumber | (QString) The serial number of Cube that was used to select control point from the CubeDnView. This parameter will be empty if control point was selected from Footprint2DView. |
References addControlPointEditView(), controlPointEditView(), Isis::ControlPointEditView::controlPointEditWidget(), Isis::ControlPoint::GetId(), redrawMeasures(), and Isis::ControlPointEditWidget::setEditPoint().
Referenced by addCnetEditorView(), addCubeDnView(), and addFootprint2DView().
|
signal |
|
signal |
Referenced by showWarning().
|
signal |
Get the list of actions that the Directory can provide for the permanent Tool Bar.
QList< QProgressBar * > Isis::Directory::progressBars | ( | ) |
Project * Isis::Directory::project | ( | ) | const |
Gets the Project for this directory.
Referenced by addCnetEditorView(), addControlHealthMonitorView(), addControlPointEditView(), addCubeDnView(), addFootprint2DView(), cleanupCnetEditorViewWidgets(), Isis::ImageTreeWidget::contextMenuEvent(), Isis::MosaicSceneItem::contextMenuEvent(), Isis::MosaicSceneWidget::contextMenuEvent(), Isis::ControlHealthMonitorView::ControlHealthMonitorView(), Isis::ControlPointEditWidget::ControlPointEditWidget(), Directory(), Isis::ControlNetTool::loadNetwork(), Isis::MosaicControlNetTool::loadNetwork(), redoAction(), save(), Isis::TemplateEditorWidget::saveAsText(), Isis::ControlPointEditWidget::setControlFromActive(), setHistoryContainer(), Isis::MosaicSceneWidget::supportedActions(), Isis::ControlNetTool::toolPadAction(), undoAction(), and updateRecentProjects().
Get the list of actions that the Directory can provide for the project menu.
QStringList Isis::Directory::recentProjectsList | ( | ) |
Public accessor for the list of recent projects.
QAction * Isis::Directory::redoAction | ( | ) |
Creates an Action to redo the last action.
References project(), and Isis::Project::undoStack().
|
signal |
Referenced by addCubeDnView(), addFootprint2DView(), deleteControlPoint(), and modifyControlPoint().
void Isis::Directory::save | ( | QXmlStreamWriter & | stream, |
FileName | newProjectRoot ) const |
Save the directory to an XML file.
stream | The XML stream writer |
newProjectRoot | The FileName of the project this Directory is attached to. |
References project(), Isis::CnetEditorView::save(), and Isis::ImageFileListWidget::save().
QList< SensorInfoWidget * > Isis::Directory::sensorInfoViews | ( | ) |
Accessor for the list of SensorInfoWidgets currently available.
Referenced by Isis::SensorGetInfoWorkOrder::isExecutable().
void Isis::Directory::setHistoryContainer | ( | QDockWidget * | historyContainer | ) |
Set up the history info in the history dockable widget.
historyContainer | The widget to fill. |
References project().
void Isis::Directory::setRecentProjectsList | ( | QStringList | recentProjects | ) |
Add recent projects to the recent projects list.
recentProjects | List of projects to add to list. |
Get the list of actions that the Directory can provide for the settings menu.
void Isis::Directory::setWarningContainer | ( | QDockWidget * | warningContainer | ) |
Set up the warning info in the warning dockable widget.
warningContainer | The widget to fill. |
void Isis::Directory::showWarning | ( | QString | text | ) |
Displays a Warning.
text | The text to be displayed as a warning. |
References newWarning().
Referenced by Isis::Project::open(), Isis::Project::warn(), and Isis::Project::warn().
|
inline |
Shows warning text for a Widget.
text | The warning text. |
Data | The Widget object we are passing the warning to. |
|
inline |
Returns a list of supported actions for a WorkOrder.
data | The WorkOrder type we are using. |
References Isis::WorkOrder::clone(), and Isis::WorkOrder::setData().
Referenced by Isis::ImageTreeWidget::contextMenuEvent(), Isis::MosaicSceneItem::contextMenuEvent(), and Isis::MosaicSceneWidget::contextMenuEvent().
QList< TargetInfoWidget * > Isis::Directory::targetInfoViews | ( | ) |
Accessor for the list of TargetInfoWidgets currently available.
Referenced by Isis::TargetGetInfoWorkOrder::isExecutable().
QList< TemplateEditorWidget * > Isis::Directory::templateEditorViews | ( | ) |
Accessor for the list of TemplateEditorWidgets currently available.
Referenced by Isis::TemplateEditViewWorkOrder::isExecutable().
Get the list of actions that the Directory can provide for the Tool Pad.
QAction * Isis::Directory::undoAction | ( | ) |
Creates an Action to undo the last action.
References project(), and Isis::Project::undoStack().
|
slot |
Updates the SIGNAL/SLOT connections for the cotrol net editor.
References deleteControlPoint().
|
slot |
Loads and displays a list of recently opened projects in the file menu.
References Isis::Project::maxRecentProjects().
Referenced by Directory().
|
slot |
Adds a new Project object to the list of recent projects if it has not already been added.
project | A pointer to the Project to add. |
References project(), and Isis::Project::projectRoot().
Get the list of actions that the Directory can provide for the view menu.
QWidget * Isis::Directory::warningWidget | ( | ) |
Returns a pointer to the warning widget.