ProjectArray.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #ifndef PROJECTARRAY_H
00028 #define PROJECTARRAY_H
00029 
00030 #include <wx/dynarray.h>
00031 #include <wx/string.h>
00032 #include "panodata/PanoramaOptions.h"
00033 #include <wx/log.h>
00034 #include "panodata/Panorama.h"
00035 #include "base_wx/platform.h"
00036 
00037 class Project;
00038 
00039 WX_DECLARE_OBJARRAY(Project, ProjectArray);             //declare an array of projects - main data structure for the batch processor
00040 WX_DEFINE_ARRAY_INT(int,IntArray);
00041 
00042 class Project
00043 {
00044 public:
00045     enum Status
00046     {
00047         FINISHED=0,
00048         WAITING,
00049         RUNNING,
00050         FAILED,
00051         MISSING,
00052         PAUSED
00053     };
00054     enum Target
00055     {
00056         STITCHING=0,
00057         DETECTING
00058     };
00059 
00060     //generator for unique ids of projects
00061     static long idGenerator;
00062     //unique id of project
00063     long id;
00064     //project status
00065     Status status;
00066     //project target: stitching or detecting/assistant
00067     Target target;
00068     //project input path
00069     wxString path;
00070     //project output prefix path and filename
00071     wxString prefix;
00072     //last modification date and time of project
00073     wxDateTime modDate;
00074     //project options
00075     HuginBase::PanoramaOptions options;
00076     //true if project is missing or should be skipped for a different reason when executing batch
00077     bool skip;
00078     // true, if project is probably aligned
00079     bool isAligned;
00080 
00081     //Constructor for project files
00082     Project(wxString pth,wxString pfx,Project::Target newTarget=STITCHING);
00083     //Constructor for applications
00084     explicit Project(wxString command);
00085     //Returns status of project in string form
00086     wxString GetStatusText();
00087     //Reads and returns options from a project file
00088     HuginBase::PanoramaOptions ReadOptions(wxString projectFile);
00089     //Resets the project options of project
00090     void ResetOptions();
00091 };
00092 
00093 #endif //PROJECTARRAY_H

Generated on 30 Aug 2016 for Hugintrunk by  doxygen 1.4.7