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.
A class for handling file names.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
Provides a reader interface for OpenFOAM blockMesh to VTK interaction.
void renderPointNumbers(vtkRenderer *, const bool show)
Add/remove point numbers to/from the view.
A multi-block mesh generator.
A class for handling words, derived from string.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
void Update(vtkMultiBlockDataSet *output)
~vtkPVblockMesh()
Destructor.
word name(const complex &)
Return a string representation of a complex.
void CleanUp()
Clean any storage.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
vtkPVblockMesh(const char *const FileName, vtkPVblockMeshReader *reader)
Construct from components.
ClassName("vtkPVblockMesh")
Static data members.
void operator=(const vtkPVblockMesh &)=delete
Disallow default bitwise assignment.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...