vtkArraySlices Class Reference

#include <vtkArraySlices.h>

List of all members.


Detailed Description

Stores a collection of vtkArraySlice objects.

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.

See also:
vtkArray, vtkSlice
Thanks:
Developed by Timothy M. Shead (tshead@sandia.gov) at Sandia National Laboratories.
Tests:
vtkArraySlices (Tests)

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)
vtkArraySliceoperator[] (vtkIdType i)
const vtkArraySliceoperator[] (vtkIdType i) const

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Wed Jun 3 18:53:34 2009 for VTK by  doxygen 1.5.6