Go to the documentation of this file.
52 class vtkDataArraySelection;
55 class vtkMultiBlockDataSet;
134 for (
const label idx : *
this)
155 for (
const label idx : *
this)
182 vtkDataArraySelection* select
189 vtkMultiBlockDataSet* output,
191 const arrayRange& selector,
192 const label datasetNo,
193 const std::string& datasetName
197 template<
class StringType>
200 vtkDataArraySelection* select,
201 const std::string& prefix,
206 template<
class StringType>
209 vtkDataArraySelection* select,
218 vtkDataArraySelection* select,
219 const std::string& prefix,
227 vtkDataArraySelection* select,
236 vtkDataArraySelection* select,
237 const std::string& prefix,
246 vtkDataArraySelection* select,
256 vtkDataArraySelection* select
264 vtkDataArraySelection* select,
272 vtkDataArraySelection* select
278 vtkDataArraySelection* select
282 template<
class AnyValue,
class AnyHasher>
285 vtkDataArraySelection* select,
void setSize(const label n) noexcept
Change the size - alias for resize()
bool reset(const label start, const label size) noexcept
Reset start and size, enforcing non-negative size.
static word getFoamName(const std::string &str)
Extract the first word characters after a slash.
static void setSelectedArrayEntries(vtkDataArraySelection *select, const HashTable< AnyValue, string, AnyHasher > &enabled)
Enable the selection(s)
A class for handling words, derived from Foam::string.
static void addToBlock(vtkMultiBlockDataSet *output, vtkDataSet *dataset, const arrayRange &selector, const label datasetNo, const std::string &datasetName)
Convenience method for the VTK multiblock API.
Bookkeeping for GUI checklists and multi-block organization.
A HashTable to objects of type <T> with a label key.
static Ostream & printDataArraySelection(Ostream &os, vtkDataArraySelection *select)
Print information about vtkDataArraySelection.
bool intersects(const Map< T > &map) const
True if the labelRange intersects any key in the Map.
label size() const noexcept
The effective size of the range.
static wordHashSet getSelected(vtkDataArraySelection *select)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static Map< string > getSelectedArrayMap(vtkDataArraySelection *select)
Retrieve the currently enabled selections as id/name map.
void clear() noexcept
Reset to zero start and zero size.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
arrayRange(const char *name, int blockNo=0)
Construct with given name for the specified block.
static label addToArray(vtkDataArraySelection *select, const std::string &prefix, const UList< StringType > &names)
Add names to array selection.
const char * name() const
Return the name.
A range or interval of labels defined by a start and a size.
static const string null
An empty string.
List of IOobjects with searching and retrieving facilities.
A HashTable similar to std::unordered_map.
static label addToSelection(vtkDataArraySelection *select, const std::string &prefix, const IOobjectList &objects)
Add objects of Type to array selection.
List< label > intersection(const Map< T > &map) const
The intersection ids with keys in the Map.
constexpr foamPvCore() noexcept
Construct null.
int block(int blockNo)
Assign block number, return previous value.
static HashSet< string > getSelectedArraySet(vtkDataArraySelection *select)
Retrieve the currently enabled selections as hashset.
void setStart(const label i) noexcept
Change the start position.
static void printMemory()
Simple memory used debugging information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void operator+=(label n)
Increment the size.
int block() const
Return the block holding these datasets.
void setSize(const label newSize)
Alias for resize(const label)
void reset(label startAt=0)
Reset the size to zero and optionally assign a new start.