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