41 #ifndef vtkPVblockMesh_H
42 #define vtkPVblockMesh_H
45 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
46 #define VTK_EXCLUDE_STRSTREAM_HEADERS
58 class vtkDataArraySelection;
61 class vtkPVblockMeshReader;
64 class vtkMultiBlockDataSet;
66 class vtkUnstructuredGrid;
79 template<
class Type>
class List;
99 arrayRange(
const char *
name,
const int blockNo=0)
114 int block(
int blockNo)
122 const char*
name()
const
136 return start_ + size_;
151 void reset(
const int startAt = 0)
158 void operator+=(
const int n)
168 vtkPVblockMeshReader* reader_;
190 arrayRange arrayRangeBlocks_;
193 arrayRange arrayRangeEdges_;
196 arrayRange arrayRangeCorners_;
205 static void AddToBlock
207 vtkMultiBlockDataSet* output,
210 const label datasetNo,
211 const std::string& datasetName
216 static vtkDataSet* GetDataSetFromBlock
218 vtkMultiBlockDataSet* output,
220 const label datasetNo
225 static label GetNumberOfDataSets
227 vtkMultiBlockDataSet* output,
232 static void updateBoolListStatus
235 vtkDataArraySelection*
239 void resetCounters();
244 void updateInfoBlocks(vtkDataArraySelection*);
247 void updateInfoEdges(vtkDataArraySelection*);
252 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*,
279 static stringList getSelectedArrayEntries(vtkDataArraySelection*);
284 vtkDataArraySelection*,
289 static void setSelectedArrayEntries
291 vtkDataArraySelection*,
308 const char*
const FileName,
309 vtkPVblockMeshReader* reader
325 void Update(vtkMultiBlockDataSet* output);
336 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)
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.
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 bool)
Return a word representation of a bool.