Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
icl::utils::Size Class Reference

Size class of the ICL. More...

#include <Size.h>

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

List of all members.

Public Member Functions

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

Static Public Attributes

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

Detailed Description

Size class of the ICL.


Constructor & Destructor Documentation

icl::utils::Size::Size ( ) [inline]

default constructor

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

deep copy of another Size

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

creates a specified size

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

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

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

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


Member Function Documentation

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

reutrns width*height

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

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

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

checks if two size are not equal

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

scales the size by a scalar value

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

scales the size parameters inplace by a scalar

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

add a size to another size

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

adds another size inplace

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

substracts a size from another size

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

substracst another size inplace

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

scales the size by a scalar value

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

scales the size parameters inplace by a scalar

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

checks if two sizes are equal


Member Data Documentation

const Size icl::utils::Size::CGA [static]

Color Graphics Adapter res. 320x200.

const Size icl::utils::Size::CIF [static]

Common Intermediate Format res. 352x288.

const Size icl::utils::Size::DSVGA [static]

Double Super VGA res. 1200x800.

const Size icl::utils::Size::DVGA [static]

Double VGA res. 960x640.

const Size icl::utils::Size::EGA [static]

Enhanced Graphics Adapter res. 640x350.

High definition res. 1920x1080.

const Size icl::utils::Size::HD720 [static]

Half Definition res. 1280x720.

const Size icl::utils::Size::HVGA [static]

Half VGA res. 480x320.

const Size icl::utils::Size::NTSC [static]

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

const Size icl::utils::Size::null [static]

null is w=0, h=0

const Size icl::utils::Size::PAL [static]

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

const Size icl::utils::Size::QCIF [static]

Quater CIF res. 176x144.

const Size icl::utils::Size::QHD [static]

Quater HD res. 960x540.

const Size icl::utils::Size::QQVGA [static]

Quater QVGA res. 160x120.

const Size icl::utils::Size::QVGA [static]

Qauter VGA res. 320x240.

const Size icl::utils::Size::SIF [static]

Source Imput Format res. 360x240.

const Size icl::utils::Size::SQCIF [static]

Semi Quater CIF res. 128x96.

const Size icl::utils::Size::SVGA [static]

Super VGA res. 800x600.

const Size icl::utils::Size::SXGA [static]

Super XGA res. 1280x1024.

const Size icl::utils::Size::SXGAP [static]

Super XGA Plus res. 1400x1050.

const Size icl::utils::Size::SXVGA [static]

Quad VGA res. 1280x960.

const Size icl::utils::Size::UD [static]

Ultra Definietion res. 3840x2160.

const Size icl::utils::Size::UXGA [static]

Ultra XGA res. 1600x1200.

const Size icl::utils::Size::VGA [static]

Video Graphics Array res. 640x480.

const Size icl::utils::Size::WSXGA [static]

Wide Super XGA res. 1600x900.

Wide Super XGA Plus res. 1600x1050.

const Size icl::utils::Size::WUXGA [static]

Wide UXGA res. 1920x1080.

const Size icl::utils::Size::WVGA [static]

Wide VGA res. 800x480.

const Size icl::utils::Size::WXGA [static]

Wide XGA res. 1280x800.

const Size icl::utils::Size::WXGAP [static]

Wide XGA Plus res. 1440x900.

const Size icl::utils::Size::XGA [static]

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

const Size icl::utils::Size::XGAP [static]

XGA Plus res. 1152 x 864.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines