#include <vtkArraySlices.h>
vtkArraySlices provides storage for a collection of vtkArraySlice 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[].
vtkArraySlices is most commonly used with the vtkInterpolate() function, which is used to computed weighted sums of vtkArray slices.
Definition at line 50 of file vtkArraySlices.h.
Public Member Functions | |
vtkArraySlices () | |
vtkArraySlices (const vtkArraySlice &i) | |
vtkArraySlices (const vtkArraySlice &i, const vtkArraySlice &j) | |
vtkArraySlices (const vtkArraySlice &i, const vtkArraySlice &j, const vtkArraySlice &k) | |
vtkArraySlices (const vtkArraySlice &i, const vtkArraySlice &j, const vtkArraySlice &k, const vtkArraySlice &l) | |
vtkIdType | GetCount () const |
void | SetCount (vtkIdType count) |
vtkArraySlice & | operator[] (vtkIdType i) |
const vtkArraySlice & | operator[] (vtkIdType i) const |
vtkArraySlices::vtkArraySlices | ( | ) |
Creates an empty collection of slices.
vtkArraySlices::vtkArraySlices | ( | const vtkArraySlice & | i | ) |
Creates a collection containing one slice.
vtkArraySlices::vtkArraySlices | ( | const vtkArraySlice & | i, | |
const vtkArraySlice & | j | |||
) |
Creates a collection containing two slices.
vtkArraySlices::vtkArraySlices | ( | const vtkArraySlice & | i, | |
const vtkArraySlice & | j, | |||
const vtkArraySlice & | k | |||
) |
Creates a collection containing three slices.
vtkArraySlices::vtkArraySlices | ( | const vtkArraySlice & | i, | |
const vtkArraySlice & | j, | |||
const vtkArraySlice & | k, | |||
const vtkArraySlice & | l | |||
) |
Creates a collection containing four slices.
vtkIdType vtkArraySlices::GetCount | ( | ) | const |
Returns the number of slices stored in this collection.
void vtkArraySlices::SetCount | ( | vtkIdType | count | ) |
Sets the number of slices stored in this collection. Note: all slices will be empty after calling SetSliceCount(), use operator[] to assign each slice.
vtkArraySlice& vtkArraySlices::operator[] | ( | vtkIdType | i | ) |
Accesses the i-th slice.
const vtkArraySlice& vtkArraySlices::operator[] | ( | vtkIdType | i | ) | const |
Accesses the i-th slice.