You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.1 KiB
C++
80 lines
2.1 KiB
C++
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: vtkAMRFlashParticlesReader.h
|
|
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
|
All rights reserved.
|
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. See the above copyright notice for more information.
|
|
|
|
=========================================================================*/
|
|
/**
|
|
* @class vtkAMRFlashParticlesReader
|
|
*
|
|
*
|
|
* A concrete instance of vtkAMRBaseParticlesReader that implements
|
|
* functionality for reading flash particle datasets.
|
|
*/
|
|
|
|
#ifndef vtkAMRFlashParticlesReader_h
|
|
#define vtkAMRFlashParticlesReader_h
|
|
|
|
#include "vtkIOAMRModule.h" // For export macro
|
|
#include "vtkAMRBaseParticlesReader.h"
|
|
|
|
class vtkIndent;
|
|
class vtkPolyData;
|
|
class vtkPointData;
|
|
class vtkIdList;
|
|
class vtkFlashReaderInternal;
|
|
|
|
class VTKIOAMR_EXPORT vtkAMRFlashParticlesReader :
|
|
public vtkAMRBaseParticlesReader
|
|
{
|
|
public:
|
|
static vtkAMRFlashParticlesReader* New();
|
|
vtkTypeMacro( vtkAMRFlashParticlesReader, vtkAMRBaseParticlesReader );
|
|
void PrintSelf(ostream &os, vtkIndent indent );
|
|
|
|
/**
|
|
* See vtkAMRBaseParticlesReader::GetTotalNumberOfParticles.
|
|
*/
|
|
int GetTotalNumberOfParticles();
|
|
|
|
protected:
|
|
vtkAMRFlashParticlesReader();
|
|
virtual ~vtkAMRFlashParticlesReader();
|
|
|
|
/**
|
|
* See vtkAMRBaseParticlesReader::ReadMetaData
|
|
*/
|
|
void ReadMetaData();
|
|
|
|
/**
|
|
* See vtkAMRBaseParticlesReader::SetupParticlesDataSelections
|
|
*/
|
|
void SetupParticleDataSelections();
|
|
|
|
/**
|
|
* See vtkAMRBaseParticlesReader::ReadParticles
|
|
*/
|
|
vtkPolyData* ReadParticles( const int blkidx );
|
|
|
|
/**
|
|
* Reads the particlles of the given block from the given file.
|
|
*/
|
|
vtkPolyData* GetParticles( const char* file, const int blkidx );
|
|
|
|
vtkFlashReaderInternal *Internal;
|
|
|
|
private:
|
|
vtkAMRFlashParticlesReader( const vtkAMRFlashParticlesReader& ) VTK_DELETE_FUNCTION;
|
|
void operator=(const vtkAMRFlashParticlesReader& ) VTK_DELETE_FUNCTION;
|
|
};
|
|
|
|
#endif /* vtkAMRFlashParticlesReader_h */
|