VTK
dox/Common/vtkArrayExtentsList.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkArrayExtentsList.h
00005 
00006 -------------------------------------------------------------------------
00007   Copyright 2008 Sandia Corporation.
00008   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00009   the U.S. Government retains certain rights in this software.
00010 -------------------------------------------------------------------------
00011 
00012   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00013   All rights reserved.
00014   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00015 
00016      This software is distributed WITHOUT ANY WARRANTY; without even
00017      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00018      PURPOSE.  See the above copyright notice for more information.
00019 
00020 =========================================================================*/
00021 
00046 #ifndef __vtkArrayExtentsList_h
00047 #define __vtkArrayExtentsList_h
00048 
00049 #include "vtkArrayExtents.h"
00050 #include <vtksys/stl/vector> // STL Header
00051 
00052 class VTK_COMMON_EXPORT vtkArrayExtentsList
00053 {
00054 public:
00056   vtkArrayExtentsList();
00057 
00059   vtkArrayExtentsList(const vtkArrayExtents& i);
00060 
00062   vtkArrayExtentsList(const vtkArrayExtents& i, const vtkArrayExtents& j);
00063 
00065   vtkArrayExtentsList(const vtkArrayExtents& i, const vtkArrayExtents& j, const vtkArrayExtents& k);
00066 
00068   vtkArrayExtentsList(const vtkArrayExtents& i, const vtkArrayExtents& j, const vtkArrayExtents& k, const vtkArrayExtents& l);
00069 
00071   vtkIdType GetCount() const;
00072 
00076   void SetCount(vtkIdType count);
00077 
00078 
00080   vtkArrayExtents& operator[](vtkIdType i);
00081 
00083   const vtkArrayExtents& operator[](vtkIdType i) const;
00084 
00085 private:
00086   //BTX
00087   std::vector<vtkArrayExtents> Storage;
00088   //ETX
00089 };
00090 
00091 #endif
00092