Grok 12.0.1
Public Member Functions | Public Attributes | List of all members
grk::grk_rect< T > Struct Template Reference

#include <geometry.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< T >::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< T >::grk_rect ( T x0,
T y0,
T x1,
T y1 )
inline

◆ grk_rect() [3/5]

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

◆ grk_rect() [4/5]

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

◆ grk_rect() [5/5]

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

◆ ~grk_rect()

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

Member Function Documentation

◆ area()

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

◆ boundsString()

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

◆ clip() [1/2]

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

◆ clip() [2/2]

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

◆ clip_IN_PLACE()

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

◆ contains() [1/2]

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

◆ contains() [2/2]

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

◆ dimX()

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

◆ dimY()

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

◆ empty()

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

◆ grow_IN_PLACE() [1/6]

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

◆ grow_IN_PLACE() [2/6]

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

◆ grow_IN_PLACE() [3/6]

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

◆ grow_IN_PLACE() [4/6]

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

◆ grow_IN_PLACE() [5/6]

template<typename T >
grk_rect< T > & grk::grk_rect< T >::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< T >::grow_IN_PLACE ( T boundaryx,
T boundaryy,
T maxX,
T maxY )
inline

◆ height()

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

◆ intersection() [1/2]

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

◆ intersection() [2/2]

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

◆ isContainedIn()

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

◆ nonEmptyIntersection()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

◆ pan()

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

References grk::grk_read().

◆ pan_IN_PLACE()

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

◆ parityX()

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

◆ parityY()

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

◆ print()

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

◆ rectUnion() [1/2]

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

◆ rectUnion() [2/2]

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

◆ scale()

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

◆ scaleDown()

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

◆ scaleDownCeil() [1/2]

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

◆ scaleDownCeil() [2/2]

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

◆ scaleDownCeilPow2() [1/2]

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

◆ scaleDownCeilPow2() [2/2]

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

◆ scaleDownPow2() [1/2]

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

◆ scaleDownPow2() [2/2]

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

◆ setOrigin() [1/3]

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

◆ setOrigin() [2/3]

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

◆ setOrigin() [3/3]

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

◆ setRect() [1/2]

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

◆ setRect() [2/2]

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

◆ toAbsolute()

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

◆ toRelative()

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

◆ valid()

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

◆ width()

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

Member Data Documentation

◆ absoluteCoordinates

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

◆ origin_x0

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

◆ origin_y0

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

◆ x0

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

◆ x1

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

◆ y0

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

◆ y1

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

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