VTK  9.1.0
vtkAMREnzoParticlesReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAMREnzoParticlesReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14 =========================================================================*/
26#ifndef vtkAMREnzoParticlesReader_h
27#define vtkAMREnzoParticlesReader_h
28
30#include "vtkIOAMRModule.h" // For export macro
31
32class vtkPolyData;
33class vtkDataArray;
34class vtkIntArray;
36
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 vtkSetMacro(ParticleType, int);
49 vtkGetMacro(ParticleType, int);
51
56
57protected:
60
65 vtkPolyData* GetParticles(const char* file, const int blockIdx);
66
70 void ReadMetaData() override;
71
76
81 bool CheckParticleType(const int pIdx, vtkIntArray* ptypes);
82
86 vtkDataArray* GetParticlesTypeArray(const int blockIdx);
87
91 vtkPolyData* ReadParticles(const int blkidx) override;
92
94
96
97private:
99 void operator=(const vtkAMREnzoParticlesReader&) = delete;
100};
101
102#endif /* vtkAMREnzoParticlesReader_h */
An abstract base class that implements all the common functionality for all particle readers.
A concrete instance of the vtkAMRBaseParticlesReader which provides functionality for loading ENZO AM...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetParticles(const char *file, const int blockIdx)
Read the particles from the given particles file for the block corresponding to the given block index...
vtkEnzoReaderInternal * Internal
static vtkAMREnzoParticlesReader * New()
~vtkAMREnzoParticlesReader() override
vtkDataArray * GetParticlesTypeArray(const int blockIdx)
Returns the ParticlesType Array.
bool CheckParticleType(const int pIdx, vtkIntArray *ptypes)
Filter's by particle type, iff particle_type is included in the given file.
void ReadMetaData() override
See vtkAMRBaseParticlesReader::ReadMetaData()
void SetupParticleDataSelections() override
See vtkAMRBaseParticlesReader::SetupParticleDataSelections.
vtkPolyData * ReadParticles(const int blkidx) override
Reads the particles.
int GetTotalNumberOfParticles() override
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195