Image Component Library (ICL)
Public Member Functions | Static Public Attributes | List of all members
icl::utils::Size Class Reference

Size class of the ICL. More...

#include <Size.h>

Inheritance diagram for icl::utils::Size:
icl::geom::Scene::PBufferIndex

Public Member Functions

 Size ()
 default constructor More...
 
 Size (const Size &s)
 deep copy of another Size More...
 
 Size (int width, int height)
 creates a specified size More...
 
 Size (const std::string &name)
 creates a size from given string (e.g. VGA, CIF, or 1024x768) More...
 
 Size (const Size32f &other)
 creates a size from given float precision size (values are rounded) More...
 
bool isNull () const
 checks wether the object instance is null, i.e. all elements are zero More...
 
bool operator== (const Size &s) const
 checks if two sizes are equal More...
 
bool operator!= (const Size &s) const
 checks if two size are not equal More...
 
Size operator+ (const Size &s) const
 add a size to another size More...
 
Size operator- (const Size &s) const
 substracts a size from another size More...
 
Size operator * (double d) const
 scales the size by a scalar value More...
 
Size operator/ (double d) const
 scales the size by a scalar value More...
 
Sizeoperator+= (const Size &s)
 adds another size inplace More...
 
Sizeoperator-= (const Size &s)
 substracst another size inplace More...
 
Sizeoperator *= (double d)
 scales the size parameters inplace by a scalar More...
 
Sizeoperator/= (double d)
 scales the size parameters inplace by a scalar More...
 
int getDim () const
 reutrns width*height More...
 

Static Public Attributes

static const Size null
 null is w=0, h=0 More...
 
static const Size QQVGA
 Quater QVGA res. 160x120. More...
 
static const Size CGA
 Color Graphics Adapter res. 320x200. More...
 
static const Size QVGA
 Qauter VGA res. 320x240. More...
 
static const Size HVGA
 Half VGA res. 480x320. More...
 
static const Size EGA
 Enhanced Graphics Adapter res. 640x350. More...
 
static const Size VGA
 Video Graphics Array res. 640x480. More...
 
static const Size WVGA
 Wide VGA res. 800x480. More...
 
static const Size SVGA
 Super VGA res. 800x600. More...
 
static const Size QHD
 Quater HD res. 960x540. More...
 
static const Size DVGA
 Double VGA res. 960x640. More...
 
static const Size XGA
 Extended Graphics Array res. 1024x768 (also known as EVGA) More...
 
static const Size XGAP
 XGA Plus res. 1152 x 864. More...
 
static const Size DSVGA
 Double Super VGA res. 1200x800. More...
 
static const Size HD720
 Half Definition res. 1280x720. More...
 
static const Size WXGA
 Wide XGA res. 1280x800. More...
 
static const Size WXGAP
 Wide XGA Plus res. 1440x900. More...
 
static const Size SXVGA
 Quad VGA res. 1280x960. More...
 
static const Size SXGA
 Super XGA res. 1280x1024. More...
 
static const Size WSXGA
 Wide Super XGA res. 1600x900. More...
 
static const Size SXGAP
 Super XGA Plus res. 1400x1050. More...
 
static const Size WSXGAP
 Wide Super XGA Plus res. 1600x1050. More...
 
static const Size UXGA
 Ultra XGA res. 1600x1200. More...
 
static const Size HD1080
 High definition res. 1920x1080. More...
 
static const Size WUXGA
 Wide UXGA res. 1920x1080. More...
 
static const Size UD
 Ultra Definietion res. 3840x2160. More...
 
static const Size CIF
 Common Intermediate Format res. 352x288. More...
 
static const Size SIF
 Source Imput Format res. 360x240. More...
 
static const Size SQCIF
 Semi Quater CIF res. 128x96. More...
 
static const Size QCIF
 Quater CIF res. 176x144. More...
 
static const Size PAL
 Phase alternating Line res. 768x576 (many other formats are known as PAL) More...
 
static const Size NTSC
 National Television System Commitee res. 640x480 (many other formats are known as NTSC) More...
 

Detailed Description

Size class of the ICL.

Constructor & Destructor Documentation

◆ Size() [1/5]

icl::utils::Size::Size ( )
inline

default constructor

◆ Size() [2/5]

icl::utils::Size::Size ( const Size s)
inline

deep copy of another Size

◆ Size() [3/5]

icl::utils::Size::Size ( int  width,
int  height 
)
inline

creates a specified size

◆ Size() [4/5]

icl::utils::Size::Size ( const std::string &  name)
explicit

creates a size from given string (e.g. VGA, CIF, or 1024x768)

◆ Size() [5/5]

icl::utils::Size::Size ( const Size32f other)

creates a size from given float precision size (values are rounded)

Member Function Documentation

◆ getDim()

int icl::utils::Size::getDim ( ) const
inline

reutrns width*height

◆ isNull()

bool icl::utils::Size::isNull ( ) const
inline

checks wether the object instance is null, i.e. all elements are zero

◆ operator *()

Size icl::utils::Size::operator * ( double  d) const
inline

scales the size by a scalar value

◆ operator *=()

Size& icl::utils::Size::operator *= ( double  d)
inline

scales the size parameters inplace by a scalar

◆ operator!=()

bool icl::utils::Size::operator!= ( const Size s) const
inline

checks if two size are not equal

◆ operator+()

Size icl::utils::Size::operator+ ( const Size s) const
inline

add a size to another size

◆ operator+=()

Size& icl::utils::Size::operator+= ( const Size s)
inline

adds another size inplace

◆ operator-()

Size icl::utils::Size::operator- ( const Size s) const
inline

substracts a size from another size

◆ operator-=()

Size& icl::utils::Size::operator-= ( const Size s)
inline

substracst another size inplace

◆ operator/()

Size icl::utils::Size::operator/ ( double  d) const
inline

scales the size by a scalar value

◆ operator/=()

Size& icl::utils::Size::operator/= ( double  d)
inline

scales the size parameters inplace by a scalar

◆ operator==()

bool icl::utils::Size::operator== ( const Size s) const
inline

checks if two sizes are equal

Member Data Documentation

◆ CGA

const Size icl::utils::Size::CGA
static

Color Graphics Adapter res. 320x200.

◆ CIF

const Size icl::utils::Size::CIF
static

Common Intermediate Format res. 352x288.

◆ DSVGA

const Size icl::utils::Size::DSVGA
static

Double Super VGA res. 1200x800.

◆ DVGA

const Size icl::utils::Size::DVGA
static

Double VGA res. 960x640.

◆ EGA

const Size icl::utils::Size::EGA
static

Enhanced Graphics Adapter res. 640x350.

◆ HD1080

const Size icl::utils::Size::HD1080
static

High definition res. 1920x1080.

◆ HD720

const Size icl::utils::Size::HD720
static

Half Definition res. 1280x720.

◆ HVGA

const Size icl::utils::Size::HVGA
static

Half VGA res. 480x320.

◆ NTSC

const Size icl::utils::Size::NTSC
static

National Television System Commitee res. 640x480 (many other formats are known as NTSC)

◆ null

const Size icl::utils::Size::null
static

null is w=0, h=0

◆ PAL

const Size icl::utils::Size::PAL
static

Phase alternating Line res. 768x576 (many other formats are known as PAL)

◆ QCIF

const Size icl::utils::Size::QCIF
static

Quater CIF res. 176x144.

◆ QHD

const Size icl::utils::Size::QHD
static

Quater HD res. 960x540.

◆ QQVGA

const Size icl::utils::Size::QQVGA
static

Quater QVGA res. 160x120.

◆ QVGA

const Size icl::utils::Size::QVGA
static

Qauter VGA res. 320x240.

◆ SIF

const Size icl::utils::Size::SIF
static

Source Imput Format res. 360x240.

◆ SQCIF

const Size icl::utils::Size::SQCIF
static

Semi Quater CIF res. 128x96.

◆ SVGA

const Size icl::utils::Size::SVGA
static

Super VGA res. 800x600.

◆ SXGA

const Size icl::utils::Size::SXGA
static

Super XGA res. 1280x1024.

◆ SXGAP

const Size icl::utils::Size::SXGAP
static

Super XGA Plus res. 1400x1050.

◆ SXVGA

const Size icl::utils::Size::SXVGA
static

Quad VGA res. 1280x960.

◆ UD

const Size icl::utils::Size::UD
static

Ultra Definietion res. 3840x2160.

◆ UXGA

const Size icl::utils::Size::UXGA
static

Ultra XGA res. 1600x1200.

◆ VGA

const Size icl::utils::Size::VGA
static

Video Graphics Array res. 640x480.

◆ WSXGA

const Size icl::utils::Size::WSXGA
static

Wide Super XGA res. 1600x900.

◆ WSXGAP

const Size icl::utils::Size::WSXGAP
static

Wide Super XGA Plus res. 1600x1050.

◆ WUXGA

const Size icl::utils::Size::WUXGA
static

Wide UXGA res. 1920x1080.

◆ WVGA

const Size icl::utils::Size::WVGA
static

Wide VGA res. 800x480.

◆ WXGA

const Size icl::utils::Size::WXGA
static

Wide XGA res. 1280x800.

◆ WXGAP

const Size icl::utils::Size::WXGAP
static

Wide XGA Plus res. 1440x900.

◆ XGA

const Size icl::utils::Size::XGA
static

Extended Graphics Array res. 1024x768 (also known as EVGA)

◆ XGAP

const Size icl::utils::Size::XGAP
static

XGA Plus res. 1152 x 864.


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