Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProjectArray.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
27 #ifndef PROJECTARRAY_H
28 #define PROJECTARRAY_H
29 
30 #include <wx/dynarray.h>
31 #include <wx/string.h>
33 #include <wx/log.h>
34 #include "panodata/Panorama.h"
35 #include "base_wx/platform.h"
36 
37 class Project;
38 
39 WX_DECLARE_OBJARRAY(Project, ProjectArray); //declare an array of projects - main data structure for the batch processor
40 WX_DEFINE_ARRAY_INT(int,IntArray);
41 
42 class Project
43 {
44 public:
45  enum Status
46  {
53  };
54  enum Target
55  {
58  };
59 
60  //generator for unique ids of projects
61  static long idGenerator;
62  //unique id of project
63  long id;
64  //project status
66  //project target: stitching or detecting/assistant
68  //project input path
69  wxString path;
70  //project output prefix path and filename
71  wxString prefix;
72  // user defined output or assistant
74  //last modification date and time of project
75  wxDateTime modDate;
76  //project options
78  //true if project is missing or should be skipped for a different reason when executing batch
79  bool skip;
80  // true, if project is probably aligned
81  bool isAligned;
82 
83  //Constructor for project files
84  Project(wxString pth, wxString pfx, wxString newUserDefinedSequence = wxEmptyString, Project::Target newTarget = STITCHING);
85  //Constructor for applications
86  explicit Project(wxString command);
87  //Returns status of project in string form
88  wxString GetStatusText();
89  //Reads and returns options from a project file
90  HuginBase::PanoramaOptions ReadOptions(wxString projectFile);
91  //Resets the project options of project
92  void ResetOptions();
93 };
94 
95 #endif //PROJECTARRAY_H
implementation of huginApp Class
HuginBase::PanoramaOptions ReadOptions(wxString projectFile)
wxString userDefindSequence
Definition: ProjectArray.h:73
wxDateTime modDate
Definition: ProjectArray.h:75
Status status
Definition: ProjectArray.h:65
Project(wxString pth, wxString pfx, wxString newUserDefinedSequence=wxEmptyString, Project::Target newTarget=STITCHING)
WX_DEFINE_ARRAY_INT(int, IntArray)
HuginBase::PanoramaOptions options
Definition: ProjectArray.h:77
Target target
Definition: ProjectArray.h:67
WX_DECLARE_OBJARRAY(wxTreeListColumnInfo, wxArrayTreeListColumnInfo)
bool isAligned
Definition: ProjectArray.h:81
wxString path
Definition: ProjectArray.h:69
static long idGenerator
Definition: ProjectArray.h:61
wxString GetStatusText()
Panorama image options.
wxString prefix
Definition: ProjectArray.h:71
void ResetOptions()
bool skip
Definition: ProjectArray.h:79
long id
Definition: ProjectArray.h:63