ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkACosmoReader Class Reference

Adaptively read a binary cosmology data file. More...

#include <vtkACosmoReader.h>

Inherits vtkMultiBlockDataSetAlgorithm.

Public Types

typedef vtkMultiBlockDataSetAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetBoxSize (double)
 
virtual double GetBoxSize ()
 
void AddFileName (const char *)
 Add/Remove files to read. More...
 
void RemoveAllFileNames ()
 Add/Remove files to read. More...
 
virtual void SetByteSwap (int)
 Set/Get the endian-ness of the binary file. More...
 
virtual int GetByteSwap ()
 Set/Get the endian-ness of the binary file. More...
 
virtual void SetTagSize (int)
 When false (default) 32-bit tags are read from the file. More...
 
virtual int GetTagSize ()
 When false (default) 32-bit tags are read from the file. More...
 
virtual void SetLevel (int)
 Sets the level of resolution. More...
 
virtual int GetLevel ()
 Sets the level of resolution. More...
 

Static Public Member Functions

static vtkACosmoReaderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkACosmoReaderSafeDownCast (vtkObject *o)
 

Protected Member Functions

 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...
 

Protected Attributes

std::string BaseFileName
 
char * FileName
 
bool MetadataIsLoaded
 
double BoxSize
 
int ByteSwap
 
int TagSize
 
int Level
 
int TotalNumberOfLevels
 
vtkMultiBlockDataSet * MetaData
 
std::vector< int > NBlocks
 
std::vector< block_t > ParticleBlocks
 
std::vector< int > RequestedBlocks
 
std::set< std::string > FileNames
 

Detailed Description

Adaptively read a binary cosmology data file.

Definition at line 86 of file vtkACosmoReader.h.

Member Typedef Documentation

§ Superclass

typedef vtkMultiBlockDataSetAlgorithm vtkACosmoReader::Superclass

Definition at line 90 of file vtkACosmoReader.h.

Constructor & Destructor Documentation

§ vtkACosmoReader()

vtkACosmoReader::vtkACosmoReader ( )
protected

§ ~vtkACosmoReader()

vtkACosmoReader::~vtkACosmoReader ( )
protected

Member Function Documentation

§ New()

static vtkACosmoReader* vtkACosmoReader::New ( )
static

§ 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()

static vtkACosmoReader* vtkACosmoReader::SafeDownCast ( vtkObject *  o)
static

§ 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

Loads the metadata.

§ 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.

Member Data Documentation

§ BaseFileName

std::string vtkACosmoReader::BaseFileName
protected

Definition at line 186 of file vtkACosmoReader.h.

§ FileName

char* vtkACosmoReader::FileName
protected

Definition at line 187 of file vtkACosmoReader.h.

§ MetadataIsLoaded

bool vtkACosmoReader::MetadataIsLoaded
protected

Definition at line 188 of file vtkACosmoReader.h.

§ BoxSize

double vtkACosmoReader::BoxSize
protected

Definition at line 190 of file vtkACosmoReader.h.

§ ByteSwap

int vtkACosmoReader::ByteSwap
protected

Definition at line 191 of file vtkACosmoReader.h.

§ TagSize

int vtkACosmoReader::TagSize
protected

Definition at line 192 of file vtkACosmoReader.h.

§ Level

int vtkACosmoReader::Level
protected

Definition at line 193 of file vtkACosmoReader.h.

§ TotalNumberOfLevels

int vtkACosmoReader::TotalNumberOfLevels
protected

Definition at line 194 of file vtkACosmoReader.h.

§ MetaData

vtkMultiBlockDataSet* vtkACosmoReader::MetaData
protected

Definition at line 196 of file vtkACosmoReader.h.

§ NBlocks

std::vector<int> vtkACosmoReader::NBlocks
protected

Definition at line 198 of file vtkACosmoReader.h.

§ ParticleBlocks

std::vector<block_t> vtkACosmoReader::ParticleBlocks
protected

Definition at line 201 of file vtkACosmoReader.h.

§ RequestedBlocks

std::vector<int> vtkACosmoReader::RequestedBlocks
protected

Definition at line 202 of file vtkACosmoReader.h.

§ FileNames

std::set<std::string> vtkACosmoReader::FileNames
protected

Definition at line 203 of file vtkACosmoReader.h.


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