Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Viewport Class Reference
[Utils3D]

Class representing 3d viewport (a window with accociated camera). More...

#include <gmlviewport.h>

List of all members.

Public Member Functions

 Viewport (int x, int y, int xres, int yres, Camera *camera=0)
void GetResolution (int &xres, int &yres) const
void SetResolution (int xres, int yres)
void SetOrigin (int x, int y)
void GetOrigin (int &x, int &y) const
const Matrix4x4dGetTransform () const
void SetTransform (const Matrix4x4d &view_transform)
float GetViewAngle () const
void SetViewAngle (float view_angle)
const CameraGetCamera () const
void SetCamera (Camera *cam)
Vector3d GetViewVector () const
 get view vector of camera (normalized)

Vector3d GetUpVector () const
 get up vector of camera (normalized)

Vector3d GetRightVector () const
 get up vector of camera (normalized)

Vector3d GetObserver () const
 get camera position

void SetObserver (const Vector3d &obs)
Matrix4x4d GetRotation () const
void SetRotation (const Matrix4x4d &rot)
void SetDistanceToTarget (float dist)
float GetDistanceToTarget () const


Detailed Description

Class representing 3d viewport (a window with accociated camera).


The documentation for this class was generated from the following file:
Generated on Tue Jan 13 21:12:08 2004 for Graphics and Media Lab CSL by doxygen 1.3.4