vcg::View< T > Class Template Reference

#include <view.h>

Inheritance diagram for vcg::View< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void GetView ()
Point3< TNormDevCoordToWindowCoord (const Point3< T > &p) const
 Convert coordinates from the range -1..1 of Normalized Device Coords to range 0 viewport[2].
Point3< TProject (const Point3< T > &p) const
void SetView (const float *_proj, const float *_modelview, const int *_viewport)
Point3< TUnProject (const Point3< T > &p) const
Line3< TViewLineFromModel (const Point3< T > &p)
 Return the line of view passing through point P.
Line3< TViewLineFromWindow (const Point3< T > &p)
 Return the line passing through the point p and the observer.
Plane3< TViewPlaneFromModel (const Point3< T > &p)
 Return the plane perpendicular to the view axis and passing through point P.
Point3< TViewPoint () const
Point3< TWindowCoordToNormDevCoord (const Point3< T > &p) const
 Convert coordinates from 0--viewport[2] to the range -1..1 of Normalized Device Coords to.

Public Attributes

Matrix44< Tinverse
Matrix44< Tmatrix
Matrix44< Tmodel
Matrix44< Tproj
int viewport [4]

Detailed Description

template<class T>
class vcg::View< T >

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.


Member Function Documentation

template<class T >
void vcg::View< T >::GetView (  )  [inline]

Reimplemented in vcg::Frustum< T >, and vcg::Frustum< float >.

Definition at line 139 of file view.h.

template<class T>
Point3< T > vcg::View< T >::NormDevCoordToWindowCoord ( const Point3< T > &  p  )  const [inline]

Convert coordinates from the range -1..1 of Normalized Device Coords to range 0 viewport[2].

Definition at line 217 of file view.h.

template<class T>
Point3< T > vcg::View< T >::Project ( const Point3< T > &  p  )  const [inline]

Definition at line 200 of file view.h.

template<class T >
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 >.

Definition at line 149 of file view.h.

template<class T>
Point3< T > vcg::View< T >::UnProject ( const Point3< T > &  p  )  const [inline]

Definition at line 206 of file view.h.

template<class T>
Line3< T > vcg::View< T >::ViewLineFromModel ( const Point3< T > &  p  )  [inline]

Return the line of view passing through point P.

Definition at line 180 of file view.h.

template<class T>
Line3< T > vcg::View< T >::ViewLineFromWindow ( const Point3< T > &  p  )  [inline]

Return the line passing through the point p and the observer.

Definition at line 190 of file view.h.

template<class T>
Plane3< T > vcg::View< T >::ViewPlaneFromModel ( const Point3< T > &  p  )  [inline]

Return the plane perpendicular to the view axis and passing through point P.

Definition at line 170 of file view.h.

template<class T >
Point3< T > vcg::View< T >::ViewPoint (  )  const [inline]

Definition at line 164 of file view.h.

template<class T>
Point3< T > vcg::View< T >::WindowCoordToNormDevCoord ( const Point3< T > &  p  )  const [inline]

Convert coordinates from 0--viewport[2] to the range -1..1 of Normalized Device Coords to.

Definition at line 227 of file view.h.


Member Data Documentation

template<class T>
Matrix44<T> vcg::View< T >::inverse

Definition at line 135 of file view.h.

template<class T>
Matrix44<T> vcg::View< T >::matrix

Definition at line 134 of file view.h.

template<class T>
Matrix44<T> vcg::View< T >::model

Definition at line 133 of file view.h.

template<class T>
Matrix44<T> vcg::View< T >::proj

Definition at line 132 of file view.h.

template<class T>
int vcg::View< T >::viewport[4]

Definition at line 136 of file view.h.


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


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:09 2013