vtkPCosmoReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-FileCopyrightText: Copyright (c) 2009 Los Alamos National Security, LLC
4 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-LANL-USGov
30 #ifndef vtkPCosmoReader_h
31 #define vtkPCosmoReader_h
32 
33 #include "vtkPVVTKExtensionsCosmoToolsModule.h" // For export macro
35 
37 
38 class VTKPVVTKEXTENSIONSCOSMOTOOLS_EXPORT vtkPCosmoReader : public vtkUnstructuredGridAlgorithm
39 {
40 public:
41  static vtkPCosmoReader* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
54 
58  vtkSetMacro(RL, float);
59  vtkGetMacro(RL, float);
61 
63 
68  vtkSetMacro(Overlap, float);
69  vtkGetMacro(Overlap, float);
71 
73 
76  vtkSetMacro(ReadMode, int);
77  vtkGetMacro(ReadMode, int);
79 
87 
92  vtkSetMacro(CosmoFormat, int);
93  vtkGetMacro(CosmoFormat, int);
95 
97 
100  vtkGetObjectMacro(Controller, vtkMultiProcessController);
101  virtual void SetController(vtkMultiProcessController*);
103 
104 protected:
105  vtkPCosmoReader();
106  ~vtkPCosmoReader();
107 
110 
112 
113  char* FileName; // Name of binary particle file
114  float RL; // The physical box dimensions (rL)
115  float Overlap; // The ghost cell boundary space
116  int ReadMode; // The reading mode
117  // int ByteSwap; // Indicates whether to byte-swap data on read
118  int CosmoFormat; // Enable cosmo format or gadget format
119 
120 private:
121  vtkPCosmoReader(const vtkPCosmoReader&) = delete;
122  void operator=(const vtkPCosmoReader&) = delete;
123 };
124 
125 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Read a binary cosmology data file.
vtkMultiProcessController * Controller
void operator=(const vtkObjectBase &)