VTK  9.2.6
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 
48 class vtkIdTypeArray;
51 
52 class VTKIONETCDF_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm
53 {
54 public:
56  static vtkSLACParticleReader* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
59  vtkGetFilePathMacro(FileName);
60  vtkSetFilePathMacro(FileName);
61 
65  static int CanReadFile(VTK_FILEPATH const char* filename);
66 
67 protected:
69  ~vtkSLACParticleReader() override;
70 
71  char* FileName;
72 
73  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
74  vtkInformationVector* outputVector) override;
75 
76  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector) override;
78 
86  virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId, int expectedNumComponents);
87 
88 private:
90  void operator=(const vtkSLACParticleReader&) = delete;
91 };
92 
93 #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:332
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.