VTK  9.3.0
vtkArrayExtentsList.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4 
30 #ifndef vtkArrayExtentsList_h
31 #define vtkArrayExtentsList_h
32 
33 #include "vtkArrayExtents.h"
34 #include "vtkCommonCoreModule.h" // For export macro
35 #include <vector> // STL Header
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKCOMMONCORE_EXPORT vtkArrayExtentsList
39 {
40 public:
45 
50 
55 
60 
65  const vtkArrayExtents& l);
66 
71 
77  void SetCount(vtkIdType count);
78 
83 
88 
89 private:
90  std::vector<vtkArrayExtents> Storage;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
95 
96 // VTK-HeaderTest-Exclude: vtkArrayExtentsList.h
Stores a collection of vtkArrayExtents objects.
vtkArrayExtentsList(const vtkArrayExtents &i)
Creates a collection containing one slice.
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.
vtkArrayExtentsList(const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k)
Creates a collection containing three slices.
void SetCount(vtkIdType count)
Sets the number of extents stored in this collection.
const vtkArrayExtents & operator[](vtkIdType i) const
Accesses the i-th slice.
vtkArrayExtentsList(const vtkArrayExtents &i, const vtkArrayExtents &j)
Creates a collection containing two slices.
vtkArrayExtents & operator[](vtkIdType i)
Accesses the i-th slice.
vtkArrayExtentsList()
Creates an empty collection of slices.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
int vtkIdType
Definition: vtkType.h:315