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

#include <util.h>

Public Member Functions

 grk_rectangle (T x0, T y0, T x1, T y1)
 
 grk_rectangle (const grk_rectangle &rhs)
 
 grk_rectangle (void)
 
void print (void) const
 
bool is_valid (void) const
 
bool non_empty (void) const
 
bool contains (grk_point< T > pt)
 
grk_rectangle< T > & operator= (const grk_rectangle< T > &rhs)
 
bool operator== (const grk_rectangle< T > &rhs) const
 
void set_rect (grk_rectangle< T > *rhs)
 
void set_rect (grk_rectangle< T > rhs)
 
grk_rectangle< T > rectceildivpow2 (uint32_t power) const
 
grk_rectangle< T > rectceildiv (uint32_t den) const
 
grk_rectangle< T > rectceildiv (uint32_t denx, uint32_t deny) const
 
grk_rectangle< T > intersection (const grk_rectangle< T > rhs) const
 
bool isContainedIn (const grk_rectangle< T > rhs) const
 
void clip (const grk_rectangle< T > *rhs)
 
grk_rectangle< T > intersection (const grk_rectangle< T > *rhs) const
 
grk_rectangle< T > rect_union (const grk_rectangle< T > *rhs) const
 
grk_rectangle< T > rect_union (const grk_rectangle< T > &rhs) const
 
uint64_t area (void) const
 
width () const
 
height () const
 
grk_line< T > dimX ()
 
grk_line< T > dimY ()
 
grk_rectangle< T > pan (int64_t x, int64_t y) const
 
void pan_inplace (int64_t x, int64_t y)
 
grk_rectangle< T > & grow (T boundary)
 
grk_rectangle< T > & grow (T boundaryx, T boundaryy)
 
grk_rectangle< T > & grow (T boundary, T maxX, T maxY)
 
grk_rectangle< T > & grow (T boundaryx, T boundaryy, T maxX, T maxY)
 
grk_rectangle< T > & grow (T boundary, grk_rectangle< T > bounds)
 
grk_rectangle< T > & grow (T boundaryx, T boundaryy, grk_rectangle< T > bounds)
 

Public Attributes

x0
 
y0
 
x1
 
y1
 

Constructor & Destructor Documentation

◆ grk_rectangle() [1/3]

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

◆ grk_rectangle() [2/3]

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

◆ grk_rectangle() [3/3]

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

Member Function Documentation

◆ area()

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

◆ clip()

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

◆ contains()

template<typename T >
bool grk::grk_rectangle< T >::contains ( grk_point< T >  pt)
inline

◆ dimX()

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

◆ dimY()

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

◆ grow() [1/6]

template<typename T >
grk_rectangle<T>& grk::grk_rectangle< T >::grow ( boundary)
inline

◆ grow() [2/6]

template<typename T >
grk_rectangle<T>& grk::grk_rectangle< T >::grow ( boundary,
grk_rectangle< T >  bounds 
)
inline

◆ grow() [3/6]

template<typename T >
grk_rectangle<T>& grk::grk_rectangle< T >::grow ( boundary,
maxX,
maxY 
)
inline

◆ grow() [4/6]

template<typename T >
grk_rectangle<T>& grk::grk_rectangle< T >::grow ( boundaryx,
boundaryy 
)
inline

◆ grow() [5/6]

template<typename T >
grk_rectangle<T>& grk::grk_rectangle< T >::grow ( boundaryx,
boundaryy,
grk_rectangle< T >  bounds 
)
inline

◆ grow() [6/6]

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

◆ height()

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

◆ intersection() [1/2]

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

◆ intersection() [2/2]

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

◆ is_valid()

template<typename T >
bool grk::grk_rectangle< T >::is_valid ( void  ) const
inline

◆ isContainedIn()

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

◆ non_empty()

template<typename T >
bool grk::grk_rectangle< T >::non_empty ( void  ) const
inline

◆ operator=()

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

◆ operator==()

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

◆ pan()

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

◆ pan_inplace()

template<typename T >
void grk::grk_rectangle< T >::pan_inplace ( int64_t  x,
int64_t  y 
)
inline

◆ print()

template<typename T >
void grk::grk_rectangle< T >::print ( void  ) const
inline

◆ rect_union() [1/2]

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

◆ rect_union() [2/2]

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

◆ rectceildiv() [1/2]

template<typename T >
grk_rectangle<T> grk::grk_rectangle< T >::rectceildiv ( uint32_t  den) const
inline

◆ rectceildiv() [2/2]

template<typename T >
grk_rectangle<T> grk::grk_rectangle< T >::rectceildiv ( uint32_t  denx,
uint32_t  deny 
) const
inline

◆ rectceildivpow2()

template<typename T >
grk_rectangle<T> grk::grk_rectangle< T >::rectceildivpow2 ( uint32_t  power) const
inline

◆ set_rect() [1/2]

template<typename T >
void grk::grk_rectangle< T >::set_rect ( grk_rectangle< T > *  rhs)
inline

◆ set_rect() [2/2]

template<typename T >
void grk::grk_rectangle< T >::set_rect ( grk_rectangle< T >  rhs)
inline

◆ width()

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

Member Data Documentation

◆ x0

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

◆ x1

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

◆ y0

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

◆ y1

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

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