VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
55
class
VTK_COMMON_EXPORT
vtkArrayCoordinates
56
{
57
public
:
58
typedef
vtkIdType
CoordinateT
;
59
typedef
vtkIdType
DimensionT
;
60
63
vtkArrayCoordinates
();
64
66
explicit
vtkArrayCoordinates
(
CoordinateT
i);
67
69
vtkArrayCoordinates
(
CoordinateT
i,
CoordinateT
j);
70
72
vtkArrayCoordinates
(
CoordinateT
i,
CoordinateT
j,
CoordinateT
k);
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
Generated on Sun Sep 15 2013 03:44:18 for VTK by
1.8.4