VTK
vtkArrayCoordinates.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrayCoordinates.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 
49 #ifndef __vtkArrayCoordinates_h
50 #define __vtkArrayCoordinates_h
51 
52 #include "vtkSystemIncludes.h"
53 #include <vector>
54 
56 {
57 public:
60 
64 
66  explicit vtkArrayCoordinates(CoordinateT i);
67 
70 
73 
75  DimensionT GetDimensions() const;
76 
80  void SetDimensions(DimensionT dimensions);
81 
83  CoordinateT& operator[](DimensionT i);
84 
86  const CoordinateT& operator[](DimensionT i) const;
87 
89  CoordinateT GetCoordinate(DimensionT i) const;
90 
92  void SetCoordinate(DimensionT i, const CoordinateT&);
93 
95  bool operator==(const vtkArrayCoordinates& rhs) const;
96 
98 
99  bool operator!=(const vtkArrayCoordinates& rhs) const;
100  VTK_COMMON_EXPORT friend ostream& operator<<(
101  ostream& stream, const vtkArrayCoordinates& rhs);
103 
104 private:
105  //BTX
106  std::vector<CoordinateT> Storage;
107  //ETX
108 };
109 
110 #endif
111