|
| Bounds () |
| Construct an empty bounds. More...
|
|
| Bounds (const Bounds &)=default |
|
| Bounds (const vtkm::Range &xRange, const vtkm::Range &yRange, const vtkm::Range &zRange) |
| Construct a bounds with a given range in the x, y, and z dimensions. More...
|
|
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > |
| Bounds (const T1 &minX, const T2 &maxX, const T3 &minY, const T4 &maxY, const T5 &minZ, const T6 &maxZ) |
| Construct a bounds with the minimum and maximum coordinates in the x, y, and z directions. More...
|
|
template<typename T > |
| Bounds (const T bounds[6]) |
| Initialize bounds with an array of 6 values in the order xmin, xmax, ymin, ymax, zmin, zmax. More...
|
|
template<typename T > |
| Bounds (const vtkm::Vec< T, 3 > &minPoint, const vtkm::Vec< T, 3 > &maxPoint) |
| Initialize bounds with the minimum corner point and the maximum corner point. More...
|
|
vtkm::Bounds & | operator= (const vtkm::Bounds &src)=default |
|
bool | IsNonEmpty () const |
| Determine if the bounds are valid (i.e. More...
|
|
template<typename T > |
bool | Contains (const vtkm::Vec< T, 3 > &point) const |
| Determines if a point coordinate is within the bounds. More...
|
|
vtkm::Float64 | Volume () const |
| Returns the volume of the bounds. More...
|
|
vtkm::Float64 | Area () const |
| Returns the area of the bounds in the X-Y-plane. More...
|
|
vtkm::Vec3f_64 | Center () const |
| Returns the center of the range. More...
|
|
vtkm::Vec3f_64 | MinCorner () const |
| Returns the min point of the bounds More...
|
|
vtkm::Vec3f_64 | MaxCorner () const |
| Returns the max point of the bounds More...
|
|
template<typename T > |
void | Include (const vtkm::Vec< T, 3 > &point) |
| Expand bounds to include a point. More...
|
|
void | Include (const vtkm::Bounds &bounds) |
| Expand bounds to include other bounds. More...
|
|
vtkm::Bounds | Union (const vtkm::Bounds &otherBounds) const |
| Return the union of this and another bounds. More...
|
|
vtkm::Bounds | Intersection (const vtkm::Bounds &otherBounds) const |
| Return the intersection of this and another range. More...
|
|
vtkm::Bounds | operator+ (const vtkm::Bounds &otherBounds) const |
| Operator for union More...
|
|
bool | operator== (const vtkm::Bounds &bounds) const |
|
bool | operator!= (const vtkm::Bounds &bounds) const |
|
Represent an axis-aligned 3D bounds in space.
vtkm::Bounds
is a helper class for representing the axis-aligned box representing some region in space. The typical use of this class is to express the containing box of some geometry. The box is specified as ranges in the x, y, and z directions.
Bounds
also contains several helper functions for computing and maintaining the bounds.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
vtkm::Bounds::Bounds |
( |
const T1 & |
minX, |
|
|
const T2 & |
maxX, |
|
|
const T3 & |
minY, |
|
|
const T4 & |
maxY, |
|
|
const T5 & |
minZ, |
|
|
const T6 & |
maxZ |
|
) |
| |
|
inline |
Construct a bounds with the minimum and maximum coordinates in the x, y, and z directions.
bool vtkm::Bounds::IsNonEmpty |
( |
| ) |
const |
|
inline |
Determine if the bounds are valid (i.e.
has at least one valid point).
IsNonEmpty
returns true if the bounds contain some valid points. If the bounds are any real region, even if a single point or it expands to infinity, true is returned.