VTK
9.1.0
|
Stores a collection of vtkArrayExtents objects. More...
#include <vtkArrayExtentsList.h>
Public Member Functions | |
vtkArrayExtentsList () | |
Creates an empty collection of slices. More... | |
vtkArrayExtentsList (const vtkArrayExtents &i) | |
Creates a collection containing one slice. More... | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j) | |
Creates a collection containing two slices. More... | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k) | |
Creates a collection containing three slices. More... | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k, const vtkArrayExtents &l) | |
Creates a collection containing four slices. More... | |
vtkIdType | GetCount () const |
Returns the number of slices stored in this collection. More... | |
void | SetCount (vtkIdType count) |
Sets the number of extents stored in this collection. More... | |
vtkArrayExtents & | operator[] (vtkIdType i) |
Accesses the i-th slice. More... | |
const vtkArrayExtents & | operator[] (vtkIdType i) const |
Accesses the i-th slice. More... | |
Stores a collection of vtkArrayExtents objects.
vtkArrayExtentsList provides storage for a collection of vtkArrayExtents instances. Constructors are provided for creating collections containing one, two, three, or four slices. To work with larger numbers of slices, use the default constructor, the SetCount() method, and operator[].
vtkArrayExtentsList is most commonly used with the vtkInterpolate() function, which is used to computed weighted sums of vtkArray slices.
Definition at line 51 of file vtkArrayExtentsList.h.
vtkArrayExtentsList::vtkArrayExtentsList | ( | ) |
Creates an empty collection of slices.
vtkArrayExtentsList::vtkArrayExtentsList | ( | const vtkArrayExtents & | i | ) |
Creates a collection containing one slice.
vtkArrayExtentsList::vtkArrayExtentsList | ( | const vtkArrayExtents & | i, |
const vtkArrayExtents & | j | ||
) |
Creates a collection containing two slices.
vtkArrayExtentsList::vtkArrayExtentsList | ( | const vtkArrayExtents & | i, |
const vtkArrayExtents & | j, | ||
const vtkArrayExtents & | k | ||
) |
Creates a collection containing three slices.
vtkArrayExtentsList::vtkArrayExtentsList | ( | const vtkArrayExtents & | i, |
const vtkArrayExtents & | j, | ||
const vtkArrayExtents & | k, | ||
const vtkArrayExtents & | l | ||
) |
Creates a collection containing four slices.
vtkIdType vtkArrayExtentsList::GetCount | ( | ) | const |
Returns the number of slices stored in this collection.
void vtkArrayExtentsList::SetCount | ( | vtkIdType | count | ) |
Sets the number of extents stored in this collection.
Note: all extents will be empty after calling SetCount(), use operator[] to assign extents to each item in the collection.
vtkArrayExtents & vtkArrayExtentsList::operator[] | ( | vtkIdType | i | ) |
Accesses the i-th slice.
const vtkArrayExtents & vtkArrayExtentsList::operator[] | ( | vtkIdType | i | ) | const |
Accesses the i-th slice.