RunStitchFrame Class Reference

#include <RunStitchFrame.h>

List of all members.

Public Member Functions

 RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
bool StitchProject (wxString scriptFile, wxString outname, HuginBase::PanoramaMakefilelibExport::PTPrograms progs)
 Starts stitching of project file.
bool DetectProject (wxString scriptFile, HuginBase::AssistantMakefilelibExport::AssistantPrograms progs)
 starts assistant of project file
int GetProcessId ()
 Returns process ID of running process.
int GetProjectId ()
 Gets project id from batch.
void SetProcessId (int pid)
 Sets process ID of running process (if running process from outside).
void SetProjectId (int id)
 Sets project id from batch.
bool SaveLog (const wxString &filename)
 save the content of the window into a given log file
void OnCancel (wxCommandEvent &event)
 Cancels project execution - kills process.
 RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
bool StitchProject (wxString scriptFile, wxString outname, HuginBase::PanoramaMakefilelibExport::PTPrograms progs, bool doDeleteOnExit)
void OnQuit (wxCommandEvent &event)
void OnAbout (wxCommandEvent &event)
void SetOverwrite (bool doOverwrite)
 sets, if existing output file should be automatic overwritten

Public Attributes

RunStitchPanelm_stitchPanel

Private Member Functions

void OnProcessTerminate (wxProcessEvent &event)
void OnProcessTerminate (wxProcessEvent &event)
void OnCancel (wxCommandEvent &event)

Private Attributes

wxEvtHandler * m_evtParent
bool m_isStitching
bool m_isDetecting
int m_projectId
int m_pid
wxString m_scriptFile
bool m_deleteOnExit
RunStitchPanelm_stitchPanel


Constructor & Destructor Documentation

RunStitchFrame::RunStitchFrame wxWindow *  parent,
const wxString &  title,
const wxPoint &  pos,
const wxSize &  size
 

Definition at line 34 of file RunStitchFrame.cpp.

RunStitchFrame::RunStitchFrame wxWindow *  parent,
const wxString &  title,
const wxPoint &  pos,
const wxSize &  size
 


Member Function Documentation

bool RunStitchFrame::DetectProject wxString  scriptFile,
HuginBase::AssistantMakefilelibExport::AssistantPrograms  progs
 

starts assistant of project file

Definition at line 147 of file RunStitchFrame.cpp.

References RunStitchPanel::DetectProject(), m_isDetecting, m_isStitching, and m_stitchPanel.

Referenced by Batch::OnDetect().

int RunStitchFrame::GetProcessId  ) 
 

Returns process ID of running process.

Definition at line 54 of file RunStitchFrame.cpp.

References RunStitchPanel::GetPid(), m_projectId, and m_stitchPanel.

int RunStitchFrame::GetProjectId  ) 
 

Gets project id from batch.

Definition at line 66 of file RunStitchFrame.cpp.

void RunStitchFrame::OnAbout wxCommandEvent &  event  ) 
 

void RunStitchFrame::OnCancel wxCommandEvent &  event  )  [private]
 

void RunStitchFrame::OnCancel wxCommandEvent &  event  ) 
 

Cancels project execution - kills process.

void RunStitchFrame::OnProcessTerminate wxProcessEvent &  event  )  [private]
 

void RunStitchFrame::OnProcessTerminate wxProcessEvent &  event  )  [private]
 

Definition at line 102 of file RunStitchFrame.cpp.

References DEBUG_TRACE, m_isStitching, and m_projectId.

void RunStitchFrame::OnQuit wxCommandEvent &  event  ) 
 

bool RunStitchFrame::SaveLog const wxString &  filename  ) 
 

save the content of the window into a given log file

Returns:
true if log was saved successful

Definition at line 159 of file RunStitchFrame.cpp.

References m_stitchPanel, and RunStitchPanel::SaveLog().

void RunStitchFrame::SetOverwrite bool  doOverwrite  ) 
 

sets, if existing output file should be automatic overwritten

Definition at line 214 of file hugin_stitch_project.cpp.

References m_stitchPanel, and RunStitchPanel::SetOverwrite().

Referenced by stitchApp::OnInit().

void RunStitchFrame::SetProcessId int  pid  ) 
 

Sets process ID of running process (if running process from outside).

Definition at line 71 of file RunStitchFrame.cpp.

References RunStitchPanel::GetPid(), m_pid, m_projectId, and m_stitchPanel.

void RunStitchFrame::SetProjectId int  id  ) 
 

Sets project id from batch.

Definition at line 83 of file RunStitchFrame.cpp.

References m_projectId.

Referenced by Batch::OnDetect(), and Batch::OnStitch().

bool RunStitchFrame::StitchProject wxString  scriptFile,
wxString  outname,
HuginBase::PanoramaMakefilelibExport::PTPrograms  progs,
bool  doDeleteOnExit
 

Definition at line 202 of file hugin_stitch_project.cpp.

References m_deleteOnExit, m_isStitching, m_scriptFile, m_stitchPanel, and RunStitchPanel::StitchProject().

bool RunStitchFrame::StitchProject wxString  scriptFile,
wxString  outname,
HuginBase::PanoramaMakefilelibExport::PTPrograms  progs
 

Starts stitching of project file.

Definition at line 135 of file RunStitchFrame.cpp.

References m_isDetecting, m_isStitching, m_stitchPanel, and RunStitchPanel::StitchProject().

Referenced by stitchApp::OnInit(), and Batch::OnStitch().


Member Data Documentation

bool RunStitchFrame::m_deleteOnExit [private]
 

Definition at line 79 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

wxEvtHandler* RunStitchFrame::m_evtParent [private]
 

Definition at line 77 of file RunStitchFrame.h.

bool RunStitchFrame::m_isDetecting [private]
 

Definition at line 79 of file RunStitchFrame.h.

Referenced by DetectProject(), and StitchProject().

bool RunStitchFrame::m_isStitching [private]
 

Definition at line 77 of file hugin_stitch_project.cpp.

Referenced by DetectProject(), OnProcessTerminate(), and StitchProject().

int RunStitchFrame::m_pid [private]
 

Definition at line 81 of file RunStitchFrame.h.

Referenced by SetProcessId().

int RunStitchFrame::m_projectId [private]
 

Definition at line 80 of file RunStitchFrame.h.

Referenced by GetProcessId(), OnProcessTerminate(), SetProcessId(), and SetProjectId().

wxString RunStitchFrame::m_scriptFile [private]
 

Definition at line 78 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

RunStitchPanel* RunStitchFrame::m_stitchPanel [private]
 

Definition at line 84 of file hugin_stitch_project.cpp.

RunStitchPanel* RunStitchFrame::m_stitchPanel
 

Definition at line 73 of file RunStitchFrame.h.

Referenced by DetectProject(), GetProcessId(), Batch::OnStitch(), Batch::PauseBatch(), SaveLog(), SetOverwrite(), SetProcessId(), and StitchProject().


The documentation for this class was generated from the following files:
Generated on Sat Apr 19 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1