VTK  9.0.1
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 
72 
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<<(ostream& stream, const vtkArrayCoordinates& rhs);
122 
123 private:
124  std::vector<CoordinateT> Storage;
125 };
126 
127 #endif
128 
129 // VTK-HeaderTest-Exclude: vtkArrayCoordinates.h
vtkIdType
int vtkIdType
Definition: vtkType.h:338
operator==
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
operator<<
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArrayCoordinates::DimensionT
vtkIdType DimensionT
Definition: vtkArrayCoordinates.h:55
operator!=
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::CoordinateT
vtkIdType CoordinateT
Definition: vtkArrayCoordinates.h:54
vtkArrayCoordinates
Stores coordinate into an N-way array.
Definition: vtkArrayCoordinates.h:51
vtkSystemIncludes.h