67 #ifndef vtkACosmoReader_h 68 #define vtkACosmoReader_h 70 #include "vtkMultiBlockDataSetAlgorithm.h" 71 #include "vtkMultiBlockDataSetAlgorithm.h" 72 #include "vtkPVVTKExtensionsCosmoToolsModule.h" 82 class vtkInformationVector;
83 class vtkMultiBlockDataSet;
84 class vtkUnstructuredGrid;
86 class VTKPVVTKEXTENSIONSCOSMOTOOLS_EXPORT
vtkACosmoReader :
public vtkMultiBlockDataSetAlgorithm
91 virtual void PrintSelf(ostream& os, vtkIndent indent);
98 void AddFileName(
const char*);
99 void RemoveAllFileNames();
104 vtkSetMacro(BoxSize,
double);
105 vtkGetMacro(BoxSize,
double);
111 vtkSetMacro(ByteSwap,
int);
112 vtkGetMacro(ByteSwap,
int);
120 vtkSetMacro(TagSize,
int);
121 vtkGetMacro(TagSize,
int);
128 vtkSetMacro(Level,
int);
129 vtkGetMacro(Level,
int);
137 virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
138 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
149 void ExtractInfoFromFileNames();
154 void ReadMetaDataFile(
const int levelIdx, std::string file);
160 int GetBlockIndex(
const int level,
const int idx);
166 void SetupBlockRequest(vtkInformation* outInfo);
171 void ReadBlock(
const int blockIdx, vtkMultiBlockDataSet* mbds);
177 int GetBlockStartOffSetInFile(
const int level,
const int index);
183 void ReadBlockFromFile(
184 std::string file,
const int start,
const int end, vtkUnstructuredGrid* particles);
std::vector< block_t > ParticleBlocks
std::set< std::string > FileNames
Adaptively read a binary cosmology data file.
vtkMultiBlockDataSet * MetaData
std::vector< int > RequestedBlocks
std::vector< int > NBlocks