#include <vtkArraySlice.h>
vtkArraySlice describes a subset of a vtkArray as a set of half-open ranges along each dimension.
Convenience constructors are provided for specifying one, two, and three dimension slices. For higher dimensions, use the default constructor, the SetDimensions() method and operator[] to assign a range along each dimension of a slice.
vtkArraySlice is most commonly used with the vtkInterpolate() function, which is used to compute weighted sums of vtkArray slices.
Definition at line 56 of file vtkArraySlice.h.
Public Member Functions | |
| vtkArraySlice () | |
| vtkIdType | GetDimensions () const | 
| const vtkArrayExtents | GetExtents () const | 
| const vtkArrayCoordinates | GetCoordinatesN (vtkIdType n) const | 
| void | SetDimensions (vtkIdType dimensions) | 
| vtkArrayRange & | operator[] (vtkIdType i) | 
| const vtkArrayRange & | operator[] (vtkIdType i) const | 
| vtkArraySlice (const vtkArrayRange &i) | |
| vtkArraySlice (const vtkArrayRange &i, const vtkArrayRange &j) | |
| vtkArraySlice (const vtkArrayRange &i, const vtkArrayRange &j, const vtkArrayRange &k) | |
Friends | |
| ostream & | operator<< (ostream &stream, const vtkArraySlice &rhs) | 
| vtkArraySlice::vtkArraySlice | ( | ) | 
Create a zero-dimensional slice.
| vtkArraySlice::vtkArraySlice | ( | const vtkArrayRange & | i | ) | 
Create a one-dimensional slice.
| vtkArraySlice::vtkArraySlice | ( | const vtkArrayRange & | i, | |
| const vtkArrayRange & | j | |||
| ) | 
Create a two-dimensional slice.
| vtkArraySlice::vtkArraySlice | ( | const vtkArrayRange & | i, | |
| const vtkArrayRange & | j, | |||
| const vtkArrayRange & | k | |||
| ) | 
Create a three-dimensional slice.
| vtkIdType vtkArraySlice::GetDimensions | ( | ) | const | 
Returns the number of dimensions in this slice.
| const vtkArrayExtents vtkArraySlice::GetExtents | ( | ) | const | 
Returns the extents of this slice - i.e: the size of the range along each dimension.
| const vtkArrayCoordinates vtkArraySlice::GetCoordinatesN | ( | vtkIdType | n | ) | const | 
Returns coordinates that reference the n-th value in the slice, where n is in the range [0, GetExtents().GetSize()). Note that the order in which coordinates are visited is undefined.
| void vtkArraySlice::SetDimensions | ( | vtkIdType | dimensions | ) | 
Sets the number of slice dimensions. Use operator[] to set the range along each dimension. Note that the range along each slice dimension will be empty after calling SetDimensions(), so you must explicitly set them all.
| vtkArrayRange& vtkArraySlice::operator[] | ( | vtkIdType | i | ) | 
Accesses the range of the i-th dimension.
| const vtkArrayRange& vtkArraySlice::operator[] | ( | vtkIdType | i | ) | const | 
Accesses the rnage of the i-th dimension.
| ostream& operator<< | ( | ostream & | stream, | |
| const vtkArraySlice & | rhs | |||
| ) |  [friend] | 
        
 1.5.6