Grok 20.3.2
grk::Rect< T > Struct Template Reference

#include <geometry.h>

Public Member Functions

 Rect (T origin_x0, T origin_y0, T x0, T y0, T x1, T y1)
 Rect (T x0, T y0, T x1, T y1)
 Rect (const Rect &rhs)
 Rect (const Rect *rhs)
 Rect (void)
virtual ~Rect ()=default
Rect< T > & setOrigin (T origx, T origy, bool absolute)
Rect< T > & setOrigin (const Rect< T > &rhs, bool absolute)
Rect< T > & setOrigin (const Rect< T > *rhs, bool absolute)
Rect< T > & toRelative (void)
Rect< T > & toAbsolute (void)
virtual void print (void) const
bool valid (void) const
bool empty (void) const
bool contains (Point< T > pt)
bool contains (T x, T y)
Rect< T > & operator= (const Rect &rhs)
Rect< T > & operator= (const Rect *rhs)
bool operator!= (const Rect &other) const
bool operator== (const Rect &rhs) const
void setRect (const Rect *rhs)
void setRect (const Rect &rhs)
Rect< T > scaleDownCeil (uint32_t den) const
Rect< T > scale (uint32_t scalex, uint32_t scaley) const
Rect< T > scaleDown (uint64_t denx, uint64_t deny) const
Rect< T > scaleDownPow2 (uint8_t powx, uint8_t powy) const
Rect< T > scaleDownPow2 (Point8 pow) const
Rect< T > scaleDownCeil (uint64_t denx, uint64_t deny) const
Rect< T > scaleDownCeilPow2 (uint8_t power) const
Rect< T > scaleDownCeilPow2 (uint8_t powx, uint8_t powy) const
Rect< T > intersection (const Rect< T > &rhs) const
Rect< T > clip (const Rect *rhs) const
Rect< T > clip (const Rect32_16 &rhs) const
Rect< T > clip (const Rect32_16 *rhs) const
Rect< T > clip (const Rect &rhs) const
Rect< T > & clip_IN_PLACE (const Rect &rhs)
Rect< T > intersection (const Rect *rhs) const
bool nonEmptyIntersection (const Rect *rhs) const
bool nonEmptyIntersection (const Rect32_16 *rhs) const
Rect< T > rectUnion (const Rect *rhs) const
Rect< T > rectUnion (const Rect &rhs) const
uint64_t area (void) const
width () const
height () const
Line< T > dimX () const
Line< T > dimY () const
Rect< T > pan (int64_t x, int64_t y) const
Rect< T > & pan_IN_PLACE (int64_t x, int64_t y)
Rect< T > & grow_IN_PLACE (T boundary)
Rect< T > & grow_IN_PLACE (T boundaryx, T boundaryy)
Rect< T > & grow_IN_PLACE (T boundary, T maxX, T maxY)
Rect< T > & grow_IN_PLACE (T boundaryx, T boundaryy, T maxX, T maxY)
Rect< T > & grow_IN_PLACE (T boundary, const Rect< T > &bounds)
Rect< T > & grow_IN_PLACE (T boundaryx, T boundaryy, Rect bounds)

Public Attributes

bool absoluteCoordinates
origin_x0
origin_y0
x0
y0
x1
y1

Constructor & Destructor Documentation

◆ Rect() [1/5]

template<typename T>
grk::Rect< T >::Rect ( T origin_x0,
T origin_y0,
T x0,
T y0,
T x1,
T y1 )
inline

◆ Rect() [2/5]

template<typename T>
grk::Rect< T >::Rect ( T x0,
T y0,
T x1,
T y1 )
inline

◆ Rect() [3/5]

template<typename T>
grk::Rect< T >::Rect ( const Rect< T > & rhs)
inline

◆ Rect() [4/5]

template<typename T>
grk::Rect< T >::Rect ( const Rect< T > * rhs)
inlineexplicit

◆ Rect() [5/5]

◆ ~Rect()

template<typename T>
virtual grk::Rect< T >::~Rect ( )
virtualdefault

Member Function Documentation

◆ area()

template<typename T>
uint64_t grk::Rect< T >::area ( void ) const
inline

◆ clip() [1/4]

template<typename T>
Rect< T > grk::Rect< T >::clip ( const Rect< T > & rhs) const
inline

◆ clip() [2/4]

template<typename T>
Rect< T > grk::Rect< T >::clip ( const Rect< T > * rhs) const
inline

◆ clip() [3/4]

template<typename T>
Rect< T > grk::Rect< T >::clip ( const Rect32_16 & rhs) const
inline

◆ clip() [4/4]

template<typename T>
Rect< T > grk::Rect< T >::clip ( const Rect32_16 * rhs) const
inline

◆ clip_IN_PLACE()

template<typename T>
Rect< T > & grk::Rect< T >::clip_IN_PLACE ( const Rect< T > & rhs)
inline

◆ contains() [1/2]

template<typename T>
bool grk::Rect< T >::contains ( Point< T > pt)
inline

◆ contains() [2/2]

template<typename T>
bool grk::Rect< T >::contains ( T x,
T y )
inline

◆ dimX()

template<typename T>
Line< T > grk::Rect< T >::dimX ( ) const
inline

◆ dimY()

template<typename T>
Line< T > grk::Rect< T >::dimY ( ) const
inline

◆ empty()

template<typename T>
bool grk::Rect< T >::empty ( void ) const
inline

◆ grow_IN_PLACE() [1/6]

◆ grow_IN_PLACE() [2/6]

template<typename T>
Rect< T > & grk::Rect< T >::grow_IN_PLACE ( T boundary,
const Rect< T > & bounds )
inline

◆ grow_IN_PLACE() [3/6]

template<typename T>
Rect< T > & grk::Rect< T >::grow_IN_PLACE ( T boundary,
T maxX,
T maxY )
inline

◆ grow_IN_PLACE() [4/6]

template<typename T>
Rect< T > & grk::Rect< T >::grow_IN_PLACE ( T boundaryx,
T boundaryy )
inline

◆ grow_IN_PLACE() [5/6]

template<typename T>
Rect< T > & grk::Rect< T >::grow_IN_PLACE ( T boundaryx,
T boundaryy,
Rect< T > bounds )
inline

◆ grow_IN_PLACE() [6/6]

template<typename T>
Rect< T > & grk::Rect< T >::grow_IN_PLACE ( T boundaryx,
T boundaryy,
T maxX,
T maxY )
inline

◆ height()

◆ intersection() [1/2]

template<typename T>
Rect< T > grk::Rect< T >::intersection ( const Rect< T > * rhs) const
inline

◆ intersection() [2/2]

◆ nonEmptyIntersection() [1/2]

template<typename T>
bool grk::Rect< T >::nonEmptyIntersection ( const Rect< T > * rhs) const
inline

◆ nonEmptyIntersection() [2/2]

template<typename T>
bool grk::Rect< T >::nonEmptyIntersection ( const Rect32_16 * rhs) const
inline

◆ operator!=()

template<typename T>
bool grk::Rect< T >::operator!= ( const Rect< T > & other) const
inline

◆ operator=() [1/2]

template<typename T>
Rect< T > & grk::Rect< T >::operator= ( const Rect< T > & rhs)
inline

◆ operator=() [2/2]

template<typename T>
Rect< T > & grk::Rect< T >::operator= ( const Rect< T > * rhs)
inline

◆ operator==()

template<typename T>
bool grk::Rect< T >::operator== ( const Rect< T > & rhs) const
inline

◆ pan()

template<typename T>
Rect< T > grk::Rect< T >::pan ( int64_t x,
int64_t y ) const
inline

◆ pan_IN_PLACE()

template<typename T>
Rect< T > & grk::Rect< T >::pan_IN_PLACE ( int64_t x,
int64_t y )
inline

◆ print()

template<typename T>
virtual void grk::Rect< T >::print ( void ) const
inlinevirtual

Reimplemented in grk::Resolution, and grk::Subband.

◆ rectUnion() [1/2]

template<typename T>
Rect< T > grk::Rect< T >::rectUnion ( const Rect< T > & rhs) const
inline

◆ rectUnion() [2/2]

template<typename T>
Rect< T > grk::Rect< T >::rectUnion ( const Rect< T > * rhs) const
inline

◆ scale()

template<typename T>
Rect< T > grk::Rect< T >::scale ( uint32_t scalex,
uint32_t scaley ) const
inline

◆ scaleDown()

template<typename T>
Rect< T > grk::Rect< T >::scaleDown ( uint64_t denx,
uint64_t deny ) const
inline

◆ scaleDownCeil() [1/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownCeil ( uint32_t den) const
inline

◆ scaleDownCeil() [2/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownCeil ( uint64_t denx,
uint64_t deny ) const
inline

◆ scaleDownCeilPow2() [1/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownCeilPow2 ( uint8_t power) const
inline

◆ scaleDownCeilPow2() [2/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownCeilPow2 ( uint8_t powx,
uint8_t powy ) const
inline

◆ scaleDownPow2() [1/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownPow2 ( Point8 pow) const
inline

◆ scaleDownPow2() [2/2]

template<typename T>
Rect< T > grk::Rect< T >::scaleDownPow2 ( uint8_t powx,
uint8_t powy ) const
inline

◆ setOrigin() [1/3]

template<typename T>
Rect< T > & grk::Rect< T >::setOrigin ( const Rect< T > & rhs,
bool absolute )
inline

◆ setOrigin() [2/3]

template<typename T>
Rect< T > & grk::Rect< T >::setOrigin ( const Rect< T > * rhs,
bool absolute )
inline

◆ setOrigin() [3/3]

template<typename T>
Rect< T > & grk::Rect< T >::setOrigin ( T origx,
T origy,
bool absolute )
inline

◆ setRect() [1/2]

template<typename T>
void grk::Rect< T >::setRect ( const Rect< T > & rhs)
inline

◆ setRect() [2/2]

template<typename T>
void grk::Rect< T >::setRect ( const Rect< T > * rhs)
inline

◆ toAbsolute()

template<typename T>
Rect< T > & grk::Rect< T >::toAbsolute ( void )
inline

◆ toRelative()

template<typename T>
Rect< T > & grk::Rect< T >::toRelative ( void )
inline

◆ valid()

template<typename T>
bool grk::Rect< T >::valid ( void ) const
inline

◆ width()

Member Data Documentation

◆ absoluteCoordinates

◆ origin_x0

◆ origin_y0

◆ x0

◆ x1

◆ y0

◆ y1


The documentation for this struct was generated from the following file: