Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin1
ptbatcher
DirTraverser.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
2
27
#include <wx/dir.h>
28
#include <wx/filename.h>
29
30
class
DirTraverser
:
public
wxDirTraverser
31
{
32
public
:
33
DirTraverser
():wxDirTraverser() { }
34
35
//Called when directory traverser evaluates a file
36
virtual
wxDirTraverseResult
OnFile
(
const
wxString
& file)
37
{
38
wxFileName
fileName
(file);
39
wxString
ext
=
fileName
.GetExt();
40
//we add all project files to array
41
if
(
ext
.CmpNoCase(
"pto"
) == 0 ||
ext
.CmpNoCase(
"ptp"
) == 0||
42
ext
.CmpNoCase(
"pts"
) == 0||
ext
.CmpNoCase(
"oto"
) == 0)
43
{
44
projectFiles
.Add(file);
45
}
46
47
//TO-DO: include image file heuristics to detect potential projects
48
return
wxDIR_CONTINUE
;
49
}
50
51
//Called when directory traverser evaluates a directory
52
virtual
wxDirTraverseResult
OnDir
(
const
wxString
&
WXUNUSED
(
dir
))
53
{
54
return
wxDIR_CONTINUE
;
55
}
56
57
//Returns an array with all project files found
58
wxArrayString
GetProjectFiles
()
59
{
60
return
projectFiles
;
61
}
62
private
:
63
wxArrayString
projectFiles
;
64
};
DirTraverser
Definition
DirTraverser.h:31
DirTraverser::OnFile
virtual wxDirTraverseResult OnFile(const wxString &file)
Definition
DirTraverser.h:36
DirTraverser::OnDir
virtual wxDirTraverseResult OnDir(const wxString &WXUNUSED(dir))
Definition
DirTraverser.h:52
DirTraverser::GetProjectFiles
wxArrayString GetProjectFiles()
Definition
DirTraverser.h:58
DirTraverser::DirTraverser
DirTraverser()
Definition
DirTraverser.h:33
DirTraverser::projectFiles
wxArrayString projectFiles
Definition
DirTraverser.h:63
threshold
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition
threshold.h:41
Generated on Sun Sep 6 2026 02:43:00 for Hugin trunk by
1.9.8