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 
44 #ifndef vtkArrayCoordinates_h
45 #define vtkArrayCoordinates_h
46 
47 #include "vtkCommonCoreModule.h" // For export macro
48 #include "vtkSystemIncludes.h"
49 #include <vector>
50 
51 class VTKCOMMONCORE_EXPORT vtkArrayCoordinates
52 {
53 public:
56 
62 
66  explicit vtkArrayCoordinates(CoordinateT i);
67 
71  vtkArrayCoordinates(CoordinateT i, CoordinateT j);
72 
76  vtkArrayCoordinates(CoordinateT i, CoordinateT j, CoordinateT k);
77 
81  DimensionT GetDimensions() const;
82 
88  void SetDimensions(DimensionT dimensions);
89 
93  CoordinateT& operator[](DimensionT i);
94 
98  const CoordinateT& operator[](DimensionT i) const;
99 
103  CoordinateT GetCoordinate(DimensionT i) const;
104 
108  void SetCoordinate(DimensionT i, const CoordinateT&);
109 
113  bool operator==(const vtkArrayCoordinates& rhs) const;
114 
116 
119  bool operator!=(const vtkArrayCoordinates& rhs) const;
120  VTKCOMMONCORE_EXPORT friend ostream& operator<<(
121  ostream& stream, const vtkArrayCoordinates& rhs);
123 
124 private:
125 
126  std::vector<CoordinateT> Storage;
127 
128 };
129 
130 #endif
131 
132 // VTK-HeaderTest-Exclude: vtkArrayCoordinates.h
Stores coordinate into an N-way array.
int vtkIdType
Definition: vtkType.h:345
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)