VTK  9.3.20231202
vtkAMREnzoParticlesReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkAMREnzoParticlesReader_h
15 #define vtkAMREnzoParticlesReader_h
16 
18 #include "vtkIOAMRModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkPolyData;
22 class vtkDataArray;
23 class vtkIntArray;
25 
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  vtkSetMacro(ParticleType, int);
38  vtkGetMacro(ParticleType, int);
40 
44  int GetTotalNumberOfParticles() override;
45 
46 protected:
49 
54  vtkPolyData* GetParticles(const char* file, int blockIdx);
55 
59  void ReadMetaData() override;
60 
64  void SetupParticleDataSelections() override;
65 
70  bool CheckParticleType(int pIdx, vtkIntArray* ptypes);
71 
76 
80  vtkPolyData* ReadParticles(int blkidx) override;
81 
83 
85 
86 private:
88  void operator=(const vtkAMREnzoParticlesReader&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #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
~vtkAMREnzoParticlesReader() override
void ReadMetaData() override
See vtkAMRBaseParticlesReader::ReadMetaData()
void SetupParticleDataSelections() override
See vtkAMRBaseParticlesReader::SetupParticleDataSelections.
vtkPolyData * ReadParticles(int blkidx) override
Reads the particles.
int GetTotalNumberOfParticles() override
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
vtkPolyData * GetParticles(const char *file, int blockIdx)
Read the particles from the given particles file for the block corresponding to the given block index...
bool CheckParticleType(int pIdx, vtkIntArray *ptypes)
Filter's by particle type, iff particle_type is included in the given file.
vtkDataArray * GetParticlesTypeArray(int blockIdx)
Returns the ParticlesType Array.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:154
a simple class to control print indentation
Definition: vtkIndent.h:108
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:144
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:180