VTK  9.3.20240420
Public Member Functions | List of all members
vtkArrayExtentsList Class Reference

Stores a collection of vtkArrayExtents objects. More...

#include <vtkArrayExtentsList.h>

Public Member Functions

 vtkArrayExtentsList ()
 Creates an empty collection of slices.
 
 vtkArrayExtentsList (const vtkArrayExtents &i)
 Creates a collection containing one slice.
 
 vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j)
 Creates a collection containing two slices.
 
 vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k)
 Creates a collection containing three slices.
 
 vtkArrayExtentsList (const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k, const vtkArrayExtents &l)
 Creates a collection containing four slices.
 
vtkIdType GetCount () const
 Returns the number of slices stored in this collection.
 
void SetCount (vtkIdType count)
 Sets the number of extents stored in this collection.
 
vtkArrayExtentsoperator[] (vtkIdType i)
 Accesses the i-th slice.
 
const vtkArrayExtentsoperator[] (vtkIdType i) const
 Accesses the i-th slice.
 

Detailed Description

Stores a collection of vtkArrayExtents objects.

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.

See also
vtkArray, vtkExtents
Thanks:
Developed by Timothy M. Shead (tshea.nosp@m.d@sa.nosp@m.ndia..nosp@m.gov) at Sandia National Laboratories.
Tests:
vtkArrayExtentsList (Tests)

Definition at line 38 of file vtkArrayExtentsList.h.

Constructor & Destructor Documentation

◆ vtkArrayExtentsList() [1/5]

vtkArrayExtentsList::vtkArrayExtentsList ( )

Creates an empty collection of slices.

◆ vtkArrayExtentsList() [2/5]

vtkArrayExtentsList::vtkArrayExtentsList ( const vtkArrayExtents i)

Creates a collection containing one slice.

◆ vtkArrayExtentsList() [3/5]

vtkArrayExtentsList::vtkArrayExtentsList ( const vtkArrayExtents i,
const vtkArrayExtents j 
)

Creates a collection containing two slices.

◆ vtkArrayExtentsList() [4/5]

vtkArrayExtentsList::vtkArrayExtentsList ( const vtkArrayExtents i,
const vtkArrayExtents j,
const vtkArrayExtents k 
)

Creates a collection containing three slices.

◆ vtkArrayExtentsList() [5/5]

vtkArrayExtentsList::vtkArrayExtentsList ( const vtkArrayExtents i,
const vtkArrayExtents j,
const vtkArrayExtents k,
const vtkArrayExtents l 
)

Creates a collection containing four slices.

Member Function Documentation

◆ GetCount()

vtkIdType vtkArrayExtentsList::GetCount ( ) const

Returns the number of slices stored in this collection.

◆ SetCount()

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.

◆ operator[]() [1/2]

vtkArrayExtents & vtkArrayExtentsList::operator[] ( vtkIdType  i)

Accesses the i-th slice.

◆ operator[]() [2/2]

const vtkArrayExtents & vtkArrayExtentsList::operator[] ( vtkIdType  i) const

Accesses the i-th slice.


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