38 #ifndef vtkPVblockMesh_H
39 #define vtkPVblockMesh_H
42 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
43 #define VTK_EXCLUDE_STRSTREAM_HEADERS
54 class vtkDataArraySelection;
57 class vtkPVblockMeshReader;
60 class vtkMultiBlockDataSet;
62 class vtkUnstructuredGrid;
75 template<
class Type>
class List;
95 arrayRange(
const char *
name,
const int blockNo=0)
110 int block(
int blockNo)
118 const char*
name()
const
132 return start_ + size_;
147 void reset(
const int startAt = 0)
164 vtkPVblockMeshReader* reader_;
186 arrayRange arrayRangeBlocks_;
189 arrayRange arrayRangeEdges_;
192 arrayRange arrayRangeCorners_;
202 static void AddToBlock
204 vtkMultiBlockDataSet* output,
207 const label datasetNo,
208 const std::string& datasetName
213 static vtkDataSet* GetDataSetFromBlock
215 vtkMultiBlockDataSet* output,
217 const label datasetNo
222 static label GetNumberOfDataSets
224 vtkMultiBlockDataSet* output,
229 static void updateBoolListStatus
232 vtkDataArraySelection*
236 void resetCounters();
242 void updateInfoBlocks(vtkDataArraySelection*);
245 void updateInfoEdges(vtkDataArraySelection*);
251 void updateFoamMesh();
257 void convertMeshBlocks(vtkMultiBlockDataSet*,
int& blockNo);
260 void convertMeshEdges(vtkMultiBlockDataSet*,
int& blockNo);
263 void convertMeshCorners(vtkMultiBlockDataSet*,
int& blockNo);
269 static wordHashSet getSelected(vtkDataArraySelection*);
274 vtkDataArraySelection*,
281 vtkDataArraySelection*,
282 const bool debug = vtkPVblockMesh::debug
288 vtkDataArraySelection*,
290 const bool debug = vtkPVblockMesh::debug
294 static void setSelectedArrayEntries
296 vtkDataArraySelection*,
313 const char*
const FileName,
314 vtkPVblockMeshReader* reader
331 void Update(vtkMultiBlockDataSet* output);
343 void PrintSelf(ostream&, vtkIndent)
const;
A HashTable with keys but without contents.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A multi-block mesh generator.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
A class for handling file names.
Provides a reader interface for OpenFOAM blockMesh to VTK interaction.
~vtkPVblockMesh()
Destructor.
ClassName("vtkPVblockMesh")
Static data members.
void Update(vtkMultiBlockDataSet *output)
Update.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
void CleanUp()
Clean any storage.
void renderPointNumbers(vtkRenderer *, const bool show)
Add/remove point numbers to/from the view.
vtkPVblockMesh(const char *const FileName, vtkPVblockMeshReader *reader)
Construct from components.
void operator=(const vtkPVblockMesh &)=delete
Disallow default bitwise assignment.
void updateInfo()
Update information.
A class for handling words, derived from string.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void operator+=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Add to a finite-volume equation.