Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

vl::RectI Class Reference

The RectI class represents a 2D rectangular area using int precision. More...

#include <Rect.hpp>

Inheritance diagram for vl::RectI:

vl::Rect< int >

List of all members.

Public Member Functions

virtual const char * className ()
 RectI ()
 RectI (int x, int y, int width, int height)
 RectI (const Rect< int > &other)
 RectI (const RectI &other)
RectIoperator= (const Rect< int > &other)
RectIoperator= (const RectI &other)
int top () const
int right () const
ivec2 bottomLeft () const
ivec2 topRight () const


Detailed Description

The RectI class represents a 2D rectangular area using int precision.

This class is mainly used to manipulate rectangles in pixel coordinates (as opposed to real coordinates). The RectI and RectF differ in the following way:


Constructor & Destructor Documentation

vl::RectI::RectI (  )  [inline]

vl::RectI::RectI ( int  x,
int  y,
int  width,
int  height 
) [inline]

vl::RectI::RectI ( const Rect< int > &  other  )  [inline]

vl::RectI::RectI ( const RectI other  )  [inline]


Member Function Documentation

virtual const char* vl::RectI::className (  )  [inline, virtual]

Reimplemented from vl::Rect< int >.

RectI& vl::RectI::operator= ( const Rect< int > &  other  )  [inline]

RectI& vl::RectI::operator= ( const RectI other  )  [inline]

int vl::RectI::top (  )  const [inline]

Reimplemented from vl::Rect< int >.

int vl::RectI::right (  )  const [inline]

Reimplemented from vl::Rect< int >.

ivec2 vl::RectI::bottomLeft (  )  const [inline]

ivec2 vl::RectI::topRight (  )  const [inline]


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

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Dec 29 13:56:58 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.