Grok 20.3.2
grk::Rect32_16 Struct Reference

#include <geometry.h>

Inheritance diagram for grk::Rect32_16:
grk::Precinct grk::t1::Codeblock grk::PrecinctCompress grk::PrecinctDecompress grk::t1::CodeblockCompress grk::t1::CodeblockDecompress

Public Member Functions

 Rect32_16 (uint32_t x0, uint32_t y0, uint16_t w, uint16_t h)
 Rect32_16 (void)
virtual ~Rect32_16 ()=default
uint32_t x0 (void) const
uint32_t y0 (void) const
uint32_t x1 (void) const
uint32_t y1 (void) const
uint16_t width () const
uint16_t height () const
bool valid () const
bool empty (void) const
uint32_t area (void) const
Rect32_16 intersection (const Rect32_16 *rhs) const
void setRect (const Rect32_16 *rhs)
void setRect (const Rect32_16 rhs)
virtual void print (void) const

Private Attributes

uint32_t x0_
uint32_t y0_
uint16_t w_
uint16_t h_

Constructor & Destructor Documentation

◆ Rect32_16() [1/2]

grk::Rect32_16::Rect32_16 ( uint32_t x0,
uint32_t y0,
uint16_t w,
uint16_t h )
inline

◆ Rect32_16() [2/2]

grk::Rect32_16::Rect32_16 ( void )
inline

References Rect32_16().

Referenced by intersection().

◆ ~Rect32_16()

virtual grk::Rect32_16::~Rect32_16 ( )
virtualdefault

Member Function Documentation

◆ area()

uint32_t grk::Rect32_16::area ( void ) const
inline

◆ empty()

bool grk::Rect32_16::empty ( void ) const
inline

References x0_, x1(), y0_, and y1().

◆ height()

uint16_t grk::Rect32_16::height ( ) const
inline

References h_.

Referenced by grk::t1::BlockCoder::decompress_cblk().

◆ intersection()

Rect32_16 grk::Rect32_16::intersection ( const Rect32_16 * rhs) const
inline

References Rect32_16(), Rect32_16(), x0(), x1(), y0(), and y1().

◆ print()

virtual void grk::Rect32_16::print ( void ) const
inlinevirtual

References grk::grklog, x0_, x1(), y0_, and y1().

◆ setRect() [1/2]

void grk::Rect32_16::setRect ( const Rect32_16 * rhs)
inline

References Rect32_16().

Referenced by setRect().

◆ setRect() [2/2]

void grk::Rect32_16::setRect ( const Rect32_16 rhs)
inline

References Rect32_16(), and setRect().

◆ valid()

bool grk::Rect32_16::valid ( ) const
inline

References x0_, x1(), y0_, and y1().

◆ width()

uint16_t grk::Rect32_16::width ( ) const
inline

◆ x0()

◆ x1()

◆ y0()

◆ y1()

Member Data Documentation

◆ h_

uint16_t grk::Rect32_16::h_
private

Referenced by area(), height(), Rect32_16(), and y1().

◆ w_

uint16_t grk::Rect32_16::w_
private

Referenced by area(), Rect32_16(), width(), and x1().

◆ x0_

uint32_t grk::Rect32_16::x0_
private

Referenced by empty(), print(), Rect32_16(), valid(), x0(), and x1().

◆ y0_

uint32_t grk::Rect32_16::y0_
private

Referenced by empty(), print(), Rect32_16(), valid(), y0(), and y1().


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