vtkPExodusIIReader Class Reference

#include <vtkPExodusIIReader.h>

Inheritance diagram for vtkPExodusIIReader:

Inheritance graph
[legend]
Collaboration diagram for vtkPExodusIIReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

Read Exodus II files (.exii).

vtkPExodusIIReader is a unstructured grid source object that reads ExodusII files. Most of the meta data associated with the file is loaded when UpdateInformation is called. This includes information like Title, number of blocks, number and names of arrays. This data can be retrieved from methods in this reader. Separate arrays that are meant to be a single vector, are combined internally for convenience. To be combined, the array names have to be identical except for a trailing X,Y and Z (or x,y,z). By default all cell and point arrays are loaded. However, the user can flag arrays not to load with the methods "SetPointDataArrayLoadFlag" and "SetCellDataArrayLoadFlag". The reader responds to piece requests by loading only a range of the possible blocks. Unused points are filtered out internally.

Definition at line 48 of file vtkPExodusIIReader.h.

int DeterminePattern (const char *file)
static int DetermineFileId (const char *file)

Public Types

typedef vtkExodusIIReader Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetFileNames (int nfiles, const char **names)
virtual void SetFileName (const char *name)
char ** GetFileNames ()
int GetNumberOfFileNames ()
virtual vtkIdType GetTotalNumberOfElements ()
virtual vtkIdType GetTotalNumberOfNodes ()
virtual void UpdateTimeInformation ()
virtual void Broadcast (vtkMultiProcessController *ctrl)
void SetController (vtkMultiProcessController *c)
virtual vtkMultiProcessControllerGetController ()
virtual void SetFilePattern (const char *)
virtual char * GetFilePattern ()
virtual void SetFilePrefix (const char *)
virtual char * GetFilePrefix ()
void SetFileRange (int, int)
void SetFileRange (int *r)
virtual int * GetFileRange ()
virtual void GetFileRange (int &, int &)
virtual void GetFileRange (int[2])
virtual int GetNumberOfFiles ()

Static Public Member Functions

static vtkPExodusIIReaderNew ()
static int IsTypeOf (const char *type)
static vtkPExodusIIReaderSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkPExodusIIReader ()
 ~vtkPExodusIIReader ()
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

vtkMultiProcessControllerController
vtkIdType ProcRank
vtkIdType ProcSize
char * FilePattern
char * CurrentFilePattern
char * FilePrefix
char * CurrentFilePrefix
char * MultiFileName
int FileRange [2]
int CurrentFileRange [2]
int NumberOfFiles
char ** FileNames
int NumberOfFileNames
vtkstd::vector
< vtkExodusIIReader * > 
ReaderList
vtkstd::vector< int > NumberOfPointsPerFile
vtkstd::vector< int > NumberOfCellsPerFile
int LastCommonTimeStep
int Timing
vtkTimerLogTimerLog

Member Typedef Documentation

Reimplemented from vtkExodusIIReader.

Definition at line 52 of file vtkPExodusIIReader.h.


Constructor & Destructor Documentation

vtkPExodusIIReader::vtkPExodusIIReader (  )  [protected]

vtkPExodusIIReader::~vtkPExodusIIReader (  )  [protected]


Member Function Documentation

static vtkPExodusIIReader* vtkPExodusIIReader::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkExodusIIReader.

virtual const char* vtkPExodusIIReader::GetClassName (  )  [virtual]

Reimplemented from vtkExodusIIReader.

static int vtkPExodusIIReader::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkExodusIIReader.

virtual int vtkPExodusIIReader::IsA ( const char *  name  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkExodusIIReader.

static vtkPExodusIIReader* vtkPExodusIIReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkExodusIIReader.

void vtkPExodusIIReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkExodusIIReader.

void vtkPExodusIIReader::SetController ( vtkMultiProcessController c  ) 

Set/get the communication object used to relay a list of files from the rank 0 process to all others. This is the only interprocess communication required by vtkPExodusIIReader.

virtual vtkMultiProcessController* vtkPExodusIIReader::GetController (  )  [virtual]

Set/get the communication object used to relay a list of files from the rank 0 process to all others. This is the only interprocess communication required by vtkPExodusIIReader.

virtual void vtkPExodusIIReader::SetFilePattern ( const char *   )  [virtual]

These methods tell the reader that the data is ditributed across multiple files. This is for distributed execution. It this case, pieces are mapped to files. The pattern should have one d to format the file number. FileNumberRange is used to generate file numbers. I was thinking of having an arbitrary list of file numbers. This may happen in the future. (That is why there is no GetFileNumberRange method.

virtual char* vtkPExodusIIReader::GetFilePattern (  )  [virtual]

These methods tell the reader that the data is ditributed across multiple files. This is for distributed execution. It this case, pieces are mapped to files. The pattern should have one d to format the file number. FileNumberRange is used to generate file numbers. I was thinking of having an arbitrary list of file numbers. This may happen in the future. (That is why there is no GetFileNumberRange method.

virtual void vtkPExodusIIReader::SetFilePrefix ( const char *   )  [virtual]

These methods tell the reader that the data is ditributed across multiple files. This is for distributed execution. It this case, pieces are mapped to files. The pattern should have one d to format the file number. FileNumberRange is used to generate file numbers. I was thinking of having an arbitrary list of file numbers. This may happen in the future. (That is why there is no GetFileNumberRange method.

virtual char* vtkPExodusIIReader::GetFilePrefix (  )  [virtual]

These methods tell the reader that the data is ditributed across multiple files. This is for distributed execution. It this case, pieces are mapped to files. The pattern should have one d to format the file number. FileNumberRange is used to generate file numbers. I was thinking of having an arbitrary list of file numbers. This may happen in the future. (That is why there is no GetFileNumberRange method.

void vtkPExodusIIReader::SetFileRange ( int  ,
int   
)

Set the range of files that are being loaded. The range for single file should add to 0.

void vtkPExodusIIReader::SetFileRange ( int *  r  )  [inline]

Set the range of files that are being loaded. The range for single file should add to 0.

Definition at line 81 of file vtkPExodusIIReader.h.

virtual int* vtkPExodusIIReader::GetFileRange (  )  [virtual]

Set the range of files that are being loaded. The range for single file should add to 0.

virtual void vtkPExodusIIReader::GetFileRange ( int &  ,
int &   
) [virtual]

Set the range of files that are being loaded. The range for single file should add to 0.

virtual void vtkPExodusIIReader::GetFileRange ( int  [2]  )  [virtual]

Set the range of files that are being loaded. The range for single file should add to 0.

void vtkPExodusIIReader::SetFileNames ( int  nfiles,
const char **  names 
)

Provide an arbitrary list of file names instead of a prefix, pattern and range. Overrides any prefix, pattern and range that is specified. vtkPExodusIIReader makes it's own copy of your file names.

virtual void vtkPExodusIIReader::SetFileName ( const char *  fname  )  [virtual]

Specify file name of the Exodus file.

Reimplemented from vtkExodusIIReader.

char** vtkPExodusIIReader::GetFileNames (  )  [inline]

Return pointer to list of file names set in SetFileNames

Definition at line 94 of file vtkPExodusIIReader.h.

int vtkPExodusIIReader::GetNumberOfFileNames (  )  [inline]

Return number of file names set in SetFileNames

Definition at line 97 of file vtkPExodusIIReader.h.

virtual int vtkPExodusIIReader::GetNumberOfFiles (  )  [virtual]

Return the number of files to be read.

virtual vtkIdType vtkPExodusIIReader::GetTotalNumberOfElements (  )  [virtual]

Reimplemented from vtkExodusIIReader.

virtual vtkIdType vtkPExodusIIReader::GetTotalNumberOfNodes (  )  [virtual]

Reimplemented from vtkExodusIIReader.

virtual void vtkPExodusIIReader::UpdateTimeInformation (  )  [virtual]

Calls UpdateTimeInformation() on all serial readers so they'll re-read their time info from the file. The last time step that they all have in common is stored in LastCommonTimeStep, which is used in RequestInformation() to override the output time-specific information keys with the range of times that ALL readers can actually read.

Reimplemented from vtkExodusIIReader.

virtual void vtkPExodusIIReader::Broadcast ( vtkMultiProcessController ctrl  )  [virtual]

Sends metadata (that read from the input file, not settings modified through this API) from the rank 0 node to all other processes in a job.

int vtkPExodusIIReader::DeterminePattern ( const char *  file  )  [protected]

Try to "guess" the pattern of files.

static int vtkPExodusIIReader::DetermineFileId ( const char *  file  )  [static, protected]

Try to "guess" the pattern of files.

int vtkPExodusIIReader::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkExodusIIReader.

int vtkPExodusIIReader::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkExodusIIReader.


Member Data Documentation

Definition at line 132 of file vtkPExodusIIReader.h.

Definition at line 133 of file vtkPExodusIIReader.h.

Definition at line 134 of file vtkPExodusIIReader.h.

Definition at line 135 of file vtkPExodusIIReader.h.

Definition at line 136 of file vtkPExodusIIReader.h.

char* vtkPExodusIIReader::FilePrefix [protected]

Definition at line 137 of file vtkPExodusIIReader.h.

Definition at line 138 of file vtkPExodusIIReader.h.

Definition at line 139 of file vtkPExodusIIReader.h.

int vtkPExodusIIReader::FileRange[2] [protected]

Definition at line 140 of file vtkPExodusIIReader.h.

Definition at line 141 of file vtkPExodusIIReader.h.

Definition at line 142 of file vtkPExodusIIReader.h.

char** vtkPExodusIIReader::FileNames [protected]

Definition at line 143 of file vtkPExodusIIReader.h.

Definition at line 144 of file vtkPExodusIIReader.h.

vtkstd::vector<vtkExodusIIReader*> vtkPExodusIIReader::ReaderList [protected]

Definition at line 146 of file vtkPExodusIIReader.h.

vtkstd::vector<int> vtkPExodusIIReader::NumberOfPointsPerFile [protected]

Definition at line 147 of file vtkPExodusIIReader.h.

vtkstd::vector<int> vtkPExodusIIReader::NumberOfCellsPerFile [protected]

Definition at line 148 of file vtkPExodusIIReader.h.

Definition at line 151 of file vtkPExodusIIReader.h.

int vtkPExodusIIReader::Timing [protected]

Definition at line 153 of file vtkPExodusIIReader.h.

Definition at line 154 of file vtkPExodusIIReader.h.


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

Generated on Sat Dec 27 13:41:45 2008 for VTK by  doxygen 1.5.6