Classes | Functions
Foam::vtkPVReaders Namespace Reference

A collection of helper functions when building a reader interface in ParaView3. More...

Classes

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

Functions

 NamespaceName ("vtkPVReaders")
 Declare name of the class and its debug switch. More...
 
void AddToBlock (vtkMultiBlockDataSet *output, vtkDataSet *dataset, const partInfo &selector, const label datasetNo, const std::string &datasetName)
 Convenience method use to convert the readers from VTK 5. More...
 
vtkDataSet * GetDataSetFromBlock (vtkMultiBlockDataSet *output, const partInfo &selector, const label datasetNo)
 Convenience method use to convert the readers from VTK 5. More...
 
label GetNumberOfDataSets (vtkMultiBlockDataSet *output, const partInfo &selector)
 Convenience method use to convert the readers from VTK 5. More...
 
wordHashSet getSelected (vtkDataArraySelection *select)
 Retrieve the current selections as a wordHashSet. More...
 
wordHashSet getSelected (vtkDataArraySelection *, const partInfo &)
 Retrieve a sub-list of the current selections. More...
 
stringList getSelectedArrayEntries (vtkDataArraySelection *)
 Retrieve the current selections. More...
 
stringList getSelectedArrayEntries (vtkDataArraySelection *select, const partInfo &selector)
 Retrieve a sub-list of the current selections. More...
 
void setSelectedArrayEntries (vtkDataArraySelection *, const stringList &)
 Set selection(s) More...
 

Detailed Description

A collection of helper functions when building a reader interface in ParaView3.

Source files

Function Documentation

Foam::vtkPVReaders::NamespaceName ( "vtkPVReaders"  )

Declare name of the class and its debug switch.

void AddToBlock ( vtkMultiBlockDataSet *  output,
vtkDataSet *  dataset,
const partInfo selector,
const label  datasetNo,
const std::string &  datasetName 
)

Convenience method use to convert the readers from VTK 5.

multiblock API to the current composite data infrastructure

Definition at line 80 of file vtkPVReaders.C.

References partInfo::block(), Foam::endl(), FatalErrorInFunction, GetDataSetFromBlock(), Foam::Info, partInfo::name(), and Foam::New().

Referenced by partInfo::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

vtkDataSet * GetDataSetFromBlock ( vtkMultiBlockDataSet *  output,
const partInfo selector,
const label  datasetNo 
)

Convenience method use to convert the readers from VTK 5.

multiblock API to the current composite data infrastructure

Definition at line 140 of file vtkPVReaders.C.

References partInfo::block(), and GetNumberOfDataSets().

Referenced by AddToBlock(), and partInfo::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label GetNumberOfDataSets ( vtkMultiBlockDataSet *  output,
const partInfo selector 
)

Convenience method use to convert the readers from VTK 5.

multiblock API to the current composite data infrastructure ununsed at the moment

Definition at line 162 of file vtkPVReaders.C.

References partInfo::block(), and getSelected().

Referenced by GetDataSetFromBlock(), and partInfo::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select)

Retrieve the current selections as a wordHashSet.

Definition at line 187 of file vtkPVReaders.C.

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

Referenced by GetNumberOfDataSets(), and partInfo::operator+=().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::wordHashSet getSelected ( vtkDataArraySelection *  select,
const partInfo selector 
)

Retrieve a sub-list of the current selections.

Definition at line 207 of file vtkPVReaders.C.

References partInfo::end(), getSelectedArrayEntries(), HashSet< Key, Hash >::insert(), and partInfo::start().

Here is the call graph for this function:

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select)

Retrieve the current selections.

Definition at line 228 of file vtkPVReaders.C.

References forAll, and Foam::Info.

Referenced by getSelected(), and partInfo::operator+=().

Here is the caller graph for this function:

Foam::stringList getSelectedArrayEntries ( vtkDataArraySelection *  select,
const partInfo selector 
)

Retrieve a sub-list of the current selections.

Definition at line 267 of file vtkPVReaders.C.

References partInfo::end(), forAll, Foam::Info, setSelectedArrayEntries(), List< T >::setSize(), partInfo::size(), and partInfo::start().

Here is the call graph for this function:

void setSelectedArrayEntries ( vtkDataArraySelection *  select,
const stringList selections 
)

Set selection(s)

Definition at line 306 of file vtkPVReaders.C.

References forAll.

Referenced by getSelectedArrayEntries(), and partInfo::operator+=().

Here is the caller graph for this function: