Isis 3.0
Home
ProjectItem.h
Go to the documentation of this file.
1 #ifndef ProjectItem_h
2 #define ProjectItem_h
3 
27 #include <QStandardItem>
28 
29 #include "BundleSettings.h"
30 #include "GuiCamera.h"
31 #include "TargetBody.h"
32 
33 class QVariant;
34 
35 namespace Isis {
36 
37  class BundleResults;
38  class BundleSolutionInfo;
39  class Control;
40  class ControlList;
41  class CorrelationMatrix;
42  class Image;
43  class ImageList;
44  class GuiCameraList;
45  class Project;
46  class ProjectItem;
47  class ProjectItemModel;
48  class Shape;
49  class ShapeList;
50  class TargetBodyList;
51 
113  class ProjectItem : public QStandardItem {
114  public:
115  ProjectItem();
116  explicit ProjectItem(ProjectItem *item);
131  ProjectItem(GuiCameraList *guiCameraList);
135  ProjectItem(TargetBodyList *targetBodyList);
136 
137  ~ProjectItem();
138 
142  Control *control() const;
143  ControlList *controlList() const;
145  Image *image() const;
146  ImageList *imageList() const;
147  Shape *shape() const;
148  ShapeList *shapeList() const;
149  Project *project() const;
150  GuiCameraQsp guiCamera() const;
151  TargetBodyQsp targetBody() const;
152 
153  bool isBundleResults() const;
154  bool isBundleSettings() const;
155  bool isBundleSolutionInfo() const;
156  bool isControl() const;
157  bool isControlList() const;
158  bool isCorrelationMatrix() const;
159  bool isImage() const;
160  bool isImageList() const;
161  bool isShape() const;
162  bool isShapeList() const;
163  bool isProject() const;
164  bool isGuiCamera() const;
165  bool isTargetBody() const;
166 
167  void setProjectItem(ProjectItem *item);
168  void setBundleResults(BundleResults bundleResults);
169  void setBundleSettings(BundleSettingsQsp bundleSettings);
170  void setBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo);
171  void setControl(Control *control);
172  void setControlList(ControlList *controlList);
173  void setControls();
174  void setCorrelationMatrix(CorrelationMatrix correlationMatrix);
175  void setImage(Image *image);
176  void setImageList(ImageList *imageList);
177  void setImages();
178  void setShape(Shape *shape);
179  void setShapeList(ShapeList *shapeList);
180  void setShapes();
181  void setProject(Project *project);
182  void setResults();
183  void setGuiCamera(GuiCameraQsp guiCamera);
184  void setGuiCameraList();
185  void setSpacecraft();
186  void setTargetBody(TargetBodyQsp targetBody);
187  void setTargetBodyList();
188 
189  ProjectItem *findItemData(const QVariant &value, int role = Qt::UserRole+1);
190 
191  void appendRow(ProjectItem *item);
192  ProjectItem *child(int row) const;
193  void insertRow(int row, ProjectItem *item);
194  ProjectItemModel *model() const;
195  ProjectItem *parent() const;
196  void setChild(int row, ProjectItem *item);
197  ProjectItem *takeChild(int row);
198  };
199 
200 }
201 
203 
204 #endif
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:57
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
bool isBundleSettings() const
Returns true if BundleSettings are stored in the data of the item.
Definition: ProjectItem.cpp:470
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:44
QSharedPointer< BundleSettings > BundleSettingsQsp
Definition for a BundleSettingsQsp, a shared pointer to a BundleSettings object.
Definition: BundleSettings.h:404
The main project for cnetsuite.
Definition: Project.h:105
void appendRow(ProjectItem *item)
Appends an item to the children of this item.
Definition: ProjectItem.cpp:883
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:72
void setTargetBody(TargetBodyQsp targetBody)
Sets the text, icon, and data corresponding to a TargetBodyQsp.
Definition: ProjectItem.cpp:823
TargetBodyQsp targetBody() const
Returns the TargetBodyQsp stored in the data of the item.
Definition: ProjectItem.cpp:448
bool isShape() const
Returns true if an Shape is stored in the data of the item.
Definition: ProjectItem.cpp:514
Container class for BundleAdjustment results.
Definition: BundleSolutionInfo.h:98
void setProject(Project *project)
Sets the text, icon, and data corresponding to a Project.
Definition: ProjectItem.cpp:769
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList.
Definition: ProjectItem.cpp:730
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:34
bool isControl() const
Returns true if a Control is stored in the data of the item.
Definition: ProjectItem.cpp:536
void setChild(int row, ProjectItem *item)
Sets the child at the given row to an item.
Definition: ProjectItem.cpp:937
void setControls()
Sets the text, icon, and data corresponding to a list of ControlList.
Definition: ProjectItem.cpp:740
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
Definition: ProjectItem.cpp:503
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
Definition: ProjectItem.cpp:367
void setBundleSettings(BundleSettingsQsp bundleSettings)
Sets the text, icon, and data corresponding to BundleSettings.
Definition: ProjectItem.cpp:626
void setSpacecraft()
Sets the text, icon, and data corresponding to SpaceCraft.
Definition: ProjectItem.cpp:811
bool isImage() const
Returns true if an Image is stored in the data of the item.
Definition: ProjectItem.cpp:492
CorrelationMatrix correlationMatrix() const
Returns the CorrelationMatrix stored the item.
Definition: ProjectItem.cpp:417
Shape * shape() const
Returns the Shape stored in the data of the item.
Definition: ProjectItem.cpp:377
void setImage(Image *image)
Sets the text, icon, and data corresponding to an Image.
Definition: ProjectItem.cpp:650
void setShapes()
Sets the text, icon, and data corresponding to a list of ShapeList.
Definition: ProjectItem.cpp:706
BundleResults bundleResults() const
Returns the BundleResults stored in the data of the item.
Definition: ProjectItem.cpp:327
void setControl(Control *control)
Sets the text, icon, and data corresponding to a Control.
Definition: ProjectItem.cpp:718
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *&#39;s to be stored in a QVariant.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
List for holding TargetBodies.
Definition: TargetBodyList.h:33
void setGuiCamera(GuiCameraQsp guiCamera)
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Definition: ProjectItem.cpp:791
bool isBundleSolutionInfo() const
Returns true if a BundleSolutionInfo is stored in the data of the item.
Definition: ProjectItem.cpp:481
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. ...
Definition: ProjectItem.cpp:858
ProjectItem * parent() const
Returns the parent item of this item.
Definition: ProjectItem.cpp:926
void setShape(Shape *shape)
Sets the text, icon, and data corresponding to an Shape.
Definition: ProjectItem.cpp:684
void insertRow(int row, ProjectItem *item)
Inserts an item to the children of this item at the row.
Definition: ProjectItem.cpp:906
void setTargetBodyList()
Sets the text, icon, and data corresponding to a TargetBodyList.
Definition: ProjectItem.cpp:842
void setImageList(ImageList *imageList)
Sets the text, icon, and data corresponding to an ImageList.
Definition: ProjectItem.cpp:662
Provides access to data stored in a Project through Qt&#39;s model-view framework.
Definition: ProjectItemModel.h:94
void setBundleResults(BundleResults bundleResults)
Sets the text, icon, and data corresponding to BundleResults.
Definition: ProjectItem.cpp:614
Project * project() const
Returns the Project stored in the data of the item.
Definition: ProjectItem.cpp:427
bool isTargetBody() const
Returns true if a TargetBodyQsp is stored in the data of the item.
Definition: ProjectItem.cpp:592
ProjectItem * takeChild(int row)
Removes the child item at the given row and returns the removed item.
Definition: ProjectItem.cpp:949
void setProjectItem(ProjectItem *item)
Sets the text, icon, and data to those of another item.
Definition: ProjectItem.cpp:602
Image * image() const
Returns the Image stored in the data of the item.
Definition: ProjectItem.cpp:357
ControlList * controlList() const
Returns the ControlList stored in the data of the item.
Definition: ProjectItem.cpp:407
ProjectItemModel * model() const
Returns the ProjectItemModel associated with this item.
Definition: ProjectItem.cpp:916
QSharedPointer< TargetBody > TargetBodyQsp
Defines A smart pointer to a TargetBody obj.
Definition: TargetBody.h:224
bool isCorrelationMatrix() const
Returns true if a CorrelationMatrix is stored in the data of the item.
Definition: ProjectItem.cpp:559
GuiCameraQsp guiCamera() const
Returns the GuiCameraQsp stored in the data of the item.
Definition: ProjectItem.cpp:437
Control * control() const
Returns the Control stored in the data of the item.
Definition: ProjectItem.cpp:397
bool isGuiCamera() const
Returns true if a GuiCameraQsp is stored in the data of the item.
Definition: ProjectItem.cpp:581
This represents a cube in a project-based GUI interface.
Definition: Image.h:91
void setCorrelationMatrix(CorrelationMatrix correlationMatrix)
Sets the text, icon, and data corresponding to a CorrelationMatrix.
Definition: ProjectItem.cpp:752
bool isShapeList() const
Returns true if an ShapeList is stored in the data of the item.
Definition: ProjectItem.cpp:525
void setImages()
Sets the text, icon, and data corresponding to a list of ImageList.
Definition: ProjectItem.cpp:672
void setResults()
Sets the text, icon, and data corresponding to a list of Results.
Definition: ProjectItem.cpp:779
void setGuiCameraList()
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Definition: ProjectItem.cpp:801
List of GuiCameras saved as QSharedPointers.
Definition: GuiCameraList.h:35
void setBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Sets the text, icon, and data corresponding to a BundleSolutionInfo.
Definition: ProjectItem.cpp:638
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object.
Definition: GuiCamera.h:188
This represents a shape in a project-based GUI interface.
Definition: Shape.h:70
ShapeList * shapeList() const
Returns the ShapeList stored in the data of the item.
Definition: ProjectItem.cpp:387
ProjectItem()
Constructs an item without children, a parent, or a model.
Definition: ProjectItem.cpp:47
bool isControlList() const
Returns true if a ControlList is stored in the data of the item.
Definition: ProjectItem.cpp:548
~ProjectItem()
Destructs a ProjectItem.
Definition: ProjectItem.cpp:319
Represents an item of a ProjectItemModel in Qt&#39;s model-view framework.
Definition: ProjectItem.h:113
Definition: BoxcarCachingAlgorithm.h:29
A container class for statistical results from a BundleAdjust solution.
Definition: BundleResults.h:90
void setShapeList(ShapeList *shapeList)
Sets the text, icon, and data corresponding to an ShapeList.
Definition: ProjectItem.cpp:696
BundleSettingsQsp bundleSettings() const
Returns the BundleSettings stored in the data of the item.
Definition: ProjectItem.cpp:337
BundleSolutionInfo * bundleSolutionInfo() const
Returns the BundleSolutionInfo stored in the data of the item.
Definition: ProjectItem.cpp:347
ProjectItem * child(int row) const
Returns the child item at a given row.
Definition: ProjectItem.cpp:895
bool isBundleResults() const
Returns true if BundleResults are stored in the data of the item.
Definition: ProjectItem.cpp:459
bool isProject() const
Returns true if a Project is stored in the data of the item.
Definition: ProjectItem.cpp:570