Go to the documentation of this file.
41 #ifndef vtkPV3blockMesh_H
42 #define vtkPV3blockMesh_H
45 #ifndef VTK_EXCLUDE_STRSTREAM_HEADERS
46 # define VTK_EXCLUDE_STRSTREAM_HEADERS
54 #include "primitivePatch.H"
58 class vtkDataArraySelection;
61 class vtkPV3blockMeshReader;
64 class vtkMultiBlockDataSet;
66 class vtkUnstructuredGrid;
79 template<
class Type>
class List;
114 int block(
int blockNo)
122 const char*
name()
const
151 void reset(
const int startAt = 0)
168 vtkPV3blockMeshReader*
reader_;
207 vtkMultiBlockDataSet* output,
210 const label datasetNo,
211 const std::string& datasetName
218 vtkMultiBlockDataSet* output,
220 const label datasetNo
227 vtkMultiBlockDataSet* output,
235 vtkDataArraySelection*
274 vtkDataArraySelection*,
284 vtkDataArraySelection*,
291 vtkDataArraySelection*,
315 const char*
const FileName,
316 vtkPV3blockMeshReader* reader
329 void Update(vtkMultiBlockDataSet* output);
340 void PrintSelf(ostream&, vtkIndent)
const;
static void AddToBlock(vtkMultiBlockDataSet *output, vtkDataSet *dataset, const arrayRange &, const label datasetNo, const std::string &datasetName)
static stringList getSelectedArrayEntries(vtkDataArraySelection *)
Retrieve the current selections.
Bookkeeping for GUI checklists and the multi-block organization.
word meshRegion_
The mesh region.
A class for handling words, derived from string.
A class for handling file names.
static void updateBoolListStatus(boolList &, vtkDataArraySelection *)
Update boolList from GUI selection.
void operator=(const vtkPV3blockMesh &)
Disallow default bitwise assignment.
void resetCounters()
Reset data counters.
autoPtr< Time > dbPtr_
OpenFOAM time control.
static label GetNumberOfDataSets(vtkMultiBlockDataSet *output, const arrayRange &)
blockMesh * meshPtr_
OpenFOAM mesh.
vtkPV3blockMesh(const vtkPV3blockMesh &)
Disallow default bitwise copy construct.
void updateInfoEdges(vtkDataArraySelection *)
Block curved edges info.
void CleanUp()
Clean any storage.
void updateFoamMesh()
OpenFOAM mesh.
void updateInfoBlocks(vtkDataArraySelection *)
Internal block info.
static wordHashSet getSelected(vtkDataArraySelection *)
Retrieve the current selections.
A HashTable with keys but without contents.
vtkPV3blockMeshReader * reader_
Access to the controlling vtkPV3blockMeshReader.
arrayRange arrayRangeBlocks_
First instance and size of bleckMesh blocks.
int block(int blockNo)
Assign block number, return previous value.
int end() const
Return array end index.
void Update(vtkMultiBlockDataSet *output)
Provides a reader interface for OpenFOAM blockMesh to VTK interaction.
arrayRange arrayRangeCorners_
First instance and size of block corners (only partially used)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void convertMeshCorners(vtkMultiBlockDataSet *, int &blockNo)
Mesh corners.
void PrintSelf(ostream &, vtkIndent) const
Debug information.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
static vtkDataSet * GetDataSetFromBlock(vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
void convertMeshBlocks(vtkMultiBlockDataSet *, int &blockNo)
Mesh blocks.
boolList blockStatus_
Selected geometrical parts.
~vtkPV3blockMesh()
Destructor.
arrayRange(const char *name, const int blockNo=0)
fileName meshDir_
The mesh directory for the region.
int start() const
Return array start index.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void renderPointNumbers(vtkRenderer *, const bool show)
Add/remove point numbers to/from the view.
void operator+=(const int n)
Increment the size.
static void setSelectedArrayEntries(vtkDataArraySelection *, const stringList &)
Set selection(s)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
int block() const
Return the block holding these datasets.
boolList edgeStatus_
Selected curved edges.
List< vtkTextActor * > pointNumberTextActorsPtrs_
List of point numbers for rendering to window.
void reset(const int startAt=0)
Reset the size to zero and optionally assign a new start.
arrayRange arrayRangeEdges_
First instance and size of CurvedEdges (only partially used)
ClassName("vtkPV3blockMesh")
Static data members.
int size() const
Return sublist size.
const char * name() const
Return block name.
void convertMeshEdges(vtkMultiBlockDataSet *, int &blockNo)
Mesh curved edges.
A multi-block mesh generator.