#include <camera.h>
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< ScalarType > | MatrixGL (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 |
Definition at line 86 of file wrap/gl/camera.h.
typedef CameraType::ScalarType GlCamera< CameraType >::S |
Definition at line 89 of file wrap/gl/camera.h.
typedef CameraType::ScalarType GlCamera< CameraType >::ScalarType |
Definition at line 88 of file wrap/gl/camera.h.
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.
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.
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.
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.
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.
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.
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.