5#include "../global.hpp"
6#include "../value_range.hpp"
7#include "../point_3d.hpp"
38 : data_({samples, lines, bands})
117 return data_[0].Contains(value[0]) && data_[1].Contains(value[1]) && data_[2].Contains(value[2]);
129 return other.data_[0].IntersectsWith(data_[0]) && other.data_[1].IntersectsWith(data_[1])
130 && other.data_[2].IntersectsWith(data_[2]);
141 return data_ == cubeRange.data_;
152 return !(*
this == cubeRange);
void SetLines(ValueRange< int > lines)
Sets the range regarding the lines dimension.
Definition cube_range.hpp:81
ValueRange< int > Samples() const noexcept
Gets the range regarding the samples dimension.
Definition cube_range.hpp:48
ValueRange< int > Bands() const noexcept
Gets the range regarding bands dimension.
Definition cube_range.hpp:92
void SetSamples(ValueRange< int > samples) noexcept
Sets the range regarding samples dimension.
Definition cube_range.hpp:59
bool Contains(Vector3D< int > value) const noexcept
Checks if a the 3D value is inside the cube range.
Definition cube_range.hpp:115
bool operator!=(const CubeRange &cubeRange) const noexcept
Compares to an other cube range.
Definition cube_range.hpp:150
bool operator==(const CubeRange &cubeRange) const noexcept
Compares to an other cube range.
Definition cube_range.hpp:139
void SetBands(ValueRange< int > bands) noexcept
Sets the range regarding bands dimension.
Definition cube_range.hpp:103
bool IntersectsWith(CubeRange other) const noexcept
Checks if this cuboid intersects with another cube range.
Definition cube_range.hpp:127
CubeRange() noexcept=default
Creates a default cube range with value ranges from 0.0 to 0.0.
ValueRange< int > Lines() const noexcept
Gets the range regarding lines dimension.
Definition cube_range.hpp:70
Container for range definitions.
Definition value_range.hpp:17
Namespace for the Spectral package.
Definition arithmetic.hpp:14
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
Point3D< T > Vector3D
Alias for Point3D.
Definition point_3d.hpp:363