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 ("vtkPV3Readers") | |
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... | |
A collection of helper functions when building a reader interface in ParaView3.
Foam::vtkPV3Readers::NamespaceName | ( | "vtkPV3Readers" | ) |
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 vtkPV3Readers.C.
References partInfo::block(), Foam::endl(), FatalErrorInFunction, GetDataSetFromBlock(), Foam::Info, partInfo::name(), and Foam::New().
Referenced by partInfo::operator+=().
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 vtkPV3Readers.C.
References partInfo::block(), and GetNumberOfDataSets().
Referenced by AddToBlock(), and partInfo::operator+=().
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 vtkPV3Readers.C.
References partInfo::block(), and getSelected().
Referenced by GetDataSetFromBlock(), and partInfo::operator+=().
Foam::wordHashSet getSelected | ( | vtkDataArraySelection * | select | ) |
Retrieve the current selections as a wordHashSet.
Definition at line 187 of file vtkPV3Readers.C.
References HashSet< Key, Hash >::insert().
Referenced by GetNumberOfDataSets(), and partInfo::operator+=().
Foam::wordHashSet getSelected | ( | vtkDataArraySelection * | select, |
const partInfo & | selector | ||
) |
Retrieve a sub-list of the current selections.
Definition at line 207 of file vtkPV3Readers.C.
References partInfo::end(), getSelectedArrayEntries(), HashSet< Key, Hash >::insert(), and partInfo::start().
Foam::stringList getSelectedArrayEntries | ( | vtkDataArraySelection * | select | ) |
Retrieve the current selections.
Definition at line 228 of file vtkPV3Readers.C.
References forAll, and Foam::Info.
Referenced by getSelected(), and partInfo::operator+=().
Foam::stringList getSelectedArrayEntries | ( | vtkDataArraySelection * | select, |
const partInfo & | selector | ||
) |
Retrieve a sub-list of the current selections.
Definition at line 267 of file vtkPV3Readers.C.
References partInfo::end(), forAll, Foam::Info, setSelectedArrayEntries(), List< T >::setSize(), partInfo::size(), and partInfo::start().
void setSelectedArrayEntries | ( | vtkDataArraySelection * | select, |
const stringList & | selections | ||
) |
Set selection(s)
Definition at line 306 of file vtkPV3Readers.C.
References forAll.
Referenced by getSelectedArrayEntries(), and partInfo::operator+=().