VTK
vtkPSLACReader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkPSLACReader.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 vtkPSLACReader_h
39 #define vtkPSLACReader_h
40 
41 #include "vtkIOParallelModule.h" // For export macro
42 #include "vtkSLACReader.h"
43 
45 
46 class VTKIOPARALLEL_EXPORT vtkPSLACReader : public vtkSLACReader
47 {
48 public:
49  vtkTypeMacro(vtkPSLACReader, vtkSLACReader);
50  static vtkPSLACReader *New();
51  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
52 
54 
60  vtkGetObjectMacro(Controller, vtkMultiProcessController);
61  virtual void SetController(vtkMultiProcessController *);
63 
64 protected:
66  ~vtkPSLACReader() VTK_OVERRIDE;
67 
69 
70  int RequestInformation(vtkInformation *request,
71  vtkInformationVector **inputVector,
72  vtkInformationVector *outputVector) VTK_OVERRIDE;
73 
74  int RequestData(vtkInformation *request,
75  vtkInformationVector **inputVector,
76  vtkInformationVector *outputVector) VTK_OVERRIDE;
77 
78  int CheckTetrahedraWinding(int meshFD) VTK_OVERRIDE;
79  int ReadConnectivity(int meshFD, vtkMultiBlockDataSet *surfaceOutput,
80  vtkMultiBlockDataSet *volumeOutput) VTK_OVERRIDE;
81  int ReadCoordinates(int meshFD, vtkMultiBlockDataSet *output) VTK_OVERRIDE;
82  int ReadMidpointCoordinates(int meshFD, vtkMultiBlockDataSet *output,
83  MidpointCoordinateMap &map) VTK_OVERRIDE;
84  int ReadMidpointData(int meshFD, vtkMultiBlockDataSet *output,
85  MidpointIdMap &map) VTK_OVERRIDE;
86  int RestoreMeshCache(vtkMultiBlockDataSet *surfaceOutput,
87  vtkMultiBlockDataSet *volumeOutput,
88  vtkMultiBlockDataSet *compositeOutput) VTK_OVERRIDE;
89  int ReadFieldData(const int *modeFDArray,
90  int numModeFDs,
91  vtkMultiBlockDataSet *output) VTK_OVERRIDE;
92 
93  int ReadTetrahedronInteriorArray(int meshFD,
94  vtkIdTypeArray *connectivity) VTK_OVERRIDE;
95  int ReadTetrahedronExteriorArray(int meshFD,
96  vtkIdTypeArray *connectivity) VTK_OVERRIDE;
97 
98  int MeshUpToDate() VTK_OVERRIDE;
99 
103  vtkSmartPointer<vtkDataArray> ReadPointDataArray(int ncFD, int varId) VTK_OVERRIDE;
104 
105  class vtkInternal;
106  vtkInternal *Internal;
107 
109 
113  int NumberOfPieces;
114  int RequestedPiece;
116 
120  vtkIdType NumberOfGlobalPoints;
121 
125  vtkIdType NumberOfGlobalMidpoints;
126 
128 
131  vtkIdType StartPointRead(int process) {
132  return process*(this->NumberOfGlobalPoints/this->NumberOfPieces + 1);
133  }
134  vtkIdType EndPointRead(int process) {
135  vtkIdType result = this->StartPointRead(process+1);
136  if (result > this->NumberOfGlobalPoints) result=this->NumberOfGlobalPoints;
137  return result;
138  }
140 
142 
148 
149 private:
150  vtkPSLACReader(const vtkPSLACReader &) VTK_DELETE_FUNCTION;
151  void operator=(const vtkPSLACReader &) VTK_DELETE_FUNCTION;
152 };
153 
154 #endif //vtkPSLACReader_h
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSLACReader * New()
dynamic, self-adjusting array of vtkIdType
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:345
A reader for a data format used by Omega3p, Tau3p, and several other tools used at the Standford Line...
Definition: vtkSLACReader.h:52
Manages a map from edges to midpoint coordinates.
a simple class to control print indentation
Definition: vtkIndent.h:39
int RequestedPieceCache
Piece information from the last call.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIdType EndPointRead(int process)
The start/end points read by the given process.
Composite dataset that organizes datasets into blocks.
Store zero or more vtkInformation instances.
int NumberOfPiecesCache
Piece information from the last call.
Extends the vtkSLACReader to read in partitioned pieces.
Manages a map from edges to the point id of the midpoint.
Multiprocessing communication superclass.