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  =========================================================================*/
25 #ifndef VTKAMRENZOPARTICLESREADER_H_
26 #define VTKAMRENZOPARTICLESREADER_H_
27 
28 #include "vtkIOAMRModule.h" // For export macro
30 
31 
32 class vtkPolyData;
33 class vtkDataArray;
34 class vtkIntArray;
36 
39 {
40 public:
43  void PrintSelf(ostream &os, vtkIndent indent );
44 
46 
47  vtkSetMacro( ParticleType, int );
48  vtkGetMacro( ParticleType, int );
50 
53 
54 protected:
56  virtual ~vtkAMREnzoParticlesReader();
57 
60  vtkPolyData* GetParticles( const char* file, const int blockIdx );
61 
63  void ReadMetaData();
64 
67 
70  bool CheckParticleType( const int pIdx, vtkIntArray *ptypes );
71 
73  vtkDataArray *GetParticlesTypeArray( const int blockIdx );
74 
76  vtkPolyData* ReadParticles( const int blkidx );
77 
79 
81 
82 private:
83  vtkAMREnzoParticlesReader( const vtkAMREnzoParticlesReader& ); // Not implemented
84  void operator=( const vtkAMREnzoParticlesReader& ); // Not implemented
85 };
86 
87 #endif /* VTKAMRENZOPARTICLESREADER_H_ */
virtual void SetupParticleDataSelections()=0
virtual int GetTotalNumberOfParticles()=0
#define VTKIOAMR_EXPORT
virtual vtkPolyData * ReadParticles(const int blkIdx)=0
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkMultiBlockDataSetAlgorithm * New()
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkEnzoReaderInternal * Internal
void PrintSelf(ostream &os, vtkIndent indent)
virtual void ReadMetaData()=0