• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Common/vtkArraySlice.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkArraySlice.h,v $
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 
00047 #ifndef __vtkArraySlice_h
00048 #define __vtkArraySlice_h
00049 
00050 #include "vtkArrayExtents.h"
00051 #include "vtkArrayCoordinates.h"
00052 #include "vtkArrayRange.h"
00053 
00054 #include <vtksys/stl/vector>
00055 
00056 class VTK_COMMON_EXPORT vtkArraySlice
00057 {
00058 public:
00060   vtkArraySlice();
00061   
00063 
00064   vtkArraySlice(
00065     const vtkArrayRange& i);
00067   
00069 
00070   vtkArraySlice(
00071     const vtkArrayRange& i,
00072     const vtkArrayRange& j);
00074   
00076 
00077   vtkArraySlice(
00078     const vtkArrayRange& i,
00079     const vtkArrayRange& j,
00080     const vtkArrayRange& k);
00082 
00084   vtkIdType GetDimensions() const;
00085   
00088   const vtkArrayExtents GetExtents() const;
00089   
00093   const vtkArrayCoordinates GetCoordinatesN(vtkIdType n) const;
00094 
00099   void SetDimensions(vtkIdType dimensions);
00100   
00102   vtkArrayRange& operator[](vtkIdType i);
00103   
00105   const vtkArrayRange& operator[](vtkIdType i) const;
00106   
00107   friend ostream& operator<<(ostream& stream, const vtkArraySlice& rhs);
00108 
00109 private:
00110   vtkstd::vector<vtkArrayRange> Storage;
00111 };
00112 
00113 #endif
00114 

Generated by  doxygen 1.7.1