Isis 3.0 Programmer Reference
Home
Isis::ProjectItem Class Reference

Represents an item of a ProjectItemModel in Qt's model-view framework. More...

#include <ProjectItem.h>

Inheritance diagram for Isis::ProjectItem:
Inheritance graph
Collaboration diagram for Isis::ProjectItem:
Collaboration graph

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 ()
 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...
 
BundleSolutionInfobundleSolutionInfo () const
 Returns the BundleSolutionInfo stored in the data of the item. More...
 
Controlcontrol () const
 Returns the Control stored in the data of the item. More...
 
ControlListcontrolList () const
 Returns the ControlList stored in the data of the item. More...
 
CorrelationMatrix correlationMatrix () const
 Returns the CorrelationMatrix stored the item. More...
 
Imageimage () const
 Returns the Image stored in the data of the item. More...
 
ImageListimageList () const
 Returns the ImageList stored in the data of the item. More...
 
Shapeshape () const
 Returns the Shape stored in the data of the item. More...
 
ShapeListshapeList () const
 Returns the ShapeList stored in the data of the item. More...
 
Projectproject () 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...
 
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...
 
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...
 
ProjectItemfindItemData (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...
 
ProjectItemchild (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...
 
ProjectItemModelmodel () const
 Returns the ProjectItemModel associated with this item. More...
 
ProjectItemparent () 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...
 
ProjectItemtakeChild (int row)
 Removes the child item at the given row and returns the removed item. More...
 

Detailed Description

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.

* Image *image = new Image("example.cub");
* ProjectItemModel *model = new ProjectItemModel();
* model->appendRow(item);
*
Author
2015-10-21 Jeffrey Covington
History:

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 cnetsuite is launched, and this fixed it. Fixes #3982.

Definition at line 113 of file ProjectItem.h.

Constructor & Destructor Documentation

Isis::ProjectItem::ProjectItem ( )

Constructs an item without children, a parent, or a model.

Definition at line 47 of file ProjectItem.cpp.

Referenced by ProjectItem().

Isis::ProjectItem::ProjectItem ( ProjectItem item)
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.

Parameters
[in]item(ProjectItem *) The item to copy.

Definition at line 57 of file ProjectItem.cpp.

References appendRow(), child(), ProjectItem(), and setProjectItem().

Isis::ProjectItem::ProjectItem ( BundleResults  bundleResults)

Constructs an item from a BundleResults.

Parameters
[in]bundleResults(BundleResults) The BundleResults to construct from.

Definition at line 71 of file ProjectItem.cpp.

References appendRow(), Isis::BundleResults::correlationMatrix(), ProjectItem(), and setBundleResults().

Isis::ProjectItem::ProjectItem ( BundleSettingsQsp  bundleSettings)

Constructs an item from a BundleSettings.

Parameters
[in]bundleSettings(BundleSettingsQsp) The BundleSettings to construct from.

Definition at line 83 of file ProjectItem.cpp.

References setBundleSettings().

Isis::ProjectItem::ProjectItem ( BundleSolutionInfo bundleSolutionInfo)
Isis::ProjectItem::ProjectItem ( Control control)

Constructs an item from a Control.

Parameters
[in]control(Control *) The Control to construct from.

Definition at line 111 of file ProjectItem.cpp.

References setControl().

Isis::ProjectItem::ProjectItem ( ControlList controlList)

Constructs an item from a ControlList.

Parameters
[in]controlList(ControlList *) The ControlList to construct from.

Definition at line 121 of file ProjectItem.cpp.

References appendRow(), control(), ProjectItem(), and setControlList().

Isis::ProjectItem::ProjectItem ( QList< ControlList * >  controls)

Constructs an item from a list of ControlList.

Parameters
[in]controls(QList<ControlList *>) The list to construct from.

Definition at line 134 of file ProjectItem.cpp.

References appendRow(), controlList(), ProjectItem(), and setControls().

Isis::ProjectItem::ProjectItem ( CorrelationMatrix  correlationMatrix)

Constructs an item from a CorrelationMatrix.

Parameters
[in]correlationMatrix(CorrelationMatrix) The CorrelationMatrix to construct from.

Definition at line 148 of file ProjectItem.cpp.

References setCorrelationMatrix().

Isis::ProjectItem::ProjectItem ( Image image)

Constructs an item from an Image.

Parameters
[in]image(Image *) The Image to construct from.

Definition at line 158 of file ProjectItem.cpp.

References setImage().

Isis::ProjectItem::ProjectItem ( ImageList imageList)

Constructs an item from an ImageList.

Parameters
[in]imageList(ImageList *) The ImageList to construct from.

Definition at line 168 of file ProjectItem.cpp.

References appendRow(), image(), ProjectItem(), and setImageList().

Isis::ProjectItem::ProjectItem ( QList< ImageList * >  images)

Constructs an item from a list of ImageList.

Parameters
[in]images(QList<ImageList *>) The list to construct from.

Definition at line 181 of file ProjectItem.cpp.

References appendRow(), imageList(), ProjectItem(), and setImages().

Isis::ProjectItem::ProjectItem ( Shape shape)

Constructs an item from an Shape.

Parameters
[in]shape(Shape *) The Shape to construct from.

Definition at line 194 of file ProjectItem.cpp.

References setShape().

Isis::ProjectItem::ProjectItem ( ShapeList shapeList)

Constructs an item from an ShapeList.

Parameters
[in]shapeList(ShapeList *) The ShapeList to construct from.

Definition at line 204 of file ProjectItem.cpp.

References appendRow(), ProjectItem(), setShapeList(), and shape().

Isis::ProjectItem::ProjectItem ( QList< ShapeList * >  shapes)

Constructs an item from a list of ShapeList.

Parameters
[in]shapes(QList<ShapeList *>) The list to construct from.

Definition at line 217 of file ProjectItem.cpp.

References appendRow(), ProjectItem(), setShapes(), and shapeList().

Isis::ProjectItem::ProjectItem ( GuiCameraQsp  guiCamera)

Constructs an item from a GuiCameraQsp.

Parameters
[in]guiCamera(GuiCameraQsp) The camera to construct from.

Definition at line 230 of file ProjectItem.cpp.

References setGuiCamera().

Isis::ProjectItem::ProjectItem ( GuiCameraList guiCameraList)

Constructs an item from a GuiCameraList.

Parameters
[in]guiCameraList(GuiCameraList *) The list of cameras to construct from.

Definition at line 241 of file ProjectItem.cpp.

References appendRow(), guiCamera(), ProjectItem(), and setGuiCameraList().

Isis::ProjectItem::ProjectItem ( Project project)

Constructs an item from a Project.

Parameters
[in]project(Project *) The Project to construct from.

Definition at line 254 of file ProjectItem.cpp.

References appendRow(), Isis::Project::images(), ProjectItem(), setGuiCameraList(), setProject(), setSpacecraft(), and setTargetBodyList().

Isis::ProjectItem::ProjectItem ( QList< BundleSolutionInfo * >  results)

Constructs an item from a list of BundleSolutionInfo.

Parameters
[in]results(QList<BundleSolutionInfo *>) The list to construct from.

Definition at line 285 of file ProjectItem.cpp.

References appendRow(), bundleSolutionInfo(), ProjectItem(), and setResults().

Isis::ProjectItem::ProjectItem ( TargetBodyQsp  targetBody)

Constructs an item from a TargetBodyQsp.

Parameters
[in]targetBody(TargetBodyQsp) The target body to construct from.

Definition at line 298 of file ProjectItem.cpp.

References setTargetBody().

Isis::ProjectItem::ProjectItem ( TargetBodyList targetBodyList)

Constructs an item from a TargetBodyList.

Parameters
[in]targetBodyList(TargetBodyList *) The list to construct from.

Definition at line 308 of file ProjectItem.cpp.

References appendRow(), ProjectItem(), setTargetBodyList(), and targetBody().

Isis::ProjectItem::~ProjectItem ( )

Destructs a ProjectItem.

Definition at line 319 of file ProjectItem.cpp.

Member Function Documentation

BundleResults Isis::ProjectItem::bundleResults ( ) const

Returns the BundleResults stored in the data of the item.

Returns
BundleResults The BundleResults of the item.

Definition at line 327 of file ProjectItem.cpp.

BundleSettingsQsp Isis::ProjectItem::bundleSettings ( ) const

Returns the BundleSettings stored in the data of the item.

Returns
BundleSettingsQsp The BundleSettings of the item.

Definition at line 337 of file ProjectItem.cpp.

BundleSolutionInfo * Isis::ProjectItem::bundleSolutionInfo ( ) const

Returns the BundleSolutionInfo stored in the data of the item.

Returns
BundleSolutionInfo* The BundleSolutionInfo of the item.

Definition at line 347 of file ProjectItem.cpp.

Referenced by ProjectItem().

Control * Isis::ProjectItem::control ( ) const

Returns the Control stored in the data of the item.

Returns
Control* The Control of the item.

Definition at line 397 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), and Isis::WorkOrder::setData().

ControlList * Isis::ProjectItem::controlList ( ) const

Returns the ControlList stored in the data of the item.

Returns
ControlList* The ControlList of the item.

Definition at line 407 of file ProjectItem.cpp.

Referenced by Isis::ProjectItemModel::onControlAdded(), ProjectItem(), and Isis::WorkOrder::setData().

CorrelationMatrix Isis::ProjectItem::correlationMatrix ( ) const

Returns the CorrelationMatrix stored the item.

Returns
CorrelationMatrix* The CorrelationMatrix of the item.

Definition at line 417 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.

Parameters
[in]value(const QVariant &) The data.
[in]role(int) The role.
Returns
ProjectItem* The found item.

Definition at line 858 of file ProjectItem.cpp.

References child(), and findItemData().

Referenced by Isis::ProjectItemModel::findItemData(), and findItemData().

GuiCameraQsp Isis::ProjectItem::guiCamera ( ) const

Returns the GuiCameraQsp stored in the data of the item.

Returns
GuiCameraQsp The camera stored in the item.

Definition at line 437 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::onGuiCamerasAdded(), ProjectItem(), and Isis::WorkOrder::setData().

ImageList * Isis::ProjectItem::imageList ( ) const

Returns the ImageList stored in the data of the item.

Returns
ImageList* The ImageList of the item.

Definition at line 367 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), and Isis::WorkOrder::setData().

void Isis::ProjectItem::insertRow ( int  row,
ProjectItem item 
)

Inserts an item to the children of this item at the row.

Parameters
[in]row(int) The row.
[in]item(ProjectItem *) The item.

Definition at line 906 of file ProjectItem.cpp.

bool Isis::ProjectItem::isBundleResults ( ) const

Returns true if BundleResults are stored in the data of the item.

Returns false otherwise.

Returns
bool If BundleResults are stored in the data of the item or not.

Definition at line 459 of file ProjectItem.cpp.

bool Isis::ProjectItem::isBundleSettings ( ) const

Returns true if BundleSettings are stored in the data of the item.

Returns false otherwise.

Returns
bool If BundleSettings are stored in the data of the item or not.

Definition at line 470 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.

Returns
bool If a BundleSolutionInfo is stored in the data of the item or not.

Definition at line 481 of file ProjectItem.cpp.

bool Isis::ProjectItem::isControl ( ) const

Returns true if a Control is stored in the data of the item.

Returns false otherwise.

Returns
bool If a Control is stored in the data of the item or not.

Definition at line 536 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), 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.

Returns
bool If a ControlList is stored in the data of the item or not.

Definition at line 548 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemTreeView::onItemAdded(), 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.

Returns
bool If a CorrelationMatrix is stored in the data of the item or not.

Definition at line 559 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.

Returns
bool If a GuiCameraQsp is stored in the item or not.

Definition at line 581 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.

Returns
bool If an Image is stored in the data of the item or not.

Definition at line 492 of file ProjectItem.cpp.

Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), Isis::CubeDnView::onCurrentChanged(), Isis::Footprint2DView::onItemAdded(), Isis::CubeDnView::onItemAdded(), Isis::Footprint2DView::onItemRemoved(), Isis::ProjectItemModel::onSelectionChanged(), and Isis::WorkOrder::setData().

bool Isis::ProjectItem::isImageList ( ) const

Returns true if an ImageList is stored in the data of the item.

Returns false otherwise.

Returns
bool If an ImageList is stored in the data of the item or not.

Definition at line 503 of file ProjectItem.cpp.

Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), Isis::ProjectItemTreeView::onItemAdded(), and Isis::WorkOrder::setData().

bool Isis::ProjectItem::isProject ( ) const

Returns true if a Project is stored in the data of the item.

Returns false otherwise.

Returns
bool If a Project is stored in the data of the item or not.

Definition at line 570 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), 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.

Returns
(bool) If an Shape is stored in the data of the item or not.

Definition at line 514 of file ProjectItem.cpp.

Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), Isis::Footprint2DView::onItemAdded(), Isis::CubeDnView::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.

Returns
(bool) If an ShapeList is stored in the data of the item or not.

Definition at line 525 of file ProjectItem.cpp.

Referenced by Isis::CubeDnView::addItem(), Isis::WorkOrder::isExecutable(), 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.

Returns
bool If a TargetBodyQsp is stored in the item or not.

Definition at line 592 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.

Returns
ProjectItemModel* The model.

Definition at line 916 of file ProjectItem.cpp.

Referenced by Isis::ProjectItemProxyModel::addChild().

ProjectItem * Isis::ProjectItem::parent ( ) const

Returns the parent item of this item.

Returns
ProjectItem* The parent item.

Definition at line 926 of file ProjectItem.cpp.

Referenced by Isis::ProjectItemProxyModel::addChild(), Isis::ProjectItemProxyModel::addItem(), Isis::ProjectItemTreeView::onItemAdded(), and Isis::ProjectItemModel::removeItem().

void Isis::ProjectItem::setBundleResults ( BundleResults  bundleResults)

Sets the text, icon, and data corresponding to BundleResults.

Parameters
[in]bundleResults(BundleResults) The BundleResults.

Definition at line 614 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setBundleSettings ( BundleSettingsQsp  bundleSettings)

Sets the text, icon, and data corresponding to BundleSettings.

Parameters
[in]bundleSettings(BundleSettingsQsp) The BundleSettingsQsp.

Definition at line 626 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setBundleSolutionInfo ( BundleSolutionInfo bundleSolutionInfo)

Sets the text, icon, and data corresponding to a BundleSolutionInfo.

Parameters
[in]bundleSolutionInfo(BundleSolutionInfo *) The BundleSolutionInfo.

Definition at line 638 of file ProjectItem.cpp.

References Isis::BundleSolutionInfo::runTime().

Referenced by ProjectItem().

void Isis::ProjectItem::setChild ( int  row,
ProjectItem item 
)

Sets the child at the given row to an item.

Parameters
[in]row(int) The row.
[in]item(ProjectItem *) The item.

Definition at line 937 of file ProjectItem.cpp.

void Isis::ProjectItem::setControl ( Control control)

Sets the text, icon, and data corresponding to a Control.

Parameters
[in]control(Control *) The Control.

Definition at line 718 of file ProjectItem.cpp.

References Isis::Control::fileName().

Referenced by ProjectItem().

void Isis::ProjectItem::setControlList ( ControlList controlList)

Sets the text, icon, and data corresponding to a ControlList.

Parameters
[in]controlList(ControlList *) The ControlList.

Definition at line 730 of file ProjectItem.cpp.

References 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 740 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setCorrelationMatrix ( CorrelationMatrix  correlationMatrix)

Sets the text, icon, and data corresponding to a CorrelationMatrix.

Parameters
[in]correlationMatrix(CorrelationMatrix) The CorrelationMatrix.

Definition at line 752 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setGuiCamera ( GuiCameraQsp  guiCamera)

Sets the text, icon, and data corresponding to a GuiCameraQsp.

Parameters
[in]guiCamera(GuiCameraQsp) The GuiCameraQsp.

Definition at line 791 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setGuiCameraList ( )

Sets the text, icon, and data corresponding to a GuiCameraQsp.

Definition at line 801 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setImage ( Image image)

Sets the text, icon, and data corresponding to an Image.

Parameters
[in]image(Image *) The Image.

Definition at line 650 of file ProjectItem.cpp.

References Isis::Image::fileName().

Referenced by ProjectItem().

void Isis::ProjectItem::setImageList ( ImageList imageList)

Sets the text, icon, and data corresponding to an ImageList.

Parameters
[in]imageList(ImageList *) The ImageList.

Definition at line 662 of file ProjectItem.cpp.

References Isis::ImageList::name().

Referenced by ProjectItem().

void Isis::ProjectItem::setImages ( )

Sets the text, icon, and data corresponding to a list of ImageList.

Definition at line 672 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setProject ( Project project)

Sets the text, icon, and data corresponding to a Project.

Parameters
[in]project(Project *) The Project.
History:
2016-11-10 - Tyler Wilson Changed the reference to the icon from ':data' to ':data-management' due to a naming conflict causing strange errors to appear on the command line. Fixes #3982.

Definition at line 769 of file ProjectItem.cpp.

References Isis::Project::name().

Referenced by ProjectItem().

void Isis::ProjectItem::setProjectItem ( ProjectItem item)

Sets the text, icon, and data to those of another item.

Parameters
[in]item(ProjectItem *) The other item.

Definition at line 602 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 779 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setShape ( Shape shape)

Sets the text, icon, and data corresponding to an Shape.

Parameters
[in]shape(Shape *) The Shape.

Definition at line 684 of file ProjectItem.cpp.

References Isis::Shape::fileName().

Referenced by ProjectItem().

void Isis::ProjectItem::setShapeList ( ShapeList shapeList)

Sets the text, icon, and data corresponding to an ShapeList.

Parameters
[in]shapeList(ShapeList *) The ShapeList.

Definition at line 696 of file ProjectItem.cpp.

References Isis::ShapeList::name().

Referenced by ProjectItem().

void Isis::ProjectItem::setShapes ( )

Sets the text, icon, and data corresponding to a list of ShapeList.

Definition at line 706 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setSpacecraft ( )

Sets the text, icon, and data corresponding to SpaceCraft.

Definition at line 811 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setTargetBody ( TargetBodyQsp  targetBody)

Sets the text, icon, and data corresponding to a TargetBodyQsp.

Parameters
targetBodyTarget body to set data from

Definition at line 823 of file ProjectItem.cpp.

Referenced by ProjectItem().

void Isis::ProjectItem::setTargetBodyList ( )

Sets the text, icon, and data corresponding to a TargetBodyList.

Definition at line 842 of file ProjectItem.cpp.

Referenced by ProjectItem().

Shape * Isis::ProjectItem::shape ( ) const

Returns the Shape stored in the data of the item.

Returns
(Shape *) The Shape of the item.

Definition at line 377 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), Isis::Footprint2DView::onItemAdded(), Isis::CubeDnView::onItemAdded(), ProjectItem(), and Isis::WorkOrder::setData().

ShapeList * Isis::ProjectItem::shapeList ( ) const

Returns the ShapeList stored in the data of the item.

Returns
(ShapeList *) The ShapeList of the item.

Definition at line 387 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), ProjectItem(), and Isis::WorkOrder::setData().

ProjectItem * Isis::ProjectItem::takeChild ( int  row)

Removes the child item at the given row and returns the removed item.

Parameters
[in]row(int) The row.
Returns
ProjectItem* The item.

Definition at line 949 of file ProjectItem.cpp.

TargetBodyQsp Isis::ProjectItem::targetBody ( ) const

Returns the TargetBodyQsp stored in the data of the item.

Returns
TargetBodyQsp The target body stored in the item.

Definition at line 448 of file ProjectItem.cpp.

Referenced by Isis::WorkOrder::isExecutable(), Isis::ProjectItemModel::onTargetsAdded(), ProjectItem(), and Isis::WorkOrder::setData().


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