VTK
|
#include <vtkADIOSReader.h>
Public Types | |
typedef vtkDataObjectAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkADIOSReader * | NewInstance () 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 vtkMultiProcessController * | GetController () |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Static Public Member Functions | |
static vtkADIOSReader * | New (void) |
static int | IsTypeOf (const char *type) |
static vtkADIOSReader * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
vtkADIOSDirTree * | Tree |
ADIOS::Reader * | Reader |
vtkMultiProcessController * | Controller |
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< double > | TimeSteps |
std::map< double, size_t > | TimeStepsIndex |
double | RequestStep |
int | RequestStepIndex |
int | RequestNumberOfPieces |
int | RequestPiece |
Read ADIOS files.
vtkADIOSReader is the base class for all ADIOS readers
Definition at line 61 of file vtkADIOSReader.h.
Reimplemented from vtkDataObjectAlgorithm.
Definition at line 65 of file vtkADIOSReader.h.
vtkADIOSReader::vtkADIOSReader | ( | ) | [protected] |
virtual vtkADIOSReader::~vtkADIOSReader | ( | ) | [protected, virtual] |
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.
static vtkADIOSReader* vtkADIOSReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkDataObjectAlgorithm.
virtual vtkObjectBase* vtkADIOSReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkDataObjectAlgorithm.
vtkADIOSReader* vtkADIOSReader::NewInstance | ( | ) | const |
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
void vtkADIOSReader::SetReadMethodBP | ( | ) | [inline] |
Get/Set the ADIOS read method
Definition at line 84 of file vtkADIOSReader.h.
void vtkADIOSReader::SetReadMethodBPAggregate | ( | ) | [inline] |
Get/Set the ADIOS read method
Definition at line 85 of file vtkADIOSReader.h.
void vtkADIOSReader::SetReadMethodDataSpaces | ( | ) | [inline] |
Get/Set the ADIOS read method
Definition at line 86 of file vtkADIOSReader.h.
void vtkADIOSReader::SetReadMethodDIMES | ( | ) | [inline] |
Get/Set the ADIOS read method
Definition at line 87 of file vtkADIOSReader.h.
void vtkADIOSReader::SetReadMethodFlexPath | ( | ) | [inline] |
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.
virtual vtkMultiProcessController* vtkADIOSReader::GetController | ( | ) | [virtual] |
Set the MPI controller.
virtual int vtkADIOSReader::ProcessRequest | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
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
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
void vtkADIOSReader::AddPostReadOperation | ( | TObjectData * | , |
TReturn(TObjectFun::*)() | |||
) | [protected] |
void vtkADIOSReader::AddPostReadOperation | ( | TObjectData * | , |
TReturn(TObjectFun::*)(TArg1Fun) | , | ||
TArg1Data | |||
) | [protected] |
void vtkADIOSReader::AddPostReadOperation | ( | TObjectData * | , |
TReturn(TObjectFun::*)(TArg1Fun, TArg2Fun) | , | ||
TArg1Data | , | ||
TArg2Data | |||
) | [protected] |
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.
virtual int vtkADIOSReader::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
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.
char* vtkADIOSReader::FileName [protected] |
Definition at line 141 of file vtkADIOSReader.h.
int vtkADIOSReader::ReadMethod [protected] |
Definition at line 142 of file vtkADIOSReader.h.
char* vtkADIOSReader::ReadMethodArguments [protected] |
Definition at line 143 of file vtkADIOSReader.h.
vtkADIOSDirTree* vtkADIOSReader::Tree [protected] |
Definition at line 144 of file vtkADIOSReader.h.
ADIOS::Reader* vtkADIOSReader::Reader [protected] |
Definition at line 145 of file vtkADIOSReader.h.
vtkMultiProcessController* vtkADIOSReader::Controller [protected] |
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.
int vtkADIOSReader::NumberOfPieces [protected] |
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.
double vtkADIOSReader::RequestStep [protected] |
Definition at line 240 of file vtkADIOSReader.h.
int vtkADIOSReader::RequestStepIndex [protected] |
Definition at line 241 of file vtkADIOSReader.h.
int vtkADIOSReader::RequestNumberOfPieces [protected] |
Definition at line 242 of file vtkADIOSReader.h.
int vtkADIOSReader::RequestPiece [protected] |
Definition at line 243 of file vtkADIOSReader.h.