OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | List of all members
uiRect Class Reference
Inheritance diagram for uiRect:
[legend]

Public Types

enum  Side { Left, Right, Top, Bottom }
 

Public Member Functions

 mDeclareEnumUtils (Side) static inline bool isHor(Side s)
 
 uiRect (int l=0, int t=0, int r=0, int b=0)
 
 uiRect (const uiPoint &tl, const uiPoint &br)
 
 uiRect (const uiPoint &tl, const uiSize &sz)
 
 uiRect (const Geom::PixRectangle< int > &)
 
uiSize getPixelSize () const
 
uiRect selectArea (const uiRect &other) const
 
bool topToAtLeast (int ref)
 
void topTo (int ref)
 
bool bottomToAtLeast (int ref)
 
void bottomTo (int ref)
 
bool leftToAtLeast (int ref)
 
void leftTo (int ref)
 
void rightTo (int ref)
 
bool rightToAtLeast (int ref)
 
void expandTo (const uiRect &oth)
 
int hNrPics () const
 
int vNrPics () const
 
void setHNrPics (int np)
 nr of pics should be > 0 More...
 
void setVNrPics (int np)
 nr of pics should be > 0 More...
 
int get (Side) const
 
void set (Side, int)
 
- Public Member Functions inherited from Geom::PixRectangle< int >
 PixRectangle (int l=0, int t=0, int r=0, int b=0)
 
 PixRectangle (const Point2D< int > &tl, const Point2D< int > &br)
 
 PixRectangle (const Point2D< int > &tl, const Size2D< int > &sz)
 
 PixRectangle (const Rectangle< int > &)
 
bool isInside (const Point2D< int > &) const
 
bool isInside (const PixRectangle< int > &) const
 
bool isOutside (const Point2D< int > &) const
 
bool isOnSide (const Point2D< int > &) const
 
bool contains (const Point2D< int > &) const
 
bool contains (const PixRectangle< int > &) const
 
PixRectangle< int > grownBy (double sidesincreasebyfactor=1) const
 
- Public Member Functions inherited from Geom::Rectangle< int >
 Rectangle (int l=0, int t=0, int r=0, int b=0)
 
 Rectangle (const Point2D< int > &tl, const Point2D< int > &br)
 
 Rectangle (const Point2D< int > &tl, const Size2D< int > &sz)
 
bool operator== (const Rectangle< int > &) const
 
bool operator!= (const Rectangle< int > &) const
 
Point2D< int > topLeft () const
 
Point2D< int > topRight () const
 
Point2D< int > bottomLeft () const
 
Point2D< int > bottomRight () const
 
Point2D< int > centre () const
 
void setTopLeft (Point2D< int >)
 
void setBottomRight (Point2D< int >)
 
void setTopRight (Point2D< int >)
 
void setBottomLeft (Point2D< int >)
 
void setTopBottom (const Interval< int > &)
 
void setLeftRight (const Interval< int > &)
 
Point2D< int > moveInside (const Point2D< int > &) const
 
void include (const Rectangle< int > &)
 
void include (const Point2D< int > &)
 
void limitTo (const Rectangle< int > &)
 
void translate (const Point2D< int > &)
 
bool operator> (const Rectangle< int > &) const
 
int width () const
 
int height () const
 
int left () const
 
int top () const
 
int right () const
 
int bottom () const
 
void setLeft (int val)
 
void setTop (int val)
 
void setRight (int val)
 
void setBottom (int val)
 
bool checkCorners (bool leftislow=true, bool topislow=true) const
 
void sortCorners (bool leftislow=true, bool topislow=true)
 
Size2D< int > size () const
 
void zero ()
 
bool isDefined () const
 
Rectangle< int > & operator+= (const Point2D< int > &)
 
Rectangle< int > & operator+= (const Size2D< int > &)
 
Rectangle< int > & operator-= (const Point2D< int > &)
 
Rectangle< int > & operator-= (const Size2D< int > &)
 
void swapHor ()
 
void swapVer ()
 
bool revX () const
 
bool revY () const
 

Static Public Member Functions

static uiRect::Side across (uiRect::Side)
 
static uiRect::Side clockWise (uiRect::Side)
 

Additional Inherited Members

- Protected Member Functions inherited from Geom::PixRectangle< int >
bool xOutside (int) const
 
bool yOutside (int) const
 
- Protected Attributes inherited from Geom::Rectangle< int >
Point2D< int > topleft_
 
Point2D< int > bottomright_
 

Detailed Description

Member Enumeration Documentation

Enumerator
Left 
Right 
Top 
Bottom 

Constructor & Destructor Documentation

uiRect::uiRect ( int  l = 0,
int  t = 0,
int  r = 0,
int  b = 0 
)
inline
uiRect::uiRect ( const uiPoint tl,
const uiPoint br 
)
inline
uiRect::uiRect ( const uiPoint tl,
const uiSize sz 
)
inline
uiRect::uiRect ( const Geom::PixRectangle< int > &  pr)
inline

Member Function Documentation

uiRect::Side uiRect::across ( uiRect::Side  s)
inlinestatic
void uiRect::bottomTo ( int  ref)
inline
bool uiRect::bottomToAtLeast ( int  ref)
inline
uiRect::Side uiRect::clockWise ( uiRect::Side  s)
inlinestatic
void uiRect::expandTo ( const uiRect oth)
inline
int uiRect::get ( uiRect::Side  s) const
inline
uiSize uiRect::getPixelSize ( ) const
inline
int uiRect::hNrPics ( ) const
inline
void uiRect::leftTo ( int  ref)
inline
bool uiRect::leftToAtLeast ( int  ref)
inline
uiRect::mDeclareEnumUtils ( Side  )
inline
void uiRect::rightTo ( int  ref)
inline
bool uiRect::rightToAtLeast ( int  ref)
inline
uiRect uiRect::selectArea ( const uiRect other) const
inline
void uiRect::set ( uiRect::Side  s,
int  i 
)
inline
void uiRect::setHNrPics ( int  np)
inline

nr of pics should be > 0

void uiRect::setVNrPics ( int  np)
inline

nr of pics should be > 0

void uiRect::topTo ( int  ref)
inline
bool uiRect::topToAtLeast ( int  ref)
inline
int uiRect::vNrPics ( ) const
inline

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019