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 );
45 
47 
50  vtkSetMacro( ParticleType, int );
51  vtkGetMacro( ParticleType, int );
53 
58 
59 protected:
62 
67  vtkPolyData* GetParticles( const char* file, const int blockIdx );
68 
72  void ReadMetaData();
73 
78 
83  bool CheckParticleType( const int pIdx, vtkIntArray *ptypes );
84 
88  vtkDataArray *GetParticlesTypeArray( const int blockIdx );
89 
93  vtkPolyData* ReadParticles( const int blkidx );
94 
96 
98 
99 private:
100  vtkAMREnzoParticlesReader( const vtkAMREnzoParticlesReader& ) VTK_DELETE_FUNCTION;
101  void operator=( const vtkAMREnzoParticlesReader& ) VTK_DELETE_FUNCTION;
102 };
103 
104 #endif /* vtkAMREnzoParticlesReader_h */
vtkAMREnzoParticlesReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkAMREnzoParticlesReader::CheckParticleType
bool CheckParticleType(const int pIdx, vtkIntArray *ptypes)
Filter's by particle type, iff particle_type is included in the given file.
vtkAMREnzoParticlesReader::New
static vtkAMREnzoParticlesReader * New()
vtkAMRBaseParticlesReader.h
vtkAMREnzoParticlesReader::GetParticlesTypeArray
vtkDataArray * GetParticlesTypeArray(const int blockIdx)
Returns the ParticlesType Array.
vtkEnzoReaderInternal
Definition: vtkAMREnzoReaderInternal.h:112
vtkAMREnzoParticlesReader::ReadMetaData
void ReadMetaData()
See vtkAMRBaseParticlesReader::ReadMetaData()
vtkAMREnzoParticlesReader::GetTotalNumberOfParticles
int GetTotalNumberOfParticles()
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkAMREnzoParticlesReader::SetupParticleDataSelections
void SetupParticleDataSelections()
See vtkAMRBaseParticlesReader::SetupParticleDataSelections.
vtkAMREnzoParticlesReader::vtkAMREnzoParticlesReader
vtkAMREnzoParticlesReader()
vtkAMRBaseParticlesReader
An abstract base class that implements all the common functionality for all particle readers.
Definition: vtkAMRBaseParticlesReader.h:39
vtkAMREnzoParticlesReader::ReadParticles
vtkPolyData * ReadParticles(const int blkidx)
Reads the particles.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
vtkAMREnzoParticlesReader::Internal
vtkEnzoReaderInternal * Internal
Definition: vtkAMREnzoParticlesReader.h:97
vtkAMREnzoParticlesReader::ParticleType
int ParticleType
Definition: vtkAMREnzoParticlesReader.h:95
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkAMREnzoParticlesReader
A concrete instance of the vtkAMRBaseParticlesReader which provides functionality for loading ENZO AM...
Definition: vtkAMREnzoParticlesReader.h:40
vtkAMREnzoParticlesReader::GetParticles
vtkPolyData * GetParticles(const char *file, const int blockIdx)
Read the particles from the given particles file for the block corresponding to the given block index...
vtkAMREnzoParticlesReader::~vtkAMREnzoParticlesReader
virtual ~vtkAMREnzoParticlesReader()