Adaptively read a binary cosmology data file.
More...
#include <vtkACosmoReader.h>
Inherits vtkMultiBlockDataSetAlgorithm.
|
| vtkACosmoReader () |
|
| ~vtkACosmoReader () |
|
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
void | LoadMetaData () |
| Loads the metadata. More...
|
|
void | ExtractInfoFromFileNames () |
| Processes the user-supplied FileName and extracts the base file name, as well as, the total number of levels. More...
|
|
void | ReadMetaDataFile (const int levelIdx, std::string file) |
| Reads the metadata file with the given filename at the specified level. More...
|
|
int | GetBlockIndex (const int level, const int idx) |
| Given the level and index of the block within that level, this method returns the block index. More...
|
|
void | SetupBlockRequest (vtkInformation *outInfo) |
| Given an output information object, this method will populate the vector of block Ids to read in. More...
|
|
void | ReadBlock (const int blockIdx, vtkMultiBlockDataSet *mbds) |
| Read in the block corresponding to the given index. More...
|
|
int | GetBlockStartOffSetInFile (const int level, const int index) |
| Given the block level and index within the level, this method returns the block's starting offset within the file. More...
|
|
void | ReadBlockFromFile (std::string file, const int start, const int end, vtkUnstructuredGrid *particles) |
| Given the file and start/end offsets of a block, this method reads in the particles for a contiguous block. More...
|
|
Adaptively read a binary cosmology data file.
Definition at line 86 of file vtkACosmoReader.h.
◆ Superclass
◆ vtkACosmoReader()
vtkACosmoReader::vtkACosmoReader |
( |
| ) |
|
|
protected |
◆ ~vtkACosmoReader()
vtkACosmoReader::~vtkACosmoReader |
( |
| ) |
|
|
protected |
◆ New()
◆ GetClassName()
virtual const char* vtkACosmoReader::GetClassName |
( |
| ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkACosmoReader::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ IsA()
virtual int vtkACosmoReader::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ SafeDownCast()
◆ PrintSelf()
virtual void vtkACosmoReader::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
virtual |
◆ AddFileName()
void vtkACosmoReader::AddFileName |
( |
const char * |
| ) |
|
Add/Remove files to read.
These files are treated as set in the adaptive cosmo files.
◆ RemoveAllFileNames()
void vtkACosmoReader::RemoveAllFileNames |
( |
| ) |
|
Add/Remove files to read.
These files are treated as set in the adaptive cosmo files.
◆ SetBoxSize()
virtual void vtkACosmoReader::SetBoxSize |
( |
double |
| ) |
|
|
virtual |
◆ GetBoxSize()
virtual double vtkACosmoReader::GetBoxSize |
( |
| ) |
|
|
virtual |
◆ SetByteSwap()
virtual void vtkACosmoReader::SetByteSwap |
( |
int |
| ) |
|
|
virtual |
Set/Get the endian-ness of the binary file.
◆ GetByteSwap()
virtual int vtkACosmoReader::GetByteSwap |
( |
| ) |
|
|
virtual |
Set/Get the endian-ness of the binary file.
◆ SetTagSize()
virtual void vtkACosmoReader::SetTagSize |
( |
int |
| ) |
|
|
virtual |
When false (default) 32-bit tags are read from the file.
When on, 64-bit tags are read from the file.
◆ GetTagSize()
virtual int vtkACosmoReader::GetTagSize |
( |
| ) |
|
|
virtual |
When false (default) 32-bit tags are read from the file.
When on, 64-bit tags are read from the file.
◆ SetLevel()
virtual void vtkACosmoReader::SetLevel |
( |
int |
| ) |
|
|
virtual |
Sets the level of resolution.
◆ GetLevel()
virtual int vtkACosmoReader::GetLevel |
( |
| ) |
|
|
virtual |
Sets the level of resolution.
◆ RequestInformation()
virtual int vtkACosmoReader::RequestInformation |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
◆ RequestData()
virtual int vtkACosmoReader::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
◆ LoadMetaData()
void vtkACosmoReader::LoadMetaData |
( |
| ) |
|
|
protected |
◆ ExtractInfoFromFileNames()
void vtkACosmoReader::ExtractInfoFromFileNames |
( |
| ) |
|
|
protected |
Processes the user-supplied FileName and extracts the base file name, as well as, the total number of levels.
◆ ReadMetaDataFile()
void vtkACosmoReader::ReadMetaDataFile |
( |
const int |
levelIdx, |
|
|
std::string |
file |
|
) |
| |
|
protected |
Reads the metadata file with the given filename at the specified level.
◆ GetBlockIndex()
int vtkACosmoReader::GetBlockIndex |
( |
const int |
level, |
|
|
const int |
idx |
|
) |
| |
|
protected |
Given the level and index of the block within that level, this method returns the block index.
◆ SetupBlockRequest()
void vtkACosmoReader::SetupBlockRequest |
( |
vtkInformation * |
outInfo | ) |
|
|
protected |
Given an output information object, this method will populate the vector of block Ids to read in.
◆ ReadBlock()
void vtkACosmoReader::ReadBlock |
( |
const int |
blockIdx, |
|
|
vtkMultiBlockDataSet * |
mbds |
|
) |
| |
|
protected |
Read in the block corresponding to the given index.
◆ GetBlockStartOffSetInFile()
int vtkACosmoReader::GetBlockStartOffSetInFile |
( |
const int |
level, |
|
|
const int |
index |
|
) |
| |
|
protected |
Given the block level and index within the level, this method returns the block's starting offset within the file.
◆ ReadBlockFromFile()
void vtkACosmoReader::ReadBlockFromFile |
( |
std::string |
file, |
|
|
const int |
start, |
|
|
const int |
end, |
|
|
vtkUnstructuredGrid * |
particles |
|
) |
| |
|
protected |
Given the file and start/end offsets of a block, this method reads in the particles for a contiguous block.
◆ BaseFileName
std::string vtkACosmoReader::BaseFileName |
|
protected |
◆ FileName
char* vtkACosmoReader::FileName |
|
protected |
◆ MetadataIsLoaded
bool vtkACosmoReader::MetadataIsLoaded |
|
protected |
◆ BoxSize
double vtkACosmoReader::BoxSize |
|
protected |
◆ ByteSwap
int vtkACosmoReader::ByteSwap |
|
protected |
◆ TagSize
int vtkACosmoReader::TagSize |
|
protected |
◆ Level
int vtkACosmoReader::Level |
|
protected |
◆ TotalNumberOfLevels
int vtkACosmoReader::TotalNumberOfLevels |
|
protected |
◆ MetaData
vtkMultiBlockDataSet* vtkACosmoReader::MetaData |
|
protected |
◆ NBlocks
std::vector<int> vtkACosmoReader::NBlocks |
|
protected |
◆ ParticleBlocks
std::vector<block_t> vtkACosmoReader::ParticleBlocks |
|
protected |
◆ RequestedBlocks
std::vector<int> vtkACosmoReader::RequestedBlocks |
|
protected |
◆ FileNames
std::set<std::string> vtkACosmoReader::FileNames |
|
protected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ParaView-v5.2.0/ParaViewCore/VTKExtensions/CosmoTools/vtkACosmoReader.h