VTK  9.2.6
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 
47 #ifndef vtkArrayCoordinates_h
48 #define vtkArrayCoordinates_h
49 
50 #include "vtkCommonCoreModule.h" // For export macro
51 #include "vtkSystemIncludes.h"
52 #include <vector>
53 
54 class VTKCOMMONCORE_EXPORT vtkArrayCoordinates
55 {
56 public:
59 
65 
69  explicit vtkArrayCoordinates(CoordinateT i);
70 
74  vtkArrayCoordinates(CoordinateT i, CoordinateT j);
75 
79  vtkArrayCoordinates(CoordinateT i, CoordinateT j, CoordinateT k);
80 
84  DimensionT GetDimensions() const;
85 
91  void SetDimensions(DimensionT dimensions);
92 
96  CoordinateT& operator[](DimensionT i);
97 
101  const CoordinateT& operator[](DimensionT i) const;
102 
106  CoordinateT GetCoordinate(DimensionT i) const;
107 
111  void SetCoordinate(DimensionT i, const CoordinateT&);
112 
116  bool operator==(const vtkArrayCoordinates& rhs) const;
117 
119 
122  bool operator!=(const vtkArrayCoordinates& rhs) const;
123  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArrayCoordinates& rhs);
125 
126 private:
127  std::vector<CoordinateT> Storage;
128 };
129 
130 #endif
131 
132 // VTK-HeaderTest-Exclude: vtkArrayCoordinates.h
Stores coordinate into an N-way array.
bool VTKCOMMONDATAMODEL_EXPORT operator!=(vtkEdgeBase e1, vtkEdgeBase e2)
int vtkIdType
Definition: vtkType.h:332
bool VTKCOMMONDATAMODEL_EXPORT operator==(vtkEdgeBase e1, vtkEdgeBase e2)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)