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
33class vtkPolyData;
34class vtkDataArray;
35class vtkIntArray;
37
38class VTKIOAMR_EXPORT vtkAMREnzoParticlesReader :
40{
41public:
44 void PrintSelf(ostream &os, vtkIndent indent );
45
47
50 vtkSetMacro( ParticleType, int );
51 vtkGetMacro( ParticleType, int );
53
58
59protected:
62
67 vtkPolyData* GetParticles( const char* file, const int blockIdx );
68
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
99private:
100 vtkAMREnzoParticlesReader( const vtkAMREnzoParticlesReader& ) VTK_DELETE_FUNCTION;
101 void operator=( const vtkAMREnzoParticlesReader& ) VTK_DELETE_FUNCTION;
102};
103
104#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...
virtual ~vtkAMREnzoParticlesReader()
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...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkEnzoReaderInternal * Internal
static vtkAMREnzoParticlesReader * New()
int GetTotalNumberOfParticles()
See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
vtkDataArray * GetParticlesTypeArray(const int blockIdx)
Returns the ParticlesType Array.
bool CheckParticleType(const int pIdx, vtkIntArray *ptypes)
Filter's by particle type, iff particle_type is included in the given file.
void SetupParticleDataSelections()
See vtkAMRBaseParticlesReader::SetupParticleDataSelections.
vtkPolyData * ReadParticles(const int blkidx)
Reads the particles.
void ReadMetaData()
See vtkAMRBaseParticlesReader::ReadMetaData()
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.