VTK  9.3.1
vtkSLACParticleReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-LANL-California-USGov
4 
23 #ifndef vtkSLACParticleReader_h
24 #define vtkSLACParticleReader_h
25 
26 #include "vtkIONetCDFModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 class vtkIdTypeArray;
34 
35 class VTKIONETCDF_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm
36 {
37 public:
39  static vtkSLACParticleReader* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  vtkGetFilePathMacro(FileName);
43  vtkSetFilePathMacro(FileName);
44 
48  static int CanReadFile(VTK_FILEPATH const char* filename);
49 
50 protected:
52  ~vtkSLACParticleReader() override;
53 
54  char* FileName;
55 
56  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
57  vtkInformationVector* outputVector) override;
58 
59  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
60  vtkInformationVector* outputVector) override;
61 
69  virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, int expectedNumComponents);
70 
71 private:
73  void operator=(const vtkSLACParticleReader&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #endif // vtkSLACParticleReader_h
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:315
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Key for integer values in vtkInformation.
Store on/off settings for data arrays, etc.
Key for vtkObjectBase values.
A reader for a data format used by Omega3p, Tau3p, and several other tools used at the Standford Line...
#define VTK_FILEPATH
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.