OpendTect 8.0
Loading...
Searching...
No Matches
uiRect Class Reference

#include <uigeom.h>

Inheritance diagram for uiRect:
[legend]

Public Types

enum  Side { Left , Right , Top , Bottom }
 

Public Member Functions

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

Static Public Member Functions

static uiRect::Side across (uiRect::Side)
 
static uiRect::Side clockWise (uiRect::Side)
 
static bool isHor (Side s)
 
static uiRect udf ()
 
- Static Public Member Functions inherited from Geom::PixRectangle< int >
static PixRectangle udf ()
 
- Static Public Member Functions inherited from Geom::Rectangle< int >
static Rectangle udf ()
 

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 > bottomright_
 
Point2D< int > topleft_
 

Member Enumeration Documentation

◆ Side

Enumerator
Left 
Right 
Top 
Bottom 

Constructor & Destructor Documentation

◆ uiRect() [1/4]

uiRect::uiRect ( int l = 0,
int t = 0,
int r = 0,
int b = 0 )
inline

◆ uiRect() [2/4]

uiRect::uiRect ( const uiPoint & tl,
const uiPoint & br )
inline

◆ uiRect() [3/4]

uiRect::uiRect ( const uiPoint & tl,
const uiSize & sz )
inline

◆ uiRect() [4/4]

uiRect::uiRect ( const Geom::PixRectangle< int > & pr)
inline

◆ ~uiRect()

uiRect::~uiRect ( )

Member Function Documentation

◆ across()

uiRect::Side uiRect::across ( uiRect::Side s)
inlinestatic

◆ bottomTo()

void uiRect::bottomTo ( int ref)
inline

◆ bottomToAtLeast()

bool uiRect::bottomToAtLeast ( int ref)
inline

◆ clockWise()

uiRect::Side uiRect::clockWise ( uiRect::Side s)
inlinestatic

◆ expandTo()

void uiRect::expandTo ( const uiRect & oth)
inline

◆ get()

int uiRect::get ( uiRect::Side s) const
inline

◆ getPixelSize()

uiSize uiRect::getPixelSize ( ) const
inline

◆ hNrPics()

int uiRect::hNrPics ( ) const
inline

◆ isHor()

static bool uiRect::isHor ( Side s)
inlinestatic

◆ leftTo()

void uiRect::leftTo ( int ref)
inline

◆ leftToAtLeast()

bool uiRect::leftToAtLeast ( int ref)
inline

◆ rightTo()

void uiRect::rightTo ( int ref)
inline

◆ rightToAtLeast()

bool uiRect::rightToAtLeast ( int ref)
inline

◆ selectArea()

uiRect uiRect::selectArea ( const uiRect & other) const
inline

◆ set()

void uiRect::set ( uiRect::Side s,
int i )
inline

◆ setHNrPics()

void uiRect::setHNrPics ( int np)
inline

nr of pics should be > 0

◆ setVNrPics()

void uiRect::setVNrPics ( int np)
inline

nr of pics should be > 0

◆ topTo()

void uiRect::topTo ( int ref)
inline

◆ topToAtLeast()

bool uiRect::topToAtLeast ( int ref)
inline

◆ udf()

static uiRect uiRect::udf ( )
inlinestatic

◆ vNrPics()

int uiRect::vNrPics ( ) const
inline

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