#include <view.h>
Public Member Functions | |
void | GetView () |
Point3< T > | NormDevCoordToWindowCoord (const Point3< T > &p) const |
Convert coordinates from the range -1..1 of Normalized Device Coords to range 0 viewport[2]. | |
Point3< T > | Project (const Point3< T > &p) const |
void | SetView (const float *_proj, const float *_modelview, const int *_viewport) |
Point3< T > | UnProject (const Point3< T > &p) const |
Line3< T > | ViewLineFromModel (const Point3< T > &p) |
Return the line of view passing through point P. | |
Line3< T > | ViewLineFromWindow (const Point3< T > &p) |
Return the line passing through the point p and the observer. | |
Plane3< T > | ViewPlaneFromModel (const Point3< T > &p) |
Return the plane perpendicular to the view axis and passing through point P. | |
Point3< T > | ViewPoint () const |
Point3< T > | WindowCoordToNormDevCoord (const Point3< T > &p) const |
Convert coordinates from 0--viewport[2] to the range -1..1 of Normalized Device Coords to. | |
Public Attributes | |
Matrix44< T > | inverse |
Matrix44< T > | matrix |
Matrix44< T > | model |
Matrix44< T > | proj |
int | viewport [4] |
This class represent the viewing parameters under opengl. Mainly it stores the projection and modelview matrix and the viewport and it is used to simply project back and forth points, computing line of sight, planes etc.
Note: mainly it is used only by the TrackBall.
Definition at line 109 of file view.h.
Reimplemented in vcg::Frustum< T >, and vcg::Frustum< float >.
void vcg::View< T >::SetView | ( | const float * | _proj = NULL , |
|
const float * | _modelview = NULL , |
|||
const int * | _viewport = NULL | |||
) | [inline] |
Reimplemented in vcg::Frustum< T >, and vcg::Frustum< float >.