VTK  9.3.20240527
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
20VTK_ABI_NAMESPACE_BEGIN
21class vtkPolyData;
22class vtkDataArray;
23class vtkIntArray;
25
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
37 vtkSetMacro(ParticleType, int);
38 vtkGetMacro(ParticleType, int);
40
45
46protected:
49
54 vtkPolyData* GetParticles(const char* file, int blockIdx);
55
59 void ReadMetaData() override;
60
65
70 bool CheckParticleType(int pIdx, vtkIntArray* ptypes);
71
76
80 vtkPolyData* ReadParticles(int blkidx) override;
81
83
85
86private:
88 void operator=(const vtkAMREnzoParticlesReader&) = delete;
89};
90
91VTK_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.
vtkPolyData * ReadParticles(int blkidx) override
Reads the particles.
static vtkAMREnzoParticlesReader * New()
~vtkAMREnzoParticlesReader() override
void ReadMetaData() override
See vtkAMRBaseParticlesReader::ReadMetaData()
void SetupParticleDataSelections() override
See vtkAMRBaseParticlesReader::SetupParticleDataSelections.
vtkDataArray * GetParticlesTypeArray(int blockIdx)
Returns the ParticlesType Array.
int GetTotalNumberOfParticles() override
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
bool CheckParticleType(int pIdx, vtkIntArray *ptypes)
Filter's by particle type, iff particle_type is included in the given file.
vtkPolyData * GetParticles(const char *file, 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
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of int
concrete dataset represents vertices, lines, polygons, and triangle strips