#include <vtkArrayExtentsList.h>
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 52 of file vtkArrayExtentsList.h.
Public Member Functions | |
vtkArrayExtentsList () | |
vtkArrayExtentsList (const vtkArrayExtents &i) | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j) | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k) | |
vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k, const vtkArrayExtents &l) | |
vtkIdType | GetCount () const |
void | SetCount (vtkIdType count) |
vtkArrayExtents & | operator[] (vtkIdType i) |
const vtkArrayExtents & | operator[] (vtkIdType i) const |
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.