ParaView
|
Read SPCTH Spy Plot file format. More...
#include <vtkSpyPlotReader.h>
Inherits vtkCompositeDataSetAlgorithm.
Public Types | |
typedef vtkCompositeDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | PrintBlockList (vtkNonOverlappingAMR *hbds, int myProcId) |
void | SetGlobalController (vtkMultiProcessController *controller) |
Set the controller used to coordinate parallel reading. More... | |
virtual int | CanReadFile (const char *fname) |
Determine if the file can be readed with this reader. More... | |
virtual void | SetFileName (const char *filename) |
Get and set the file name. More... | |
virtual char * | GetFileName () |
Get and set the file name. More... | |
virtual void | SetTimeStep (int) |
Set and get the time step. More... | |
virtual int | GetTimeStep () |
Set and get the time step. More... | |
virtual void | SetDistributeFiles (int) |
If true, the reader distributes files over processors. More... | |
virtual int | GetDistributeFiles () |
If true, the reader distributes files over processors. More... | |
virtual void | DistributeFilesOn () |
If true, the reader distributes files over processors. More... | |
virtual void | DistributeFilesOff () |
If true, the reader distributes files over processors. More... | |
virtual void | SetGenerateLevelArray (int) |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0. More... | |
virtual int | GetGenerateLevelArray () |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0. More... | |
virtual void | GenerateLevelArrayOn () |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0. More... | |
virtual void | GenerateLevelArrayOff () |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0. More... | |
virtual void | SetGenerateBlockIdArray (int) |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id. More... | |
virtual int | GetGenerateBlockIdArray () |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id. More... | |
virtual void | GenerateBlockIdArrayOn () |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id. More... | |
virtual void | GenerateBlockIdArrayOff () |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id. More... | |
virtual void | SetGenerateActiveBlockArray (int) |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file. More... | |
virtual int | GetGenerateActiveBlockArray () |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file. More... | |
virtual void | GenerateActiveBlockArrayOn () |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file. More... | |
virtual void | GenerateActiveBlockArrayOff () |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file. More... | |
virtual void | SetGenerateTracerArray (int) |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time. More... | |
virtual int | GetGenerateTracerArray () |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time. More... | |
virtual void | GenerateTracerArrayOn () |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time. More... | |
virtual void | GenerateTracerArrayOff () |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time. More... | |
void | SetGenerateMarkers (int gm) |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port. More... | |
virtual int | GetGenerateMarkers () |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port. More... | |
virtual void | GenerateMarkersOn () |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port. More... | |
virtual void | GenerateMarkersOff () |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port. More... | |
void | SetDownConvertVolumeFraction (int vf) |
If true, the reader will convert volume fraction arrays to unsigned char. More... | |
virtual int | GetDownConvertVolumeFraction () |
If true, the reader will convert volume fraction arrays to unsigned char. More... | |
virtual void | DownConvertVolumeFractionOn () |
If true, the reader will convert volume fraction arrays to unsigned char. More... | |
virtual void | DownConvertVolumeFractionOff () |
If true, the reader will convert volume fraction arrays to unsigned char. More... | |
virtual void | SetComputeDerivedVariables (int) |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default. More... | |
virtual int | GetComputeDerivedVariables () |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default. More... | |
virtual void | ComputeDerivedVariablesOn () |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default. More... | |
virtual void | ComputeDerivedVariablesOff () |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default. More... | |
void | SetMergeXYZComponents (int merge) |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z. More... | |
virtual int | GetMergeXYZComponents () |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z. More... | |
virtual void | MergeXYZComponentsOn () |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z. More... | |
virtual void | MergeXYZComponentsOff () |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z. More... | |
virtual int * | GetTimeStepRange () |
Get the time step range. More... | |
virtual void | GetTimeStepRange (int &, int &) |
Get the time step range. More... | |
virtual void | GetTimeStepRange (int [2]) |
Get the time step range. More... | |
int | GetNumberOfCellArrays () |
Cell array selection. More... | |
const char * | GetCellArrayName (int idx) |
Cell array selection. More... | |
int | GetCellArrayStatus (const char *name) |
Cell array selection. More... | |
void | SetCellArrayStatus (const char *name, int status) |
Cell array selection. More... | |
Static Public Member Functions | |
static vtkSpyPlotReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkSpyPlotReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSpyPlotReader () | |
~vtkSpyPlotReader () | |
void | GetLocalBounds (vtkSpyPlotBlockIterator *biter, int nBlocks, int progressInterval) |
void | SetGlobalBounds (vtkSpyPlotBlockIterator *biter, int total_num_of_block, int progressInterval, int *rightHasBounds, int *leftHasBounds) |
bool | GetLocalBoxSize (vtkSpyPlotBlockIterator *biter, int *localBoxSize) const |
void | SetGlobalBoxSize (vtkSpyPlotBlockIterator *biter) |
void | GetLocalMinLevelAndSpacing (vtkSpyPlotBlockIterator *biter, int *localMinLevel, double spacing[3]) const |
void | SetGlobalMinLevelAndSpacing (vtkSpyPlotBlockIterator *biter) |
int | PrepareAMRData (vtkNonOverlappingAMR *hb, vtkSpyPlotBlock *block, int *level, int *blockId, int extents[6], int realExtents[6], int realDims[3], vtkCellData **cd) |
int | PrepareData (vtkMultiBlockDataSet *hb, vtkSpyPlotBlock *block, vtkRectilinearGrid **rg, int extents[6], int realExtents[6], int realDims[3], vtkCellData **cd) |
void | UpdateFieldData (int numFields, int dims[3], int level, int blockID, vtkSpyPlotUniReader *uniReader, vtkCellData *cd) |
void | UpdateBadGhostFieldData (int numFields, int dims[3], int realDims[3], int realExtents[6], int level, int blockID, vtkSpyPlotUniReader *uniReader, vtkCellData *cd) |
void | PrepareBlocks (vtkMultiBlockDataSet *poly, int numMat) |
int | PrepareMarkers (vtkMultiBlockDataSet *poly, vtkSpyPlotUniReader *reader) |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
virtual int | RequestDataObject (vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV) |
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
int | UpdateMetaData (vtkInformation *request, vtkInformationVector *outputVector) |
This does the updating of meta data of the dataset from the first binary file registered in the map: More... | |
int | UpdateFile (vtkInformation *request, vtkInformationVector *outputVector) |
void | AddGhostLevelArray (int numLevels) |
int | AddBlockIdArray (vtkCompositeDataSet *cds) |
int | AddAttributes (vtkNonOverlappingAMR *hbds) |
int | AddActiveBlockArray (vtkCellData *cd, vtkIdType nCells, unsigned char status) |
void | SetGlobalLevels (vtkCompositeDataSet *cds) |
int | UpdateTimeStep (vtkInformation *requestInfo, vtkInformationVector *outputInfo, vtkCompositeDataSet *hb) |
Set the current time step. More... | |
virtual int | UpdateTimeStep (double time, int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0) |
Overwritten to avoid hiding. More... | |
void | MergeVectors (vtkDataSetAttributes *da) |
int | MergeVectors (vtkDataSetAttributes *da, vtkDataArray *a1, vtkDataArray *a2) |
int | MergeVectors (vtkDataSetAttributes *da, vtkDataArray *a1, vtkDataArray *a2, vtkDataArray *a3) |
int | ComputeDerivedVars (vtkCellData *data, vtkSpyPlotBlock *block, vtkSpyPlotUniReader *reader, const int &blockID) |
virtual vtkDataArraySelection * | GetCellDataArraySelection () |
Get the data array selection tables used to configure which data arrays are loaded by the reader. More... | |
Protected Attributes | |
vtkDataArraySelection * | CellDataArraySelection |
char * | FileName |
int | TimeStep |
int | TimeStepRange [2] |
int | CurrentTimeStep |
int | IsAMR |
vtkMultiProcessController * | GlobalController |
int | ComputeDerivedVariables |
vtkSpyPlotReaderMap * | Map |
int | DistributeFiles |
vtkBoundingBox * | Bounds |
int | BoxSize [3] |
int | MinLevel |
double | MinLevelSpacing [3] |
int | GenerateLevelArray |
int | GenerateBlockIdArray |
int | GenerateActiveBlockArray |
int | GenerateTracerArray |
int | GenerateMarkers |
int | DownConvertVolumeFraction |
bool | TimeRequestedFromPipeline |
int | MergeXYZComponents |
bool | FileNameChanged |
Friends | |
class | vtkSpyPlotReaderMap |
Read SPCTH Spy Plot file format.
vtkSpyPlotReader is a reader that reads SPCTH Spy Plot file format through an ascii meta file called the "case" file (extension .spcth). This case file lists all the actual binary files that describe a dataset. Each binary file describes a part of the dataset. However, if only a single binary file describes the whole dataset, it is possible to load it directly without using a case file.
The reader supports both Spy dataset types: flat mesh and AMR (Adaptive Mesh Refinement).
It has parallel capabilities. Each processor is supposed to have access to the case file and to all the binary files. All the binary files have to be coherent: they describe the same fields of data. Each binary file may content multiple time stamp. The time stamp to read is specified with SetTimestamp().
In parallel mode, there are two ways to distribute data over processors (controlled by SetDistributeFiles() ):
Definition at line 74 of file vtkSpyPlotReader.h.
typedef vtkCompositeDataSetAlgorithm vtkSpyPlotReader::Superclass |
Definition at line 78 of file vtkSpyPlotReader.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkSpyPlotReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkSpyPlotReader::PrintBlockList | ( | vtkNonOverlappingAMR * | hbds, |
int | myProcId | ||
) |
|
virtual |
Get and set the file name.
It is either the name of the case file or the name of the single binary file.
|
virtual |
Get and set the file name.
It is either the name of the case file or the name of the single binary file.
|
virtual |
Set and get the time step.
The time step is an index, NOT a time given in seconds.
|
virtual |
Set and get the time step.
The time step is an index, NOT a time given in seconds.
|
virtual |
If true, the reader distributes files over processors.
If false, the reader distributes blocks over processors. Default is false. Distributing blocks should provide a better load balancing: if there is only one file and several processors, only the first processor is used in the case of the file-distributed method.
|
virtual |
If true, the reader distributes files over processors.
If false, the reader distributes blocks over processors. Default is false. Distributing blocks should provide a better load balancing: if there is only one file and several processors, only the first processor is used in the case of the file-distributed method.
|
virtual |
If true, the reader distributes files over processors.
If false, the reader distributes blocks over processors. Default is false. Distributing blocks should provide a better load balancing: if there is only one file and several processors, only the first processor is used in the case of the file-distributed method.
|
virtual |
If true, the reader distributes files over processors.
If false, the reader distributes blocks over processors. Default is false. Distributing blocks should provide a better load balancing: if there is only one file and several processors, only the first processor is used in the case of the file-distributed method.
|
virtual |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores the level in the hierarchy, starting from 0.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that stores a unique but not necessarily contiguous id.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file.
False by default.
|
virtual |
If true, the reader generate a cell array in each block that corresponds to the Active field in the file.
False by default.
|
virtual |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time.
|
virtual |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time.
|
virtual |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time.
|
virtual |
If true, the reader will extract tracer data at each time step and include a field data array for the tracers at that time.
void vtkSpyPlotReader::SetGenerateMarkers | ( | int | gm | ) |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port.
|
virtual |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port.
|
virtual |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port.
|
virtual |
if true, the reader will extract the marker data at each time step and create a set of vtkPoints in the second output port.
void vtkSpyPlotReader::SetDownConvertVolumeFraction | ( | int | vf | ) |
If true, the reader will convert volume fraction arrays to unsigned char.
True by default.
|
virtual |
If true, the reader will convert volume fraction arrays to unsigned char.
True by default.
|
virtual |
If true, the reader will convert volume fraction arrays to unsigned char.
True by default.
|
virtual |
If true, the reader will convert volume fraction arrays to unsigned char.
True by default.
|
virtual |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
|
virtual |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
|
virtual |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
|
virtual |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
void vtkSpyPlotReader::SetMergeXYZComponents | ( | int | merge | ) |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z.
It will also merge X and Y scalar arrays (with no Z component) into a vector with scalar components X, Y and 0. True by default.
|
virtual |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z.
It will also merge X and Y scalar arrays (with no Z component) into a vector with scalar components X, Y and 0. True by default.
|
virtual |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z.
It will also merge X and Y scalar arrays (with no Z component) into a vector with scalar components X, Y and 0. True by default.
|
virtual |
If true, the reader will merge scalar arrays named, for example, "X velocity" "Y velocity" and "Z velocity" into a vector array named "velocity" with scalar components X, Y and Z.
It will also merge X and Y scalar arrays (with no Z component) into a vector with scalar components X, Y and 0. True by default.
|
virtual |
Get the time step range.
|
virtual |
Get the time step range.
|
virtual |
Get the time step range.
int vtkSpyPlotReader::GetNumberOfCellArrays | ( | ) |
Cell array selection.
const char* vtkSpyPlotReader::GetCellArrayName | ( | int | idx | ) |
Cell array selection.
int vtkSpyPlotReader::GetCellArrayStatus | ( | const char * | name | ) |
Cell array selection.
void vtkSpyPlotReader::SetCellArrayStatus | ( | const char * | name, |
int | status | ||
) |
Cell array selection.
void vtkSpyPlotReader::SetGlobalController | ( | vtkMultiProcessController * | controller | ) |
Set the controller used to coordinate parallel reading.
The "global controller" has all processes while the "controller" has only those who have blocks.
|
virtual |
Determine if the file can be readed with this reader.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
This does the updating of meta data of the dataset from the first binary file registered in the map:
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set the current time step.
|
inlineprotectedvirtual |
Overwritten to avoid hiding.
Definition at line 346 of file vtkSpyPlotReader.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Get the data array selection tables used to configure which data arrays are loaded by the reader.
|
friend |
Definition at line 368 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 285 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 325 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 327 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 328 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 329 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 331 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 335 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 359 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 373 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 375 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 377 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 378 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 379 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 380 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 382 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 383 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 384 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 385 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 386 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 388 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 390 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 392 of file vtkSpyPlotReader.h.
|
protected |
Definition at line 395 of file vtkSpyPlotReader.h.