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  bool operator==(const vtkArrayCoordinates& rhs) const;
90 
92 
93  bool operator!=(const vtkArrayCoordinates& rhs) const;
94  VTK_COMMON_EXPORT friend ostream& operator<<(
95  ostream& stream, const vtkArrayCoordinates& rhs);
97 
98 private:
99  //BTX
100  std::vector<CoordinateT> Storage;
101  //ETX
102 };
103 
104 #endif
105 
Stores coordinate into an N-way array.
int vtkIdType
Definition: vtkType.h:255
VTK_COMMON_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
#define VTK_COMMON_EXPORT
VTK_COMMON_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTK_COMMON_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)