#include <shot.h>
Public Types | |
| typedef GlCamera< typename ShotType::CameraType > | GlCameraType |
| typedef ShotType::ScalarType | ScalarType |
Static Public Member Functions | |
| static void | FromTrackball (const vcg::Trackball &tr, vcg::Shot< ScalarType > &sShot, vcg::Shot< ScalarType > &shot) |
| static ScalarType | GetFarPlane (vcg::Shot< ScalarType > &shot, vcg::Box3< ScalarType > bbox) |
| static void | GetNearFarPlanes (vcg::Shot< ScalarType > &shot, vcg::Box3< ScalarType > bbox, ScalarType &nr, ScalarType &fr) |
| given a shot and the mesh bounding box, return near and far plane (exact) | |
| static void | MatrixGL (ShotType &shot, vcg::Matrix44< ScalarType > &m) |
| returns the OpenGL 4x4 MODELVIEW matrix that describes the shot position and orientation (extrinsics) | |
| static void | SetSubView (vcg::Shot< ScalarType > &shot, vcg::Point2< ScalarType > p1, vcg::Point2< ScalarType > p2) |
| static void | SetView (vcg::Shot< ScalarType > &shot, ScalarType nearDist, ScalarType farDist) |
| set the OpenGL PROJECTION and MODELVIEW matrix to match camera+shot. requires near and far plane | |
| static void | TransformGL (vcg::Shot< ScalarType > &shot) |
| set the OpenGL MODELVIEW matrix to match the shot (extrinsics) | |
| static void | UnsetView () |
| restore the previous OpenGL modelview and projection state. to be called AFTER a SetView | |
Definition at line 92 of file wrap/gl/shot.h.
| typedef GlCamera<typename ShotType::CameraType> GlShot< ShotType >::GlCameraType |
Definition at line 95 of file wrap/gl/shot.h.
| typedef ShotType::ScalarType GlShot< ShotType >::ScalarType |
Definition at line 94 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::FromTrackball | ( | const vcg::Trackball & | tr, |
| vcg::Shot< ScalarType > & | sShot, | ||
| vcg::Shot< ScalarType > & | shot | ||
| ) | [inline, static] |
Definition at line 216 of file wrap/gl/shot.h.
| static ScalarType GlShot< ShotType >::GetFarPlane | ( | vcg::Shot< ScalarType > & | shot, |
| vcg::Box3< ScalarType > | bbox | ||
| ) | [inline, static] |
given a shot and the mesh bounding box, returns an approximate far plane distance distance is always approximated by excess
Definition at line 144 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::GetNearFarPlanes | ( | vcg::Shot< ScalarType > & | shot, |
| vcg::Box3< ScalarType > | bbox, | ||
| ScalarType & | nr, | ||
| ScalarType & | fr | ||
| ) | [inline, static] |
given a shot and the mesh bounding box, return near and far plane (exact)
Definition at line 173 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::MatrixGL | ( | ShotType & | shot, |
| vcg::Matrix44< ScalarType > & | m | ||
| ) | [inline, static] |
returns the OpenGL 4x4 MODELVIEW matrix that describes the shot position and orientation (extrinsics)
Definition at line 98 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::SetSubView | ( | vcg::Shot< ScalarType > & | shot, |
| vcg::Point2< ScalarType > | p1, | ||
| vcg::Point2< ScalarType > | p2 | ||
| ) | [inline, static] |
Definition at line 191 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::SetView | ( | vcg::Shot< ScalarType > & | shot, |
| ScalarType | nearDist, | ||
| ScalarType | farDist | ||
| ) | [inline, static] |
set the OpenGL PROJECTION and MODELVIEW matrix to match camera+shot. requires near and far plane
Definition at line 112 of file wrap/gl/shot.h.
| static void GlShot< ShotType >::TransformGL | ( | vcg::Shot< ScalarType > & | shot | ) | [inline, static] |
set the OpenGL MODELVIEW matrix to match the shot (extrinsics)
Definition at line 104 of file wrap/gl/shot.h.
restore the previous OpenGL modelview and projection state. to be called AFTER a SetView
Definition at line 132 of file wrap/gl/shot.h.