VTK  9.3.1
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:
48  ~vtkAMREnzoParticlesReader() override;
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 
75  vtkDataArray* GetParticlesTypeArray(int blockIdx);
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 */
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
A concrete instance of the vtkAMRBaseParticlesReader which provides functionality for loading ENZO AM...
An abstract base class that implements all the common functionality for all particle readers...
static vtkMultiBlockDataSetAlgorithm * New()
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
virtual vtkPolyData * ReadParticles(int blkIdx)=0
Reads the particles corresponding to the block associated with the given supplied block index...
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
vtkEnzoReaderInternal * Internal
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ReadMetaData()=0
Reads the metadata, e.g., the number of blocks in the file.