VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPWindBladeReader.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 =========================================================================*/ 00033 #ifndef __vtkPWindBladeReader_h 00034 #define __vtkPWindBladeReader_h 00035 00036 #include "vtkIOMPIParallelModule.h" // For export macro 00037 #include "vtkWindBladeReader.h" 00038 00039 class PWindBladeReaderInternal; 00040 00041 class VTKIOMPIPARALLEL_EXPORT vtkPWindBladeReader : public vtkWindBladeReader 00042 { 00043 public: 00044 static vtkPWindBladeReader *New(); 00045 vtkTypeMacro(vtkPWindBladeReader, vtkWindBladeReader); 00046 00047 void PrintSelf(ostream &os, vtkIndent indent); 00048 00049 protected: 00050 vtkPWindBladeReader(); 00051 ~vtkPWindBladeReader(); 00052 00053 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00054 vtkInformationVector *); 00055 00056 virtual void CalculatePressure(int pressure, int prespre, 00057 int tempg, int density); 00058 virtual void CalculateVorticity(int vort, int uvw, int density); 00059 virtual void LoadVariableData(int var); 00060 virtual bool ReadGlobalData(); 00061 virtual bool FindVariableOffsets(); 00062 virtual void CreateZTopography(float* zValues); 00063 virtual void SetupBladeData(); 00064 virtual void LoadBladeData(int timeStep); 00065 00066 private: 00067 PWindBladeReaderInternal * PInternal; 00068 00069 vtkPWindBladeReader(const vtkPWindBladeReader &); // Not implemented. 00070 void operator=(const vtkPWindBladeReader &); // Not implemented. 00071 }; 00072 00073 #endif