VTK
dox
Common
Core
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
50
#ifndef vtkArrayCoordinates_h
51
#define vtkArrayCoordinates_h
52
53
#include "vtkCommonCoreModule.h"
// For export macro
54
#include "
vtkSystemIncludes.h
"
55
#include <vector>
56
57
class
VTKCOMMONCORE_EXPORT
vtkArrayCoordinates
58
{
59
public
:
60
typedef
vtkIdType
CoordinateT
;
61
typedef
vtkIdType
DimensionT
;
62
67
vtkArrayCoordinates
();
68
72
explicit
vtkArrayCoordinates
(
CoordinateT
i);
73
77
vtkArrayCoordinates
(
CoordinateT
i,
CoordinateT
j);
78
82
vtkArrayCoordinates
(
CoordinateT
i,
CoordinateT
j,
CoordinateT
k);
83
87
DimensionT
GetDimensions()
const
;
88
94
void
SetDimensions(
DimensionT
dimensions);
95
99
CoordinateT
& operator[](
DimensionT
i);
100
104
const
CoordinateT
& operator[](
DimensionT
i)
const
;
105
109
CoordinateT
GetCoordinate(
DimensionT
i)
const
;
110
114
void
SetCoordinate(
DimensionT
i,
const
CoordinateT
&);
115
119
bool
operator==
(
const
vtkArrayCoordinates
& rhs)
const
;
120
122
125
bool
operator!=
(
const
vtkArrayCoordinates
& rhs)
const
;
126
VTKCOMMONCORE_EXPORT
friend
ostream&
operator<<
(
127
ostream& stream,
const
vtkArrayCoordinates
& rhs);
129
130
private
:
131
132
std::vector<CoordinateT> Storage;
133
134
};
135
136
#endif
137
138
// VTK-HeaderTest-Exclude: vtkArrayCoordinates.h
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
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:61
operator!=
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::CoordinateT
vtkIdType CoordinateT
Definition:
vtkArrayCoordinates.h:60
vtkArrayCoordinates
Stores coordinate into an N-way array.
Definition:
vtkArrayCoordinates.h:57
vtkSystemIncludes.h
Generated by
1.8.16