VTK
|
Group and sort a set of filenames. More...
#include <vtkSortFileNames.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSortFileNames * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkStringArray * | GetFileNames () |
virtual int | GetNumberOfGroups () |
virtual vtkStringArray * | GetNthGroup (int i) |
virtual void | Update () |
virtual void | SetGrouping (int) |
virtual int | GetGrouping () |
virtual void | GroupingOn () |
virtual void | GroupingOff () |
virtual void | SetNumericSort (int) |
virtual int | GetNumericSort () |
virtual void | NumericSortOn () |
virtual void | NumericSortOff () |
virtual void | SetIgnoreCase (int) |
virtual int | GetIgnoreCase () |
virtual void | IgnoreCaseOn () |
virtual void | IgnoreCaseOff () |
virtual void | SetSkipDirectories (int) |
virtual int | GetSkipDirectories () |
virtual void | SkipDirectoriesOn () |
virtual void | SkipDirectoriesOff () |
void | SetInputFileNames (vtkStringArray *input) |
virtual vtkStringArray * | GetInputFileNames () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSortFileNames * | SafeDownCast (vtkObjectBase *o) |
static vtkSortFileNames * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkSortFileNames () | |
~vtkSortFileNames () | |
virtual void | Execute () |
virtual void | SortFileNames (vtkStringArray *input, vtkStringArray *output) |
virtual void | GroupFileNames (vtkStringArray *input, vtkStringArrayVector *output) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | NumericSort |
int | IgnoreCase |
int | Grouping |
int | SkipDirectories |
vtkTimeStamp | UpdateTime |
vtkStringArray * | InputFileNames |
vtkStringArray * | FileNames |
vtkStringArrayVector * | Groups |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Group and sort a set of filenames.
vtkSortFileNames will take a list of filenames (e.g. from a file load dialog) and sort them into one or more series. If the input list of filenames contains any directories, these can be removed before sorting using the SkipDirectories flag. This class should be used where information about the series groupings can be determined by the filenames, but it might not be successful in cases where the information about the series groupings is stored in the files themselves (e.g DICOM).
Definition at line 46 of file vtkSortFileNames.h.
Definition at line 50 of file vtkSortFileNames.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkSortFileNames* vtkSortFileNames::NewInstance | ( | ) | const |
|
virtual |
|
static |
|
virtual |
Sort the file names into groups, according to similarity in filename name and path. Files in different directories, or with different extensions, or which do not fit into the same numbered series will be placed into different groups. This is off by default.
|
virtual |
Sort the file names into groups, according to similarity in filename name and path. Files in different directories, or with different extensions, or which do not fit into the same numbered series will be placed into different groups. This is off by default.
|
virtual |
Sort the file names into groups, according to similarity in filename name and path. Files in different directories, or with different extensions, or which do not fit into the same numbered series will be placed into different groups. This is off by default.
|
virtual |
Sort the file names into groups, according to similarity in filename name and path. Files in different directories, or with different extensions, or which do not fit into the same numbered series will be placed into different groups. This is off by default.
|
virtual |
Sort the files numerically, rather than lexicographically. For filenames that contain numbers, this means the order will be ["file8.dat", "file9.dat", "file10.dat"] instead of the usual alphabetic sorting order ["file10.dat" "file8.dat", "file9.dat"]. NumericSort is off by default.
|
virtual |
Sort the files numerically, rather than lexicographically. For filenames that contain numbers, this means the order will be ["file8.dat", "file9.dat", "file10.dat"] instead of the usual alphabetic sorting order ["file10.dat" "file8.dat", "file9.dat"]. NumericSort is off by default.
|
virtual |
Sort the files numerically, rather than lexicographically. For filenames that contain numbers, this means the order will be ["file8.dat", "file9.dat", "file10.dat"] instead of the usual alphabetic sorting order ["file10.dat" "file8.dat", "file9.dat"]. NumericSort is off by default.
|
virtual |
Sort the files numerically, rather than lexicographically. For filenames that contain numbers, this means the order will be ["file8.dat", "file9.dat", "file10.dat"] instead of the usual alphabetic sorting order ["file10.dat" "file8.dat", "file9.dat"]. NumericSort is off by default.
|
virtual |
Ignore case when sorting. This flag is honored by both the sorting and the grouping. This is off by default.
|
virtual |
Ignore case when sorting. This flag is honored by both the sorting and the grouping. This is off by default.
|
virtual |
Ignore case when sorting. This flag is honored by both the sorting and the grouping. This is off by default.
|
virtual |
Ignore case when sorting. This flag is honored by both the sorting and the grouping. This is off by default.
|
virtual |
Skip directories. If this flag is set, any input item that is a directory rather than a file will not be included in the output. This is off by default.
|
virtual |
Skip directories. If this flag is set, any input item that is a directory rather than a file will not be included in the output. This is off by default.
|
virtual |
Skip directories. If this flag is set, any input item that is a directory rather than a file will not be included in the output. This is off by default.
|
virtual |
Skip directories. If this flag is set, any input item that is a directory rather than a file will not be included in the output. This is off by default.
void vtkSortFileNames::SetInputFileNames | ( | vtkStringArray * | input | ) |
Set a list of file names to group and sort.
|
virtual |
Set a list of file names to group and sort.
|
virtual |
Get the full list of sorted filenames.
|
virtual |
Get the number of groups that the names were split into, if grouping is on. The filenames are automatically split into groups, where the filenames in each group will be identical except for their series numbers. If grouping is not on, this method will return zero.
|
virtual |
Get the Nth group of file names. This method should only be used if grouping is on. If grouping is off, it will always return null.
|
virtual |
Update the output filenames from the input filenames. This method is called automatically by GetFileNames() and GetNumberOfGroups() if the input names have changed.
|
protectedvirtual |
Fill the output.
|
protectedvirtual |
Sort the input string array, and append the results to the output.
|
protectedvirtual |
Separate a string array into groups and append them to the output.
|
protected |
Definition at line 120 of file vtkSortFileNames.h.
|
protected |
Definition at line 121 of file vtkSortFileNames.h.
|
protected |
Definition at line 122 of file vtkSortFileNames.h.
|
protected |
Definition at line 123 of file vtkSortFileNames.h.
|
protected |
Definition at line 125 of file vtkSortFileNames.h.
|
protected |
Definition at line 127 of file vtkSortFileNames.h.
|
protected |
Definition at line 128 of file vtkSortFileNames.h.
|
protected |
Definition at line 129 of file vtkSortFileNames.h.