|
ParaView
|
Read SPCTH Spy Plot file format. More...
#include <vtkSpyPlotReader.h>


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 72 of file vtkSpyPlotReader.h.
| vtkSpyPlotReader::vtkSpyPlotReader | ( | ) | [protected] |
| vtkSpyPlotReader::~vtkSpyPlotReader | ( | ) | [protected] |
| static vtkSpyPlotReader* vtkSpyPlotReader::New | ( | ) | [static] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| virtual const char* vtkSpyPlotReader::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| static int vtkSpyPlotReader::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| virtual int vtkSpyPlotReader::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| static vtkSpyPlotReader* vtkSpyPlotReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| void vtkSpyPlotReader::PrintSelf | ( | ostream & | os, |
| vtkIndent | indent | ||
| ) | [virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| void vtkSpyPlotReader::PrintBlockList | ( | vtkNonOverlappingAMR * | hbds, |
| int | myProcId | ||
| ) |
| virtual void vtkSpyPlotReader::SetFileName | ( | const char * | filename | ) | [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 char* vtkSpyPlotReader::GetFileName | ( | ) | [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 void vtkSpyPlotReader::SetTimeStep | ( | int | ) | [virtual] |
Set and get the time step. The time step is an index, NOT a time given in seconds.
| virtual int vtkSpyPlotReader::GetTimeStep | ( | ) | [virtual] |
Set and get the time step. The time step is an index, NOT a time given in seconds.
| virtual void vtkSpyPlotReader::SetDistributeFiles | ( | int | ) | [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 int vtkSpyPlotReader::GetDistributeFiles | ( | ) | [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 void vtkSpyPlotReader::DistributeFilesOn | ( | ) | [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 void vtkSpyPlotReader::DistributeFilesOff | ( | ) | [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 void vtkSpyPlotReader::SetGenerateLevelArray | ( | int | ) | [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 int vtkSpyPlotReader::GetGenerateLevelArray | ( | ) | [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 void vtkSpyPlotReader::GenerateLevelArrayOn | ( | ) | [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 void vtkSpyPlotReader::GenerateLevelArrayOff | ( | ) | [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 void vtkSpyPlotReader::SetGenerateBlockIdArray | ( | int | ) | [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 int vtkSpyPlotReader::GetGenerateBlockIdArray | ( | ) | [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 void vtkSpyPlotReader::GenerateBlockIdArrayOn | ( | ) | [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 void vtkSpyPlotReader::GenerateBlockIdArrayOff | ( | ) | [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 void vtkSpyPlotReader::SetGenerateActiveBlockArray | ( | int | ) | [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 int vtkSpyPlotReader::GetGenerateActiveBlockArray | ( | ) | [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 void vtkSpyPlotReader::GenerateActiveBlockArrayOn | ( | ) | [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 void vtkSpyPlotReader::GenerateActiveBlockArrayOff | ( | ) | [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 void vtkSpyPlotReader::SetGenerateTracerArray | ( | int | ) | [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 int vtkSpyPlotReader::GetGenerateTracerArray | ( | ) | [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 void vtkSpyPlotReader::GenerateTracerArrayOn | ( | ) | [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 void vtkSpyPlotReader::GenerateTracerArrayOff | ( | ) | [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::SetDownConvertVolumeFraction | ( | int | vf | ) |
If true, the reader will convert volume fraction arrays to unsigned char. True by default.
| virtual int vtkSpyPlotReader::GetDownConvertVolumeFraction | ( | ) | [virtual] |
If true, the reader will convert volume fraction arrays to unsigned char. True by default.
| virtual void vtkSpyPlotReader::DownConvertVolumeFractionOn | ( | ) | [virtual] |
If true, the reader will convert volume fraction arrays to unsigned char. True by default.
| virtual void vtkSpyPlotReader::DownConvertVolumeFractionOff | ( | ) | [virtual] |
If true, the reader will convert volume fraction arrays to unsigned char. True by default.
| virtual void vtkSpyPlotReader::SetComputeDerivedVariables | ( | int | ) | [virtual] |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
| virtual int vtkSpyPlotReader::GetComputeDerivedVariables | ( | ) | [virtual] |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
| virtual void vtkSpyPlotReader::ComputeDerivedVariablesOn | ( | ) | [virtual] |
If true, the reader will calculate all derived variables it can given which properties the user has selected True by default.
| virtual void vtkSpyPlotReader::ComputeDerivedVariablesOff | ( | ) | [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 int vtkSpyPlotReader::GetMergeXYZComponents | ( | ) | [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 void vtkSpyPlotReader::MergeXYZComponentsOn | ( | ) | [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 void vtkSpyPlotReader::MergeXYZComponentsOff | ( | ) | [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 int* vtkSpyPlotReader::GetTimeStepRange | ( | ) | [virtual] |
Get the time step range.
Get the time step range.
| virtual void vtkSpyPlotReader::GetTimeStepRange | ( | int | [2] | ) | [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 int vtkSpyPlotReader::CanReadFile | ( | const char * | fname | ) | [virtual] |
Determine if the file can be readed with this reader.
| void vtkSpyPlotReader::GetLocalBounds | ( | vtkSpyPlotBlockIterator * | biter, |
| int | nBlocks, | ||
| int | progressInterval | ||
| ) | [protected] |
| void vtkSpyPlotReader::SetGlobalBounds | ( | vtkSpyPlotBlockIterator * | biter, |
| int | total_num_of_block, | ||
| int | progressInterval, | ||
| int * | rightHasBounds, | ||
| int * | leftHasBounds | ||
| ) | [protected] |
| bool vtkSpyPlotReader::GetLocalBoxSize | ( | vtkSpyPlotBlockIterator * | biter, |
| int * | localBoxSize | ||
| ) | const [protected] |
| void vtkSpyPlotReader::SetGlobalBoxSize | ( | vtkSpyPlotBlockIterator * | biter | ) | [protected] |
| void vtkSpyPlotReader::GetLocalMinLevelAndSpacing | ( | vtkSpyPlotBlockIterator * | biter, |
| int * | localMinLevel, | ||
| double | spacing[3] | ||
| ) | const [protected] |
| void vtkSpyPlotReader::SetGlobalMinLevelAndSpacing | ( | vtkSpyPlotBlockIterator * | biter | ) | [protected] |
| int vtkSpyPlotReader::PrepareAMRData | ( | vtkNonOverlappingAMR * | hb, |
| vtkSpyPlotBlock * | block, | ||
| int * | level, | ||
| int | extents[6], | ||
| int | realExtents[6], | ||
| int | realDims[3], | ||
| vtkCellData ** | cd | ||
| ) | [protected] |
| int vtkSpyPlotReader::PrepareData | ( | vtkMultiBlockDataSet * | hb, |
| vtkSpyPlotBlock * | block, | ||
| vtkRectilinearGrid ** | rg, | ||
| int | extents[6], | ||
| int | realExtents[6], | ||
| int | realDims[3], | ||
| vtkCellData ** | cd | ||
| ) | [protected] |
| void vtkSpyPlotReader::UpdateFieldData | ( | int | numFields, |
| int | dims[3], | ||
| int | level, | ||
| int | blockID, | ||
| vtkSpyPlotUniReader * | uniReader, | ||
| vtkCellData * | cd | ||
| ) | [protected] |
| void vtkSpyPlotReader::UpdateBadGhostFieldData | ( | int | numFields, |
| int | dims[3], | ||
| int | realDims[3], | ||
| int | realExtents[6], | ||
| int | level, | ||
| int | blockID, | ||
| vtkSpyPlotUniReader * | uniReader, | ||
| vtkCellData * | cd | ||
| ) | [protected] |
| virtual int vtkSpyPlotReader::RequestDataObject | ( | vtkInformation * | req, |
| vtkInformationVector ** | inV, | ||
| vtkInformationVector * | outV | ||
| ) | [protected, virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| virtual int vtkSpyPlotReader::RequestInformation | ( | vtkInformation * | request, |
| vtkInformationVector ** | inputVector, | ||
| vtkInformationVector * | outputVector | ||
| ) | [protected, virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| virtual int vtkSpyPlotReader::RequestData | ( | vtkInformation * | request, |
| vtkInformationVector ** | inputVector, | ||
| vtkInformationVector * | outputVector | ||
| ) | [protected, virtual] |
Reimplemented from vtkCompositeDataSetAlgorithm.
| int vtkSpyPlotReader::UpdateMetaData | ( | vtkInformation * | request, |
| vtkInformationVector * | outputVector | ||
| ) | [protected] |
This does the updating of meta data of the dataset from the first binary file registered in the map: - number of time steps - number of fields - name of fields
| int vtkSpyPlotReader::UpdateFile | ( | vtkInformation * | request, |
| vtkInformationVector * | outputVector | ||
| ) | [protected] |
| void vtkSpyPlotReader::AddGhostLevelArray | ( | int | numLevels | ) | [protected] |
| int vtkSpyPlotReader::AddBlockIdArray | ( | vtkCompositeDataSet * | cds | ) | [protected] |
| int vtkSpyPlotReader::AddAttributes | ( | vtkNonOverlappingAMR * | hbds | ) | [protected] |
| int vtkSpyPlotReader::AddActiveBlockArray | ( | vtkCellData * | cd, |
| vtkIdType | nCells, | ||
| unsigned char | status | ||
| ) | [protected] |
| void vtkSpyPlotReader::SetGlobalLevels | ( | vtkCompositeDataSet * | cds | ) | [protected] |
| int vtkSpyPlotReader::UpdateTimeStep | ( | vtkInformation * | requestInfo, |
| vtkInformationVector * | outputInfo, | ||
| vtkCompositeDataSet * | hb | ||
| ) | [protected] |
Set the current time step.
| void vtkSpyPlotReader::MergeVectors | ( | vtkDataSetAttributes * | da | ) | [protected] |
| int vtkSpyPlotReader::MergeVectors | ( | vtkDataSetAttributes * | da, |
| vtkDataArray * | a1, | ||
| vtkDataArray * | a2 | ||
| ) | [protected] |
| int vtkSpyPlotReader::MergeVectors | ( | vtkDataSetAttributes * | da, |
| vtkDataArray * | a1, | ||
| vtkDataArray * | a2, | ||
| vtkDataArray * | a3 | ||
| ) | [protected] |
| int vtkSpyPlotReader::ComputeDerivedVars | ( | vtkCellData * | data, |
| vtkSpyPlotBlock * | block, | ||
| vtkSpyPlotUniReader * | reader, | ||
| const int & | blockID | ||
| ) | [protected] |
| virtual vtkDataArraySelection* vtkSpyPlotReader::GetCellDataArraySelection | ( | ) | [protected, virtual] |
Get the data array selection tables used to configure which data arrays are loaded by the reader.
friend class vtkSpyPlotReaderMap [friend] |
Definition at line 335 of file vtkSpyPlotReader.h.
Definition at line 255 of file vtkSpyPlotReader.h.
char* vtkSpyPlotReader::FileName [protected] |
Definition at line 297 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::TimeStep [protected] |
Definition at line 299 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::TimeStepRange[2] [protected] |
Definition at line 300 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::CurrentTimeStep [protected] |
Definition at line 301 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::IsAMR [protected] |
Definition at line 303 of file vtkSpyPlotReader.h.
Definition at line 307 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::ComputeDerivedVariables [protected] |
Definition at line 328 of file vtkSpyPlotReader.h.
vtkSpyPlotReaderMap* vtkSpyPlotReader::Map [protected] |
Definition at line 340 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::DistributeFiles [protected] |
Definition at line 342 of file vtkSpyPlotReader.h.
vtkBoundingBox* vtkSpyPlotReader::Bounds [protected] |
Definition at line 344 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::BoxSize[3] [protected] |
Definition at line 345 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::MinLevel [protected] |
Definition at line 346 of file vtkSpyPlotReader.h.
double vtkSpyPlotReader::MinLevelSpacing[3] [protected] |
Definition at line 347 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::GenerateLevelArray [protected] |
Definition at line 349 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::GenerateBlockIdArray [protected] |
Definition at line 350 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::GenerateActiveBlockArray [protected] |
Definition at line 351 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::GenerateTracerArray [protected] |
Definition at line 352 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::DownConvertVolumeFraction [protected] |
Definition at line 354 of file vtkSpyPlotReader.h.
bool vtkSpyPlotReader::TimeRequestedFromPipeline [protected] |
Definition at line 356 of file vtkSpyPlotReader.h.
int vtkSpyPlotReader::MergeXYZComponents [protected] |
Definition at line 358 of file vtkSpyPlotReader.h.
bool vtkSpyPlotReader::FileNameChanged [protected] |
Definition at line 361 of file vtkSpyPlotReader.h.
1.7.5.1