Grok 10.0.5
grk::grk::grk_rect< T > Struct Template Reference

#include <TileCache.h>

Public Member Functions

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

Public Attributes

bool absoluteCoordinates
 
origin_x0
 
origin_y0
 
x0
 
y0
 
x1
 
y1
 

Constructor & Destructor Documentation

◆ grk_rect() [1/5]

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

◆ grk_rect() [2/5]

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

◆ grk_rect() [3/5]

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

◆ grk_rect() [4/5]

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

◆ grk_rect() [5/5]

template<typename T >
grk::grk_rect::grk_rect ( void )
inline

◆ ~grk_rect()

template<typename T >
grk::grk_rect::~grk_rect ( )
virtualdefault

Member Function Documentation

◆ area()

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

◆ boundsString()

template<typename T >
std::string grk::grk_rect::boundsString ( ) const
inline

◆ clip() [1/2]

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

◆ clip() [2/2]

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

◆ clip_IN_PLACE()

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

◆ contains() [1/2]

template<typename T >
bool grk::grk_rect::contains ( grk_pt< T > pt)
inline

◆ contains() [2/2]

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

◆ dimX()

template<typename T >
grk_line< T > grk::grk_rect::dimX ( ) const
inline

◆ dimY()

template<typename T >
grk_line< T > grk::grk_rect::dimY ( ) const
inline

◆ empty()

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

◆ grow_IN_PLACE() [1/6]

template<typename T >
grk_rect< T > & grk::grk_rect::grow_IN_PLACE ( T boundary)
inline

◆ grow_IN_PLACE() [2/6]

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

◆ grow_IN_PLACE() [3/6]

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

◆ grow_IN_PLACE() [4/6]

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

◆ grow_IN_PLACE() [5/6]

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

◆ grow_IN_PLACE() [6/6]

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

◆ height()

◆ intersection() [1/2]

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

◆ intersection() [2/2]

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

◆ isContainedIn()

template<typename T >
bool grk::grk_rect::isContainedIn ( const grk_rect< T > rhs) const
inline

◆ nonEmptyIntersection()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

◆ pan()

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

◆ pan_IN_PLACE()

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

◆ parityX()

template<typename T >
T grk::grk_rect::parityX ( void ) const
inline

◆ parityY()

template<typename T >
T grk::grk_rect::parityY ( void ) const
inline

◆ print()

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

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

◆ rectUnion() [1/2]

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

◆ rectUnion() [2/2]

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

◆ scale()

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

◆ scaleDown()

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

◆ scaleDownCeil() [1/2]

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

◆ scaleDownCeil() [2/2]

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

◆ scaleDownCeilPow2() [1/2]

template<typename T >
grk_rect< T > grk::grk_rect::scaleDownCeilPow2 ( uint32_t power) const
inline

◆ scaleDownCeilPow2() [2/2]

template<typename T >
grk_rect< T > grk::grk_rect::scaleDownCeilPow2 ( uint32_t powx,
uint32_t powy ) const
inline

◆ scaleDownPow2() [1/2]

template<typename T >
grk_rect< T > grk::grk_rect::scaleDownPow2 ( grk_pt< T > pow) const
inline

◆ scaleDownPow2() [2/2]

template<typename T >
grk_rect< T > grk::grk_rect::scaleDownPow2 ( uint32_t powx,
uint32_t powy ) const
inline

◆ setOrigin() [1/3]

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

◆ setOrigin() [2/3]

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

◆ setOrigin() [3/3]

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

◆ setRect() [1/2]

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

◆ setRect() [2/2]

template<typename T >
void grk::grk_rect::setRect ( grk_rect< T > rhs)
inline

◆ toAbsolute()

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

◆ toRelative()

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

◆ valid()

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

◆ width()

Member Data Documentation

◆ absoluteCoordinates

template<typename T >
bool grk::grk::grk_rect< T >::absoluteCoordinates

◆ origin_x0

template<typename T >
T grk::grk::grk_rect< T >::origin_x0

◆ origin_y0

template<typename T >
T grk::grk::grk_rect< T >::origin_y0

◆ x0

◆ x1

◆ y0

◆ y1


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