![]() |
OpendTect-6_4
6.4
|
Integer rectangle class. More...
Public Member Functions | |
PixRectangle (T l=0, T t=0, T r=0, T b=0) | |
PixRectangle (const Point2D< T > &tl, const Point2D< T > &br) | |
PixRectangle (const Point2D< T > &tl, const Size2D< T > &sz) | |
PixRectangle (const Rectangle< T > &) | |
bool | isInside (const Point2D< T > &) const |
bool | isOutside (const Point2D< T > &) const |
bool | isOnSide (const Point2D< T > &) const |
bool | contains (const Point2D< T > &) const |
bool | contains (const PixRectangle< T > &) const |
bool | isInside (const PixRectangle< T > &) const |
PixRectangle< T > | grownBy (double sidesincreasebyfactor=1) const |
![]() | |
Rectangle (T l=0, T t=0, T r=0, T b=0) | |
Rectangle (const Point2D< T > &tl, const Point2D< T > &br) | |
Rectangle (const Point2D< T > &tl, const Size2D< T > &sz) | |
bool | operator== (const Rectangle< T > &) const |
bool | operator!= (const Rectangle< T > &) const |
Point2D< T > | topLeft () const |
Point2D< T > | topRight () const |
Point2D< T > | bottomLeft () const |
Point2D< T > | bottomRight () const |
Point2D< T > | centre () const |
void | setTopLeft (Point2D< T >) |
void | setBottomRight (Point2D< T >) |
void | setTopRight (Point2D< T >) |
void | setBottomLeft (Point2D< T >) |
void | setTopBottom (const Interval< T > &) |
void | setLeftRight (const Interval< T > &) |
Point2D< T > | moveInside (const Point2D< T > &) const |
void | include (const Rectangle< T > &) |
void | include (const Point2D< T > &) |
void | limitTo (const Rectangle< T > &) |
void | translate (const Point2D< T > &) |
bool | operator> (const Rectangle< T > &) const |
T | width () const |
T | height () const |
T | left () const |
T | top () const |
T | right () const |
T | bottom () const |
void | setLeft (T val) |
void | setTop (T val) |
void | setRight (T val) |
void | setBottom (T val) |
bool | checkCorners (bool leftislow=true, bool topislow=true) const |
void | sortCorners (bool leftislow=true, bool topislow=true) |
Size2D< T > | size () const |
void | zero () |
bool | isDefined () const |
Rectangle< T > & | operator+= (const Point2D< T > &) |
Rectangle< T > & | operator-= (const Point2D< T > &) |
Rectangle< T > & | operator+= (const Size2D< T > &) |
Rectangle< T > & | operator-= (const Size2D< T > &) |
void | swapHor () |
void | swapVer () |
bool | revX () const |
bool | revY () const |
Protected Member Functions | |
bool | xOutside (T) const |
bool | yOutside (T) const |
Additional Inherited Members | |
![]() | |
Point2D< T > | topleft_ |
Point2D< T > | bottomright_ |
Integer rectangle class.
The difference with the floating point type rectangle is in range handling. In the float world, everything must be epsiloned. Integer rectangles are more straightforward.
Geom::PixRectangle< T >::PixRectangle | ( | T | l = 0 , |
T | t = 0 , |
||
T | r = 0 , |
||
T | b = 0 |
||
) |
Geom::PixRectangle< T >::PixRectangle | ( | const Point2D< T > & | tl, |
const Point2D< T > & | br | ||
) |
Geom::PixRectangle< T >::PixRectangle | ( | const Point2D< T > & | tl, |
const Size2D< T > & | sz | ||
) |
Geom::PixRectangle< T >::PixRectangle | ( | const Rectangle< T > & | r | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
Generated at 12/02/2019 10:57:37 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019