Isis 3 Programmer Reference
|
Represents an item of a ProjectItemModel in Qt's model-view framework. More...
#include <ProjectItem.h>
Public Member Functions | |
ProjectItem () | |
Constructs an item without children, a parent, or a model. More... | |
ProjectItem (ProjectItem *item) | |
Contructs a copy of another item. More... | |
ProjectItem (BundleResults bundleResults) | |
Constructs an item from a BundleResults. More... | |
ProjectItem (BundleSettingsQsp bundleSettings) | |
Constructs an item from a BundleSettings. More... | |
ProjectItem (BundleSolutionInfo *bundleSolutionInfo) | |
Constructs an item from a BundleSolutionInfo. More... | |
ProjectItem (Control *control) | |
Constructs an item from a Control. More... | |
ProjectItem (ControlList *controlList) | |
Constructs an item from a ControlList. More... | |
ProjectItem (QList< ControlList *> controls) | |
Constructs an item from a list of ControlList. More... | |
ProjectItem (CorrelationMatrix correlationMatrix) | |
Constructs an item from a CorrelationMatrix. More... | |
ProjectItem (Image *image) | |
Constructs an item from an Image. More... | |
ProjectItem (ImageList *imageList) | |
Constructs an item from an ImageList. More... | |
ProjectItem (QList< ImageList *> images) | |
Constructs an item from a list of ImageList. More... | |
ProjectItem (Shape *shape) | |
Constructs an item from an Shape. More... | |
ProjectItem (ShapeList *shapeList) | |
Constructs an item from an ShapeList. More... | |
ProjectItem (QList< ShapeList *> shapes) | |
Constructs an item from a list of ShapeList. More... | |
ProjectItem (GuiCameraQsp guiCamera) | |
Constructs an item from a GuiCameraQsp. More... | |
ProjectItem (GuiCameraList *guiCameraList) | |
Constructs an item from a GuiCameraList. More... | |
ProjectItem (Project *project) | |
Constructs an item from a Project. More... | |
ProjectItem (QList< BundleSolutionInfo *> results) | |
Constructs an item from a list of BundleSolutionInfo. More... | |
ProjectItem (TargetBodyQsp targetBody) | |
Constructs an item from a TargetBodyQsp. More... | |
ProjectItem (TargetBodyList *targetBodyList) | |
Constructs an item from a TargetBodyList. More... | |
ProjectItem (QList< TemplateList *> templates) | |
Constructs an item from a list of TemplateList. More... | |
ProjectItem (Template *newTemplate) | |
Constructs an item from a Template. More... | |
ProjectItem (TemplateList *templateList) | |
Constructs an item from an TemplateList. More... | |
ProjectItem (FileItemQsp filename, QString treeText, QIcon icon) | |
Constructs an item representing a file in the filesystem. More... | |
ProjectItem (FileItemQsp filename, QString treeText, QString toolTipText, QIcon icon) | |
Constructs an item representing a file in the filesystem. More... | |
~ProjectItem () | |
Destructs a ProjectItem. More... | |
BundleResults | bundleResults () const |
Returns the BundleResults stored in the data of the item. More... | |
BundleSettingsQsp | bundleSettings () const |
Returns the BundleSettings stored in the data of the item. More... | |
BundleSolutionInfo * | bundleSolutionInfo () const |
Returns the BundleSolutionInfo stored in the data of the item. More... | |
Control * | control () const |
Returns the Control stored in the data of the item. More... | |
ControlList * | controlList () const |
Returns the ControlList stored in the data of the item. More... | |
CorrelationMatrix | correlationMatrix () const |
Returns the CorrelationMatrix stored the item. More... | |
Image * | image () const |
Returns the Image stored in the data of the item. More... | |
ImageList * | imageList () const |
Returns the ImageList stored in the data of the item. More... | |
Shape * | shape () const |
Returns the Shape stored in the data of the item. More... | |
ShapeList * | shapeList () const |
Returns the ShapeList stored in the data of the item. More... | |
Project * | project () const |
Returns the Project stored in the data of the item. More... | |
GuiCameraQsp | guiCamera () const |
Returns the GuiCameraQsp stored in the data of the item. More... | |
TargetBodyQsp | targetBody () const |
Returns the TargetBodyQsp stored in the data of the item. More... | |
Template * | getTemplate () const |
Returns the Template stored in the data of the item. More... | |
TemplateList * | templateList () const |
Returns the TemplateList stored in the data of the item. More... | |
FileItemQsp | fileItem () const |
Returns the FileItemQsp stored in the data of the item. More... | |
bool | isBundleResults () const |
Returns true if BundleResults are stored in the data of the item. More... | |
bool | isBundleSettings () const |
Returns true if BundleSettings are stored in the data of the item. More... | |
bool | isBundleSolutionInfo () const |
Returns true if a BundleSolutionInfo is stored in the data of the item. More... | |
bool | isControl () const |
Returns true if a Control is stored in the data of the item. More... | |
bool | isControlList () const |
Returns true if a ControlList is stored in the data of the item. More... | |
bool | isCorrelationMatrix () const |
Returns true if a CorrelationMatrix is stored in the data of the item. More... | |
bool | isImage () const |
Returns true if an Image is stored in the data of the item. More... | |
bool | isImageList () const |
Returns true if an ImageList is stored in the data of the item. More... | |
bool | isShape () const |
Returns true if an Shape is stored in the data of the item. More... | |
bool | isShapeList () const |
Returns true if an ShapeList is stored in the data of the item. More... | |
bool | isProject () const |
Returns true if a Project is stored in the data of the item. More... | |
bool | isGuiCamera () const |
Returns true if a GuiCameraQsp is stored in the data of the item. More... | |
bool | isTargetBody () const |
Returns true if a TargetBodyQsp is stored in the data of the item. More... | |
bool | isFileItem () const |
Returns true if a FileItemQsp is stored in the data of the item. More... | |
bool | isTemplate () const |
void | setProjectItem (ProjectItem *item) |
Sets the text, icon, and data to those of another item. More... | |
void | setBundleResults (BundleResults bundleResults) |
Sets the text, icon, and data corresponding to BundleResults. More... | |
void | setBundleSettings (BundleSettingsQsp bundleSettings) |
Sets the text, icon, and data corresponding to BundleSettings. More... | |
void | setBundleSolutionInfo (BundleSolutionInfo *bundleSolutionInfo) |
Sets the text, icon, and data corresponding to a BundleSolutionInfo. More... | |
void | setControl (Control *control) |
Sets the text, icon, and data corresponding to a Control. More... | |
void | setControlList (ControlList *controlList) |
Sets the text, icon, and data corresponding to a ControlList. More... | |
void | setControls () |
Sets the text, icon, and data corresponding to a list of ControlList. More... | |
void | setCorrelationMatrix (CorrelationMatrix correlationMatrix) |
Sets the text, icon, and data corresponding to a CorrelationMatrix. More... | |
void | setImage (Image *image) |
Sets the text, icon, and data corresponding to an Image. More... | |
void | setImageList (ImageList *imageList) |
Sets the text, icon, and data corresponding to an ImageList. More... | |
void | setImages () |
Sets the text, icon, and data corresponding to a list of ImageList. More... | |
void | setShape (Shape *shape) |
Sets the text, icon, and data corresponding to an Shape. More... | |
void | setShapeList (ShapeList *shapeList) |
Sets the text, icon, and data corresponding to an ShapeList. More... | |
void | setShapes () |
Sets the text, icon, and data corresponding to a list of ShapeList. More... | |
void | setProject (Project *project) |
Sets the text, icon, and data corresponding to a Project. More... | |
void | setResults () |
Sets the text, icon, and data corresponding to a list of Results. More... | |
void | setGuiCamera (GuiCameraQsp guiCamera) |
Sets the text, icon, and data corresponding to a GuiCameraQsp. More... | |
void | setGuiCameraList () |
Sets the text, icon, and data corresponding to a GuiCameraQsp. More... | |
void | setSpacecraft () |
Sets the text, icon, and data corresponding to SpaceCraft. More... | |
void | setTargetBody (TargetBodyQsp targetBody) |
Sets the text, icon, and data corresponding to a TargetBodyQsp. More... | |
void | setTargetBodyList () |
Sets the text, icon, and data corresponding to a TargetBodyList. More... | |
void | setTemplate (Template *newTemplate) |
Sets the text, icon, and data corresponding to a Template. More... | |
void | setTemplates () |
Sets the text, icon, and data corresponding to a list of TemplateList. More... | |
void | setTemplateList (TemplateList *templateList) |
Sets the text, icon, and data corresponding to an TemplateList. More... | |
ProjectItem * | findItemData (const QVariant &value, int role=Qt::UserRole+1) |
Finds and returns the first item in the model that contains the data in the role. More... | |
void | appendRow (ProjectItem *item) |
Appends an item to the children of this item. More... | |
ProjectItem * | child (int row) const |
Returns the child item at a given row. More... | |
void | insertRow (int row, ProjectItem *item) |
Inserts an item to the children of this item at the row. More... | |
ProjectItemModel * | model () const |
Returns the ProjectItemModel associated with this item. More... | |
ProjectItem * | parent () const |
Returns the parent item of this item. More... | |
void | setChild (int row, ProjectItem *item) |
Sets the child at the given row to an item. More... | |
ProjectItem * | takeChild (int row) |
Removes the child item at the given row and returns the removed item. More... | |
void | setTextColor (Qt::GlobalColor color) |
Represents an item of a ProjectItemModel in Qt's model-view framework.
Items are stored in a tree structure. A ProjectItem directly stores the Data it corresponds to as well as other display information.
A ProjectItem may have a parent item and children items. An item can add another item as a child using the appendRow() or insertRow() methods on the parent item. Top level items in the model should be added using the corresponding methods in the model. If an item already has a parent or is already added to a model, it must be removed from the parent using the takeChild() method on the old parent item, or the takeItem() method on the model, before it is added to a new parent or model.
A ProjectItem stores text, an icon, and data. These values can be set using the setText(), setIcon(), and setData() methods. The data must be converted to a QVariant before being stored using setData(). There are various convinence methods for setting and accessing data. For example, the setImage() method will set the text, icon, and data appropriately given an Image. Also, the image() method will return the Image if one is stored in the data, or a null pointer if one is not.
ProjectItem does not inherit from QObject. The model associated with the ProjectItem should be used to utilize signals and slots. When a ProjectItem is deleted it deletes all of its children. Top level items are deleted by the model associated with them. To delete an item manually it must first be removed from its parent item or its model with the takeItem() method.
Any type of data that can be converted to a QVariant can be stored in a ProjectItem. If the ProjectItem cannot store the data it represents directly, then the data() method can be overridden in a subclass to access the data where it is stored.
Item selections are handled by the model associated with the item.
2015-10-21 Jeffrey Covington - Original version.
2016-06-27 Ian Humphrey - Minor documentation updates. Fixes #4006.
2016-08-18 Jeannie Backer - Changed raw BundleSettings pointer to BundleSettingsQsp.
2016-07-25 Tracie Sucharksi - Added support for Shapes.
2016-08-25 Adam Paquette - Updated documentation. Fixes #4299.
2016-11-10 Tyler Wilson - Changed the alias reference to the the data management icon from 'data' to 'data-management' in the setProject function. A naming conflict was causing strange warnings to show up on the command line when ipce is launched, and this fixed it. Fixes #3982.
2016-12-02 Tracie Sucharski - Added ability to change text color for and item.
2017-04-17 Tracie Sucharski - Turn off editing on all items except for the project name.
2017-05-01 Makayla Shepherd - Added the images that were bundled to the BundleSolutionInfo ProjectItem. Fixes #4818.
2017-05-02 Tracie Sucharski - Get rid of Correlation Matrix in BundleResults, change order of objects under BundleSolutionInfo. Change text on some of BundleSolutionInfo items. Fixes #4822.
2017-05-04 J Bonn -Added FileItem to project tree. Fixes #4838.
2017-05-04 Tracie Sucharski - Added isFileItem and fileItem methods and member variables needed for WorkOrders. Fixes #4839. Fixes #4840.
2017-06-14 Ken Edmundson - Added constructor for FileItem type, including a tooltip.
2017-07-13 Makayla Shepherd - Added the ability to change the name of image imports, shape imports, and bundle solution info. Fixes #4855, #4979, #4980.
2017-08-03 Cole Neubauer - Explicitely set the color of each new ProjectItem to Qt::Black Fixes #5095
2017-08-11 Christopher Combs - Added isTemplate() and setTemplate() to allow for imported templates to show on the project tree. Fixes #5086.
2017-08-14 Summer Stapleton - Updated icons/images to properly licensed or open source images. Fixes #5105.
2017-11-01 Ian Humphrey - Changed imageList to adjustedImages in the constructor taking a BundleSolutionInfo. Fixes #4849.
2017-11-03 Christopher Combs - Added support for new Template and TemplateList classes. Fixes #5117.
2018-03-22 Ken Edmundson - Modified constructor taking a BundleSolutionInfo to append a row for a Control object containing the output control net from the bundle adjustment.
2018-07-02 Tracie Sucharski - Added tooltip containing project path to the project root item.
Definition at line 146 of file ProjectItem.h.
Isis::ProjectItem::ProjectItem | ( | ) |
Constructs an item without children, a parent, or a model.
Definition at line 50 of file ProjectItem.cpp.
Referenced by ProjectItem(), and setTemplates().
|
explicit |
Contructs a copy of another item.
The copy will have the same text, icon, and data, and copies of the children. The copy will not have a parent or a model.
[in] | item | (ProjectItem *) The item to copy. |
Definition at line 63 of file ProjectItem.cpp.
References appendRow(), child(), ProjectItem(), and setProjectItem().
Isis::ProjectItem::ProjectItem | ( | BundleResults | bundleResults | ) |
Constructs an item from a BundleResults.
[in] | bundleResults | (BundleResults) The BundleResults to construct from. |
Definition at line 113 of file ProjectItem.cpp.
References bundleResults(), and setBundleResults().
Isis::ProjectItem::ProjectItem | ( | BundleSettingsQsp | bundleSettings | ) |
Constructs an item from a BundleSettings.
[in] | bundleSettings | (BundleSettingsQsp) The BundleSettings to construct from. |
Definition at line 126 of file ProjectItem.cpp.
References bundleSettings(), and setBundleSettings().
Isis::ProjectItem::ProjectItem | ( | BundleSolutionInfo * | bundleSolutionInfo | ) |
Constructs an item from a BundleSolutionInfo.
[in] | bundleSolutionInfo | (BundleSolutionInfo *) The BundleSolutionInfo to construct from. |
Definition at line 139 of file ProjectItem.cpp.
References Isis::BundleSolutionInfo::adjustedImages(), appendRow(), Isis::BundleSolutionInfo::bundleResults(), Isis::BundleSolutionInfo::bundleSettings(), bundleSolutionInfo(), Isis::BundleSolutionInfo::control(), ProjectItem(), and setBundleSolutionInfo().
Isis::ProjectItem::ProjectItem | ( | Control * | control | ) |
Constructs an item from a Control.
Definition at line 158 of file ProjectItem.cpp.
References control(), and setControl().
Isis::ProjectItem::ProjectItem | ( | ControlList * | controlList | ) |
Constructs an item from a ControlList.
[in] | controlList | (ControlList *) The ControlList to construct from. |
Definition at line 170 of file ProjectItem.cpp.
References appendRow(), control(), controlList(), ProjectItem(), and setControlList().
Isis::ProjectItem::ProjectItem | ( | QList< ControlList *> | controls | ) |
Constructs an item from a list of ControlList.
[in] | controls | (QList<ControlList *>) The list to construct from. |
Definition at line 185 of file ProjectItem.cpp.
References appendRow(), controlList(), ProjectItem(), and setControls().
Isis::ProjectItem::ProjectItem | ( | CorrelationMatrix | correlationMatrix | ) |
Constructs an item from a CorrelationMatrix.
[in] | correlationMatrix | (CorrelationMatrix) The CorrelationMatrix to construct from. |
Definition at line 201 of file ProjectItem.cpp.
References correlationMatrix(), and setCorrelationMatrix().
Isis::ProjectItem::ProjectItem | ( | Image * | image | ) |
Constructs an item from an Image.
Definition at line 213 of file ProjectItem.cpp.
References image(), and setImage().
Isis::ProjectItem::ProjectItem | ( | ImageList * | imageList | ) |
Constructs an item from an ImageList.
Definition at line 225 of file ProjectItem.cpp.
References appendRow(), image(), imageList(), ProjectItem(), and setImageList().
Constructs an item from a list of ImageList.
[in] | images | (QList<ImageList *>) The list to construct from. |
Definition at line 240 of file ProjectItem.cpp.
References appendRow(), imageList(), ProjectItem(), and setImages().
Isis::ProjectItem::ProjectItem | ( | Shape * | shape | ) |
Constructs an item from an Shape.
Definition at line 255 of file ProjectItem.cpp.
References setShape(), and shape().
Isis::ProjectItem::ProjectItem | ( | ShapeList * | shapeList | ) |
Constructs an item from an ShapeList.
Definition at line 267 of file ProjectItem.cpp.
References appendRow(), ProjectItem(), setShapeList(), shape(), and shapeList().
Constructs an item from a list of ShapeList.
[in] | shapes | (QList<ShapeList *>) The list to construct from. |
Definition at line 282 of file ProjectItem.cpp.
References appendRow(), ProjectItem(), setShapes(), and shapeList().
Isis::ProjectItem::ProjectItem | ( | GuiCameraQsp | guiCamera | ) |
Constructs an item from a GuiCameraQsp.
[in] | guiCamera | (GuiCameraQsp) The camera to construct from. |
Definition at line 339 of file ProjectItem.cpp.
References guiCamera(), and setGuiCamera().
Isis::ProjectItem::ProjectItem | ( | GuiCameraList * | guiCameraList | ) |
Constructs an item from a GuiCameraList.
[in] | guiCameraList | (GuiCameraList *) The list of cameras to construct from. |
Definition at line 352 of file ProjectItem.cpp.
References appendRow(), guiCamera(), ProjectItem(), and setGuiCameraList().
Isis::ProjectItem::ProjectItem | ( | Project * | project | ) |
Constructs an item from a Project.
Definition at line 367 of file ProjectItem.cpp.
References appendRow(), Isis::Project::bundleSolutionInfo(), Isis::Project::controls(), Isis::Project::images(), project(), ProjectItem(), setGuiCameraList(), setProject(), setSpacecraft(), setTargetBodyList(), and Isis::Project::templates().
Isis::ProjectItem::ProjectItem | ( | QList< BundleSolutionInfo *> | results | ) |
Constructs an item from a list of BundleSolutionInfo.
[in] | results | (QList<BundleSolutionInfo *>) The list to construct from. |
Definition at line 398 of file ProjectItem.cpp.
References appendRow(), bundleSolutionInfo(), ProjectItem(), and setResults().
Isis::ProjectItem::ProjectItem | ( | TargetBodyQsp | targetBody | ) |
Constructs an item from a TargetBodyQsp.
[in] | targetBody | (TargetBodyQsp) The target body to construct from. |
Definition at line 413 of file ProjectItem.cpp.
References setTargetBody(), and targetBody().
Isis::ProjectItem::ProjectItem | ( | TargetBodyList * | targetBodyList | ) |
Constructs an item from a TargetBodyList.
[in] | targetBodyList | (TargetBodyList *) The list to construct from. |
Definition at line 425 of file ProjectItem.cpp.
References appendRow(), ProjectItem(), setTargetBodyList(), and targetBody().
Isis::ProjectItem::ProjectItem | ( | QList< TemplateList *> | templates | ) |
Constructs an item from a list of TemplateList.
[in] | shapes | (QList<TemplateList *>) The list to construct from. |
Definition at line 325 of file ProjectItem.cpp.
References appendRow(), ProjectItem(), setTemplates(), and templateList().
Isis::ProjectItem::ProjectItem | ( | Template * | newTemplate | ) |
Constructs an item from a Template.
Definition at line 297 of file ProjectItem.cpp.
References setTemplate().
Isis::ProjectItem::ProjectItem | ( | TemplateList * | templateList | ) |
Constructs an item from an TemplateList.
[in] | templateList | (TemplateList *) The TemplateList to construct from. |
Definition at line 309 of file ProjectItem.cpp.
References appendRow(), ProjectItem(), setTemplateList(), and templateList().
Isis::ProjectItem::ProjectItem | ( | FileItemQsp | filename, |
QString | treeText, | ||
QIcon | icon | ||
) |
Constructs an item representing a file in the filesystem.
[in] | filename | The full path to the file in the filesystem |
[in] | treetext | The name displayed in the project tree |
[in] | filename | A icon to display next to the treetext |
Definition at line 80 of file ProjectItem.cpp.
Isis::ProjectItem::ProjectItem | ( | FileItemQsp | filename, |
QString | treeText, | ||
QString | toolTipText, | ||
QIcon | icon | ||
) |
Constructs an item representing a file in the filesystem.
[in] | filename | The full path to the file in the filesystem |
[in] | treetext | The name displayed in the project tree |
[in] | filename | A icon to display next to the treetext |
Definition at line 96 of file ProjectItem.cpp.
Isis::ProjectItem::~ProjectItem | ( | ) |
Destructs a ProjectItem.
Definition at line 438 of file ProjectItem.cpp.
void Isis::ProjectItem::appendRow | ( | ProjectItem * | item | ) |
Appends an item to the children of this item.
[in] | item | (ProjectItem *) The item to append. |
Definition at line 1166 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemProxyModel::addChild(), Isis::ProjectItemModel::onBundleSolutionInfoAdded(), Isis::ProjectItemModel::onControlAdded(), Isis::ProjectItemModel::onControlListAdded(), Isis::ProjectItemModel::onGuiCamerasAdded(), Isis::ProjectItemModel::onImagesAdded(), Isis::ProjectItemModel::onShapesAdded(), Isis::ProjectItemModel::onTargetsAdded(), Isis::ProjectItemModel::onTemplatesAdded(), ProjectItem(), and setTemplates().
BundleResults Isis::ProjectItem::bundleResults | ( | ) | const |
Returns the BundleResults stored in the data of the item.
Definition at line 446 of file ProjectItem.cpp.
Referenced by ProjectItem(), and setBundleResults().
BundleSettingsQsp Isis::ProjectItem::bundleSettings | ( | ) | const |
Returns the BundleSettings stored in the data of the item.
Definition at line 456 of file ProjectItem.cpp.
Referenced by ProjectItem(), and setBundleSettings().
BundleSolutionInfo * Isis::ProjectItem::bundleSolutionInfo | ( | ) | const |
Returns the BundleSolutionInfo stored in the data of the item.
Definition at line 466 of file ProjectItem.cpp.
Referenced by ProjectItem(), setBundleSolutionInfo(), and Isis::ProjectItemModel::setData().
ProjectItem * Isis::ProjectItem::child | ( | int | row | ) | const |
Returns the child item at a given row.
[in] | row | (int) The row. |
Definition at line 1179 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemProxyModel::addItem(), Isis::ProjectItemModel::clean(), findItemData(), Isis::ProjectItemModel::onBundleSolutionInfoAdded(), Isis::ProjectItemModel::onControlAdded(), Isis::ProjectItemModel::onControlListAdded(), Isis::ProjectItemModel::onGuiCamerasAdded(), Isis::ProjectItemModel::onImagesAdded(), Isis::ProjectItemModel::onShapesAdded(), Isis::ProjectItemModel::onTargetsAdded(), Isis::ProjectItemModel::onTemplatesAdded(), ProjectItem(), Isis::ProjectItemModel::removeItem(), and Isis::ProjectItemModel::selectedBOSSImages().
Control * Isis::ProjectItem::control | ( | ) | const |
Returns the Control stored in the data of the item.
Definition at line 536 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), Isis::Project::setActiveControl(), setControl(), and Isis::WorkOrder::setData().
ControlList * Isis::ProjectItem::controlList | ( | ) | const |
Returns the ControlList stored in the data of the item.
Definition at line 546 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemModel::onControlAdded(), ProjectItem(), setControlList(), Isis::ProjectItemModel::setData(), and Isis::WorkOrder::setData().
CorrelationMatrix Isis::ProjectItem::correlationMatrix | ( | ) | const |
Returns the CorrelationMatrix stored the item.
Definition at line 556 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), setCorrelationMatrix(), and Isis::WorkOrder::setData().
FileItemQsp Isis::ProjectItem::fileItem | ( | ) | const |
Returns the FileItemQsp stored in the data of the item.
Definition at line 597 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
ProjectItem * Isis::ProjectItem::findItemData | ( | const QVariant & | value, |
int | role = Qt::UserRole+1 |
||
) |
Finds and returns the first item in the model that contains the data in the role.
[in] | value | (const QVariant &) The data. |
[in] | role | (int) The role. |
Definition at line 1145 of file ProjectItem.cpp.
References child(), and findItemData().
Referenced by Isis::ProjectItemModel::findItemData(), and findItemData().
Template * Isis::ProjectItem::getTemplate | ( | ) | const |
Returns the Template stored in the data of the item.
Definition at line 516 of file ProjectItem.cpp.
Referenced by Isis::TemplateEditViewWorkOrder::isExecutable(), Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
GuiCameraQsp Isis::ProjectItem::guiCamera | ( | ) | const |
Returns the GuiCameraQsp stored in the data of the item.
Definition at line 576 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::onGuiCamerasAdded(), ProjectItem(), Isis::WorkOrder::setData(), and setGuiCamera().
Image * Isis::ProjectItem::image | ( | ) | const |
Returns the Image stored in the data of the item.
Definition at line 476 of file ProjectItem.cpp.
Referenced by Isis::RemoveImagesWorkOrder::execute(), Isis::WorkOrder::isExecutable(), Isis::JigsawSetupDialog::on_applySettingsPushButton_clicked(), Isis::CubeDnView::onCurrentChanged(), Isis::CubeDnView::onItemAdded(), Isis::Footprint2DView::onItemAdded(), Isis::Footprint2DView::onItemRemoved(), Isis::ProjectItemModel::onSelectionChanged(), ProjectItem(), Isis::WorkOrder::setData(), setImage(), and Isis::RemoveImagesWorkOrder::setupExecution().
ImageList * Isis::ProjectItem::imageList | ( | ) | const |
Returns the ImageList stored in the data of the item.
Definition at line 486 of file ProjectItem.cpp.
Referenced by Isis::RemoveImagesWorkOrder::execute(), Isis::WorkOrder::isExecutable(), ProjectItem(), Isis::Project::setActiveImageList(), Isis::ProjectItemModel::setData(), Isis::WorkOrder::setData(), setImageList(), and Isis::RemoveImagesWorkOrder::setupExecution().
void Isis::ProjectItem::insertRow | ( | int | row, |
ProjectItem * | item | ||
) |
Inserts an item to the children of this item at the row.
[in] | row | (int) The row. |
[in] | item | (ProjectItem *) The item. |
Definition at line 1190 of file ProjectItem.cpp.
bool Isis::ProjectItem::isBundleResults | ( | ) | const |
Returns true if BundleResults are stored in the data of the item.
Returns false otherwise.
Definition at line 613 of file ProjectItem.cpp.
bool Isis::ProjectItem::isBundleSettings | ( | ) | const |
Returns true if BundleSettings are stored in the data of the item.
Returns false otherwise.
Definition at line 624 of file ProjectItem.cpp.
bool Isis::ProjectItem::isBundleSolutionInfo | ( | ) | const |
Returns true if a BundleSolutionInfo is stored in the data of the item.
Returns false otherwise.
Definition at line 635 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemModel::setData().
bool Isis::ProjectItem::isControl | ( | ) | const |
Returns true if a Control is stored in the data of the item.
Returns false otherwise.
Definition at line 690 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::Project::setActiveControl(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isControlList | ( | ) | const |
Returns true if a ControlList is stored in the data of the item.
Returns false otherwise.
Definition at line 702 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemTreeView::onItemAdded(), Isis::ProjectItemModel::setData(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isCorrelationMatrix | ( | ) | const |
Returns true if a CorrelationMatrix is stored in the data of the item.
Returns false otherwise.
Definition at line 713 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isFileItem | ( | ) | const |
Returns true if a FileItemQsp is stored in the data of the item.
Returns false otherwise.
Definition at line 757 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isGuiCamera | ( | ) | const |
Returns true if a GuiCameraQsp is stored in the data of the item.
Returns false otherwise.
Definition at line 735 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isImage | ( | ) | const |
Returns true if an Image is stored in the data of the item.
Returns false otherwise.
Definition at line 646 of file ProjectItem.cpp.
Referenced by Isis::CubeDnView::addItem(), Isis::RemoveImagesWorkOrder::execute(), Isis::WorkOrder::isExecutable(), Isis::JigsawSetupDialog::on_applySettingsPushButton_clicked(), Isis::CubeDnView::onCurrentChanged(), Isis::CubeDnView::onItemAdded(), Isis::Footprint2DView::onItemAdded(), Isis::Footprint2DView::onItemRemoved(), Isis::ProjectItemModel::onSelectionChanged(), Isis::ProjectItemModel::selectedBOSSImages(), Isis::WorkOrder::setData(), Isis::RemoveImagesWorkOrder::setupExecution(), and Isis::JigsawSetupDialog::updateBundleObservationSolveSettings().
bool Isis::ProjectItem::isImageList | ( | ) | const |
Returns true if an ImageList is stored in the data of the item.
Returns false otherwise.
Definition at line 657 of file ProjectItem.cpp.
Referenced by Isis::CubeDnView::addItem(), Isis::RemoveImagesWorkOrder::execute(), Isis::WorkOrder::isExecutable(), Isis::JigsawSetupDialog::on_applySettingsPushButton_clicked(), Isis::ProjectItemTreeView::onItemAdded(), Isis::ProjectItemModel::selectedBOSSImages(), Isis::Project::setActiveImageList(), Isis::ProjectItemModel::setData(), Isis::WorkOrder::setData(), and Isis::RemoveImagesWorkOrder::setupExecution().
bool Isis::ProjectItem::isProject | ( | ) | const |
Returns true if a Project is stored in the data of the item.
Returns false otherwise.
Definition at line 724 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::setData(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isShape | ( | ) | const |
Returns true if an Shape is stored in the data of the item.
Returns false otherwise.
Definition at line 668 of file ProjectItem.cpp.
Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), Isis::CubeDnView::onItemAdded(), Isis::Footprint2DView::onItemAdded(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isShapeList | ( | ) | const |
Returns true if an ShapeList is stored in the data of the item.
Returns false otherwise.
Definition at line 679 of file ProjectItem.cpp.
Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::setData(), and Isis::WorkOrder::setData().
bool Isis::ProjectItem::isTargetBody | ( | ) | const |
Returns true if a TargetBodyQsp is stored in the data of the item.
Returns false otherwise.
Definition at line 746 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::WorkOrder::setData().
ProjectItemModel * Isis::ProjectItem::model | ( | ) | const |
Returns the ProjectItemModel associated with this item.
Definition at line 1201 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemProxyModel::addChild().
ProjectItem * Isis::ProjectItem::parent | ( | ) | const |
Returns the parent item of this item.
Definition at line 1211 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemProxyModel::addChild(), Isis::ProjectItemProxyModel::addItem(), Isis::ProjectItemTreeView::onItemAdded(), Isis::ProjectItemModel::removeItem(), and Isis::ProjectItemModel::selectedBOSSImages().
Project * Isis::ProjectItem::project | ( | ) | const |
Returns the Project stored in the data of the item.
Definition at line 566 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemModel::clean(), Isis::ProjectItemModel::onBundleSolutionInfoAdded(), Isis::ProjectItemModel::onControlAdded(), Isis::ProjectItemModel::onControlListAdded(), Isis::ProjectItemModel::onGuiCamerasAdded(), Isis::ProjectItemModel::onImagesAdded(), Isis::ProjectItemModel::onNameChanged(), Isis::ProjectItemModel::onShapesAdded(), Isis::ProjectItemModel::onTargetsAdded(), Isis::ProjectItemModel::onTemplatesAdded(), ProjectItem(), and setProject().
void Isis::ProjectItem::setBundleResults | ( | BundleResults | bundleResults | ) |
Sets the text, icon, and data corresponding to BundleResults.
[in] | bundleResults | (BundleResults) The BundleResults. |
Definition at line 781 of file ProjectItem.cpp.
References bundleResults().
Referenced by ProjectItem().
void Isis::ProjectItem::setBundleSettings | ( | BundleSettingsQsp | bundleSettings | ) |
Sets the text, icon, and data corresponding to BundleSettings.
[in] | bundleSettings | (BundleSettingsQsp) The BundleSettingsQsp. |
Definition at line 795 of file ProjectItem.cpp.
References bundleSettings().
Referenced by ProjectItem().
void Isis::ProjectItem::setBundleSolutionInfo | ( | BundleSolutionInfo * | bundleSolutionInfo | ) |
Sets the text, icon, and data corresponding to a BundleSolutionInfo.
[in] | bundleSolutionInfo | (BundleSolutionInfo *) The BundleSolutionInfo. |
Definition at line 809 of file ProjectItem.cpp.
References bundleSolutionInfo(), Isis::BundleSolutionInfo::name(), and Isis::BundleSolutionInfo::runTime().
Referenced by ProjectItem().
void Isis::ProjectItem::setChild | ( | int | row, |
ProjectItem * | item | ||
) |
Sets the child at the given row to an item.
[in] | row | (int) The row. |
[in] | item | (ProjectItem *) The item. |
Definition at line 1222 of file ProjectItem.cpp.
void Isis::ProjectItem::setControl | ( | Control * | control | ) |
Sets the text, icon, and data corresponding to a Control.
Definition at line 976 of file ProjectItem.cpp.
References control(), and Isis::Control::fileName().
Referenced by ProjectItem().
void Isis::ProjectItem::setControlList | ( | ControlList * | controlList | ) |
Sets the text, icon, and data corresponding to a ControlList.
[in] | controlList | (ControlList *) The ControlList. |
Definition at line 990 of file ProjectItem.cpp.
References controlList(), and Isis::ControlList::name().
Referenced by ProjectItem().
void Isis::ProjectItem::setControls | ( | ) |
Sets the text, icon, and data corresponding to a list of ControlList.
Definition at line 1002 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setCorrelationMatrix | ( | CorrelationMatrix | correlationMatrix | ) |
Sets the text, icon, and data corresponding to a CorrelationMatrix.
[in] | correlationMatrix | (CorrelationMatrix) The CorrelationMatrix. |
Definition at line 1016 of file ProjectItem.cpp.
References correlationMatrix().
Referenced by ProjectItem().
void Isis::ProjectItem::setGuiCamera | ( | GuiCameraQsp | guiCamera | ) |
Sets the text, icon, and data corresponding to a GuiCameraQsp.
[in] | guiCamera | (GuiCameraQsp) The GuiCameraQsp. |
Definition at line 1062 of file ProjectItem.cpp.
References guiCamera().
Referenced by ProjectItem().
void Isis::ProjectItem::setGuiCameraList | ( | ) |
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Definition at line 1074 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setImage | ( | Image * | image | ) |
Sets the text, icon, and data corresponding to an Image.
Definition at line 828 of file ProjectItem.cpp.
References Isis::Image::fileName(), and image().
Referenced by ProjectItem().
void Isis::ProjectItem::setImageList | ( | ImageList * | imageList | ) |
Sets the text, icon, and data corresponding to an ImageList.
Definition at line 842 of file ProjectItem.cpp.
References imageList(), Isis::ImageList::name(), and Isis::ImageList::path().
Referenced by ProjectItem().
void Isis::ProjectItem::setImages | ( | ) |
Sets the text, icon, and data corresponding to a list of ImageList.
Definition at line 859 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setProject | ( | Project * | project | ) |
Sets the text, icon, and data corresponding to a Project.
Definition at line 1035 of file ProjectItem.cpp.
References Isis::Project::name(), project(), and Isis::Project::projectRoot().
Referenced by ProjectItem().
void Isis::ProjectItem::setProjectItem | ( | ProjectItem * | item | ) |
Sets the text, icon, and data to those of another item.
[in] | item | (ProjectItem *) The other item. |
Definition at line 767 of file ProjectItem.cpp.
Referenced by Isis::ProjectItemProxyModel::addChild(), and ProjectItem().
void Isis::ProjectItem::setResults | ( | ) |
Sets the text, icon, and data corresponding to a list of Results.
Definition at line 1048 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setShape | ( | Shape * | shape | ) |
Sets the text, icon, and data corresponding to an Shape.
Definition at line 873 of file ProjectItem.cpp.
References Isis::Shape::fileName(), and shape().
Referenced by ProjectItem().
void Isis::ProjectItem::setShapeList | ( | ShapeList * | shapeList | ) |
Sets the text, icon, and data corresponding to an ShapeList.
Definition at line 887 of file ProjectItem.cpp.
References Isis::ShapeList::name(), Isis::ShapeList::path(), and shapeList().
Referenced by ProjectItem().
void Isis::ProjectItem::setShapes | ( | ) |
Sets the text, icon, and data corresponding to a list of ShapeList.
Definition at line 904 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setSpacecraft | ( | ) |
Sets the text, icon, and data corresponding to SpaceCraft.
Definition at line 1086 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setTargetBody | ( | TargetBodyQsp | targetBody | ) |
Sets the text, icon, and data corresponding to a TargetBodyQsp.
targetBody | Target body to set data from |
Definition at line 1101 of file ProjectItem.cpp.
References targetBody().
Referenced by ProjectItem().
void Isis::ProjectItem::setTargetBodyList | ( | ) |
Sets the text, icon, and data corresponding to a TargetBodyList.
Definition at line 1127 of file ProjectItem.cpp.
Referenced by ProjectItem().
void Isis::ProjectItem::setTemplate | ( | Template * | newTemplate | ) |
Sets the text, icon, and data corresponding to a Template.
Definition at line 918 of file ProjectItem.cpp.
References Isis::Template::fileName().
Referenced by ProjectItem().
void Isis::ProjectItem::setTemplateList | ( | TemplateList * | templateList | ) |
Sets the text, icon, and data corresponding to an TemplateList.
[in] | templateList | (TemplateList *) The TemplateList. |
Definition at line 931 of file ProjectItem.cpp.
References Isis::TemplateList::name(), Isis::TemplateList::path(), and templateList().
Referenced by ProjectItem().
void Isis::ProjectItem::setTemplates | ( | ) |
Sets the text, icon, and data corresponding to a list of TemplateList.
Definition at line 948 of file ProjectItem.cpp.
References appendRow(), and ProjectItem().
Referenced by ProjectItem().
Shape * Isis::ProjectItem::shape | ( | ) | const |
Returns the Shape stored in the data of the item.
Definition at line 496 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::CubeDnView::onItemAdded(), Isis::Footprint2DView::onItemAdded(), ProjectItem(), Isis::WorkOrder::setData(), and setShape().
ShapeList * Isis::ProjectItem::shapeList | ( | ) | const |
Returns the ShapeList stored in the data of the item.
Definition at line 506 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), Isis::ProjectItemModel::setData(), Isis::WorkOrder::setData(), and setShapeList().
ProjectItem * Isis::ProjectItem::takeChild | ( | int | row | ) |
Removes the child item at the given row and returns the removed item.
[in] | row | (int) The row. |
Definition at line 1235 of file ProjectItem.cpp.
TargetBodyQsp Isis::ProjectItem::targetBody | ( | ) | const |
Returns the TargetBodyQsp stored in the data of the item.
Definition at line 587 of file ProjectItem.cpp.
Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::onTargetsAdded(), ProjectItem(), Isis::WorkOrder::setData(), and setTargetBody().
TemplateList * Isis::ProjectItem::templateList | ( | ) | const |
Returns the TemplateList stored in the data of the item.
Definition at line 526 of file ProjectItem.cpp.
Referenced by ProjectItem(), and setTemplateList().