VTK
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 
29 #include "vtkIOAMRModule.h" // For export macro
31 
32 
33 class vtkPolyData;
34 class vtkDataArray;
35 class vtkIntArray;
37 
38 class VTKIOAMR_EXPORT vtkAMREnzoParticlesReader :
40 {
41 public:
44  void PrintSelf(ostream &os, vtkIndent indent ) override;
45 
47 
50  vtkSetMacro( ParticleType, int );
51  vtkGetMacro( ParticleType, int );
53 
57  int GetTotalNumberOfParticles() override;
58 
59 protected:
61  ~vtkAMREnzoParticlesReader() override;
62 
67  vtkPolyData* GetParticles( const char* file, const int blockIdx );
68 
72  void ReadMetaData() override;
73 
77  void SetupParticleDataSelections() override;
78 
83  bool CheckParticleType( const int pIdx, vtkIntArray *ptypes );
84 
88  vtkDataArray *GetParticlesTypeArray( const int blockIdx );
89 
93  vtkPolyData* ReadParticles( const int blkidx ) override;
94 
96 
98 
99 private:
101  void operator=( const vtkAMREnzoParticlesReader& ) = delete;
102 };
103 
104 #endif /* vtkAMREnzoParticlesReader_h */
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
virtual vtkPolyData * ReadParticles(const int blkIdx)=0
Reads the particles corresponding to the block associated with the given supplied block index...
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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:45
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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.