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 
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:
59  ~vtkAMREnzoParticlesReader() override;
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 */
vtkAMRBaseParticlesReader.h
vtkAMRBaseParticlesReader::ReadParticles
virtual vtkPolyData * ReadParticles(const int blkIdx)=0
Reads the particles corresponding to the block associated with the given supplied block index.
vtkEnzoReaderInternal
Definition: vtkAMREnzoReaderInternal.h:107
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
vtkAMRBaseParticlesReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAMRBaseParticlesReader::ReadMetaData
virtual void ReadMetaData()=0
Reads the metadata, e.g., the number of blocks in the file.
vtkAMRBaseParticlesReader
Definition: vtkAMRBaseParticlesReader.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
vtkAMREnzoParticlesReader::Internal
vtkEnzoReaderInternal * Internal
Definition: vtkAMREnzoParticlesReader.h:95
vtkAMRBaseParticlesReader::GetTotalNumberOfParticles
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
vtkAMREnzoParticlesReader::ParticleType
int ParticleType
Definition: vtkAMREnzoParticlesReader.h:93
vtkAMRBaseParticlesReader::SetupParticleDataSelections
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkAMREnzoParticlesReader
Definition: vtkAMREnzoParticlesReader.h:37