Public Member Functions | Public Attributes
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
 View ()
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
bool isOrtho
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.


Constructor & Destructor Documentation

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

Definition at line 141 of file view.h.


Member Function Documentation

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

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

Definition at line 145 of file view.h.

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

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

Definition at line 238 of file view.h.

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

Definition at line 221 of file view.h.

template<class T >
void vcg::View< T >::SetView ( const float *  _proj,
const float *  _modelview,
const int *  _viewport 
)

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

Definition at line 157 of file view.h.

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

Definition at line 227 of file view.h.

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

Return the line of view passing through point P.

Definition at line 190 of file view.h.

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

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

Definition at line 205 of file view.h.

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

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

Definition at line 177 of file view.h.

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

Definition at line 172 of file view.h.

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

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

Definition at line 248 of file view.h.


Member Data Documentation

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

Definition at line 136 of file view.h.

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

Definition at line 138 of file view.h.

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

Definition at line 135 of file view.h.

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

Definition at line 134 of file view.h.

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

Definition at line 133 of file view.h.

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

Definition at line 137 of file view.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:23