VTK
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 
38 #ifndef vtkSLACParticleReader_h
39 #define vtkSLACParticleReader_h
40 
41 #include "vtkIONetCDFModule.h" // For export macro
42 #include "vtkPolyDataAlgorithm.h"
43 
45 class vtkIdTypeArray;
48 
49 class VTKIONETCDF_EXPORT vtkSLACParticleReader : public vtkPolyDataAlgorithm
50 {
51 public:
53  static vtkSLACParticleReader *New();
54  void PrintSelf(ostream &os, vtkIndent indent) override;
55 
56  vtkGetStringMacro(FileName);
57  vtkSetStringMacro(FileName);
58 
62  static int CanReadFile(const char *filename);
63 
64 protected:
66  ~vtkSLACParticleReader() override;
67 
68  char *FileName;
69 
71  vtkInformationVector **inputVector,
72  vtkInformationVector *outputVector) override;
73 
74  int RequestData(vtkInformation *request,
75  vtkInformationVector **inputVector,
76  vtkInformationVector *outputVector) override;
77 
85  virtual vtkIdType GetNumTuplesInVariable(int ncFD, int varId,
86  int expectedNumComponents);
87 
88 private:
90  void operator=(const vtkSLACParticleReader &) = delete;
91 };
92 
93 #endif //vtkSLACParticleReader_h
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArraySelection
Store on/off settings for data arrays for a vtkSource.
Definition: vtkDataArraySelection.h:34
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkInformationObjectBaseKey
Key for vtkObjectBase values.
Definition: vtkInformationObjectBaseKey.h:33
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:31
vtkSLACParticleReader::FileName
char * FileName
Definition: vtkSLACParticleReader.h:68
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSLACParticleReader
Definition: vtkSLACParticleReader.h:49
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:35
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41