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 "vtkPolyDataAlgorithm.h" 00044 00045 class vtkDataArraySelection; 00046 class vtkIdTypeArray; 00047 class vtkInformationIntegerKey; 00048 class vtkInformationObjectBaseKey; 00049 00050 class VTK_IO_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm 00051 { 00052 public: 00053 vtkTypeMacro(vtkSLACParticleReader, vtkPolyDataAlgorithm); 00054 static vtkSLACParticleReader *New(); 00055 virtual void PrintSelf(ostream &os, vtkIndent indent); 00056 00057 vtkGetStringMacro(FileName); 00058 vtkSetStringMacro(FileName); 00059 00061 static int CanReadFile(const char *filename); 00062 00063 protected: 00064 vtkSLACParticleReader(); 00065 ~vtkSLACParticleReader(); 00066 00067 char *FileName; 00068 00069 virtual int RequestInformation(vtkInformation *request, 00070 vtkInformationVector **inputVector, 00071 vtkInformationVector *outputVector); 00072 00073 virtual int RequestData(vtkInformation *request, 00074 vtkInformationVector **inputVector, 00075 vtkInformationVector *outputVector); 00076 00078 00083 virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, 00084 int expectedNumComponents); 00086 00087 private: 00088 vtkSLACParticleReader(const vtkSLACParticleReader &); // Not implemented 00089 void operator=(const vtkSLACParticleReader &); // Not implemented 00090 }; 00091 00092 #endif //__vtkSLACParticleReader_h