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("$base/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("$base/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("$base/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("$base/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("$base/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("$base/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("$base/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("$base/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("$base/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("$base/icons/folder-orange.png")
940  .expanded()));
941  setData( QVariant::fromValue<TemplateList *>(templateList) );
942  }
943 
944 
949  setText("Templates");
950  setIcon( QIcon(FileName("$base/icons/folder-red.png")
951  .expanded()));
952  setData( QVariant() );
953 
954  ProjectItem *mapsItem = new ProjectItem();
955  mapsItem->setText("Maps");
956  setIcon( QIcon(FileName("$base/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("$base/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("$base/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("$base/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("$base/icons/folder-remote.png")
1006  .expanded()));
1007  setData( QVariant() );
1008  }
1009 
1010 
1017  setTextColor(Qt::black);
1018  setText("Correlation Matrix");
1019  setIcon( QIcon(FileName("$base/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("$base/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("$base/icons/kchart.png")
1052  .expanded()));
1053  setData( QVariant() );
1054  }
1055 
1056 
1063  setTextColor(Qt::black);
1064  setText( guiCamera->displayProperties()->displayName() );
1065  setIcon( QIcon(FileName("$base/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("$base/icons/camera-photo.png")
1078  .expanded()));
1079  setData( QVariant() );
1080  }
1081 
1082 
1087  setTextColor(Qt::black);
1088  setText("Spacecraft");
1089  setIcon( QIcon(FileName("$base/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("$base/icons/weather-clear-night.png")
1106  .expanded()));
1107  else if (targetBody->displayProperties()->displayName() == "Enceladus")
1108  setIcon( QIcon(FileName("$base/icons/nasa_enceladus.png")
1109  .expanded()));
1110  else if (targetBody->displayProperties()->displayName() == "Mars")
1111  setIcon( QIcon(FileName("$base/icons/nasa_mars.png")
1112  .expanded()));
1113  else if (targetBody->displayProperties()->displayName() == "Titan")
1114  setIcon( QIcon(FileName("$base/icons/nasa_titan.png")
1115  .expanded()));
1116  else
1117  setIcon( QIcon(FileName("$base/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("$base/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 }
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:79
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
bool isFileItem() const
Returns true if a FileItemQsp is stored in the data of the item.
Control * control() const
Returns bundle output Control object.
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
QString path() const
Get the path to the shapes in the shape list (relative to project root).
Definition: ShapeList.cpp:580
$Date$ $Revision$
bool isShapeList() const
Returns true if an ShapeList is stored in the data of the item.
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
GuiCameraQsp guiCamera() const
Returns the GuiCameraQsp stored in the data of the item.
The main project for ipce.
Definition: Project.h:289
TemplateList * templateList() const
Returns the TemplateList stored in the data of the item.
bool isImage() const
Returns true if an Image is stored in the data of the item.
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.
File name manipulation and expansion.
Definition: FileName.h:116
void setTargetBody(TargetBodyQsp targetBody)
Sets the text, icon, and data corresponding to a TargetBodyQsp.
void setTemplateList(TemplateList *templateList)
Sets the text, icon, and data corresponding to an TemplateList.
Container class for BundleAdjustment results.
void setProject(Project *project)
Sets the text, icon, and data corresponding to a Project.
BundleSettingsQsp bundleSettings()
Returns bundle settings.
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList.
ControlList * controlList() const
Returns the ControlList stored in the data of the item.
FileItemQsp fileItem() const
Returns the FileItemQsp stored in the data of the item.
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:36
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 fileName() const
Get the file name that this Template represents.
Definition: Template.cpp:50
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 isProject() const
Returns true if a Project is stored in the data of the item.
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
void setImage(Image *image)
Sets the text, icon, and data corresponding to an Image.
QList< TemplateList * > templates()
Return all template FileNames.
Definition: Project.cpp:2145
void setShapes()
Sets the text, icon, and data corresponding to a list of ShapeList.
void setControl(Control *control)
Sets the text, icon, and data corresponding to a Control.
List for holding TargetBodies.
QString name() const
Returns the name of the bundle.
void setGuiCamera(GuiCameraQsp guiCamera)
Sets the text, icon, and data corresponding to a GuiCameraQsp.
Project * project() const
Returns the Project 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. ...
void setShape(Shape *shape)
Sets the text, icon, and data corresponding to an Shape.
ProjectItemModel * model() const
Returns the ProjectItemModel associated with this item.
ProjectItem * parent() const
Returns the parent item of this item.
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.
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
void setTemplate(Template *newTemplate)
Sets the text, icon, and data corresponding to a Template.
void setImageList(ImageList *imageList)
Sets the text, icon, and data corresponding to an ImageList.
QList< ImageList * > adjustedImages() const
Returns the list of images that were adjusted after a bundle.
Provides access to data stored in a Project through Qt&#39;s model-view framework.
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Definition: Project.cpp:894
void setBundleResults(BundleResults bundleResults)
Sets the text, icon, and data corresponding to BundleResults.
bool isBundleSolutionInfo() const
Returns true if a BundleSolutionInfo is stored in the data of the item.
QString runTime() const
Returns the run time.
ProjectItem * takeChild(int row)
Removes the child item at the given row and returns the removed item.
Template * getTemplate() const
Returns the Template stored in the data of the item.
void setProjectItem(ProjectItem *item)
Sets the text, icon, and data to those of another item.
BundleSettingsQsp bundleSettings() const
Returns the BundleSettings stored in the data of the item.
TargetBodyQsp targetBody() const
Returns the TargetBodyQsp stored in the data of the item.
BundleResults bundleResults() const
Returns the BundleResults stored in the data of the item.
BundleSolutionInfo * bundleSolutionInfo() const
Returns the BundleSolutionInfo stored in the data of the item.
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
void setTemplates()
Sets the text, icon, and data corresponding to a list of TemplateList.
Image * image() const
Returns the Image stored in the data of the item.
QString projectRoot() const
Get the top-level folder of the project.
Definition: Project.cpp:1666
QString fileName() const
Get the file name of the cube that this shape represents.
Definition: Shape.cpp:377
QString name() const
Get the human-readable name of this TemplateList.
bool isGuiCamera() const
Returns true if a GuiCameraQsp is stored in the data of the item.
QList< ControlList * > controls()
Return controls in project.
Definition: Project.cpp:2038
void setCorrelationMatrix(CorrelationMatrix correlationMatrix)
Sets the text, icon, and data corresponding to a CorrelationMatrix.
QString name() const
Get the project&#39;s GUI name.
Definition: Project.cpp:1625
bool isTargetBody() const
Returns true if a TargetBodyQsp 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
bool isBundleResults() const
Returns true if BundleResults are stored in the data of the item.
bool isControl() const
Returns true if a Control is stored in the data of the item.
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.
CorrelationMatrix correlationMatrix() const
Returns the CorrelationMatrix stored the item.
QList< BundleSolutionInfo * > bundleSolutionInfo()
Return BundleSolutionInfo objects in Project.
Definition: Project.cpp:2223
QString name() const
Get the human-readable name of this control list.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
ProjectItem * child(int row) const
Returns the child item at a given row.
This represents a shape in a project-based GUI interface.
Definition: Shape.h:78
Shape * shape() const
Returns the Shape stored in the data of the item.
Control * control() const
Returns the Control stored in the data of the item.
ProjectItem()
Constructs an item without children, a parent, or a model.
Definition: ProjectItem.cpp:50
bool isControlList() const
Returns true if a ControlList is stored in the data of the item.
~ProjectItem()
Destructs a ProjectItem.
QString path() const
Get the path to the images in the image list (relative to project root).
Definition: ImageList.cpp:735
Represents an item of a ProjectItemModel in Qt&#39;s model-view framework.
Definition: ProjectItem.h:146
BundleResults bundleResults()
Returns the bundle results.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool isCorrelationMatrix() const
Returns true if a CorrelationMatrix is stored in the data of the item.
A container class for statistical results from a BundleAdjust solution.
Definition: BundleResults.h:96
bool isShape() const
Returns true if an Shape is stored in the data of the item.
QString name() const
Get the human-readable name of this shape list.
Definition: ShapeList.cpp:569
void setShapeList(ShapeList *shapeList)
Sets the text, icon, and data corresponding to an ShapeList.
QString fileName() const
Access the name of the control network file associated with this Control.
Definition: Control.cpp:264
QString fileName() const
Get the file name of the cube that this image represents.
Definition: Image.cpp:340
bool isBundleSettings() const
Returns true if BundleSettings are stored in the data of the item.
ShapeList * shapeList() const
Returns the ShapeList stored in the data of the item.