GlShot< ShotType > Struct Template Reference

#include <shot.h>

List of all members.

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

Detailed Description

template<class ShotType>
struct GlShot< ShotType >

Definition at line 92 of file wrap/gl/shot.h.


Member Typedef Documentation

template<class ShotType >
typedef GlCamera<typename ShotType::CameraType> GlShot< ShotType >::GlCameraType

Definition at line 93 of file wrap/gl/shot.h.

template<class ShotType >
typedef ShotType::ScalarType GlShot< ShotType >::ScalarType

Definition at line 92 of file wrap/gl/shot.h.


Member Function Documentation

template<class ShotType >
static void GlShot< ShotType >::FromTrackball ( const vcg::Trackball tr,
vcg::Shot< ScalarType > &  sShot,
vcg::Shot< ScalarType > &  shot 
) [inline, static]

Definition at line 217 of file wrap/gl/shot.h.

template<class ShotType >
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 142 of file wrap/gl/shot.h.

template<class ShotType >
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 171 of file wrap/gl/shot.h.

template<class ShotType >
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 96 of file wrap/gl/shot.h.

template<class ShotType >
static void GlShot< ShotType >::SetSubView ( vcg::Shot< ScalarType > &  shot,
vcg::Point2< ScalarType p1,
vcg::Point2< ScalarType p2 
) [inline, static]

Definition at line 192 of file wrap/gl/shot.h.

template<class ShotType >
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 110 of file wrap/gl/shot.h.

template<class ShotType >
static void GlShot< ShotType >::TransformGL ( vcg::Shot< ScalarType > &  shot  )  [inline, static]

set the OpenGL MODELVIEW matrix to match the shot (extrinsics)

Definition at line 102 of file wrap/gl/shot.h.

template<class ShotType >
static void GlShot< ShotType >::UnsetView (  )  [inline, static]

restore the previous OpenGL modelview and projection state. to be called AFTER a SetView

Definition at line 130 of file wrap/gl/shot.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