VTK  9.0.1
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 
32 class vtkPolyData;
33 class vtkDataArray;
34 class vtkIntArray;
36 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkSetMacro(ParticleType, int);
49  vtkGetMacro(ParticleType, int);
51 
55  int GetTotalNumberOfParticles() override;
56 
57 protected:
60 
65  vtkPolyData* GetParticles(const char* file, const int blockIdx);
66 
70  void ReadMetaData() override;
71 
75  void SetupParticleDataSelections() override;
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 
97 private:
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.
static vtkAMREnzoParticlesReader * New()
vtkEnzoReaderInternal * Internal
vtkDataArray * GetParticlesTypeArray(const int blockIdx)
Returns the ParticlesType Array.
vtkPolyData * ReadParticles(const int blkidx) override
Reads the particles.
~vtkAMREnzoParticlesReader() override
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.
int GetTotalNumberOfParticles() override
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
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...
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
a simple class to control print indentation
Definition: vtkIndent.h:34
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85