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 
37 #ifndef vtkPSLACReader_h
38 #define vtkPSLACReader_h
39 
40 #include "vtkIOParallelModule.h" // For export macro
41 #include "vtkSLACReader.h"
42 
44 
46 {
47 public:
49  static vtkPSLACReader *New();
50  virtual void PrintSelf(ostream &os, vtkIndent indent);
51 
53 
60 
61 protected:
64 
66 
67  virtual int RequestInformation(vtkInformation *request,
68  vtkInformationVector **inputVector,
69  vtkInformationVector *outputVector);
70 
71  virtual int RequestData(vtkInformation *request,
72  vtkInformationVector **inputVector,
73  vtkInformationVector *outputVector);
74 
75  virtual int CheckTetrahedraWinding(int meshFD);
76  virtual int ReadConnectivity(int meshFD, vtkMultiBlockDataSet *surfaceOutput,
77  vtkMultiBlockDataSet *volumeOutput);
78  virtual int ReadCoordinates(int meshFD, vtkMultiBlockDataSet *output);
79  virtual int ReadMidpointCoordinates(int meshFD, vtkMultiBlockDataSet *output,
81  virtual int ReadMidpointData(int meshFD, vtkMultiBlockDataSet *output,
82  MidpointIdMap &map);
83  virtual int RestoreMeshCache(vtkMultiBlockDataSet *surfaceOutput,
84  vtkMultiBlockDataSet *volumeOutput,
85  vtkMultiBlockDataSet *compositeOutput);
86  virtual int ReadFieldData(const int *modeFDArray,
87  int numModeFDs,
88  vtkMultiBlockDataSet *output);
89 
90  virtual int ReadTetrahedronInteriorArray(int meshFD,
91  vtkIdTypeArray *connectivity);
92  virtual int ReadTetrahedronExteriorArray(int meshFD,
93  vtkIdTypeArray *connectivity);
94 
95  virtual int MeshUpToDate();
96 
97 //BTX
99 
101  virtual vtkSmartPointer<vtkDataArray> ReadPointDataArray(int ncFD, int varId);
102 //ETX
104 
105 //BTX
106  class vtkInternal;
107  vtkInternal *Internal;
108 //ETX
109 
111 
116 
119 
122 
124 
125  vtkIdType StartPointRead(int process) {
126  return process*(this->NumberOfGlobalPoints/this->NumberOfPieces + 1);
127  }
128  vtkIdType EndPointRead(int process) {
129  vtkIdType result = this->StartPointRead(process+1);
130  if (result > this->NumberOfGlobalPoints) result=this->NumberOfGlobalPoints;
131  return result;
132  }
134 
136 
140 
141 private:
142  vtkPSLACReader(const vtkPSLACReader &); // Not implemented
143  void operator=(const vtkPSLACReader &); // Not implemented
144 };
145 
146 #endif //vtkPSLACReader_h
vtkPSLACReader::ReadTetrahedronExteriorArray
virtual int ReadTetrahedronExteriorArray(int meshFD, vtkIdTypeArray *connectivity)
vtkSLACReader::MidpointCoordinateMap
Definition: vtkSLACReader.h:291
vtkSLACReader.h
vtkSLACReader::MidpointIdMap
Definition: vtkSLACReader.h:320
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPSLACReader::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPSLACReader::~vtkPSLACReader
~vtkPSLACReader()
vtkPSLACReader::ReadMidpointData
virtual int ReadMidpointData(int meshFD, vtkMultiBlockDataSet *output, MidpointIdMap &map)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkIOParallelModule.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPSLACReader::NumberOfGlobalMidpoints
vtkIdType NumberOfGlobalMidpoints
Definition: vtkPSLACReader.h:121
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPSLACReader::ReadConnectivity
virtual int ReadConnectivity(int meshFD, vtkMultiBlockDataSet *surfaceOutput, vtkMultiBlockDataSet *volumeOutput)
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:35
vtkSLACReader
Definition: vtkSLACReader.h:52
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
vtkPSLACReader::vtkPSLACReader
vtkPSLACReader()
vtkPSLACReader::StartPointRead
vtkIdType StartPointRead(int process)
Definition: vtkPSLACReader.h:125
vtkPSLACReader::CheckTetrahedraWinding
virtual int CheckTetrahedraWinding(int meshFD)
vtkPSLACReader
Definition: vtkPSLACReader.h:46
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:85
vtkPSLACReader::ReadMidpointCoordinates
virtual int ReadMidpointCoordinates(int meshFD, vtkMultiBlockDataSet *output, MidpointCoordinateMap &map)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPSLACReader::NumberOfPieces
int NumberOfPieces
Definition: vtkPSLACReader.h:113
vtkPSLACReader::RestoreMeshCache
virtual int RestoreMeshCache(vtkMultiBlockDataSet *surfaceOutput, vtkMultiBlockDataSet *volumeOutput, vtkMultiBlockDataSet *compositeOutput)
vtkPSLACReader::NumberOfGlobalPoints
vtkIdType NumberOfGlobalPoints
Definition: vtkPSLACReader.h:118
vtkPSLACReader::ReadCoordinates
virtual int ReadCoordinates(int meshFD, vtkMultiBlockDataSet *output)
vtkPSLACReader::MeshUpToDate
virtual int MeshUpToDate()
vtkPSLACReader::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPSLACReader::Internal
vtkInternal * Internal
Definition: vtkPSLACReader.h:106
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkPSLACReader::ReadTetrahedronInteriorArray
virtual int ReadTetrahedronInteriorArray(int meshFD, vtkIdTypeArray *connectivity)
vtkgl::result
GLuint64EXT * result
Definition: vtkgl.h:18868
vtkPSLACReader::ReadFieldData
virtual int ReadFieldData(const int *modeFDArray, int numModeFDs, vtkMultiBlockDataSet *output)
vtkPSLACReader::ReadPointDataArray
virtual vtkSmartPointer< vtkDataArray > ReadPointDataArray(int ncFD, int varId)
vtkPSLACReader::EndPointRead
vtkIdType EndPointRead(int process)
Definition: vtkPSLACReader.h:128
vtkPSLACReader::RequestedPieceCache
int RequestedPieceCache
Definition: vtkPSLACReader.h:138
vtkPSLACReader::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPSLACReader::Controller
vtkMultiProcessController * Controller
Definition: vtkPSLACReader.h:65
vtkPSLACReader::SetController
virtual void SetController(vtkMultiProcessController *)
vtkPSLACReader::NumberOfPiecesCache
int NumberOfPiecesCache
Definition: vtkPSLACReader.h:137
vtkPSLACReader::New
static vtkPSLACReader * New()
VTKIOPARALLEL_EXPORT
#define VTKIOPARALLEL_EXPORT
Definition: vtkIOParallelModule.h:15
vtkPSLACReader::RequestedPiece
int RequestedPiece
Definition: vtkPSLACReader.h:114