Data Structures | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
vtkPV4blockMesh Class Reference

Provides a reader interface for OpenFOAM blockMesh to VTK interaction. More...

Collaboration diagram for vtkPV4blockMesh:
Collaboration graph
[legend]

Data Structures

class  arrayRange
 Bookkeeping for GUI checklists and the multi-block organization. More...
 

Public Member Functions

 ClassName ("vtkPV4blockMesh")
 Static data members. More...
 
 vtkPV4blockMesh (const char *const FileName, vtkPV4blockMeshReader *reader)
 Construct from components. More...
 
 ~vtkPV4blockMesh ()
 Destructor. More...
 
void updateInfo ()
 Update. More...
 
void Update (vtkMultiBlockDataSet *output)
 
void CleanUp ()
 Clean any storage. More...
 
void renderPointNumbers (vtkRenderer *, const bool show)
 Add/remove point numbers to/from the view. More...
 
void PrintSelf (ostream &, vtkIndent) const
 Debug information. More...
 

Private Member Functions

void resetCounters ()
 Reset data counters. More...
 
void updateInfoBlocks (vtkDataArraySelection *)
 Internal block info. More...
 
void updateInfoEdges (vtkDataArraySelection *)
 Block curved edges info. More...
 
void updateFoamMesh ()
 OpenFOAM mesh. More...
 
void convertMeshBlocks (vtkMultiBlockDataSet *, int &blockNo)
 Mesh blocks. More...
 
void convertMeshEdges (vtkMultiBlockDataSet *, int &blockNo)
 Mesh curved edges. More...
 
void convertMeshCorners (vtkMultiBlockDataSet *, int &blockNo)
 Mesh corners. More...
 
 vtkPV4blockMesh (const vtkPV4blockMesh &)
 Disallow default bitwise copy construct. More...
 
void operator= (const vtkPV4blockMesh &)
 Disallow default bitwise assignment. More...
 

Static Private Member Functions

static void AddToBlock (vtkMultiBlockDataSet *output, vtkDataSet *dataset, const arrayRange &, const label datasetNo, const std::string &datasetName)
 
static vtkDataSet * GetDataSetFromBlock (vtkMultiBlockDataSet *output, const arrayRange &, const label datasetNo)
 
static label GetNumberOfDataSets (vtkMultiBlockDataSet *output, const arrayRange &)
 
static void updateBoolListStatus (boolList &, vtkDataArraySelection *)
 Update boolList from GUI selection. More...
 
static wordHashSet getSelected (vtkDataArraySelection *)
 Retrieve the current selections. More...
 
static wordHashSet getSelected (vtkDataArraySelection *, const arrayRange &)
 Retrieve a sub-list of the current selections. More...
 
static stringList getSelectedArrayEntries (vtkDataArraySelection *)
 Retrieve the current selections. More...
 
static stringList getSelectedArrayEntries (vtkDataArraySelection *, const arrayRange &)
 Retrieve a sub-list of the current selections. More...
 
static void setSelectedArrayEntries (vtkDataArraySelection *, const stringList &)
 Set selection(s) More...
 

Private Attributes

vtkPV4blockMeshReader * reader_
 Access to the controlling vtkPV4blockMeshReader. More...
 
autoPtr< TimedbPtr_
 OpenFOAM time control. More...
 
blockMeshmeshPtr_
 OpenFOAM mesh. More...
 
word meshRegion_
 The mesh region. More...
 
fileName meshDir_
 The mesh directory for the region. More...
 
boolList blockStatus_
 Selected geometrical parts. More...
 
boolList edgeStatus_
 Selected curved edges. More...
 
arrayRange arrayRangeBlocks_
 First instance and size of bleckMesh blocks. More...
 
arrayRange arrayRangeEdges_
 First instance and size of CurvedEdges (only partially used) More...
 
arrayRange arrayRangeCorners_
 First instance and size of block corners (only partially used) More...
 
List< vtkTextActor * > pointNumberTextActorsPtrs_
 List of point numbers for rendering to window. More...
 

Detailed Description

Provides a reader interface for OpenFOAM blockMesh to VTK interaction.

Source files
Needed by VTK: vtkDataArrayTemplateImplicit.txx

Definition at line 84 of file vtkPV4blockMesh.H.

Constructor & Destructor Documentation

◆ vtkPV4blockMesh() [1/2]

vtkPV4blockMesh ( const vtkPV4blockMesh )
private

Disallow default bitwise copy construct.

◆ vtkPV4blockMesh() [2/2]

vtkPV4blockMesh ( const char *const  FileName,
vtkPV4blockMeshReader *  reader 
)

Construct from components.

◆ ~vtkPV4blockMesh()

Destructor.

Member Function Documentation

◆ AddToBlock()

void AddToBlock ( vtkMultiBlockDataSet *  output,
vtkDataSet *  dataset,
const arrayRange range,
const label  datasetNo,
const std::string &  datasetName 
)
staticprivate

Definition at line 71 of file vtkPV4blockMeshUtils.C.

References Foam::endl(), FatalErrorInFunction, Foam::Info, Foam::compressible::New(), and range.

Here is the call graph for this function:

◆ GetDataSetFromBlock()

vtkDataSet * GetDataSetFromBlock ( vtkMultiBlockDataSet *  output,
const arrayRange range,
const label  datasetNo 
)
staticprivate

Definition at line 131 of file vtkPV4blockMeshUtils.C.

References range.

◆ GetNumberOfDataSets()

Foam::label GetNumberOfDataSets ( vtkMultiBlockDataSet *  output,
const arrayRange range 
)
staticprivate

Definition at line 153 of file vtkPV4blockMeshUtils.C.

References range.

◆ updateBoolListStatus()

void updateBoolListStatus ( boolList status,
vtkDataArraySelection *  selection 
)
staticprivate

Update boolList from GUI selection.

Definition at line 317 of file vtkPV4blockMeshUtils.C.

References Foam::endl(), forAll, Foam::Info, List::setSize(), and List::size().

Here is the call graph for this function:

◆ resetCounters()

void resetCounters ( )
private

Reset data counters.

◆ updateInfoBlocks()

void updateInfoBlocks ( vtkDataArraySelection *  )
private

Internal block info.

◆ updateInfoEdges()

void updateInfoEdges ( vtkDataArraySelection *  )
private

Block curved edges info.

◆ updateFoamMesh()

void updateFoamMesh ( )
private

OpenFOAM mesh.

◆ convertMeshBlocks()

void convertMeshBlocks ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Mesh blocks.

◆ convertMeshEdges()

void convertMeshEdges ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Mesh curved edges.

◆ convertMeshCorners()

void convertMeshCorners ( vtkMultiBlockDataSet *  ,
int &  blockNo 
)
private

Mesh corners.

◆ getSelected() [1/2]

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select)
staticprivate

Retrieve the current selections.

Definition at line 172 of file vtkPV4blockMeshUtils.C.

References HashSet< Key, Hash >::insert().

Here is the call graph for this function:

◆ getSelected() [2/2]

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select,
const arrayRange range 
)
staticprivate

Retrieve a sub-list of the current selections.

Definition at line 192 of file vtkPV4blockMeshUtils.C.

References HashSet< Key, Hash >::insert(), and range.

Here is the call graph for this function:

◆ getSelectedArrayEntries() [1/2]

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select)
staticprivate

Retrieve the current selections.

Definition at line 213 of file vtkPV4blockMeshUtils.C.

References forAll, Foam::Info, and List::setSize().

Here is the call graph for this function:

◆ getSelectedArrayEntries() [2/2]

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select,
const arrayRange range 
)
staticprivate

Retrieve a sub-list of the current selections.

Definition at line 252 of file vtkPV4blockMeshUtils.C.

References forAll, Foam::Info, range, and List::setSize().

Here is the call graph for this function:

◆ setSelectedArrayEntries()

void setSelectedArrayEntries ( vtkDataArraySelection *  select,
const stringList selections 
)
staticprivate

Set selection(s)

Definition at line 291 of file vtkPV4blockMeshUtils.C.

References forAll.

◆ operator=()

void operator= ( const vtkPV4blockMesh )
private

Disallow default bitwise assignment.

◆ ClassName()

ClassName ( "vtkPV4blockMesh"  )

Static data members.

◆ updateInfo()

void updateInfo ( )

Update.

◆ Update()

void Update ( vtkMultiBlockDataSet *  output)

◆ CleanUp()

void CleanUp ( )

Clean any storage.

◆ renderPointNumbers()

void renderPointNumbers ( vtkRenderer *  ,
const bool  show 
)

Add/remove point numbers to/from the view.

◆ PrintSelf()

void PrintSelf ( ostream &  ,
vtkIndent   
) const

Debug information.

Field Documentation

◆ reader_

vtkPV4blockMeshReader* reader_
private

Access to the controlling vtkPV4blockMeshReader.

Definition at line 167 of file vtkPV4blockMesh.H.

◆ dbPtr_

autoPtr<Time> dbPtr_
private

OpenFOAM time control.

Definition at line 170 of file vtkPV4blockMesh.H.

◆ meshPtr_

blockMesh* meshPtr_
private

OpenFOAM mesh.

Definition at line 173 of file vtkPV4blockMesh.H.

◆ meshRegion_

word meshRegion_
private

The mesh region.

Definition at line 176 of file vtkPV4blockMesh.H.

◆ meshDir_

fileName meshDir_
private

The mesh directory for the region.

Definition at line 179 of file vtkPV4blockMesh.H.

◆ blockStatus_

boolList blockStatus_
private

Selected geometrical parts.

Definition at line 182 of file vtkPV4blockMesh.H.

◆ edgeStatus_

boolList edgeStatus_
private

Selected curved edges.

Definition at line 185 of file vtkPV4blockMesh.H.

◆ arrayRangeBlocks_

arrayRange arrayRangeBlocks_
private

First instance and size of bleckMesh blocks.

used to index into blockStatus_

Definition at line 189 of file vtkPV4blockMesh.H.

◆ arrayRangeEdges_

arrayRange arrayRangeEdges_
private

First instance and size of CurvedEdges (only partially used)

Definition at line 192 of file vtkPV4blockMesh.H.

◆ arrayRangeCorners_

arrayRange arrayRangeCorners_
private

First instance and size of block corners (only partially used)

Definition at line 195 of file vtkPV4blockMesh.H.

◆ pointNumberTextActorsPtrs_

List<vtkTextActor*> pointNumberTextActorsPtrs_
private

List of point numbers for rendering to window.

Definition at line 198 of file vtkPV4blockMesh.H.


The documentation for this class was generated from the following files: