Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
RunStitchFrame Class Reference

#include <RunStitchFrame.h>

Inheritance diagram for RunStitchFrame:
Inheritance graph

Public Member Functions

 RunStitchFrame (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size)
 
bool StitchProject (wxString scriptFile, wxString outname, wxString userDefinedOutput=wxEmptyString)
 Starts stitching of project file.
 
bool DetectProject (wxString scriptFile, wxString userDefinedAssistant=wxEmptyString)
 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 (const wxString &scriptFile, const wxString &outname, const wxString &userDefinedOutput, bool doDeleteOnExit)
 
void OnQuit (wxCommandEvent &event)
 
void OnAbout (wxCommandEvent &event)
 
void OnProgress (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
 
wxGaugem_progress
 

Detailed Description

Definition at line 42 of file RunStitchFrame.h.

Constructor & Destructor Documentation

◆ RunStitchFrame() [1/2]

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

Definition at line 29 of file RunStitchFrame.cpp.

References m_stitchPanel, OnCancel(), OnProcessTerminate(), and threshold().

◆ RunStitchFrame() [2/2]

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

Member Function Documentation

◆ DetectProject()

bool RunStitchFrame::DetectProject ( wxString  scriptFile,
wxString  userDefinedAssistant = wxEmptyString 
)

starts assistant of project file

Definition at line 143 of file RunStitchFrame.cpp.

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

◆ GetProcessId()

int RunStitchFrame::GetProcessId ( )

Returns process ID of running process.

Definition at line 51 of file RunStitchFrame.cpp.

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

◆ GetProjectId()

int RunStitchFrame::GetProjectId ( )

Gets project id from batch.

Definition at line 63 of file RunStitchFrame.cpp.

References m_projectId.

◆ OnAbout()

void RunStitchFrame::OnAbout ( wxCommandEvent &  event)

◆ OnCancel() [1/2]

void RunStitchFrame::OnCancel ( wxCommandEvent &  event)

Cancels project execution - kills process.

Referenced by RunStitchFrame().

◆ OnCancel() [2/2]

void RunStitchFrame::OnCancel ( wxCommandEvent &  event)
private

◆ OnProcessTerminate() [1/2]

void RunStitchFrame::OnProcessTerminate ( wxProcessEvent event)
private

Definition at line 99 of file RunStitchFrame.cpp.

References DEBUG_TRACE, m_isStitching, m_projectId, and threshold().

Referenced by RunStitchFrame().

◆ OnProcessTerminate() [2/2]

void RunStitchFrame::OnProcessTerminate ( wxProcessEvent event)
private

◆ OnProgress()

void RunStitchFrame::OnProgress ( wxCommandEvent &  event)

Definition at line 221 of file hugin_stitch_project.cpp.

References m_progress, and threshold().

◆ OnQuit()

void RunStitchFrame::OnQuit ( wxCommandEvent &  event)

◆ SaveLog()

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 154 of file RunStitchFrame.cpp.

References m_stitchPanel, and RunStitchPanel::SaveLog().

◆ SetOverwrite()

void RunStitchFrame::SetOverwrite ( bool  doOverwrite)

sets, if existing output file should be automatic overwritten

Definition at line 240 of file hugin_stitch_project.cpp.

References m_stitchPanel, RunStitchPanel::SetOverwrite(), and threshold().

Referenced by stitchApp::OnInit().

◆ SetProcessId()

void RunStitchFrame::SetProcessId ( int  pid)

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

Definition at line 68 of file RunStitchFrame.cpp.

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

◆ SetProjectId()

void RunStitchFrame::SetProjectId ( int  id)

Sets project id from batch.

Definition at line 80 of file RunStitchFrame.cpp.

References m_projectId.

◆ StitchProject() [1/2]

bool RunStitchFrame::StitchProject ( const wxString scriptFile,
const wxString outname,
const wxString userDefinedOutput,
bool  doDeleteOnExit 
)

◆ StitchProject() [2/2]

bool RunStitchFrame::StitchProject ( wxString  scriptFile,
wxString  outname,
wxString  userDefinedOutput = wxEmptyString 
)

Starts stitching of project file.

Definition at line 132 of file RunStitchFrame.cpp.

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

Referenced by stitchApp::OnInit().

Member Data Documentation

◆ m_deleteOnExit

bool RunStitchFrame::m_deleteOnExit
private

Definition at line 71 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

◆ m_evtParent

wxEvtHandler* RunStitchFrame::m_evtParent
private

Definition at line 71 of file RunStitchFrame.h.

◆ m_isDetecting

bool RunStitchFrame::m_isDetecting
private

Definition at line 73 of file RunStitchFrame.h.

Referenced by DetectProject(), and StitchProject().

◆ m_isStitching

bool RunStitchFrame::m_isStitching
private

◆ m_pid

int RunStitchFrame::m_pid
private

Definition at line 75 of file RunStitchFrame.h.

Referenced by GetProcessId(), and SetProcessId().

◆ m_progress

wxGauge* RunStitchFrame::m_progress
private

Definition at line 72 of file hugin_stitch_project.cpp.

Referenced by OnProgress().

◆ m_projectId

int RunStitchFrame::m_projectId
private

◆ m_scriptFile

wxString RunStitchFrame::m_scriptFile
private

Definition at line 70 of file hugin_stitch_project.cpp.

Referenced by StitchProject().

◆ m_stitchPanel

RunStitchPanel * RunStitchFrame::m_stitchPanel

The documentation for this class was generated from the following files: