#include <vtkPVReaderModule.h>
Inheritance diagram for vtkPVReaderModule:
Public Member Functions | |
vtkTypeRevisionMacro (vtkPVReaderModule, vtkPVSource) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | CreateProperties () |
virtual int | CanReadFile (const char *fname) |
void | AddExtension (const char *) |
vtkIdType | GetNumberOfExtensions () |
const char * | GetExtension (vtkIdType i) |
const char * | RemovePath (const char *fname) |
virtual void | SaveState (ofstream *file) |
void | AddPVFileEntry (vtkPVFileEntry *pvw) |
virtual int | GetNumberOfTimeSteps () |
virtual void | SetRequestedTimeStep (int) |
vtkPVWidget * | GetTimeStepWidget () |
virtual int | Initialize (const char *fname, vtkPVReaderModule *&newModule) |
virtual int | Finalize (const char *fname) |
virtual int | ReadFileInformation (const char *fname) |
virtual void | SetAcceptAfterRead (int) |
virtual int | GetAcceptAfterRead () |
virtual vtkPVFileEntry * | GetFileEntry () |
Static Public Member Functions | |
vtkPVReaderModule * | New () |
Protected Member Functions | |
vtkPVReaderModule () | |
~vtkPVReaderModule () | |
const char * | ExtractExtension (const char *fname) |
virtual int | FinalizeInternal (const char *fname, int accept) |
void | SetReaderFileName (const char *fname) |
int | CloneAndInitialize (int makeCurrent, vtkPVReaderModule *&clone) |
Protected Attributes | |
vtkPVFileEntry * | FileEntry |
int | AcceptAfterRead |
vtkVector< const char * > * | Extensions |
vtkVectorIterator< const char * > * | Iterator |
int | PackFileEntry |
int | AddFileEntry |
The class vtkPVReaderModule is used to represent a reader (or a pipeline which contains a reader). A prototype for each file type is created at startup by parsing the (XML) configuration file. Later, when the user tries to open a file, the prototypes are consulted. The first prototype which respond positively to CanReadFile() is asked to read the file and create a new instance of a vtkPVReaderModule (or any subclass) to be added to the list of existing sources.
Definition at line 43 of file vtkPVReaderModule.h.
|
|
|
|
|
Reimplemented from vtkPVSource. Reimplemented in vtkPVAdvancedReaderModule, vtkPVDataSetReaderModule, vtkPVDReaderModule, vtkPVEnSightReaderModule, vtkPVPLOT3DReaderModule, vtkPVRawReaderModule, and vtkXDMFReaderModule. |
|
|
|
Reimplemented from vtkPVSource. Reimplemented in vtkPVAdvancedReaderModule, vtkPVDataSetReaderModule, vtkPVDReaderModule, vtkPVEnSightReaderModule, vtkPVPLOT3DReaderModule, vtkPVRawReaderModule, and vtkXDMFReaderModule. |
|
Set up the UI for this source. The only default element created is a file entry. Of course, more can be added in the configuration file. Reimplemented from vtkPVSource. Reimplemented in vtkPVDataSetReaderModule, vtkPVEnSightReaderModule, and vtkPVRawReaderModule. |
|
Returns true (1) if the current reader can read the specified file, false (0) otherwise. In the default implementation, this is done by comparing the extension of the file to a list of extensions specified by the configuration (XML) file -see AddExtension-. |
|
Used mainly by the scripting interface, these three methods are normally called in order during the file opening process. InitializeReadCustom() (invoked on the prototype) returns a clone. ReadFileInformation() and FinalizeRead() are then invoked on the clone to finish the reading process. These methods can be changed by custom subclasses which require special handling of ParaView traces. Reimplemented in vtkPVAdvancedReaderModule, vtkPVDataSetReaderModule, and vtkXDMFReaderModule. |
|
Used mainly by the scripting interface, these three methods are normally called in order during the file opening process. InitializeReadCustom() (invoked on the prototype) returns a clone. ReadFileInformation() and FinalizeRead() are then invoked on the clone to finish the reading process. These methods can be changed by custom subclasses which require special handling of ParaView traces. Reimplemented in vtkPVAdvancedReaderModule, vtkPVDReaderModule, and vtkXDMFReaderModule. |
|
Used mainly by the scripting interface, these three methods are normally called in order during the file opening process. InitializeReadCustom() (invoked on the prototype) returns a clone. ReadFileInformation() and FinalizeRead() are then invoked on the clone to finish the reading process. These methods can be changed by custom subclasses which require special handling of ParaView traces. Reimplemented in vtkPVAdvancedReaderModule, vtkPVEnSightReaderModule, and vtkXDMFReaderModule. |
|
Add extension recognized by the reader. This is displayed in the selection dialog and used in the default implementation of CanReadFile(). |
|
Get the number of registered file extensions. |
|
Get the ith file extension. |
|
Remove the path and return the filename. |
|
This tells vtkPVWindow whether it should call Accept() on the module returned by ReadFile. In the default implementation, the ReadFile() creates a clone and sets up all the filename (which is the only user modifiable option). Since the user does not have to make any selections before the file is loaded, vtkPVWindow calls Accept instead of the user. This behaviour is changed in vtkPVAdvancedReaderModule which first calls UpdateInformation() on the VTK reader, obtains some preliminary information from the file and then prompts the user for some stuff. In this situation, vtkPVWindow does not call Accept. This is mainly used to avoid reading the whole file before asking the user the initial configuration (for example, the user might want to load only a subset of available attriutes) |
|
This tells vtkPVWindow whether it should call Accept() on the module returned by ReadFile. In the default implementation, the ReadFile() creates a clone and sets up all the filename (which is the only user modifiable option). Since the user does not have to make any selections before the file is loaded, vtkPVWindow calls Accept instead of the user. This behaviour is changed in vtkPVAdvancedReaderModule which first calls UpdateInformation() on the VTK reader, obtains some preliminary information from the file and then prompts the user for some stuff. In this situation, vtkPVWindow does not call Accept. This is mainly used to avoid reading the whole file before asking the user the initial configuration (for example, the user might want to load only a subset of available attriutes) |
|
Get the file entry. |
|
Saves the pipeline in a ParaView script. This is similar to saveing a trace, except only the last state is stored. Reimplemented from vtkPVSource. Reimplemented in vtkXDMFReaderModule. |
|
Puts the file entry at the begining of the list for batch files. The file name has to be set before array selection. |
|
Get the number of time steps that can be provided by this reader. Timesteps are available either from an animation file or from a time-series of files as detected by the file entry widget. Returns 0 if time steps are not available, and the number of timesteps otherwise. Reimplemented in vtkPVDReaderModule. |
|
Set the time step that should be provided by the reader. This value is ignored unless GetNumberOfTimeSteps returns 1 or more. Reimplemented in vtkPVDReaderModule. |
|
Method to obtain the widget that controls the timestep. |
|
|
|
|
|
|
|
Creates and returns (by reference) a copy of this source. It will create a new instance of the same type as the current object using NewInstance() and then call ClonePrototype() on all widgets and add these clones to it's widget list. The return value is VTK_OK is the cloning was successful. |
|
Definition at line 137 of file vtkPVReaderModule.h. |
|
Definition at line 138 of file vtkPVReaderModule.h. |
|
Definition at line 146 of file vtkPVReaderModule.h. |
|
Definition at line 147 of file vtkPVReaderModule.h. |
|
Definition at line 157 of file vtkPVReaderModule.h. |
|
Definition at line 158 of file vtkPVReaderModule.h. |