Isis Developer Reference
Project.h
Go to the documentation of this file.
1 #ifndef Project_H
2 #define Project_H
3 
25 #include <QDir>
26 #include <QObject>
27 #include <QPointer>
28 #include <QStringList>
29 #include <QUndoStack>
30 #include <QXmlDefaultHandler>
31 
32 class QMutex;
33 class QProgressBar;
34 class QXmlAttributes;
35 class QXmlStreamWriter;
36 
37 #include "ControlList.h"
38 #include "Directory.h"
39 #include "GuiCameraList.h"
40 #include "ImageList.h"
41 #include "ShapeList.h"
42 #include "TargetBody.h"
43 #include "TemplateList.h"
44 #include "XmlStackedHandler.h"
45 
46 namespace Isis {
47  class BundleSolutionInfo;
48  class BundleSettings;
49  class Control;
50  class ControlList;
51  class CorrelationMatrix;
52  class FileName;
53  class Shape;
54  class ImageReader;
55  class ProgressBar;
56  class ShapeReader;
57  class Template;
58  class TemplateList;
59  class WorkOrder;
60 
289  class Project : public QObject {
290  Q_OBJECT
291  public:
292  Project(Directory &directory, QObject *parent = 0);
293  ~Project();
294 
297 // static QStringList verifyCNets(QStringList);
298 
300 
301  bool hasTarget(QString id);
302  bool hasCamera(QString id);
303 
304  QDir addBundleSolutionInfoFolder(QString folder);
305  QDir addCnetFolder(QString prefix);
306  void addControl(Control *control);
307  QDir addImageFolder(QString prefix);
308  void addImages(QStringList imageFiles);
309  void addImages(ImageList newImages);
311  QDir addShapeFolder(QString prefix);
312  void addShapes(QStringList shapeFiles);
313  void addShapes(ShapeList newShapes);
314  void addTemplates(TemplateList *templateFiles);
315  QDir addTemplateFolder(QString prefix);
317  void addTarget(Target *target);
318  void addCamera(Camera *camera);
319 
321  void clear();
322  bool clearing();
323  Control *control(QString id);
324  Directory *directory() const;
325  Image *image(QString id);
326  ImageList *imageList(QString name);
327  Shape *shape(QString id);
328  ShapeList *shapeList(QString name);
329  // CorrelationMatrix *correlationMatrix();
330  bool isTemporaryProject() const;
331  bool isOpen();
332  bool isClean();
334  const WorkOrder *lastNotUndoneWorkOrder() const;
335  QString name() const;
336  QMutex *workOrderMutex();
337  QMutex *mutex();
338  QString projectRoot() const;
339  QString newProjectRoot() const;
340 
341  void setName(QString newName);
342  QUndoStack *undoStack();
346  void writeSettings(FileName projName) const;
347 
348  void setActiveControl(QString displayName);
350  void setActiveImageList(QString displayName);
352 
353  static QString cnetRoot(QString projectRoot);
354  QString cnetRoot() const;
356  ControlList *controlList(QString name);
357 
358  static QString imageDataRoot(QString projectRoot);
359  QString imageDataRoot() const;
361 
362  static QString shapeDataRoot(QString projectRoot);
363  QString shapeDataRoot() const;
365 
366  static QString targetBodyRoot(QString projectRoot);
367  QString targetBodyRoot() const;
369 
370  static QString resultsRoot(QString projectRoot);
371  QString resultsRoot() const;
372  static QString bundleSolutionInfoRoot(QString projectRoot);
373  QString bundleSolutionInfoRoot() const;
375 
376  static QString templateRoot(QString projectRoot);
377  QString templateRoot() const;
382 
383  void deleteAllProjectFiles();
384  void relocateProjectRoot(QString newRoot);
385 
390  BundleSettings *bundleSettings() {return m_bundleSettings;}
391 
396  static int maxRecentProjects() { return m_maxRecentProjects; }
397 
399 
401 
402  bool save();
403  void save(FileName projectPath, bool verifyPathDoesntExist = true);
404 
405  void addToProject(WorkOrder *);
406 
407  template<typename Data> void warn(QString text, Data relevantData);
408 
409  void warn(QString text);
410 
411  signals:
415 // void allImagesClosed();
416 
422 
428 
433  void activeControlSet(bool boolean);
434 
444 
450 
456 
462 
468 
475 
481 
487 
492  void targetsAdded(TargetBodyList *targets);
493 
499 
504  void nameChanged(QString newName);
505 
511 
517 
523 
528 
533 
534  void templatesAdded(TemplateList *newTemplates);
535 
537 
543 
548  void cnetSaved(bool value);
549 
550  public slots:
551  void open(QString);
552  void setClean(bool value);
553  void cnetModified();
554 
555  private slots:
556  void controlClosed(QObject *control);
557  void controlListDeleted(QObject *controlList);
558  void imagesReady(ImageList);
559  void imageClosed(QObject *image);
560  void imageListDeleted(QObject *imageList);
561  void bundleSolutionInfoClosed(QObject *bundleSolutionInfo);
562  void targetBodyClosed(QObject *targetBodyObj);
563  void shapesReady(ShapeList shapes);
564  void shapeClosed(QObject *shape);
565  void shapeListDeleted(QObject *shapeList);
566  void checkActiveControlAndImageList();
567  void checkControlsAndImagesAvailable();
568 
569  private:
570  Project(const Project &other);
571  Project &operator=(const Project &rhs);
572  void createFolders();
573 
574  ControlList *createOrRetrieveControlList(QString name, QString path = "");
575  ImageList *createOrRetrieveImageList(QString name, QString path = "");
576  ShapeList *createOrRetrieveShapeList(QString name, QString path = "");
577 
578  void writeSettings();
579 
580 
581  QString nextImageListGroupName();
582 // void removeImage(Image *image);
583 
584  void save(QXmlStreamWriter &stream, FileName newProjectRoot) const;
585  void saveHistory(QXmlStreamWriter &stream) const;
586  void saveWarnings(QXmlStreamWriter &stream) const;
587 
588  void storeWarning(QString text);
589  void storeWarning(QString text, const ImageList &relevantData);
590 
591  private:
597  class XmlHandler : public XmlStackedHandler {
598  public:
599  XmlHandler(Project *project);
600 
601  virtual bool startElement(const QString &namespaceURI, const QString &localName,
602  const QString &qName, const QXmlAttributes &atts);
603  virtual bool endElement(const QString &namespaceURI, const QString &localName,
604  const QString &qName);
605 
606  private:
607  Q_DISABLE_COPY(XmlHandler);
608 
609  Project *m_project;
610  QList<ImageList *> m_imageLists;
611  QList<ShapeList *> m_shapeLists;
612  QList<ControlList *> m_controls;
613  QList<BundleSolutionInfo *> m_bundleSolutionInfos;
614  QList<TemplateList *> m_mapTemplateLists;
615  QList<TemplateList *> m_regTemplateLists;
616  WorkOrder *m_workOrder;
617  };
618 
619  private:
620 
621  static const int m_maxRecentProjects = 5;
622  QDir *m_projectRoot;
623  QString m_newProjectRoot;
624  QDir *m_cnetRoot;
625  QDir m_currentCnetFolder;
626  QPointer<Directory> m_directory;
627  QList<ImageList *> *m_images;
628  QList<ControlList *> *m_controls;
629  QList<ShapeList *> *m_shapes;
630  TargetBodyList *m_targets;
631  QList<TemplateList *> *m_mapTemplates;
632  QList<TemplateList *> *m_regTemplates;
633  GuiCameraList *m_guiCameras;
634  QList<BundleSolutionInfo *> *m_bundleSolutionInfo;
635 
636  QPointer<Control> m_activeControl;
637  QPointer<ImageList> m_activeImageList;
638 
639 
640  // TODO: kle testing - this will almost certainly be changed
641  BundleSettings *m_bundleSettings;
649 // CorrelationMatrix *m_correlationMatrix;
650 
651  QMap<QString, Control *> *m_idToControlMap;
652  QMap<QString, Image *> *m_idToImageMap;
653  QMap<QString, Shape *> *m_idToShapeMap;
654  QMap<QString, BundleSolutionInfo *> *m_idToBundleSolutionInfoMap;
655  QMap<QString, TargetBody *> *m_idToTargetBodyMap;
656  QMap<QString, GuiCamera *> *m_idToGuiCameraMap;
657 
658  QString m_name;
659  QStringList *m_warnings;
660  QList< QPointer<WorkOrder> > *m_workOrderHistory;
661 
662  QPointer<ImageReader> m_imageReader;
663  //QList<QPair<QString, Data> > m_storedWarnings;
664  bool m_isTemporaryProject;
665  bool m_isOpen;
666  bool m_isClean;
667  bool m_clearing;
668  int m_numImagesCurrentlyReading;
669 
670  QMutex *m_mutex;
671  QMutex *m_workOrderMutex;
672  QMutex *m_imageReadingMutex;
673 
674  int m_numShapesCurrentlyReading;
675  QMutex *m_shapeMutex;
676  QPointer<ShapeReader> m_shapeReader;
677  QMutex *m_shapeReadingMutex;
678 
679  QUndoStack m_undoStack;
680 
681  };
682 }
683 
685 
686 #endif // Project_H
Isis::Project::shapes
static QStringList shapes(QStringList)
Isis::Project::activeControlModified
void activeControlModified()
Emmited in cnetModified() when the actice control is modified.
Isis::ControlList::setPath
void setPath(QString newPath)
Set the relative path (from the project root) to this control list's folder.
Definition: ControlList.cpp:529
ShapeReader.h
Isis::Project::bundleSettings
BundleSettings * bundleSettings()
Return BundleSettings objects in Project.
Definition: Project.h:390
GuiCameraList.h
TargetBodyList.h
Isis::TargetBody
Container class for TargetBody.
Definition: TargetBody.h:65
Isis::Project::shapes
QList< ShapeList * > shapes()
Return the projects shapelist.
Definition: Project.cpp:2106
ProjectItem.h
FileName.h
Isis::ShapeReader
Definition: ShapeReader.h:34
Isis::Project::removeImages
void removeImages(ImageList &imageList)
Definition: Project.cpp:2786
SetActiveControlWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Isis::WorkOrder::isUndoable
bool isUndoable() const
Returns true if this work order is undoable, otherwise false.
Definition: WorkOrder.cpp:819
QProgressBar
Isis::Project::allControlsRemoved
void allControlsRemoved()
Emitted when all controls have been removed from the Project.
Cube.h
Isis::ImageDisplayProperties::FootprintViewProperties
@ FootprintViewProperties
Every display property for footprint views, provided for convenience.
Definition: ImageDisplayProperties.h:111
Isis::IException::Io
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
Isis::Project::waitForImageReaderFinished
void waitForImageReaderFinished()
Locks program if another spot in code is still running and called this function.
Definition: Project.cpp:1732
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
Isis::Project::addCamera
void addCamera(Camera *camera)
Adds a new camera to the project.
Definition: Project.cpp:2761
Isis::Project::cnetRoot
QString cnetRoot() const
Get where control networks ought to be stored inside the project.
Definition: Project.cpp:2029
Isis::Directory
Definition: Directory.h:271
Isis::Environment::userName
static QString userName()
@Returns the user name.
Definition: Environment.cpp:72
Isis::ControlList::setName
void setName(QString newName)
Set the human-readable name of this control list.
Definition: ControlList.cpp:518
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::Project::lastNotUndoneWorkOrder
WorkOrder * lastNotUndoneWorkOrder()
Return the last not undone workorder.
Definition: Project.cpp:1605
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::Project::mutex
QMutex * mutex()
Return mutex used for Naif calls.
Definition: Project.cpp:1658
Isis::Project::isClean
bool isClean()
Accessor to determine whether the current project is Unsaved.
Definition: Project.cpp:1584
Isis::Project::shape
Shape * shape(QString id)
Return a shape given its id.
Definition: Project.cpp:1539
Isis::ProjectItem::isControl
bool isControl() const
Returns true if a Control is stored in the data of the item.
Definition: ProjectItem.cpp:690
Isis::Project::open
void open(QString)
Open the project at the given path.
Definition: Project.cpp:1345
Isis::Directory::model
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1091
Isis::Project::projectSaved
void projectSaved(Project *)
Emitted when project is saved.
Isis::Project::removeTemplate
void removeTemplate(FileName file)
Isis::Project::~Project
~Project()
Clean up the project.
Definition: Project.cpp:257
Isis::FileName::name
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
Isis::Project::addTarget
void addTarget(Target *target)
Adds a new target to the project.
Definition: Project.cpp:2730
Isis::WorkOrder::redo
virtual void redo()
Starts (or enqueues) a redo.
Definition: WorkOrder.cpp:1043
Isis::Project::addImagesToIdMap
void addImagesToIdMap(ImageList images)
Add images to the id map which are not under the projects main data area, the Images node on the proj...
Definition: Project.cpp:2778
Isis::Project::workOrderHistory
QList< WorkOrder * > workOrderHistory()
Get the entire list of work orders that have executed.
Definition: Project.cpp:1748
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::Project::hasTarget
bool hasTarget(QString id)
This method checks for the existence of a target based on TargetName.
Definition: Project.cpp:2715
Isis::Project::addControl
void addControl(Control *control)
Add the given Control's to the current project.
Definition: Project.cpp:958
Isis::Project::controlsAndImagesAvailable
void controlsAndImagesAvailable()
Emitted when at least one cnet and image have been added to the project.
Isis::Project::control
Control * control(QString id)
Accessor for if the project is clearing or not.
Definition: Project.cpp:1163
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::XmlStackedHandlerReader::pushContentHandler
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
CorrelationMatrix.h
Directory.h
Target.h
Isis::Project::controlList
ControlList * controlList(QString name)
Return controlslist matching name in Project.
Definition: Project.cpp:2048
Isis::Shape::closeCube
void closeCube()
Cleans up the Cube *.
Definition: Shape.cpp:342
Isis::Project::maxRecentProjects
static int maxRecentProjects()
Return max number of recent projects to be displayed.
Definition: Project.h:396
Isis::WorkOrder::save
void save(QXmlStreamWriter &stream) const
: Saves a WorkOrder to a data stream.
Definition: WorkOrder.cpp:544
Isis::ShapeList::setName
void setName(QString newName)
Set the human-readable name of this shape list.
Definition: ShapeList.cpp:534
Isis::GuiCameraList::clear
void clear()
Clears the list.
Definition: GuiCameraList.cpp:157
Isis::ProjectItem::setTextColor
void setTextColor(Qt::GlobalColor color)
Definition: ProjectItem.cpp:1246
Isis::TemplateList
Definition: TemplateList.h:35
Isis::ImageList::append
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
BundleSettings.h
WorkOrderFactory.h
Isis::Project::shapeList
ShapeList * shapeList(QString name)
Return a shapelist given its name.
Definition: Project.cpp:1549
Isis::Project::clear
void clear()
Function to clear out all values in a project essentially making it a new project object.
Definition: Project.cpp:459
Isis::XmlStackedHandler::startElement
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
Isis::Project::clearing
bool clearing()
Definition: Project.cpp:666
Isis::WorkOrder::createsCleanState
bool createsCleanState() const
Returns the CleanState status (whether the Project has been saved to disk or not).
Definition: WorkOrder.cpp:854
Isis::Project::activeControl
Control * activeControl()
Return the Active Control (control network)
Definition: Project.cpp:1903
Isis::Project::targetBodyRoot
QString targetBodyRoot() const
Accessor for the root directory of the target body data.
Definition: Project.cpp:2186
Isis::TargetBodyQsp
QSharedPointer< TargetBody > TargetBodyQsp
Defines A smart pointer to a TargetBody obj.
Definition: TargetBody.h:216
Isis::Project::controlListAdded
void controlListAdded(ControlList *controls)
apparently not used?
Isis::Project::activeControlAndImageListSet
void activeControlAndImageListSet()
Emitted when both an active control and active image list have been set.
Isis::ProjectItem::control
Control * control() const
Returns the Control stored in the data of the item.
Definition: ProjectItem.cpp:536
Isis::Project::regTemplates
QList< TemplateList * > regTemplates()
Return registration template FileNames.
Definition: Project.cpp:2166
Isis::Project::workOrderStarting
void workOrderStarting(WorkOrder *)
Emitted when work order starts.
Isis::Project::templates
QList< TemplateList * > templates()
Return all template FileNames.
Definition: Project.cpp:2145
Isis::ImageReader
Definition: ImageReader.h:43
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Isis::Project *)
Isis::ImageList::deleteFromDisk
void deleteFromDisk(Project *project)
Delete all of the contained Images from disk.
Definition: ImageList.cpp:747
Isis::Control
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:66
Isis::Project::undoStack
QUndoStack * undoStack()
Returns the Projects stack of QUndoCommands.
Definition: Project.cpp:1694
QSharedPointer< TargetBody >
Isis::Project::isTemporaryProject
bool isTemporaryProject() const
Returns if the project is a temp project or not.
Definition: Project.cpp:1567
Isis::Camera
Definition: Camera.h:236
Isis::Project::hasCamera
bool hasCamera(QString id)
This method checks for the existence of a camera based on InstrumentId.
Definition: Project.cpp:2745
Isis::Project::mapTemplates
QList< TemplateList * > mapTemplates()
Return map template FileNames.
Definition: Project.cpp:2156
Isis::Project::addBundleSolutionInfo
void addBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Add the given BundleSolutionInfo to the current project.
Definition: Project.cpp:1194
QStringList
Isis::Project::imageDataRoot
QString imageDataRoot() const
Accessor for the root directory of the image data.
Definition: Project.cpp:2077
Isis::Directory::showWarning
void showWarning(QString text)
Displays a Warning.
Definition: Directory.cpp:1481
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::XmlStackedHandlerReader
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
Isis::Project::workOrderMutex
QMutex * workOrderMutex()
This function returns a QMutex.
Definition: Project.cpp:2986
Shape.h
Isis::ShapeList::setPath
void setPath(QString newPath)
Set the relative path (from the project root) to this shape list's folder.
Definition: ShapeList.cpp:545
Isis::Control::isModified
bool isModified()
@description Has this control been modified?
Definition: Control.cpp:229
ControlList.h
Isis::Project::addTemplates
void addTemplates(TemplateList *templateFiles)
Add new templates to m_mapTemplates or m_regTemplates and update project item model.
Definition: Project.cpp:1113
Isis::ShapeList::deleteFromDisk
void deleteFromDisk(Project *project)
Delete all of the contained Shapes from disk.
Definition: ShapeList.cpp:578
Isis::Project::discardActiveControlEdits
void discardActiveControlEdits()
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::Project::projectLoaded
void projectLoaded(Project *)
Emitted when project loaded receivers: IpceMainWindow, Directory, HistoryTreeWidget.
Isis::Project::images
QList< ImageList * > images()
Return projects imagelist.
Definition: Project.cpp:2115
Isis::Project::directory
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
Isis::Project::waitForShapeReaderFinished
void waitForShapeReaderFinished()
Locks program if another spot in code is still running and called this function.
Definition: Project.cpp:1740
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::ImageList::setName
void setName(QString newName)
Set the human-readable name of this image list.
Definition: ImageList.cpp:703
WorkOrder.h
Isis::Project::relocateProjectRoot
void relocateProjectRoot(QString newRoot)
This is called when the project is moved.
Definition: Project.cpp:2305
Isis::Project::addToProject
void addToProject(WorkOrder *)
This executes the WorkOrder and stores it in the project.
Definition: Project.cpp:2598
Isis::Project::setActiveControl
void setActiveControl(QString displayName)
Set the Active Control (control network)
Definition: Project.cpp:1819
ShapeList.h
Isis::ProjectItem::isImageList
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
Definition: ProjectItem.cpp:657
Isis::Control::write
bool write()
@description Write control net to disk.
Definition: Control.cpp:191
Isis::Shape::id
QString id() const
Get a unique, identifying string associated with this shape.
Definition: Shape.cpp:459
Isis::ReadWrite
const int ReadWrite
Definition: Process.h:24
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
ControlNet.h
Isis::Control::controlNet
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
Definition: Control.cpp:150
Isis::WorkOrder::isSavedToHistory
bool isSavedToHistory() const
Returns true if this work order is to be shown in History, otherwise false.
Definition: WorkOrder.cpp:830
Isis::Directory::clean
void clean()
Cleans directory of everything to do with the current project.
Definition: Directory.cpp:289
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::Project::deleteAllProjectFiles
void deleteAllProjectFiles()
Delete all of the files, that this project stores, from disk.
Definition: Project.cpp:2251
Isis::FileName::dir
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
Isis::Project::loadBundleSolutionInfo
void loadBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo)
Loads bundle solution info into project.
Definition: Project.cpp:1210
Isis::IException::toString
QString toString() const
Returns a string representation of this exception.
Definition: IException.cpp:537
TargetBody.h
Isis::Project::guiCamerasAdded
void guiCamerasAdded(GuiCameraList *targets)
Emitted when new GuiCamera objects added to project receivers: Directory.
Isis::Project::bundleSolutionInfoAdded
void bundleSolutionInfoAdded(BundleSolutionInfo *bundleSolutionInfo)
Emitted when new BundleSolutionInfo available from jigsaw receivers: ProjectTreeWidget (TODO: should ...
Isis::Project::shapeDataRoot
QString shapeDataRoot() const
Accessor for the root directory of the shape model data.
Definition: Project.cpp:2097
Isis::WorkOrder::isUndone
bool isUndone() const
Returns the WorkOrder undo status.
Definition: WorkOrder.cpp:913
Isis::Project::activeImageList
ImageList * activeImageList()
Returns the active ImageList.
Definition: Project.cpp:2003
SerialNumberList.h
Isis::Project::addBundleSolutionInfoFolder
QDir addBundleSolutionInfoFolder(QString folder)
Create and return the name of a folder for placing BundleSolutionInfo.
Definition: Project.cpp:1174
Isis::BundleSolutionInfo
Container class for BundleAdjustment results.
Definition: BundleSolutionInfo.h:159
Isis::Project::cnetModified
void cnetModified()
When a cnet is modified, set the project state to not clean.
Definition: Project.cpp:1924
Isis::Template
Definition: Template.h:30
Isis::GuiCamera
Container class for GuiCamera.
Definition: GuiCamera.h:72
Isis::ImageList::removeAt
void removeAt(int i)
Removes the image at an index.
Definition: ImageList.cpp:321
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::ControlNet::SetImages
void SetImages(const QString &imageListFile)
Creates the ControlNet's image cameras based on an input file.
Definition: ControlNet.cpp:1566
Isis::Image::closeCube
void closeCube()
Cleans up the Cube pointer.
Definition: Image.cpp:307
Isis::Project::newProjectRoot
QString newProjectRoot() const
Get the top-level folder of the new project.
Definition: Project.cpp:1675
Isis::Project::activeImageListSet
void activeImageListSet()
Emitted when an active image list is set.
Isis::Project::shapesAdded
void shapesAdded(ShapeList *shapes)
Emitted when new shape model images are available.
Isis::Project::warn
void warn(QString text, Data relevantData)
Definition: Project.cpp:2643
Isis::ImageList::name
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
Isis::Project::targetBodies
TargetBodyList targetBodies()
Return TargetBodyList in Project.
Definition: Project.cpp:2194
ProjectItemModel.h
Isis::BundleSettings
Container class for BundleAdjustment settings.
Definition: BundleSettings.h:125
Isis::WorkOrderFactory::create
static WorkOrder * create(Project *project, QString type)
This instantiates a work order given a project and a type name (class name in a string).
Definition: WorkOrderFactory.cpp:50
Isis::WorkOrder::previous
WorkOrder * previous() const
Gets the previous WorkOrder.
Definition: WorkOrder.cpp:944
ImageList.h
GuiCamera.h
Isis::ShapeList
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::Project::addShapeFolder
QDir addShapeFolder(QString prefix)
Create and return the name of a folder for placing shape models.
Definition: Project.cpp:1060
Isis::TargetBodyList
List for holding TargetBodies.
Definition: TargetBodyList.h:33
Isis::Project::controlAdded
void controlAdded(Control *control)
Emitted when new Control added to Project receivers: ProjectTreeWidget.
Isis::XmlStackedHandler::endElement
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ProjectItemModel::findItemData
ProjectItem * findItemData(const QVariant &data, int role=Qt::UserRole+1)
Returns the first item found that contains the given data in the given role or a null pointer if no i...
Definition: ProjectItemModel.cpp:290
ASSERT
#define ASSERT(x)
Definition: IsisDebug.h:134
Isis::ShapeList::removeAt
void removeAt(int i)
Removes the shape at an index.
Definition: ShapeList.cpp:301
Isis::TargetBodyList::clear
void clear()
clears the list.
Definition: TargetBodyList.cpp:143
Isis::Project::save
bool save()
Generic save method to save the state of the project.
Definition: Project.cpp:2324
Isis::FileName::toString
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
Isis::Project::setActiveImageList
void setActiveImageList(QString displayName)
Set the Active ImageList from the displayName which is saved in project.xml.
Definition: Project.cpp:1955
Isis::WorkOrder::setNext
void setNext(WorkOrder *nextWorkOrder)
Sets the next WorkOrder in the sequence.
Definition: WorkOrder.cpp:613
Isis::Project::projectRelocated
void projectRelocated(Project *)
Emitted when project location moved receivers: Control, BundleSolutionInfo, Image,...
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
Camera.h
Environment.h
Isis::Project::addShapes
void addShapes(QStringList shapeFiles)
Read the given shape model cube file names as Images and add them to the project.
Definition: Project.cpp:1089
Isis::Project::activeControlSet
void activeControlSet(bool boolean)
Emitted when an active control is set.
Isis::Project::userPreferenceActions
QList< QAction * > userPreferenceActions()
Get a list of configuration/settings actions related to reading images into this Project.
Definition: Project.cpp:916
Isis::Project::controls
QList< ControlList * > controls()
Return controls in project.
Definition: Project.cpp:2038
Isis::Project::workOrderFinished
void workOrderFinished(WorkOrder *)
Emitted when work order ends.
Isis::Project::image
Image * image(QString id)
Return an image given its id.
Definition: Project.cpp:1509
Isis::Project::addImages
void addImages(QStringList imageFiles)
Read the given cube file names as Images and add them to the project.
Definition: Project.cpp:1032
Isis::Project::name
QString name() const
Get the project's GUI name.
Definition: Project.cpp:1625
ProgressBar.h
Isis::Project::templatesAdded
void templatesAdded(TemplateList *newTemplates)
Isis::Project::templateRoot
QString templateRoot() const
Accessor for the root directory of the template data.
Definition: Project.cpp:2135
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::Project::nameChanged
void nameChanged(QString newName)
Emitted when project name is changed receivers: ProjectTreeWidget.
Isis::ShapeList::name
QString name() const
Get the human-readable name of this shape list.
Definition: ShapeList.cpp:555
Isis::Project::imagesAdded
void imagesAdded(ImageList *images)
Emitted when new images are available.
Isis::TemplateList::type
QString type() const
Get the type of template in this TemplateList.
Definition: TemplateList.cpp:91
Isis::ControlList::clear
void clear()
Clears the control list.
Definition: ControlList.cpp:145
Isis::TargetBodyList::append
void append(TargetBodyQsp const &value)
Appends a TargetBody to the list.
Definition: TargetBodyList.cpp:119
Isis::ImageList::setPath
void setPath(QString newPath)
Set the relative path (from the project root) to this image list's folder.
Definition: ImageList.cpp:714
Isis::Project::cnetSaved
void cnetSaved(bool value)
Emmited in save() when the project is being saved Connected to Directory so that ControlPointEditWidg...
Isis::Project::setName
void setName(QString newName)
Change the project's name (GUI only, doesn't affect location on disk).
Definition: Project.cpp:1684
Isis::Project::writeSettings
void writeSettings(FileName projName) const
Isis::Image::id
QString id() const
Get a unique, identifying string associated with this image.
Definition: Image.cpp:445
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::XmlStackedHandler
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
Isis::Project::bundleSolutionInfoRoot
QString bundleSolutionInfoRoot() const
Accessor for the root directory of the results data.
Definition: Project.cpp:2243
Isis::Project::resultsRoot
QString resultsRoot() const
Accessor for the root directory of the results data.
Definition: Project.cpp:2214
Isis::ShapeList::append
void append(Shape *const &value)
Appends an shape to the shape list.
Definition: ShapeList.cpp:133
Template.h
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Isis::WorkOrder::execute
virtual void execute()
Execute the workorder.
Definition: WorkOrder.cpp:1403
Control.h
Isis::Project::targetsAdded
void targetsAdded(TargetBodyList *targets)
Emitted when new TargetBody objects added to project receivers: Directory.
Isis::WorkOrder::setPrevious
void setPrevious(WorkOrder *previousWorkOrder)
Sets the previous WorkOrder in the sequence.
Definition: WorkOrder.cpp:622
Isis::ControlList::append
void append(Control *const &value)
Appends a control pointer to the control list.
Definition: ControlList.cpp:121
Isis::ControlList::deleteFromDisk
void deleteFromDisk(Project *project)
Delete all of the contained Controls from disk.
Definition: ControlList.cpp:562
Isis::Project::addTemplateFolder
QDir addTemplateFolder(QString prefix)
Create and navigate to the appropriate template type folder in the project directory.
Definition: Project.cpp:1134
Isis::GuiCameraList::append
void append(GuiCameraQsp const &value)
Appends a single GuiCamera to the list.
Definition: GuiCameraList.cpp:133
ImageReader.h
QObject
Isis::FileName::original
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
Isis::Project::addCnetFolder
QDir addCnetFolder(QString prefix)
Create and return the name of a folder for placing control networks.
Definition: Project.cpp:926
Isis::GuiCameraQsp
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object.
Definition: GuiCamera.h:186
IsisDebug.h
Isis::GuiCameraList
List of GuiCameras saved as QSharedPointers.
Definition: GuiCameraList.h:35
BundleSolutionInfo.h
XmlStackedHandlerReader.h
XmlStackedHandler.h
Isis::Target
This class is used to create and store valid Isis targets.
Definition: Target.h:63
Isis::Project::progress
QProgressBar * progress()
Definition: Project.cpp:1499
Isis::Project::setClean
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
Isis::WorkOrder::isUndoing
bool isUndoing() const
Returns the WorkOrderUndoing state.
Definition: WorkOrder.cpp:903
Isis::Control::id
QString id() const
Access the unique ID associated with this Control.
Definition: Control.cpp:282
Isis::Project::imageListAdded
void imageListAdded(ImageList *images)
Emitted when new ImageList added to Project receivers: ProjectTreeWidget.
Isis::Project::imageList
ImageList * imageList(QString name)
Return an imagelist given its name.
Definition: Project.cpp:1520
Isis::Project::Project
Project(Directory &directory, QObject *parent=0)
Create a new Project.
Definition: Project.cpp:88
TemplateList.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
SetActiveImageListWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Isis::Project::addImageFolder
QDir addImageFolder(QString prefix)
Create and return the name of a folder for placing images.
Definition: Project.cpp:1003
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
Isis::Project::isOpen
bool isOpen()
Accessor to determine whether a current project is Open.
Definition: Project.cpp:1575