VTK
9.0.1
Common
Core
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
38
#ifndef vtkArrayRange_h
39
#define vtkArrayRange_h
40
41
#include "
vtkArrayCoordinates.h
"
42
#include "vtkCommonCoreModule.h"
// For export macro
43
#include "
vtkSystemIncludes.h
"
44
45
class
VTKCOMMONCORE_EXPORT
vtkArrayRange
46
{
47
public
:
48
typedef
vtkArrayCoordinates::CoordinateT
CoordinateT
;
49
53
vtkArrayRange
();
54
60
vtkArrayRange
(
CoordinateT
begin,
CoordinateT
end);
61
65
CoordinateT
GetBegin()
const
;
66
70
CoordinateT
GetEnd()
const
;
71
75
CoordinateT
GetSize()
const
;
76
81
bool
Contains(
const
vtkArrayRange
&
range
)
const
;
82
86
bool
Contains(
const
CoordinateT
coordinate)
const
;
87
89
92
VTKCOMMONCORE_EXPORT
friend
bool
operator==
(
const
vtkArrayRange
& lhs,
const
vtkArrayRange
& rhs);
93
VTKCOMMONCORE_EXPORT
friend
bool
operator!=
(
const
vtkArrayRange
& lhs,
const
vtkArrayRange
& rhs);
95
99
VTKCOMMONCORE_EXPORT
friend
ostream&
operator<<
(ostream& stream,
const
vtkArrayRange
& rhs);
100
101
private
:
105
CoordinateT
Begin;
106
108
111
CoordinateT
End;
113
};
114
115
#endif
116
// VTK-HeaderTest-Exclude: vtkArrayRange.h
vtkArrayRange
Stores a half-open range of array coordinates.
Definition:
vtkArrayRange.h:45
vtkX3D::range
@ range
Definition:
vtkX3D.h:244
vtkArrayCoordinates.h
operator==
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
operator<<
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
vtkArrayRange::CoordinateT
vtkArrayCoordinates::CoordinateT CoordinateT
Definition:
vtkArrayRange.h:48
operator!=
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkArrayCoordinates::CoordinateT
vtkIdType CoordinateT
Definition:
vtkArrayCoordinates.h:54
vtkSystemIncludes.h
Generated on Thu Jun 25 2020 08:30:13 for VTK by
1.8.17