VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkADIOSReader Class Reference

Read ADIOS files. More...

#include <vtkADIOSReader.h>

Inheritance diagram for vtkADIOSReader:
Inheritance graph
[legend]
Collaboration diagram for vtkADIOSReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkDataObjectAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkADIOSReaderNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
int CanReadFile (const char *name)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual int GetReadMethod ()
virtual void SetReadMethod (int)
void SetReadMethodBP ()
void SetReadMethodBPAggregate ()
void SetReadMethodDataSpaces ()
void SetReadMethodDIMES ()
void SetReadMethodFlexPath ()
virtual void SetReadMethodArguments (const char *)
virtual char * GetReadMethodArguments ()
void SetController (vtkMultiProcessController *)
virtual vtkMultiProcessControllerGetController ()
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Static Public Member Functions

static vtkADIOSReaderNew (void)
static int IsTypeOf (const char *type)
static vtkADIOSReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
bool OpenAndReadMetadata (void)
void WaitForReads (void)
 vtkADIOSReader ()
virtual ~vtkADIOSReader ()
template<typename TObjectFun , typename TObjectData , typename TReturn >
void AddPostReadOperation (TObjectData *, TReturn(TObjectFun::*)())
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data >
void AddPostReadOperation (TObjectData *, TReturn(TObjectFun::*)(TArg1Fun), TArg1Data)
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data , typename TArg2Fun , typename TArg2Data >
void AddPostReadOperation (TObjectData *, TReturn(TObjectFun::*)(TArg1Fun, TArg2Fun), TArg1Data, TArg2Data)
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data , typename TArg2Fun , typename TArg2Data , typename TArg3Fun , typename TArg3Data >
void AddPostReadOperation (TObjectData *, TReturn(TObjectFun::*)(TArg1Fun, TArg2Fun, TArg3Fun), TArg1Data, TArg2Data, TArg3Data)
int FillOutputPortInformation (int, vtkInformation *)
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output)
virtual int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output)
virtual int RequestData (vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output)
template<typename T >
T * ReadObject (const std::string &path, int blockId)
void ReadObject (const ADIOS::VarInfo *info, const vtkADIOSDirTree *subDir, vtkDataArray *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkCellArray *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkFieldData *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkDataSetAttributes *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkDataSet *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkImageData *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkPolyData *data, int blockId)
void ReadObject (const vtkADIOSDirTree *dir, vtkUnstructuredGrid *data, int blockId)

Protected Attributes

char * FileName
int ReadMethod
char * ReadMethodArguments
vtkADIOSDirTreeTree
ADIOS::Reader * Reader
vtkMultiProcessControllerController
std::vector< std::map
< std::string, size_t > > 
BlockStepIndexIdMap
std::vector< std::vector
< std::vector< int > > > 
BlockStepIndex
std::map< std::pair< int,
size_t >, std::pair< int,
vtkSmartPointer< vtkObject > > > 
ObjectCache
std::queue< BaseFunctor * > PostReadOperations
int NumberOfPieces
std::vector< doubleTimeSteps
std::map< double, size_t > TimeStepsIndex
double RequestStep
int RequestStepIndex
int RequestNumberOfPieces
int RequestPiece

Detailed Description

Read ADIOS files.

vtkADIOSReader is the base class for all ADIOS readers

Tests:
vtkADIOSReader (Tests)

Definition at line 61 of file vtkADIOSReader.h.


Member Typedef Documentation

Reimplemented from vtkDataObjectAlgorithm.

Definition at line 65 of file vtkADIOSReader.h.


Constructor & Destructor Documentation

virtual vtkADIOSReader::~vtkADIOSReader ( ) [protected, virtual]

Member Function Documentation

static vtkADIOSReader* vtkADIOSReader::New ( void  ) [static]

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

Reimplemented from vtkDataObjectAlgorithm.

static int vtkADIOSReader::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataObjectAlgorithm.

virtual int vtkADIOSReader::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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkDataObjectAlgorithm.

Reimplemented from vtkDataObjectAlgorithm.

virtual vtkObjectBase* vtkADIOSReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkDataObjectAlgorithm.

Reimplemented from vtkDataObjectAlgorithm.

virtual void vtkADIOSReader::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 vtkDataObjectAlgorithm.

int vtkADIOSReader::CanReadFile ( const char *  name)

Test wether or not a given file should even be attempted for use with this reader.

virtual void vtkADIOSReader::SetFileName ( const char *  ) [virtual]

Get/Set the inut filename

virtual char* vtkADIOSReader::GetFileName ( ) [virtual]

Get/Set the inut filename

virtual int vtkADIOSReader::GetReadMethod ( ) [virtual]

Get/Set the ADIOS read method

virtual void vtkADIOSReader::SetReadMethod ( int  ) [virtual]

Get/Set the ADIOS read method

Get/Set the ADIOS read method

Definition at line 84 of file vtkADIOSReader.h.

Get/Set the ADIOS read method

Definition at line 85 of file vtkADIOSReader.h.

Get/Set the ADIOS read method

Definition at line 86 of file vtkADIOSReader.h.

Get/Set the ADIOS read method

Definition at line 87 of file vtkADIOSReader.h.

Get/Set the ADIOS read method

Definition at line 88 of file vtkADIOSReader.h.

virtual void vtkADIOSReader::SetReadMethodArguments ( const char *  ) [virtual]

Get/Set arguments to the ADIOS read method.

virtual char* vtkADIOSReader::GetReadMethodArguments ( ) [virtual]

Get/Set arguments to the ADIOS read method.

Set the MPI controller.

Set the MPI controller.

The main interface which triggers the reader to start

Reimplemented from vtkDataObjectAlgorithm.

bool vtkADIOSReader::OpenAndReadMetadata ( void  ) [protected]

Open an ADIOS file and build the directory structure

void vtkADIOSReader::WaitForReads ( void  ) [protected]

Wait for all scheduled array reads to finish

template<typename T >
T* vtkADIOSReader::ReadObject ( const std::string &  path,
int  blockId 
) [protected]

Create a VTK object with it's scalar values and allocate any arrays, and schedule them for reading

void vtkADIOSReader::ReadObject ( const ADIOS::VarInfo *  info,
const vtkADIOSDirTree subDir,
vtkDataArray data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkCellArray data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkFieldData data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkDataSetAttributes data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkDataSet data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkImageData data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkPolyData data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

void vtkADIOSReader::ReadObject ( const vtkADIOSDirTree dir,
vtkUnstructuredGrid data,
int  blockId 
) [protected]

Initialize a pre-allocated object with it's appropriate scalars. These methods do not perform any validation and assume that the provides ADIOS structures and vtk objects are properly formed. Arrays will be scheduled for reading afterwards

template<typename TObjectFun , typename TObjectData , typename TReturn >
void vtkADIOSReader::AddPostReadOperation ( TObjectData *  ,
TReturn(TObjectFun::*)()   
) [protected]
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data >
void vtkADIOSReader::AddPostReadOperation ( TObjectData *  ,
TReturn(TObjectFun::*)(TArg1Fun)  ,
TArg1Data   
) [protected]
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data , typename TArg2Fun , typename TArg2Data >
void vtkADIOSReader::AddPostReadOperation ( TObjectData *  ,
TReturn(TObjectFun::*)(TArg1Fun, TArg2Fun)  ,
TArg1Data  ,
TArg2Data   
) [protected]
template<typename TObjectFun , typename TObjectData , typename TReturn , typename TArg1Fun , typename TArg1Data , typename TArg2Fun , typename TArg2Data , typename TArg3Fun , typename TArg3Data >
void vtkADIOSReader::AddPostReadOperation ( TObjectData *  ,
TReturn(TObjectFun::*)(TArg1Fun, TArg2Fun, TArg3Fun)  ,
TArg1Data  ,
TArg2Data  ,
TArg3Data   
) [protected]
int vtkADIOSReader::FillOutputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkDataObjectAlgorithm.

virtual int vtkADIOSReader::RequestInformation ( vtkInformation request,
vtkInformationVector **  input,
vtkInformationVector output 
) [protected, virtual]

Reimplemented from vtkDataObjectAlgorithm.

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

Reimplemented from vtkDataObjectAlgorithm.

virtual int vtkADIOSReader::RequestData ( vtkInformation request,
vtkInformationVector **  input,
vtkInformationVector output 
) [protected, virtual]

Reimplemented from vtkDataObjectAlgorithm.


Member Data Documentation

char* vtkADIOSReader::FileName [protected]

Definition at line 141 of file vtkADIOSReader.h.

Definition at line 142 of file vtkADIOSReader.h.

Definition at line 143 of file vtkADIOSReader.h.

Definition at line 144 of file vtkADIOSReader.h.

ADIOS::Reader* vtkADIOSReader::Reader [protected]

Definition at line 145 of file vtkADIOSReader.h.

Definition at line 146 of file vtkADIOSReader.h.

std::vector<std::map<std::string, size_t> > vtkADIOSReader::BlockStepIndexIdMap [protected]

Definition at line 152 of file vtkADIOSReader.h.

std::vector<std::vector<std::vector<int> > > vtkADIOSReader::BlockStepIndex [protected]

Definition at line 164 of file vtkADIOSReader.h.

std::map<std::pair<int, size_t>, std::pair<int, vtkSmartPointer<vtkObject> > > vtkADIOSReader::ObjectCache [protected]

Definition at line 170 of file vtkADIOSReader.h.

std::queue<BaseFunctor*> vtkADIOSReader::PostReadOperations [protected]

Definition at line 195 of file vtkADIOSReader.h.

Definition at line 236 of file vtkADIOSReader.h.

std::vector<double> vtkADIOSReader::TimeSteps [protected]

Definition at line 237 of file vtkADIOSReader.h.

std::map<double, size_t> vtkADIOSReader::TimeStepsIndex [protected]

Definition at line 238 of file vtkADIOSReader.h.

Definition at line 240 of file vtkADIOSReader.h.

Definition at line 241 of file vtkADIOSReader.h.

Definition at line 242 of file vtkADIOSReader.h.

Definition at line 243 of file vtkADIOSReader.h.


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