Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Viewport.h

Go to the documentation of this file.
00001 
00040 #ifndef _AMIRE_COMMON_VIEWPORT_H
00041 #define _AMIRE_COMMON_VIEWPORT_H
00042 
00043 #include <amire/common/Defines.h>
00044 #include <amire/common/Vector.h>
00045 
00046 namespace amire {
00047   namespace common {
00051     template <class type> class TRectangle : public virtual osg::Referenced {
00052     public:
00056       TVector2D<type> position;
00057 
00061       TVector2D<type> dimension;
00062 
00063       inline TRectangle() : Referenced(), position(), dimension() {
00064       }
00065 
00066       inline TRectangle(const TRectangle<type> &rectangle)
00067           : Referenced(), position(rectangle.position), dimension(rectangle.dimension) {
00068       }
00069 
00070       virtual ~TRectangle() {
00071       }
00072     };
00073 
00077     typedef TRectangle<Real> Rectangle;
00081     typedef TRectangle<Real> Viewport;
00082   }
00083 }
00084 
00085 #endif

Generated on Tue May 20 17:23:54 2003 for AMIRE-Framework by doxygen1.3