Grok 14.0.0
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]

◆ grk_rect() [5/5]

◆ ~grk_rect()

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

Member Function Documentation

◆ area()

◆ boundsString()

◆ clip() [1/2]

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

◆ clip() [2/2]

◆ clip_IN_PLACE()

◆ contains() [1/2]

◆ 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]

◆ 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()

◆ intersection() [1/2]

◆ intersection() [2/2]

◆ 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]

◆ operator==()

◆ pan()

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

◆ 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()

◆ rectUnion() [1/2]

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

◆ rectUnion() [2/2]

◆ scale()

◆ scaleDown()

◆ scaleDownCeil() [1/2]

◆ scaleDownCeil() [2/2]

◆ scaleDownCeilPow2() [1/2]

◆ scaleDownCeilPow2() [2/2]

◆ scaleDownPow2() [1/2]

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

◆ scaleDownPow2() [2/2]

◆ setOrigin() [1/3]

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

◆ setOrigin() [2/3]

◆ setOrigin() [3/3]

◆ 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()

◆ toRelative()

◆ valid()

◆ width()

Member Data Documentation

◆ absoluteCoordinates

◆ origin_x0

◆ origin_y0

◆ x0

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

Referenced by grk::SparseCanvas< LBW, LBH >::alloc(), grk::grk_rect< T >::area(), grk::grk_rect< T >::boundsString(), grk::TileComponent::canCreateWindow(), grk::grk_rect< T >::clip(), grk::grk_rect< T >::clip_IN_PLACE(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositePlanar(), grk::compress_synch_with_plugin(), grk::grk_rect< T >::contains(), grk::grk_buf2d< T, A >::copyFrom(), grk::grk_rect< T >::dimX(), grk::GrkImage::duplicate(), grk::grk_rect< T >::empty(), grk::TileProcessor::encodeT2(), grk::PacketIter::genPrecinctX0Grid(), grk::ResWindow< T >::genSplitWindowBuffers(), grk::ResSimple::getBandWindow(), grk::SparseCanvas< LBW, LBH >::getBlock(), grk::PrecinctImpl::getCodeBlockBounds(), grk::CodingParams::getTileBounds(), grk::grk_rect< T >::grk_rect(), grk::grk_rect< T >::grow_IN_PLACE(), grk::PacketIter::init(), grk::TileComponent::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::grk_rect< T >::operator=(), grk::grk_rect< T >::operator==(), grk::grk_rect< T >::pan_IN_PLACE(), 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 >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownPow2(), grk::TileSet::schedule(), grk::CompressScheduler::scheduleBlocks(), grk::CodeStreamDecompress::setDecompressRegion(), grk::grk_rect< T >::setOrigin(), grk::grk_rect< T >::setOrigin(), grk::grk_rect< T >::toRelative(), 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::grk_rect< T >::area(), grk::grk_rect< T >::boundsString(), grk::TileComponent::canCreateWindow(), grk::grk_rect< T >::clip(), grk::grk_rect< T >::clip_IN_PLACE(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositeInterleaved(), grk::GrkImage::compositePlanar(), grk::compress_synch_with_plugin(), grk::grk_rect< T >::contains(), grk::grk_buf2d< T, A >::copyFrom(), grk::grk_rect< T >::dimY(), grk::GrkImage::duplicate(), grk::grk_rect< T >::empty(), grk::PacketIter::genPrecinctY0Grid(), grk::ResWindow< T >::genSplitWindowBuffers(), grk::ResSimple::getBandWindow(), grk::SparseCanvas< LBW, LBH >::getBlock(), grk::PrecinctImpl::getCodeBlockBounds(), grk::CodingParams::getTileBounds(), grk::grk_rect< T >::grk_rect(), grk::grk_rect< T >::grow_IN_PLACE(), grk::grk_rect< T >::height(), grk::PacketIter::init(), grk::TileComponent::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::grk_rect< T >::operator=(), grk::grk_rect< T >::operator==(), grk::grk_rect< T >::pan_IN_PLACE(), grk::grk_rect< T >::parityY(), grk::PrecinctImpl::PrecinctImpl(), grk::grk_rect< T >::print(), grk::SparseCanvas< LBW, LBH >::readWrite(), grk::grk_rect< T >::rectUnion(), grk::ResWindow< T >::ResWindow(), grk::grk_rect< T >::scale(), grk::grk_rect< T >::scaleDown(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownPow2(), grk::TileSet::schedule(), grk::CodeStreamDecompress::setDecompressRegion(), grk::grk_rect< T >::setOrigin(), grk::grk_rect< T >::setOrigin(), grk::grk_rect< T >::toRelative(), grk::PacketManager::updateCompressTcpProgressions(), and grk::grk_rect< T >::valid().

◆ y1

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

Referenced by grk::SparseCanvas< LBW, LBH >::alloc(), grk::grk_rect< T >::area(), grk::grk_rect< T >::boundsString(), grk::TileComponent::canCreateWindow(), grk::grk_rect< T >::clip(), grk::grk_rect< T >::clip_IN_PLACE(), grk::compress_synch_with_plugin(), grk::grk_rect< T >::contains(), grk::grk_rect< T >::dimY(), grk::GrkImage::duplicate(), grk::grk_rect< T >::empty(), grk::ResWindow< T >::genSplitWindowBuffers(), grk::ResSimple::getBandWindow(), grk::CodingParams::getTileBounds(), grk::grk_rect< T >::grk_rect(), grk::grk_rect< T >::grow_IN_PLACE(), grk::grk_rect< T >::height(), grk::PacketIter::init(), grk::TileComponent::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::grk_rect< T >::operator=(), grk::grk_rect< T >::operator==(), grk::grk_rect< T >::pan_IN_PLACE(), grk::PrecinctImpl::PrecinctImpl(), grk::grk_rect< T >::print(), grk::SparseCanvas< LBW, LBH >::readWrite(), grk::grk_rect< T >::rectUnion(), grk::ResWindow< T >::ResWindow(), grk::grk_rect< T >::scale(), grk::grk_rect< T >::scaleDown(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeil(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownCeilPow2(), grk::grk_rect< T >::scaleDownPow2(), grk::TileSet::schedule(), grk::CodeStreamDecompress::setDecompressRegion(), grk::PacketManager::updateCompressTcpProgressions(), and grk::grk_rect< T >::valid().


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