VTK
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 "vtkCommonCoreModule.h" // For export macro
47 #include "vtkSystemIncludes.h"
48 #include "vtkArrayCoordinates.h"
49 
51 {
52 public:
54 
57 
61 
64 
67 
70 
73  bool Contains(const vtkArrayRange& range) const;
74 
76  bool Contains(const CoordinateT coordinate) const;
77 
79 
80  VTKCOMMONCORE_EXPORT friend bool operator==(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
81  VTKCOMMONCORE_EXPORT friend bool operator!=(const vtkArrayRange& lhs, const vtkArrayRange& rhs);
83 
85  VTKCOMMONCORE_EXPORT friend ostream& operator<<(ostream& stream, const vtkArrayRange& rhs);
86 
87 private:
89  CoordinateT Begin;
90 
92 
93  CoordinateT End;
94 };
96 
97 #endif
98 // VTK-HeaderTest-Exclude: vtkArrayRange.h
vtkArrayRange::vtkArrayRange
vtkArrayRange(CoordinateT begin, CoordinateT end)
vtkArrayRange::operator==
VTKCOMMONCORE_EXPORT friend bool operator==(const vtkArrayRange &lhs, const vtkArrayRange &rhs)
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkArrayRange::operator<<
VTKCOMMONCORE_EXPORT friend ostream & operator<<(ostream &stream, const vtkArrayRange &rhs)
vtkArrayRange
Stores a half-open range of array coordinates.
Definition: vtkArrayRange.h:51
vtkgl::stream
GLuint GLuint stream
Definition: vtkgl.h:14154
vtkgl::end
GLuint GLuint end
Definition: vtkgl.h:11315
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkArrayRange::GetBegin
CoordinateT GetBegin() const
vtkArrayCoordinates.h
vtkArrayRange::operator!=
VTKCOMMONCORE_EXPORT friend bool operator!=(const vtkArrayRange &lhs, const vtkArrayRange &rhs)
vtkCommonCoreModule.h
vtkArrayRange::Contains
bool Contains(const vtkArrayRange &range) const
vtkArrayRange::GetEnd
CoordinateT GetEnd() const
vtkArrayRange::Contains
bool Contains(const CoordinateT coordinate) const
vtkArrayRange::CoordinateT
vtkArrayCoordinates::CoordinateT CoordinateT
Definition: vtkArrayRange.h:53
vtkArrayRange::GetSize
CoordinateT GetSize() const
vtkArrayRange::vtkArrayRange
vtkArrayRange()
vtkArrayCoordinates::CoordinateT
vtkIdType CoordinateT
Definition: vtkArrayCoordinates.h:59
vtkSystemIncludes.h