GlCamera< CameraType > Struct Template Reference

#include <camera.h>

List of all members.

Public Types

typedef CameraType::ScalarType S
typedef CameraType::ScalarType ScalarType

Static Public Member Functions

static void GetFrustum (vcg::Camera< S > &intrinsics, S &sx, S &dx, S &bt, S &tp, S &f)
 get OpenGL-like frustum from a vcg camera (intrinsics)
static void GetViewSize (vcg::Camera< S > &camera, S &width, S &height)
static vcg::Matrix44< ScalarTypeMatrixGL (vcg::Camera< S > &cam, vcg::Matrix44< S > &m)
 returns the OpenGL 4x4 PROJECTION matrix that describes the camera (intrinsics)
static void SetGLCavalieriProj (float x1, float x2, float y1, float y2, float z1, float z2)
 set the OpenGL PROJECTION matrix for the Cavalieri projection
static void SetGLIsometricProj (float x1, float x2, float y1, float y2, float z1, float z2)
 set the OpenGL PROJECTION matrix for the Isometric projection
static void SetSubView (vcg::Camera< S > &camera, vcg::Point2< S > p0, S nearDist, S farDist, vcg::Point2< S > p1)
static void TransformGL (vcg::Camera< S > &camera, S nearDist, S farDist)
 set the OpenGL PROJECTION matrix to match the camera (intrinsics). requires near and far plane

Detailed Description

template<class CameraType>
struct GlCamera< CameraType >

Definition at line 86 of file wrap/gl/camera.h.


Member Typedef Documentation

template<class CameraType >
typedef CameraType::ScalarType GlCamera< CameraType >::S

Definition at line 89 of file wrap/gl/camera.h.

template<class CameraType >
typedef CameraType::ScalarType GlCamera< CameraType >::ScalarType

Definition at line 88 of file wrap/gl/camera.h.


Member Function Documentation

template<class CameraType >
static void GlCamera< CameraType >::GetFrustum ( vcg::Camera< S > &  intrinsics,
S sx,
S dx,
S bt,
S tp,
S f 
) [inline, static]

get OpenGL-like frustum from a vcg camera (intrinsics)

Definition at line 142 of file wrap/gl/camera.h.

template<class CameraType >
static void GlCamera< CameraType >::GetViewSize ( vcg::Camera< S > &  camera,
S width,
S height 
) [inline, static]

Definition at line 175 of file wrap/gl/camera.h.

template<class CameraType >
static vcg::Matrix44<ScalarType> GlCamera< CameraType >::MatrixGL ( vcg::Camera< S > &  cam,
vcg::Matrix44< S > &  m 
) [inline, static]

returns the OpenGL 4x4 PROJECTION matrix that describes the camera (intrinsics)

Definition at line 94 of file wrap/gl/camera.h.

template<class CameraType >
static void GlCamera< CameraType >::SetGLCavalieriProj ( float  x1,
float  x2,
float  y1,
float  y2,
float  z1,
float  z2 
) [inline, static]

set the OpenGL PROJECTION matrix for the Cavalieri projection

Definition at line 108 of file wrap/gl/camera.h.

template<class CameraType >
static void GlCamera< CameraType >::SetGLIsometricProj ( float  x1,
float  x2,
float  y1,
float  y2,
float  z1,
float  z2 
) [inline, static]

set the OpenGL PROJECTION matrix for the Isometric projection

Definition at line 125 of file wrap/gl/camera.h.

template<class CameraType >
static void GlCamera< CameraType >::SetSubView ( vcg::Camera< S > &  camera,
vcg::Point2< S p0,
S  nearDist,
S  farDist,
vcg::Point2< S p1 
) [inline, static]

Definition at line 183 of file wrap/gl/camera.h.

template<class CameraType >
static void GlCamera< CameraType >::TransformGL ( vcg::Camera< S > &  camera,
S  nearDist,
S  farDist 
) [inline, static]

set the OpenGL PROJECTION matrix to match the camera (intrinsics). requires near and far plane

Definition at line 148 of file wrap/gl/camera.h.


The documentation for this struct 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:22:04 2013