VTK  9.0.1
vtkPLSDynaReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPLSDynaReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
124 #ifndef vtkPLSDynaReader_h
125 #define vtkPLSDynaReader_h
126 
127 #include "vtkIOParallelLSDynaModule.h" // For export macro
128 #include "vtkLSDynaReader.h"
129 
131 class VTKIOPARALLELLSDYNA_EXPORT vtkPLSDynaReader : public vtkLSDynaReader
132 {
133 public:
135  void PrintSelf(ostream& os, vtkIndent indent) override;
136  static vtkPLSDynaReader* New();
137 
141  int CanReadFile(const char* fname) override;
142 
144 
147  void SetController(vtkMultiProcessController* c);
148  vtkGetObjectMacro(Controller, vtkMultiProcessController);
150 
151 protected:
153  ~vtkPLSDynaReader() override;
154 
157 
158  int ReadTopology() override;
159 
160 private:
161  vtkPLSDynaReader(const vtkPLSDynaReader&) = delete;
162  void operator=(const vtkPLSDynaReader&) = delete;
163 
164  void GetPartRanges(vtkIdType* mins, vtkIdType* maxs);
165 
166  vtkMultiProcessController* Controller;
167 
168  struct vtkPLSDynaReaderInternal;
169  vtkPLSDynaReaderInternal* Internal;
170 };
171 
172 #endif // vtkPLSDynaReader_h
vtkLSDynaReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLSDynaReader::New
static vtkLSDynaReader * New()
vtkLSDynaReader
Read LS-Dyna databases (d3plot)
Definition: vtkLSDynaReader.h:166
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkLSDynaReader::ReadTopology
virtual int ReadTopology()
These functions read various parts of the database.
vtkPLSDynaReader
Read LS-Dyna databases (d3plot) in parallel.
Definition: vtkPLSDynaReader.h:131
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:75
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkLSDynaReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkLSDynaReader::CanReadFile
virtual int CanReadFile(const char *fname)
Determine if the file can be read with this reader.
vtkLSDynaReader.h
vtkLSDynaReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.