PCL
|
A description of a file type and its associated file extensions. More...
#include <FileDialog.h>
Public Member Functions | |
FileFilter ()=default | |
FileFilter (const FileFilter &x)=default | |
FileFilter (const String &description, const String &extension) | |
FileFilter (const String &description, const StringList extensions) | |
virtual | ~FileFilter () |
void | AddExtension (const String &extension) |
void | AddExtensions (const StringList &extensions) |
void | Clear () |
String | Description () const |
const StringList & | Extensions () const |
void | SetDescription (const String &description) |
FileFilter is a simple class to describe a file type and enumerate its associated file extensions. That information plays a key role in file dialogs as OpenFileDialog and SaveFileDialog.
Definition at line 85 of file FileDialog.h.
|
default |
Constructs an empty FileFilter object.
|
inline |
Constructs a FileFilter with the specified description and list of file extensions.
Definition at line 98 of file FileDialog.h.
Constructs a FileFilter with the specified description and a single file extension.
Definition at line 108 of file FileDialog.h.
|
default |
Copy constructor.
|
inlinevirtual |
Virtual destructor.
Definition at line 122 of file FileDialog.h.
void pcl::FileFilter::AddExtension | ( | const String & | extension | ) |
Adds a file extension associated with the file type represented by this FileFilter object.
|
inline |
Adds an ordered list of file extensions.
Definition at line 162 of file FileDialog.h.
void pcl::FileFilter::Clear | ( | ) |
Clears the file type description and the list of file extensions.
|
inline |
Returns the description of the file type represented by this FileFilter object. Example: "FITS Files".
Definition at line 130 of file FileDialog.h.
|
inline |
Returns a list of file extensions associated to the file type represented by this FileFilter object. Example: ".fit", ".fits", ".fts".
Definition at line 148 of file FileDialog.h.
|
inline |
Sets the description of the file type represented by this FileFilter object.
Definition at line 139 of file FileDialog.h.