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

#include <util.h>

Public Member Functions

 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
 
virtual void print (void) const
 
std::string boundsString () const
 
bool valid (void) const
 
bool empty (void) const
 
bool contains (grk_pt< T > pt)
 
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 set (grk_rect< T > *rhs)
 
void set (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
 
void clipIPL (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 > & growIPL (T boundary)
 
grk_rect< T > & growIPL (T boundaryx, T boundaryy)
 
grk_rect< T > & growIPL (T boundary, T maxX, T maxY)
 
grk_rect< T > & growIPL (T boundaryx, T boundaryy, T maxX, T maxY)
 
grk_rect< T > & growIPL (T boundary, grk_rect< T > bounds)
 
grk_rect< T > & growIPL (T boundaryx, T boundaryy, grk_rect< T > bounds)
 
parityX (void) const
 
parityY (void) const
 

Public Attributes

x0
 
y0
 
x1
 
y1
 

Constructor & Destructor Documentation

◆ grk_rect() [1/4]

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

◆ grk_rect() [2/4]

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

◆ grk_rect() [3/4]

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

◆ grk_rect() [4/4]

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

◆ clipIPL()

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

◆ contains()

template<typename T >
bool grk::grk_rect< T >::contains ( grk_pt< T >  pt)
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

◆ growIPL() [1/6]

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

◆ growIPL() [2/6]

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

◆ growIPL() [3/6]

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

◆ growIPL() [4/6]

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

◆ growIPL() [5/6]

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

◆ growIPL() [6/6]

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

◆ height()

template<typename T >
T grk::grk_rect< T >::height ( void  ) 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

◆ 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

◆ set() [1/2]

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

◆ set() [2/2]

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

◆ valid()

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

◆ width()

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

Member Data Documentation

◆ x0

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

Referenced by grk::SparseCanvas< LBW, LBH >::alloc(), grk::TileComponent::allocWindowBuffer(), grk::grk_rect< T >::area(), grk::grk_rect< T >::boundsString(), grk::grk_rect< T >::clip(), grk::grk_rect< T >::clipIPL(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositePlanar(), grk::compress_synch_with_plugin(), grk::grk_rect< T >::contains(), grk::grk_buf2d< T, A >::copy(), grk::CodeStreamDecompress::decompressTile(), grk::grk_rect< T >::dimX(), grk::GrkImage::duplicate(), grk::grk_rect< T >::empty(), grk::TileProcessor::encodeT2(), grk::GrkImage::generateCompositeBounds(), grk::PacketIter::genPrecinctX0Grid(), grk::ResWindowBuffer< T >::getBandWindow(), grk::SparseCanvas< LBW, LBH >::getBlock(), grk::PrecinctImpl::getCodeBlockBounds(), grk::CodingParams::getTileBounds(), grk::grk_rect< T >::grk_rect(), grk::grk_rect< T >::growIPL(), grk::TileComponent::init(), grk::PacketIter::init(), grk::TileProcessor::init(), grk::grk_rect< T >::intersection(), grk::grk_buf2d< T, A >::isWindowValid(), grk::SparseCanvas< LBW, LBH >::isWindowValid(), grk::grk_rect< T >::nonEmptyIntersection(), grk::Codeblock::operator=(), grk::grk_rect< T >::operator=(), grk::grk_rect< T >::operator==(), grk::grk_rect< T >::pan(), grk::grk_rect< T >::parityX(), grk::PrecinctImpl::PrecinctImpl(), grk::grk_rect< T >::print(), grk::SparseCanvas< LBW, LBH >::readWrite(), grk::grk_rect< T >::rectUnion(), grk::grk_rect< T >::scale(), grk::grk_rect< T >::scaleDown(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownPow2(), grk::CodeStreamDecompress::setDecompressRegion(), grk::SparseCanvas< LBW, LBH >::SparseCanvas(), grk::PacketManager::updateCompressTcpProgressions(), grk::grk_rect< T >::valid(), and grk::grk_rect< T >::width().

◆ x1

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

◆ y0

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

Referenced by grk::SparseCanvas< LBW, LBH >::alloc(), grk::TileComponent::allocWindowBuffer(), grk::grk_rect< T >::area(), grk::grk_rect< T >::boundsString(), grk::grk_rect< T >::clip(), grk::grk_rect< T >::clipIPL(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositePlanar(), grk::compress_synch_with_plugin(), grk::grk_rect< T >::contains(), grk::grk_buf2d< T, A >::copy(), grk::grk_rect< T >::dimY(), grk::GrkImage::duplicate(), grk::grk_rect< T >::empty(), grk::GrkImage::generateCompositeBounds(), grk::PacketIter::genPrecinctY0Grid(), grk::ResWindowBuffer< T >::getBandWindow(), grk::SparseCanvas< LBW, LBH >::getBlock(), grk::PrecinctImpl::getCodeBlockBounds(), grk::CodingParams::getTileBounds(), grk::grk_rect< T >::grk_rect(), grk::grk_rect< T >::growIPL(), grk::grk_rect< T >::height(), grk::TileComponent::init(), grk::PacketIter::init(), grk::TileProcessor::init(), grk::grk_rect< T >::intersection(), grk::grk_buf2d< T, A >::isWindowValid(), grk::SparseCanvas< LBW, LBH >::isWindowValid(), grk::grk_rect< T >::nonEmptyIntersection(), grk::Codeblock::operator=(), grk::grk_rect< T >::operator=(), grk::grk_rect< T >::operator==(), grk::grk_rect< T >::pan(), grk::grk_rect< T >::parityY(), grk::PrecinctImpl::PrecinctImpl(), grk::grk_rect< T >::print(), grk::SparseCanvas< LBW, LBH >::readWrite(), grk::grk_rect< T >::rectUnion(), grk::grk_rect< T >::scale(), grk::grk_rect< T >::scaleDown(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownPow2(), grk::CodeStreamDecompress::setDecompressRegion(), grk::SparseCanvas< LBW, LBH >::SparseCanvas(), grk::PacketManager::updateCompressTcpProgressions(), and grk::grk_rect< T >::valid().

◆ y1

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

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