VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkArrayRange.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkArrayRange.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
43
#ifndef __vtkArrayRange_h
44
#define __vtkArrayRange_h
45
46
#include "
vtkSystemIncludes.h
"
47
#include "
vtkArrayCoordinates.h
"
48
49
class
VTK_COMMON_EXPORT
vtkArrayRange
50
{
51
public
:
52
typedef
vtkArrayCoordinates::CoordinateT
CoordinateT
;
53
55
vtkArrayRange
();
56
59
vtkArrayRange
(
CoordinateT
begin,
CoordinateT
end);
60
62
CoordinateT
GetBegin()
const
;
63
65
CoordinateT
GetEnd()
const
;
66
68
CoordinateT
GetSize()
const
;
69
72
bool
Contains(
const
vtkArrayRange
& range)
const
;
73
75
bool
Contains(
const
CoordinateT
coordinate)
const
;
76
78
79
VTK_COMMON_EXPORT
friend
bool
operator==
(
const
vtkArrayRange
& lhs,
const
vtkArrayRange
& rhs);
80
VTK_COMMON_EXPORT
friend
bool
operator!=
(
const
vtkArrayRange
& lhs,
const
vtkArrayRange
& rhs);
82
84
VTK_COMMON_EXPORT
friend
ostream&
operator<<
(ostream& stream,
const
vtkArrayRange
& rhs);
85
86
private
:
88
CoordinateT
Begin;
89
91
92
CoordinateT
End;
93
};
95
96
#endif
Generated on Sun Sep 15 2013 03:44:18 for VTK by
1.8.4