Isis 3 Programmer Reference
ProjectItem.cpp
Go to the documentation of this file.
1 
24 #include "ProjectItem.h"
25 
26 #include <QBrush>
27 #include <QIcon>
28 #include <QStandardItem>
29 #include <QVariant>
30 #include <QDebug>
31 
32 #include "BundleResults.h"
33 #include "BundleSolutionInfo.h"
34 #include "Control.h"
35 #include "ControlList.h"
36 #include "CorrelationMatrix.h"
37 #include "Image.h"
38 #include "ImageList.h"
39 #include "Project.h"
40 #include "ProjectItemModel.h"
41 #include "Shape.h"
42 #include "ShapeList.h"
43 #include "Template.h"
44 #include "TemplateList.h"
45 
46 namespace Isis {
51  setTextColor(Qt::black);
52  setEditable(false);
53  }
54 
55 
64  setTextColor(Qt::black);
65  item->setEditable(false);
66  setProjectItem(item);
67  for (int i=0; i < item->rowCount(); i++) {
68  appendRow(new ProjectItem( item->child(i) ) );
69  }
70  }
71 
72 
80  ProjectItem::ProjectItem(FileItemQsp filename, QString treeText, QIcon icon) {
81  setTextColor(Qt::black);
82  setEditable(false);
83  setData(QVariant::fromValue<FileItemQsp>(filename));
84  setText(treeText);
85  setIcon(icon);
86  }
87 
88 
96  ProjectItem::ProjectItem(FileItemQsp filename, QString treeText, QString toolTipText,
97  QIcon icon) {
98  setTextColor(Qt::black);
99  setEditable(false);
100  setData(QVariant::fromValue<FileItemQsp>(filename));
101  setText(treeText);
102  setToolTip(toolTipText);
103  setIcon(icon);
104  }
105 
106 
114  setTextColor(Qt::black);
115  setEditable(false);
117  }
118 
119 
127  setTextColor(Qt::black);
128  setEditable(false);
130  }
131 
132 
140  setTextColor(Qt::black);
141  setEditable(false);
143 
147  if (!bundleSolutionInfo->adjustedImages().isEmpty()) {
149  }
150  }
151 
152 
159  setTextColor(Qt::black);
160  setEditable(false);
162  }
163 
164 
171  setTextColor(Qt::black);
172  setEditable(false);
174  foreach (Control *control, *controlList) {
175  appendRow( new ProjectItem(control) );
176  }
177  }
178 
179 
186  setTextColor(Qt::black);
187  setEditable(false);
188  setControls();
189  foreach (ControlList *controlList, controls) {
191  }
192  }
193 
194 
202  setTextColor(Qt::black);
203  setEditable(false);
205  }
206 
207 
214  setTextColor(Qt::black);
215  setEditable(true);
216  setImage(image);
217  }
218 
219 
226  setTextColor(Qt::black);
227  setEditable(true);
229  foreach (Image *image, *imageList) {
230  appendRow( new ProjectItem(image) );
231  }
232  }
233 
234 
241  setTextColor(Qt::black);
242  setEditable(false);
243  setImages();
244  foreach (ImageList *imageList, images) {
246  }
247  }
248 
249 
256  setTextColor(Qt::black);
257  setEditable(false);
258  setShape(shape);
259  }
260 
261 
268  setTextColor(Qt::black);
269  setEditable(false);
271  foreach (Shape *shape, *shapeList) {
273  }
274  }
275 
276 
283  setTextColor(Qt::black);
284  setEditable(false);
285  setShapes();
286  foreach (ShapeList *shapeList, shapes) {
288  }
289  }
290 
291 
298  setTextColor(Qt::black);
299  setEditable(false);
300  setTemplate(newTemplate);
301  }
302 
303 
310 
311  setTextColor(Qt::black);
312  setEditable(false);
314  foreach (Template *currentTemplate, *templateList) {
315  appendRow(new ProjectItem(currentTemplate));
316  }
317  }
318 
319 
326  setTextColor(Qt::black);
327  setEditable(false);
328  setTemplates();
329  foreach (TemplateList *templateList, templates) {
331  }
332  }
333 
340  setTextColor(Qt::black);
341  setEditable(false);
343  }
344 
345 
353  setTextColor(Qt::black);
354  setEditable(false);
356  foreach (GuiCameraQsp guiCamera, *guiCameraList) {
358  }
359  }
360 
361 
368  setTextColor(Qt::black);
370  appendRow( new ProjectItem( project->controls() ) );
371  appendRow( new ProjectItem( project->images() ) );
372  appendRow( new ProjectItem( project->shapes() ) );
373 
374  appendRow( new ProjectItem( project->templates() ) );
375 
376  ProjectItem *targetBodyListItem = new ProjectItem();
377  targetBodyListItem->setTargetBodyList();
378  appendRow(targetBodyListItem);
379 
380  ProjectItem *guiCameraListItem = new ProjectItem();
381  guiCameraListItem->setGuiCameraList();
382  appendRow(guiCameraListItem);
383 
384  ProjectItem *spaceCraftItem = new ProjectItem();
385  spaceCraftItem->setSpacecraft();
386  appendRow(spaceCraftItem);
387 
389  }
390 
391 
399  setTextColor(Qt::black);
400  setEditable(false);
401  setResults();
402  foreach (BundleSolutionInfo *bundleSolutionInfo, results) {
404  }
405  }
406 
407 
414  setTextColor(Qt::black);
415  setEditable(false);
417  }
418 
419 
426  setTextColor(Qt::black);
427  setEditable(false);
429  foreach (TargetBodyQsp targetBody, *targetBodyList) {
431  }
432  }
433 
434 
439 
440 
447  return data().value<BundleResults>();
448  }
449 
450 
457  return data().value<BundleSettingsQsp>();
458  }
459 
460 
467  return data().value<BundleSolutionInfo *>();
468  }
469 
470 
477  return data().value<Image *>();
478  }
479 
480 
487  return data().value<ImageList *>();
488  }
489 
490 
497  return data().value<Shape *>();
498  }
499 
500 
507  return data().value<ShapeList *>();
508  }
509 
510 
517  return data().value<Template *>();
518  }
519 
520 
527  return data().value<TemplateList *>();
528  }
529 
530 
537  return data().value<Control *>();
538  }
539 
540 
547  return data().value<ControlList *>();
548  }
549 
550 
557  return data().value<CorrelationMatrix>();
558  }
559 
560 
567  return data().value<Project *>();
568  }
569 
570 
577  return data().value<GuiCameraQsp>();
578 
579  }
580 
581 
588  return data().value<TargetBodyQsp>();
589  }
590 
591 
598  return data().value<FileItemQsp>();
599  }
600 
601 
602  bool ProjectItem::isTemplate() const {
603  return data().canConvert<Template *>();
604  }
605 
606 
614  return data().canConvert<BundleResults>();
615  }
616 
617 
625  return data().canConvert<BundleSettingsQsp>();
626  }
627 
628 
636  return data().canConvert<BundleSolutionInfo *>();
637  }
638 
639 
646  bool ProjectItem::isImage() const {
647  return data().canConvert<Image *>();
648  }
649 
650 
658  return data().canConvert<ImageList *>();
659  }
660 
661 
668  bool ProjectItem::isShape() const {
669  return data().canConvert<Shape *>();
670  }
671 
672 
680  return data().canConvert<ShapeList *>();
681  }
682 
683 
690  bool ProjectItem::isControl() const {
691  return data().canConvert<Control *>();
692  }
693 
694 
703  return data().canConvert<ControlList *>();
704  }
705 
706 
714  return data().canConvert<CorrelationMatrix>();
715  }
716 
717 
724  bool ProjectItem::isProject() const {
725  return data().canConvert<Project *>();
726  }
727 
728 
736  return data().canConvert<GuiCameraQsp>();
737  }
738 
739 
747  return data().canConvert<TargetBodyQsp>();
748  }
749 
750 
757  bool ProjectItem::isFileItem() const {
758  return data().canConvert<FileItemQsp>();
759  }
760 
761 
768  setTextColor(Qt::black);
769  setText( item->text() );
770  setIcon( item->icon() );
771  setData( item->data() );
772  setEditable(item->isEditable());
773  }
774 
775 
782  setTextColor(Qt::black);
783  setText("Statistics");
784  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/kchart.png")
785  .expanded()));
786  setData( QVariant::fromValue<BundleResults>(bundleResults) );
787  }
788 
789 
796  setTextColor(Qt::black);
797  setText("Settings");
798  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/applications-system.png")
799  .expanded()));
800  setData( QVariant::fromValue<BundleSettingsQsp>(bundleSettings) );
801  }
802 
803 
810  setTextColor(Qt::black);
811  if (bundleSolutionInfo->name() != "") {
812  setText( bundleSolutionInfo->name() );
813  }
814  else {
815  setText( bundleSolutionInfo->runTime() );
816  }
817  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/kchart.png")
818  .expanded()));
819  setData( QVariant::fromValue<BundleSolutionInfo *>(bundleSolutionInfo) );
820  }
821 
822 
829  setTextColor(Qt::black);
830  setText( QFileInfo( image->fileName() ).fileName() );
831  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/view-preview.png")
832  .expanded()));
833  setData( QVariant::fromValue<Image *>(image) );
834  }
835 
836 
843  setTextColor(Qt::black);
844  if (imageList->name() != "") {
845  setText( imageList->name() );
846  }
847  else {
848  setText( imageList->path() );
849  }
850  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-image.png")
851  .expanded()));
852  setData( QVariant::fromValue<ImageList *>(imageList) );
853  }
854 
855 
860  setTextColor(Qt::black);
861  setText("Images");
862  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-image.png")
863  .expanded()));
864  setData( QVariant() );
865  }
866 
867 
874  setTextColor(Qt::black);
875  setText( QFileInfo( shape->fileName() ).fileName() );
876  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/rating.png")
877  .expanded()));
878  setData( QVariant::fromValue<Shape *>(shape) );
879  }
880 
881 
888  setTextColor(Qt::black);
889  if (shapeList->name() != "") {
890  setText( shapeList->name() );
891  }
892  else {
893  setText( shapeList->path() );
894  }
895  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-orange.png")
896  .expanded()));
897  setData( QVariant::fromValue<ShapeList *>(shapeList) );
898  }
899 
900 
905  setTextColor(Qt::black);
906  setText("Shapes");
907  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-red.png")
908  .expanded()));
909  setData( QVariant() );
910  }
911 
912 
918  void ProjectItem::setTemplate(Template *newTemplate) {
919  setTextColor(Qt::black);
920  setText( QFileInfo( newTemplate->fileName() ).fileName() );
921  setIcon( QIcon(":folder"));
922  setData( QVariant::fromValue<Template *>(newTemplate) );
923  }
924 
925 
932  setTextColor(Qt::black);
933  if (templateList->name() != "") {
934  setText( templateList->name() );
935  }
936  else {
937  setText( templateList->path() );
938  }
939  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-orange.png")
940  .expanded()));
941  setData( QVariant::fromValue<TemplateList *>(templateList) );
942  }
943 
944 
949  setText("Templates");
950  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-red.png")
951  .expanded()));
952  setData( QVariant() );
953 
954  ProjectItem *mapsItem = new ProjectItem();
955  mapsItem->setText("Maps");
956  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-red.png")
957  .expanded()));
958  mapsItem->setData( QVariant() );
959  appendRow(mapsItem);
960 
961 
962  ProjectItem *registrationsItem = new ProjectItem();
963  registrationsItem->setText("Registrations");
964  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-red.png")
965  .expanded()));
966  registrationsItem->setData( QVariant() );
967  appendRow(registrationsItem);
968  }
969 
970 
977  setTextColor(Qt::black);
978  setText( QFileInfo( control->fileName() ).fileName() );
979  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/network-server-database.png")
980  .expanded()));
981  setData( QVariant::fromValue<Control *>(control) );
982  }
983 
984 
991  setTextColor(Qt::black);
992  setText( controlList->name() );
993  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder.png")
994  .expanded()));
995  setData( QVariant::fromValue<ControlList *>(controlList) );
996  }
997 
998 
1003  setTextColor(Qt::black);
1004  setText("Control Networks");
1005  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-remote.png")
1006  .expanded()));
1007  setData( QVariant() );
1008  }
1009 
1010 
1017  setTextColor(Qt::black);
1018  setText("Correlation Matrix");
1019  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/network-server-database.png")
1020  .expanded()));
1021  setData( QVariant::fromValue<CorrelationMatrix>(correlationMatrix) );
1022  }
1023 
1024 
1036  setTextColor(Qt::black);
1037  setText( project->name() );
1038  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/folder-activities.png")
1039  .expanded()));
1040  setData( QVariant::fromValue<Project *>(project) );
1041  setToolTip(project->projectRoot());
1042  }
1043 
1044 
1049  setTextColor(Qt::black);
1050  setText("Results");
1051  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/kchart.png")
1052  .expanded()));
1053  setData( QVariant() );
1054  }
1055 
1056 
1063  setTextColor(Qt::black);
1064  setText( guiCamera->displayProperties()->displayName() );
1065  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/camera-photo.png")
1066  .expanded()));
1067  setData( QVariant::fromValue<GuiCameraQsp>(guiCamera) );
1068  }
1069 
1070 
1075  setTextColor(Qt::black);
1076  setText("Sensors");
1077  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/camera-photo.png")
1078  .expanded()));
1079  setData( QVariant() );
1080  }
1081 
1082 
1087  setTextColor(Qt::black);
1088  setText("Spacecraft");
1089  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/preferences-desktop-launch-feedback.png")
1090  .expanded()));
1091  setData( QVariant() );
1092  }
1093 
1094 
1095 
1102  setTextColor(Qt::black);
1103  setText( targetBody->displayProperties()->displayName() );
1104  if (targetBody->displayProperties()->displayName() == "MOON")
1105  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/weather-clear-night.png")
1106  .expanded()));
1107  else if (targetBody->displayProperties()->displayName() == "Enceladus")
1108  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_enceladus.png")
1109  .expanded()));
1110  else if (targetBody->displayProperties()->displayName() == "Mars")
1111  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_mars.png")
1112  .expanded()));
1113  else if (targetBody->displayProperties()->displayName() == "Titan")
1114  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/nasa_titan.png")
1115  .expanded()));
1116  else
1117  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/view-web-browser-dom-tree.png")
1118  .expanded()));
1119 
1120  setData( QVariant::fromValue<TargetBodyQsp>(targetBody) );
1121  }
1122 
1123 
1128  setTextColor(Qt::black);
1129  setText("Target Body");
1130  setIcon( QIcon(FileName("$ISISROOT/appdata/images/icons/view-web-browser-dom-tree.png")
1131  .expanded()));
1132  setData( QVariant() );
1133  }
1134 
1135 
1145  ProjectItem *ProjectItem::findItemData(const QVariant &value, int role) {
1146  if ( data(role) == value ) {
1147  return this;
1148  }
1149 
1150  for (int i=0; i<rowCount(); i++) {
1151  ProjectItem *item = child(i)->findItemData(value, role);
1152  if (item) {
1153  return item;
1154  }
1155  }
1156 
1157  return 0;
1158  }
1159 
1160 
1167  setTextColor(Qt::black);
1168  QStandardItem::appendRow(item);
1169  }
1170 
1171 
1180  return static_cast<ProjectItem *>( QStandardItem::child(row) );
1181  }
1182 
1183 
1190  void ProjectItem::insertRow(int row, ProjectItem *item) {
1191  setTextColor(Qt::black);
1192  QStandardItem::insertRow(row, item);
1193  }
1194 
1195 
1202  return static_cast<ProjectItemModel *>( QStandardItem::model() );
1203  }
1204 
1205 
1212  return static_cast<ProjectItem *>( QStandardItem::parent() );
1213  }
1214 
1215 
1222  void ProjectItem::setChild(int row, ProjectItem *item) {
1223  setTextColor(Qt::black);
1224  QStandardItem::setChild(row, item);
1225  }
1226 
1227 
1236  QList<QStandardItem *> items = QStandardItem::takeRow(row);
1237 
1238  if ( items.isEmpty() ) {
1239  return 0;
1240  }
1241 
1242  return static_cast<ProjectItem *>( items.first() );
1243  }
1244 
1245 
1246  void ProjectItem::setTextColor(Qt::GlobalColor color) {
1247  setForeground(QBrush(color));
1248  }
1249 }
Isis::ProjectItemModel
Provides access to data stored in a Project through Qt's model-view framework.
Definition: ProjectItemModel.h:132
Isis::ProjectItem::bundleSolutionInfo
BundleSolutionInfo * bundleSolutionInfo() const
Returns the BundleSolutionInfo stored in the data of the item.
Definition: ProjectItem.cpp:466
Isis::ImageList::path
QString path() const
Get the path to the images in the image list (relative to project root).
Definition: ImageList.cpp:735
Isis::ProjectItem::bundleResults
BundleResults bundleResults() const
Returns the BundleResults stored in the data of the item.
Definition: ProjectItem.cpp:446
Isis::ProjectItem::isGuiCamera
bool isGuiCamera() const
Returns true if a GuiCameraQsp is stored in the data of the item.
Definition: ProjectItem.cpp:735
Isis::ProjectItem::setCorrelationMatrix
void setCorrelationMatrix(CorrelationMatrix correlationMatrix)
Sets the text, icon, and data corresponding to a CorrelationMatrix.
Definition: ProjectItem.cpp:1016
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::ProjectItem::setImages
void setImages()
Sets the text, icon, and data corresponding to a list of ImageList.
Definition: ProjectItem.cpp:859
Isis::ProjectItem::setGuiCameraList
void setGuiCameraList()
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Definition: ProjectItem.cpp:1074
Project.h
Isis::ProjectItem::isControl
bool isControl() const
Returns true if a Control is stored in the data of the item.
Definition: ProjectItem.cpp:690
Isis::ProjectItem::setResults
void setResults()
Sets the text, icon, and data corresponding to a list of Results.
Definition: ProjectItem.cpp:1048
Isis::ProjectItem::image
Image * image() const
Returns the Image stored in the data of the item.
Definition: ProjectItem.cpp:476
Isis::ProjectItem::setTemplates
void setTemplates()
Sets the text, icon, and data corresponding to a list of TemplateList.
Definition: ProjectItem.cpp:948
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::ProjectItem::correlationMatrix
CorrelationMatrix correlationMatrix() const
Returns the CorrelationMatrix stored the item.
Definition: ProjectItem.cpp:556
Isis::ControlList
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
Definition: ControlList.h:44
Isis::ProjectItem::isTargetBody
bool isTargetBody() const
Returns true if a TargetBodyQsp is stored in the data of the item.
Definition: ProjectItem.cpp:746
Isis::ProjectItem::shape
Shape * shape() const
Returns the Shape stored in the data of the item.
Definition: ProjectItem.cpp:496
Isis::ProjectItem::ProjectItem
ProjectItem()
Constructs an item without children, a parent, or a model.
Definition: ProjectItem.cpp:50
Isis::BundleSolutionInfo::name
QString name() const
Returns the name of the bundle.
Definition: BundleSolutionInfo.cpp:387
Isis::ProjectItem::isBundleResults
bool isBundleResults() const
Returns true if BundleResults are stored in the data of the item.
Definition: ProjectItem.cpp:613
Isis::TemplateList
Definition: TemplateList.h:35
Isis::ProjectItem::setBundleSolutionInfo
void setBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Sets the text, icon, and data corresponding to a BundleSolutionInfo.
Definition: ProjectItem.cpp:809
Isis::ProjectItem::isCorrelationMatrix
bool isCorrelationMatrix() const
Returns true if a CorrelationMatrix is stored in the data of the item.
Definition: ProjectItem.cpp:713
Isis::ProjectItem::setShapeList
void setShapeList(ShapeList *shapeList)
Sets the text, icon, and data corresponding to an ShapeList.
Definition: ProjectItem.cpp:887
Isis::TemplateList::path
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
Definition: TemplateList.cpp:101
Isis::ProjectItem::child
ProjectItem * child(int row) const
Returns the child item at a given row.
Definition: ProjectItem.cpp:1179
Isis::Image::fileName
QString fileName() const
Get the file name of the cube that this image represents.
Definition: Image.cpp:340
Isis::ProjectItem::isControlList
bool isControlList() const
Returns true if a ControlList is stored in the data of the item.
Definition: ProjectItem.cpp:702
Isis::ProjectItem::control
Control * control() const
Returns the Control stored in the data of the item.
Definition: ProjectItem.cpp:536
Image.h
Isis::Project::templates
QList< TemplateList * > templates()
Return all template FileNames.
Definition: Project.cpp:2145
Isis::Control
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:66
Isis::ProjectItem::~ProjectItem
~ProjectItem()
Destructs a ProjectItem.
Definition: ProjectItem.cpp:438
QSharedPointer< FileItem >
Isis::ProjectItem::isShape
bool isShape() const
Returns true if an Shape is stored in the data of the item.
Definition: ProjectItem.cpp:668
Isis::CorrelationMatrix
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:61
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::Shape::fileName
QString fileName() const
Get the file name of the cube that this shape represents.
Definition: Shape.cpp:376
Isis::Project::images
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Definition: Project.cpp:894
Isis::ProjectItem::isImageList
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
Definition: ProjectItem.cpp:657
Isis::BundleSolutionInfo::bundleResults
BundleResults bundleResults()
Returns the bundle results.
Definition: BundleSolutionInfo.cpp:349
Isis::Template::fileName
QString fileName() const
Get the file name that this Template represents.
Definition: Template.cpp:50
Isis::ProjectItem::isShapeList
bool isShapeList() const
Returns true if an ShapeList is stored in the data of the item.
Definition: ProjectItem.cpp:679
Isis::ProjectItem::guiCamera
GuiCameraQsp guiCamera() const
Returns the GuiCameraQsp stored in the data of the item.
Definition: ProjectItem.cpp:576
Isis::ProjectItem::isImage
bool isImage() const
Returns true if an Image is stored in the data of the item.
Definition: ProjectItem.cpp:646
Isis::ProjectItem::isBundleSettings
bool isBundleSettings() const
Returns true if BundleSettings are stored in the data of the item.
Definition: ProjectItem.cpp:624
Isis::ProjectItem::appendRow
void appendRow(ProjectItem *item)
Appends an item to the children of this item.
Definition: ProjectItem.cpp:1166
Isis::ProjectItem::setTargetBody
void setTargetBody(TargetBodyQsp targetBody)
Sets the text, icon, and data corresponding to a TargetBodyQsp.
Definition: ProjectItem.cpp:1101
Isis::ProjectItem::shapeList
ShapeList * shapeList() const
Returns the ShapeList stored in the data of the item.
Definition: ProjectItem.cpp:506
Isis::ProjectItem::isFileItem
bool isFileItem() const
Returns true if a FileItemQsp is stored in the data of the item.
Definition: ProjectItem.cpp:757
Isis::BundleSolutionInfo
Container class for BundleAdjustment results.
Definition: BundleSolutionInfo.h:159
Isis::ProjectItem::setProject
void setProject(Project *project)
Sets the text, icon, and data corresponding to a Project.
Definition: ProjectItem.cpp:1035
Isis::Template
Definition: Template.h:30
Isis::BundleSolutionInfo::runTime
QString runTime() const
Returns the run time.
Definition: BundleSolutionInfo.cpp:264
Isis::BundleSolutionInfo::adjustedImages
QList< ImageList * > adjustedImages() const
Returns the list of images that were adjusted after a bundle.
Definition: BundleSolutionInfo.cpp:222
Isis::Shape
This represents a shape in a project-based GUI interface.
Definition: Shape.h:68
Isis::ProjectItem::templateList
TemplateList * templateList() const
Returns the TemplateList stored in the data of the item.
Definition: ProjectItem.cpp:526
Isis::ImageList::name
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
Isis::ProjectItem::fileItem
FileItemQsp fileItem() const
Returns the FileItemQsp stored in the data of the item.
Definition: ProjectItem.cpp:597
Isis::ShapeList
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
Isis::TargetBodyList
List for holding TargetBodies.
Definition: TargetBodyList.h:33
Isis::ProjectItem::setChild
void setChild(int row, ProjectItem *item)
Sets the child at the given row to an item.
Definition: ProjectItem.cpp:1222
Isis::ProjectItem::setControls
void setControls()
Sets the text, icon, and data corresponding to a list of ControlList.
Definition: ProjectItem.cpp:1002
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::ProjectItem::setTemplateList
void setTemplateList(TemplateList *templateList)
Sets the text, icon, and data corresponding to an TemplateList.
Definition: ProjectItem.cpp:931
Isis::ProjectItem::controlList
ControlList * controlList() const
Returns the ControlList stored in the data of the item.
Definition: ProjectItem.cpp:546
Isis::Project::bundleSolutionInfo
QList< BundleSolutionInfo * > bundleSolutionInfo()
Return BundleSolutionInfo objects in Project.
Definition: Project.cpp:2223
Isis::Project::projectRoot
QString projectRoot() const
Get the top-level folder of the project.
Definition: Project.cpp:1666
Isis::ProjectItem::setControlList
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList.
Definition: ProjectItem.cpp:990
Isis::ProjectItem::isProject
bool isProject() const
Returns true if a Project is stored in the data of the item.
Definition: ProjectItem.cpp:724
Isis::ProjectItem::setSpacecraft
void setSpacecraft()
Sets the text, icon, and data corresponding to SpaceCraft.
Definition: ProjectItem.cpp:1086
Isis::Project::controls
QList< ControlList * > controls()
Return controls in project.
Definition: Project.cpp:2038
Isis::ProjectItem::setImage
void setImage(Image *image)
Sets the text, icon, and data corresponding to an Image.
Definition: ProjectItem.cpp:828
Isis::TemplateList::name
QString name() const
Get the human-readable name of this TemplateList.
Definition: TemplateList.cpp:81
Isis::ProjectItem::setShapes
void setShapes()
Sets the text, icon, and data corresponding to a list of ShapeList.
Definition: ProjectItem.cpp:904
Isis::Project::name
QString name() const
Get the project's GUI name.
Definition: Project.cpp:1625
Isis::ShapeList::name
QString name() const
Get the human-readable name of this shape list.
Definition: ShapeList.cpp:555
Isis::ProjectItem::setGuiCamera
void setGuiCamera(GuiCameraQsp guiCamera)
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Definition: ProjectItem.cpp:1062
Isis::ProjectItem::project
Project * project() const
Returns the Project stored in the data of the item.
Definition: ProjectItem.cpp:566
Isis::ProjectItem::setBundleSettings
void setBundleSettings(BundleSettingsQsp bundleSettings)
Sets the text, icon, and data corresponding to BundleSettings.
Definition: ProjectItem.cpp:795
Isis::ProjectItem::findItemData
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:1145
Isis::ProjectItem::parent
ProjectItem * parent() const
Returns the parent item of this item.
Definition: ProjectItem.cpp:1211
Isis::ProjectItem::imageList
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
Definition: ProjectItem.cpp:486
Isis::ControlList::name
QString name() const
Get the human-readable name of this control list.
Definition: ControlList.cpp:539
Isis::ProjectItem::setTargetBodyList
void setTargetBodyList()
Sets the text, icon, and data corresponding to a TargetBodyList.
Definition: ProjectItem.cpp:1127
Isis::ProjectItem::setTemplate
void setTemplate(Template *newTemplate)
Sets the text, icon, and data corresponding to a Template.
Definition: ProjectItem.cpp:918
Isis::ProjectItem::setControl
void setControl(Control *control)
Sets the text, icon, and data corresponding to a Control.
Definition: ProjectItem.cpp:976
Isis::ProjectItem::setBundleResults
void setBundleResults(BundleResults bundleResults)
Sets the text, icon, and data corresponding to BundleResults.
Definition: ProjectItem.cpp:781
Isis::BundleResults
A container class for statistical results from a BundleAdjust solution.
Definition: BundleResults.h:82
Isis::BundleSolutionInfo::control
Control * control() const
Returns bundle output Control object.
Definition: BundleSolutionInfo.cpp:327
Isis::ProjectItem::setShape
void setShape(Shape *shape)
Sets the text, icon, and data corresponding to an Shape.
Definition: ProjectItem.cpp:873
Isis::ProjectItem::model
ProjectItemModel * model() const
Returns the ProjectItemModel associated with this item.
Definition: ProjectItem.cpp:1201
Isis::ProjectItem::insertRow
void insertRow(int row, ProjectItem *item)
Inserts an item to the children of this item at the row.
Definition: ProjectItem.cpp:1190
Isis::ProjectItem::setProjectItem
void setProjectItem(ProjectItem *item)
Sets the text, icon, and data to those of another item.
Definition: ProjectItem.cpp:767
Isis::ProjectItem::setImageList
void setImageList(ImageList *imageList)
Sets the text, icon, and data corresponding to an ImageList.
Definition: ProjectItem.cpp:842
Isis::GuiCameraList
List of GuiCameras saved as QSharedPointers.
Definition: GuiCameraList.h:35
Isis::ProjectItem::getTemplate
Template * getTemplate() const
Returns the Template stored in the data of the item.
Definition: ProjectItem.cpp:516
Isis::ProjectItem::bundleSettings
BundleSettingsQsp bundleSettings() const
Returns the BundleSettings stored in the data of the item.
Definition: ProjectItem.cpp:456
QStandardItem
Isis::ProjectItem::isBundleSolutionInfo
bool isBundleSolutionInfo() const
Returns true if a BundleSolutionInfo is stored in the data of the item.
Definition: ProjectItem.cpp:635
Isis::BundleSolutionInfo::bundleSettings
BundleSettingsQsp bundleSettings()
Returns bundle settings.
Definition: BundleSolutionInfo.cpp:337
Isis::ProjectItem::takeChild
ProjectItem * takeChild(int row)
Removes the child item at the given row and returns the removed item.
Definition: ProjectItem.cpp:1235
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ShapeList::path
QString path() const
Get the path to the shapes in the shape list (relative to project root).
Definition: ShapeList.cpp:566
Isis::ProjectItem::targetBody
TargetBodyQsp targetBody() const
Returns the TargetBodyQsp stored in the data of the item.
Definition: ProjectItem.cpp:587
Isis::ProjectItem
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134
Isis::Control::fileName
QString fileName() const
Access the name of the control network file associated with this Control.
Definition: Control.cpp:272