VTK
vtkArrayExtentsList.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayExtentsList.h
5 
6 -------------------------------------------------------------------------
7  Copyright 2008 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9  the U.S. Government retains certain rights in this software.
10 -------------------------------------------------------------------------
11 
12  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13  All rights reserved.
14  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15 
16  This software is distributed WITHOUT ANY WARRANTY; without even
17  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18  PURPOSE. See the above copyright notice for more information.
19 
20 =========================================================================*/
21 
47 #ifndef vtkArrayExtentsList_h
48 #define vtkArrayExtentsList_h
49 
50 #include "vtkCommonCoreModule.h" // For export macro
51 #include "vtkArrayExtents.h"
52 #include <vector> // STL Header
53 
54 class VTKCOMMONCORE_EXPORT vtkArrayExtentsList
55 {
56 public:
61 
66 
71 
76 
81 
86 
92  void SetCount(vtkIdType count);
93 
94 
99 
104 
105 private:
106 
107  std::vector<vtkArrayExtents> Storage;
108 
109 };
110 
111 #endif
112 
113 // VTK-HeaderTest-Exclude: vtkArrayExtentsList.h
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkArrayExtentsList::vtkArrayExtentsList
vtkArrayExtentsList(const vtkArrayExtents &i)
Creates a collection containing one slice.
vtkArrayExtentsList
Stores a collection of vtkArrayExtents objects.
Definition: vtkArrayExtentsList.h:55
vtkArrayExtentsList::vtkArrayExtentsList
vtkArrayExtentsList(const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k)
Creates a collection containing three slices.
vtkArrayExtentsList::operator[]
vtkArrayExtents & operator[](vtkIdType i)
Accesses the i-th slice.
vtkArrayExtentsList::SetCount
void SetCount(vtkIdType count)
Sets the number of extents stored in this collection.
vtkArrayExtents.h
vtkArrayExtentsList::operator[]
const vtkArrayExtents & operator[](vtkIdType i) const
Accesses the i-th slice.
vtkArrayExtentsList::vtkArrayExtentsList
vtkArrayExtentsList(const vtkArrayExtents &i, const vtkArrayExtents &j)
Creates a collection containing two slices.
vtkArrayExtentsList::GetCount
vtkIdType GetCount() const
Returns the number of slices stored in this collection.
vtkArrayExtents
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray.
Definition: vtkArrayExtents.h:75
vtkArrayExtentsList::vtkArrayExtentsList
vtkArrayExtentsList()
Creates an empty collection of slices.
vtkArrayExtentsList::vtkArrayExtentsList
vtkArrayExtentsList(const vtkArrayExtents &i, const vtkArrayExtents &j, const vtkArrayExtents &k, const vtkArrayExtents &l)
Creates a collection containing four slices.