27 #include <QStandardItem> 
   34 #include "ControlList.h" 
   37 #include "ImageList.h" 
   41 #include "ShapeList.h" 
   59     for (
int i=0; i < item->rowCount(); i++) {
 
  358     return data().value<
Image *>();
 
  378     return data().value<
Shape *>();
 
  398     return data().value<
Control *>();
 
  428     return data().value<
Project *>();
 
  493     return data().canConvert<
Image *>();
 
  515     return data().canConvert<
Shape *>();
 
  537     return data().canConvert<
Control *>();
 
  571     return data().canConvert<
Project *>();
 
  603     setText( item->text() );
 
  604     setIcon( item->icon() );
 
  605     setData( item->data() );
 
  616     setIcon( QIcon(
":results") );
 
  617     setData( QVariant::fromValue<BundleResults>(bundleResults) );
 
  628     setIcon( QIcon(
":settings") );
 
  629     setData( QVariant::fromValue<BundleSettingsQsp>(bundleSettings) );
 
  639     setText( bundleSolutionInfo->
runTime() );
 
  640     setIcon( QIcon(
":results") );
 
  641     setData( QVariant::fromValue<BundleSolutionInfo *>(bundleSolutionInfo) );
 
  651     setText( QFileInfo( image->
fileName() ).fileName() );
 
  652     setIcon( QIcon(
":pictures") );
 
  653     setData( QVariant::fromValue<Image *>(image) );
 
  663     setText( imageList->
name() );
 
  664     setIcon( QIcon(
":pictures") );
 
  665     setData( QVariant::fromValue<ImageList *>(imageList) );
 
  674     setIcon( QIcon(
":pictures") );
 
  675     setData( QVariant() );
 
  685     setText( QFileInfo( shape->
fileName() ).fileName() );
 
  686     setIcon( QIcon(
":dem") );
 
  687     setData( QVariant::fromValue<Shape *>(shape) );
 
  697     setText( shapeList->
name() );
 
  698     setIcon( QIcon(
":dem") );
 
  699     setData( QVariant::fromValue<ShapeList *>(shapeList) );
 
  708     setIcon( QIcon(
":dem") );
 
  709     setData( QVariant() );
 
  719     setText( QFileInfo( control->
fileName() ).fileName() );
 
  720     setIcon( QIcon(
":pointReg") );
 
  721     setData( QVariant::fromValue<Control *>(control) );
 
  731     setText( controlList->
name() );
 
  732     setIcon( QIcon(
":folder") );
 
  733     setData( QVariant::fromValue<ControlList *>(controlList) );
 
  741     setText(
"Control Networks");
 
  742     setIcon( QIcon(
":layers") );
 
  743     setData( QVariant() );
 
  753     setText(
"Correlation Matrix");
 
  754     setIcon( QIcon(
":pointReg") );
 
  755     setData( QVariant::fromValue<CorrelationMatrix>(correlationMatrix) );
 
  770     setText( project->
name() );
 
  771     setIcon( QIcon(
":data-management") );
 
  772     setData( QVariant::fromValue<Project *>(project) );
 
  781     setIcon( QIcon(
":results") );
 
  782     setData( QVariant() );
 
  792     setText( guiCamera->displayProperties()->displayName() );
 
  793     setIcon( QIcon(
":camera") );
 
  794     setData( QVariant::fromValue<GuiCameraQsp>(guiCamera) );
 
  803     setIcon( QIcon(
":camera") );
 
  804     setData( QVariant() );
 
  812     setText(
"Spacecraft");
 
  813     setIcon( QIcon(
":spacecraft") );
 
  814     setData( QVariant() );
 
  824     setText( targetBody->displayProperties()->displayName() );
 
  825     if (targetBody->displayProperties()->displayName() == 
"MOON")
 
  826       setIcon( QIcon(
":moon") );
 
  827     else if (targetBody->displayProperties()->displayName() == 
"Enceladus")
 
  828       setIcon( QIcon(
":enceladus") );
 
  829     else if (targetBody->displayProperties()->displayName() == 
"Mars")
 
  830       setIcon( QIcon(
":mars") );
 
  831     else if (targetBody->displayProperties()->displayName() == 
"Titan")
 
  832       setIcon( QIcon(
":titan") );
 
  834       setIcon( QIcon(
":moonPhase") );
 
  835     setData( QVariant::fromValue<TargetBodyQsp>(targetBody) );
 
  843     setText(
"Target Body");
 
  844     setIcon( QIcon(
":moonPhase") );
 
  845     setData( QVariant() );
 
  861     if ( data(role) == value ) {
 
  865     for (
int i=0; i<rowCount(); i++) {
 
  884     QStandardItem::appendRow(item);
 
  896     return static_cast<ProjectItem *
>( QStandardItem::child(row) );
 
  907     QStandardItem::insertRow(row, item);
 
  927     return static_cast<ProjectItem *
>( QStandardItem::parent() );
 
  938     QStandardItem::setChild(row, item);
 
  952     if ( items.isEmpty() ) {
 
  956     return static_cast<ProjectItem *
>( items.first() );
 
This represents an ISIS control net in a project-based GUI interface. 
 
QString name() const 
Get the human-readable name of this shape list. 
 
Internalizes a list of shapes and allows for operations on the entire list. 
 
bool isBundleSettings() const 
Returns true if BundleSettings are stored in the data of the item. 
 
Internalizes a list of images and allows for operations on the entire list. 
 
QSharedPointer< BundleSettings > BundleSettingsQsp
Definition for a BundleSettingsQsp, a shared pointer to a BundleSettings object. 
 
The main project for cnetsuite. 
 
void appendRow(ProjectItem *item)
Appends an item to the children of this item. 
 
This is a container for the correlation matrix that comes from a bundle adjust. 
 
QString name() const 
Get the project's GUI name. 
 
void setTargetBody(TargetBodyQsp targetBody)
Sets the text, icon, and data corresponding to a TargetBodyQsp. 
 
TargetBodyQsp targetBody() const 
Returns the TargetBodyQsp stored in the data of the item. 
 
bool isShape() const 
Returns true if an Shape is stored in the data of the item. 
 
Container class for BundleAdjustment results. 
 
void setProject(Project *project)
Sets the text, icon, and data corresponding to a Project. 
 
BundleSettingsQsp bundleSettings()
Returns the bundle settings. 
 
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList. 
 
QString fileName() const 
Get the file name of the cube that this image represents. 
 
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
 
bool isControl() const 
Returns true if a Control is stored in the data of the item. 
 
void setChild(int row, ProjectItem *item)
Sets the child at the given row to an item. 
 
void setControls()
Sets the text, icon, and data corresponding to a list of ControlList. 
 
QString name() const 
Get the human-readable name of this image list. 
 
bool isImageList() const 
Returns true if an ImageList is stored in the data of the item. 
 
ImageList * imageList() const 
Returns the ImageList stored in the data of the item. 
 
CorrelationMatrix correlationMatrix() const 
Returns the Correlation Matrix. 
 
void setBundleSettings(BundleSettingsQsp bundleSettings)
Sets the text, icon, and data corresponding to BundleSettings. 
 
void setSpacecraft()
Sets the text, icon, and data corresponding to SpaceCraft. 
 
bool isImage() const 
Returns true if an Image is stored in the data of the item. 
 
CorrelationMatrix correlationMatrix() const 
Returns the CorrelationMatrix stored the item. 
 
Shape * shape() const 
Returns the Shape stored in the data of the item. 
 
void setImage(Image *image)
Sets the text, icon, and data corresponding to an Image. 
 
void setShapes()
Sets the text, icon, and data corresponding to a list of ShapeList. 
 
QString runTime() const 
Returns the run time. 
 
BundleResults bundleResults() const 
Returns the BundleResults stored in the data of the item. 
 
void setControl(Control *control)
Sets the text, icon, and data corresponding to a Control. 
 
Unless noted otherwise, the portions of Isis written by the USGS are public domain. 
 
List for holding TargetBodies. 
 
void setGuiCamera(GuiCameraQsp guiCamera)
Sets the text, icon, and data corresponding to a GuiCameraQsp. 
 
bool isBundleSolutionInfo() const 
Returns true if a BundleSolutionInfo is stored in the data of the item. 
 
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. ...
 
ProjectItem * parent() const 
Returns the parent item of this item. 
 
void setShape(Shape *shape)
Sets the text, icon, and data corresponding to an Shape. 
 
void insertRow(int row, ProjectItem *item)
Inserts an item to the children of this item at the row. 
 
void setTargetBodyList()
Sets the text, icon, and data corresponding to a TargetBodyList. 
 
void setImageList(ImageList *imageList)
Sets the text, icon, and data corresponding to an ImageList. 
 
Provides access to data stored in a Project through Qt's model-view framework. 
 
static QStringList images(QStringList)
Verify that the input fileNames are image files. 
 
void setBundleResults(BundleResults bundleResults)
Sets the text, icon, and data corresponding to BundleResults. 
 
Project * project() const 
Returns the Project stored in the data of the item. 
 
bool isTargetBody() const 
Returns true if a TargetBodyQsp is stored in the data of the item. 
 
ProjectItem * takeChild(int row)
Removes the child item at the given row and returns the removed item. 
 
void setProjectItem(ProjectItem *item)
Sets the text, icon, and data to those of another item. 
 
Image * image() const 
Returns the Image stored in the data of the item. 
 
ControlList * controlList() const 
Returns the ControlList stored in the data of the item. 
 
ProjectItemModel * model() const 
Returns the ProjectItemModel associated with this item. 
 
QSharedPointer< TargetBody > TargetBodyQsp
Defines A smart pointer to a TargetBody obj. 
 
bool isCorrelationMatrix() const 
Returns true if a CorrelationMatrix is stored in the data of the item. 
 
GuiCameraQsp guiCamera() const 
Returns the GuiCameraQsp stored in the data of the item. 
 
Control * control() const 
Returns the Control stored in the data of the item. 
 
QString name() const 
Get the human-readable name of this control list. 
 
bool isGuiCamera() const 
Returns true if a GuiCameraQsp is stored in the data of the item. 
 
This represents a cube in a project-based GUI interface. 
 
QString fileName() const 
Access the name of the control network file associated with this Control. 
 
void setCorrelationMatrix(CorrelationMatrix correlationMatrix)
Sets the text, icon, and data corresponding to a CorrelationMatrix. 
 
bool isShapeList() const 
Returns true if an ShapeList is stored in the data of the item. 
 
void setImages()
Sets the text, icon, and data corresponding to a list of ImageList. 
 
void setResults()
Sets the text, icon, and data corresponding to a list of Results. 
 
void setGuiCameraList()
Sets the text, icon, and data corresponding to a GuiCameraQsp. 
 
List of GuiCameras saved as QSharedPointers. 
 
QString controlNetworkFileName() const 
Returns the name of the control network. 
 
Unless noted otherwise, the portions of Isis written by the USGS are public domain. 
 
void setBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Sets the text, icon, and data corresponding to a BundleSolutionInfo. 
 
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object. 
 
This represents a shape in a project-based GUI interface. 
 
ShapeList * shapeList() const 
Returns the ShapeList stored in the data of the item. 
 
ProjectItem()
Constructs an item without children, a parent, or a model. 
 
bool isControlList() const 
Returns true if a ControlList is stored in the data of the item. 
 
~ProjectItem()
Destructs a ProjectItem. 
 
Represents an item of a ProjectItemModel in Qt's model-view framework. 
 
BundleResults bundleResults()
Returns the bundle results. 
 
A container class for statistical results from a BundleAdjust solution. 
 
void setShapeList(ShapeList *shapeList)
Sets the text, icon, and data corresponding to an ShapeList. 
 
BundleSettingsQsp bundleSettings() const 
Returns the BundleSettings stored in the data of the item. 
 
BundleSolutionInfo * bundleSolutionInfo() const 
Returns the BundleSolutionInfo stored in the data of the item. 
 
ProjectItem * child(int row) const 
Returns the child item at a given row. 
 
bool isBundleResults() const 
Returns true if BundleResults are stored in the data of the item. 
 
QString fileName() const 
Get the file name of the cube that this shape represents. 
 
bool isProject() const 
Returns true if a Project is stored in the data of the item.