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 "vtkCommonCoreModule.h" // For export macro
53 #include "vtkSystemIncludes.h"
54 #include <vector>
55 
57 {
58 public:
61 
65 
67  explicit vtkArrayCoordinates(CoordinateT i);
68 
70  vtkArrayCoordinates(CoordinateT i, CoordinateT j);
71 
73  vtkArrayCoordinates(CoordinateT i, CoordinateT j, CoordinateT k);
74 
76  DimensionT GetDimensions() const;
77 
81  void SetDimensions(DimensionT dimensions);
82 
84  CoordinateT& operator[](DimensionT i);
85 
87  const CoordinateT& operator[](DimensionT i) const;
88 
90  CoordinateT GetCoordinate(DimensionT i) const;
91 
93  void SetCoordinate(DimensionT i, const CoordinateT&);
94 
96  bool operator==(const vtkArrayCoordinates& rhs) const;
97 
99 
100  bool operator!=(const vtkArrayCoordinates& rhs) const;
101  VTKCOMMONCORE_EXPORT friend ostream& operator<<(
102  ostream& stream, const vtkArrayCoordinates& rhs);
104 
105 private:
106  //BTX
107  std::vector<CoordinateT> Storage;
108  //ETX
109 };
110 
111 #endif
112 
113 // VTK-HeaderTest-Exclude: vtkArrayCoordinates.h
Stores coordinate into an N-way array.
#define VTKCOMMONCORE_EXPORT
int vtkIdType
Definition: vtkType.h:247
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)