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
46namespace 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) {
176 }
177 }
178
179
185 ProjectItem::ProjectItem(QList<ControlList *> controls) {
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);
217 }
218
219
226 setTextColor(Qt::black);
227 setEditable(true);
229 foreach (Image *image, *imageList) {
231 }
232 }
233
234
240 ProjectItem::ProjectItem(QList<ImageList *> images) {
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);
259 }
260
261
268 setTextColor(Qt::black);
269 setEditable(false);
271 foreach (Shape *shape, *shapeList) {
273 }
274 }
275
276
282 ProjectItem::ProjectItem(QList<ShapeList *> shapes) {
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
325 ProjectItem::ProjectItem(QList<TemplateList *> templates) {
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);
371 appendRow( new ProjectItem( project->images() ) );
372 appendRow( new ProjectItem( project->shapes() ) );
373
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
398 ProjectItem::ProjectItem(QList<BundleSolutionInfo *> results) {
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
691 return data().canConvert<Control *>();
692 }
693
694
703 return data().canConvert<ControlList *>();
704 }
705
706
714 return data().canConvert<CorrelationMatrix>();
715 }
716
717
725 return data().canConvert<Project *>();
726 }
727
728
736 return data().canConvert<GuiCameraQsp>();
737 }
738
739
747 return data().canConvert<TargetBodyQsp>();
748 }
749
750
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
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
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}
A container class for statistical results from a BundleAdjust solution.
Container class for BundleAdjustment results.
BundleSettingsQsp bundleSettings()
Returns bundle settings.
QList< ImageList * > adjustedImages() const
Returns the list of images that were adjusted after a bundle.
BundleResults bundleResults()
Returns the bundle results.
QString runTime() const
Returns the run time.
QString name() const
Returns the name of the bundle.
Control * control() const
Returns bundle output Control object.
This represents an ISIS control net in a project-based GUI interface.
Definition Control.h:66
QString fileName() const
Access the name of the control network file associated with this Control.
Definition Control.cpp:272
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
Definition ControlList.h:44
QString name() const
Get the human-readable name of this control list.
This is a container for the correlation matrix that comes from a bundle adjust.
File name manipulation and expansion.
Definition FileName.h:100
List of GuiCameras saved as QSharedPointers.
This represents a cube in a project-based GUI interface.
Definition Image.h:107
QString fileName() const
Get the file name of the cube that this image represents.
Definition Image.cpp:340
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:55
QString path() const
Get the path to the images in the image list (relative to project root).
QString name() const
Get the human-readable name of this image list.
The main project for ipce.
Definition Project.h:289
QList< TemplateList * > templates()
Return all template FileNames.
Definition Project.cpp:2144
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Definition Project.cpp:893
QList< ControlList * > controls()
Return controls in project.
Definition Project.cpp:2037
QList< BundleSolutionInfo * > bundleSolutionInfo()
Return BundleSolutionInfo objects in Project.
Definition Project.cpp:2222
QString projectRoot() const
Get the top-level folder of the project.
Definition Project.cpp:1665
QString name() const
Get the project's GUI name.
Definition Project.cpp:1624
Represents an item of a ProjectItemModel in Qt's model-view framework.
TargetBodyQsp targetBody() const
Returns the TargetBodyQsp stored in the data of the item.
void setControls()
Sets the text, icon, and data corresponding to a list of ControlList.
void setTemplateList(TemplateList *templateList)
Sets the text, icon, and data corresponding to an TemplateList.
void appendRow(ProjectItem *item)
Appends an item to the children of this item.
void setResults()
Sets the text, icon, and data corresponding to a list of Results.
void setShapes()
Sets the text, icon, and data corresponding to a list of ShapeList.
void setProjectItem(ProjectItem *item)
Sets the text, icon, and data to those of another item.
bool isShape() const
Returns true if an Shape is stored in the data of the item.
void setShape(Shape *shape)
Sets the text, icon, and data corresponding to an Shape.
BundleSolutionInfo * bundleSolutionInfo() const
Returns the BundleSolutionInfo stored in the data of the item.
BundleSettingsQsp bundleSettings() const
Returns the BundleSettings 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.
Template * getTemplate() const
Returns the Template stored in the data of the item.
bool isProject() const
Returns true if a Project is stored in the data of the item.
void setCorrelationMatrix(CorrelationMatrix correlationMatrix)
Sets the text, icon, and data corresponding to a CorrelationMatrix.
void setSpacecraft()
Sets the text, icon, and data corresponding to SpaceCraft.
void setBundleResults(BundleResults bundleResults)
Sets the text, icon, and data corresponding to BundleResults.
FileItemQsp fileItem() const
Returns the FileItemQsp stored in the data of the item.
ShapeList * shapeList() const
Returns the ShapeList stored in the data of the item.
bool isControl() const
Returns true if a Control is stored in the data of the item.
bool isControlList() const
Returns true if a ControlList is stored in the data of the item.
BundleResults bundleResults() const
Returns the BundleResults stored in the data of the item.
void setGuiCameraList()
Sets the text, icon, and data corresponding to a GuiCameraQsp.
bool isShapeList() const
Returns true if an ShapeList is stored in the data of the item.
CorrelationMatrix correlationMatrix() const
Returns the CorrelationMatrix stored the item.
void setControl(Control *control)
Sets the text, icon, and data corresponding to a Control.
Shape * shape() const
Returns the Shape stored in the data of the item.
void setChild(int row, ProjectItem *item)
Sets the child at the given row to an item.
void setTargetBody(TargetBodyQsp targetBody)
Sets the text, icon, and data corresponding to a TargetBodyQsp.
void setControlList(ControlList *controlList)
Sets the text, icon, and data corresponding to a ControlList.
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
void setProject(Project *project)
Sets the text, icon, and data corresponding to a Project.
void setTemplate(Template *newTemplate)
Sets the text, icon, and data corresponding to a Template.
void setBundleSettings(BundleSettingsQsp bundleSettings)
Sets the text, icon, and data corresponding to BundleSettings.
bool isBundleSettings() const
Returns true if BundleSettings are stored in the data of the item.
ProjectItem * parent() const
Returns the parent item of this item.
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
bool isBundleResults() const
Returns true if BundleResults are stored in the data of the item.
bool isFileItem() const
Returns true if a FileItemQsp is stored in the data of the item.
Control * control() const
Returns the Control stored in the data of the item.
Project * project() const
Returns the Project stored in the data of the item.
void setGuiCamera(GuiCameraQsp guiCamera)
Sets the text, icon, and data corresponding to a GuiCameraQsp.
void setImage(Image *image)
Sets the text, icon, and data corresponding to an Image.
ProjectItem()
Constructs an item without children, a parent, or a model.
void setImages()
Sets the text, icon, and data corresponding to a list of ImageList.
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.
~ProjectItem()
Destructs a ProjectItem.
ControlList * controlList() const
Returns the ControlList stored in the data of the item.
void insertRow(int row, ProjectItem *item)
Inserts an item to the children of this item at the row.
void setImageList(ImageList *imageList)
Sets the text, icon, and data corresponding to an ImageList.
bool isBundleSolutionInfo() const
Returns true if a BundleSolutionInfo is stored in the data of the item.
bool isImage() const
Returns true if an Image is stored in the data of the item.
void setShapeList(ShapeList *shapeList)
Sets the text, icon, and data corresponding to an ShapeList.
GuiCameraQsp guiCamera() const
Returns the GuiCameraQsp stored in the data of the item.
void setBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Sets the text, icon, and data corresponding to a BundleSolutionInfo.
void setTargetBodyList()
Sets the text, icon, and data corresponding to a TargetBodyList.
ProjectItem * child(int row) const
Returns the child item at a given row.
bool isGuiCamera() const
Returns true if a GuiCameraQsp is stored in the data of the item.
bool isCorrelationMatrix() const
Returns true if a CorrelationMatrix is stored in the data of the item.
ProjectItemModel * model() const
Returns the ProjectItemModel associated with this item.
TemplateList * templateList() const
Returns the TemplateList stored in the data of the item.
ProjectItem * takeChild(int row)
Removes the child item at the given row and returns the removed item.
bool isTargetBody() const
Returns true if a TargetBodyQsp is stored in the data of the item.
Provides access to data stored in a Project through Qt's model-view framework.
This represents a shape in a project-based GUI interface.
Definition Shape.h:68
QString fileName() const
Get the file name of the cube that this shape represents.
Definition Shape.cpp:376
Internalizes a list of shapes and allows for operations on the entire list.
Definition ShapeList.h:33
QString path() const
Get the path to the shapes in the shape list (relative to project root).
QString name() const
Get the human-readable name of this shape list.
List for holding TargetBodies.
QString name() const
Get the human-readable name of this TemplateList.
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16