VTK  9.2.20221001
vtkSLACParticleReader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkSLACParticleReader.h
6 
7  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 
17 /*-------------------------------------------------------------------------
18  Copyright 2008 Sandia Corporation.
19  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
20  the U.S. Government retains certain rights in this software.
21 -------------------------------------------------------------------------*/
22 
41 #ifndef vtkSLACParticleReader_h
42 #define vtkSLACParticleReader_h
43 
44 #include "vtkIONetCDFModule.h" // For export macro
45 #include "vtkPolyDataAlgorithm.h"
46 
47 VTK_ABI_NAMESPACE_BEGIN
49 class vtkIdTypeArray;
52 
53 class VTKIONETCDF_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
62 
66  static int CanReadFile(VTK_FILEPATH const char* filename);
67 
68 protected:
71 
72  char* FileName;
73 
75  vtkInformationVector* outputVector) override;
76 
77  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector) override;
79 
87  virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, int expectedNumComponents);
88 
89 private:
91  void operator=(const vtkSLACParticleReader&) = delete;
92 };
93 
94 VTK_ABI_NAMESPACE_END
95 #endif // vtkSLACParticleReader_h
Store on/off settings for data arrays, etc.
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:120
Key for integer values in vtkInformation.
Key for vtkObjectBase values.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
A reader for a data format used by Omega3p, Tau3p, and several other tools used at the Standford Line...
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
static vtkSLACParticleReader * New()
static int CanReadFile(VTK_FILEPATH const char *filename)
Returns true if the given file can be read by this reader.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
vtkGetFilePathMacro(FileName)
virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, int expectedNumComponents)
Convenience function that checks the dimensions of a 2D netCDF array that is supposed to be a set of ...
~vtkSLACParticleReader() override
int vtkIdType
Definition: vtkType.h:326
#define VTK_FILEPATH