Isis 3.0 Programmer Reference
Back | 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.
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.
The main project for cnetsuite.
Definition: Project.h:105
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.
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.
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList.
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.
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.
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.
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.
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.
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.
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&#39;s model-view framework.
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.
Definition: TargetBody.h:224
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.
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.
Definition: Image.h:91
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.
Definition: GuiCameraList.h:35
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.
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.
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.
~ProjectItem()
Destructs a ProjectItem.
Represents an item of a ProjectItemModel in Qt&#39;s model-view framework.
Definition: ProjectItem.h:113
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.
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.
bool isProject() const
Returns true if a Project is stored in the data of the item.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:26:45