VTK
dox/IO/AMR/vtkAMRFlashParticlesReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkAMRFlashParticlesReader.h
00005 
00006  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007  All rights reserved.
00008  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010  This software is distributed WITHOUT ANY WARRANTY; without even
00011  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012  PURPOSE.  See the above copyright notice for more information.
00013 
00014  =========================================================================*/
00022 #ifndef VTKAMRFLASHPARTICLESREADER_H_
00023 #define VTKAMRFLASHPARTICLESREADER_H_
00024 
00025 #include "vtkIOAMRModule.h" // For export macro
00026 #include "vtkAMRBaseParticlesReader.h"
00027 
00028 class vtkIndent;
00029 class vtkPolyData;
00030 class vtkPointData;
00031 class vtkIdList;
00032 class vtkFlashReaderInternal;
00033 
00034 class VTKIOAMR_EXPORT vtkAMRFlashParticlesReader :
00035   public vtkAMRBaseParticlesReader
00036 {
00037 public:
00038   static vtkAMRFlashParticlesReader* New();
00039   vtkTypeMacro( vtkAMRFlashParticlesReader, vtkAMRBaseParticlesReader );
00040   void PrintSelf(ostream &os, vtkIndent indent );
00041 
00043   int GetTotalNumberOfParticles();
00044 
00045 protected:
00046   vtkAMRFlashParticlesReader();
00047   virtual ~vtkAMRFlashParticlesReader();
00048 
00050   void ReadMetaData();
00051 
00053   void SetupParticleDataSelections();
00054 
00056   vtkPolyData* ReadParticles( const int blkidx );
00057 
00059   vtkPolyData* GetParticles( const char* file, const int blkidx );
00060 
00061   vtkFlashReaderInternal *Internal;
00062 
00063 private:
00064   vtkAMRFlashParticlesReader( const vtkAMRFlashParticlesReader& ); // Not implemented
00065   void operator=(const vtkAMRFlashParticlesReader& ); // Not implemented
00066 };
00067 
00068 #endif /* VTKAMRFLASHPARTICLESREADER_H_ */