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

Generated on Thu Aug 28 01:25:36 2014 for Hugintrunk by  doxygen 1.3.9.1