vtkArrayRange Class Reference

#include <vtkArrayRange.h>

List of all members.


Detailed Description

Stores a half-open range of array coordinates.

vtkArrayRange stores a half-open range of array coordinates along a single dimension of a vtkArraySlice object.

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

Definition at line 44 of file vtkArrayRange.h.


Public Member Functions

 vtkArrayRange ()
 vtkArrayRange (vtkIdType index)
 vtkArrayRange (vtkIdType begin, vtkIdType end)
vtkIdType GetBegin () const
vtkIdType GetEnd () const
vtkIdType GetExtent () const

Friends

ostream & operator<< (ostream &stream, const vtkArrayRange &rhs)

Constructor & Destructor Documentation

vtkArrayRange::vtkArrayRange (  ) 

Creates an empty range.

vtkArrayRange::vtkArrayRange ( vtkIdType  index  ) 

Creates a range containing a single value.

vtkArrayRange::vtkArrayRange ( vtkIdType  begin,
vtkIdType  end 
)

Creates a half-open range [begin, end). Note that begin must be <= end, if not, creates the empty range [begin, begin).


Member Function Documentation

vtkIdType vtkArrayRange::GetBegin (  )  const

Returns the beginning of the range

vtkIdType vtkArrayRange::GetEnd (  )  const

Returns one-past-the-end of the range

vtkIdType vtkArrayRange::GetExtent (  )  const

Returns the extent of the range (the distance End - Begin).


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const vtkArrayRange rhs 
) [friend]

Serialization


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