VTK
|
00001 // -*- c++ -*- 00002 /*========================================================================= 00003 00004 Program: Visualization Toolkit 00005 Module: vtkSLACParticleReader.h 00006 00007 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00016 00017 /*------------------------------------------------------------------------- 00018 Copyright 2008 Sandia Corporation. 00019 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00020 the U.S. Government retains certain rights in this software. 00021 -------------------------------------------------------------------------*/ 00022 00040 #ifndef __vtkSLACParticleReader_h 00041 #define __vtkSLACParticleReader_h 00042 00043 #include "vtkIONetCDFModule.h" // For export macro 00044 #include "vtkPolyDataAlgorithm.h" 00045 00046 class vtkDataArraySelection; 00047 class vtkIdTypeArray; 00048 class vtkInformationIntegerKey; 00049 class vtkInformationObjectBaseKey; 00050 00051 class VTKIONETCDF_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm 00052 { 00053 public: 00054 vtkTypeMacro(vtkSLACParticleReader, vtkPolyDataAlgorithm); 00055 static vtkSLACParticleReader *New(); 00056 virtual void PrintSelf(ostream &os, vtkIndent indent); 00057 00058 vtkGetStringMacro(FileName); 00059 vtkSetStringMacro(FileName); 00060 00062 static int CanReadFile(const char *filename); 00063 00064 protected: 00065 vtkSLACParticleReader(); 00066 ~vtkSLACParticleReader(); 00067 00068 char *FileName; 00069 00070 virtual int RequestInformation(vtkInformation *request, 00071 vtkInformationVector **inputVector, 00072 vtkInformationVector *outputVector); 00073 00074 virtual int RequestData(vtkInformation *request, 00075 vtkInformationVector **inputVector, 00076 vtkInformationVector *outputVector); 00077 00079 00084 virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, 00085 int expectedNumComponents); 00087 00088 private: 00089 vtkSLACParticleReader(const vtkSLACParticleReader &); // Not implemented 00090 void operator=(const vtkSLACParticleReader &); // Not implemented 00091 }; 00092 00093 #endif //__vtkSLACParticleReader_h