vcg::Shot< S, RotationType > Class Template Reference

#include <shot.h>

List of all members.

Classes

class  ReferenceFrame

Public Types

typedef Camera< S > CameraType
typedef S ScalarType

Public Member Functions

vcg::Point3< S > Axis (const int &i) const
 GET the i-th axis of the coordinate system of the camera.
vcg::Point3< S > ConvertCameraToWorldCoordinates (const vcg::Point3< S > &p) const
 convert a 3d point from camera to world coordinates
vcg::Point3< S > ConvertCameraToWorldCoordinates_Substitute (const vcg::Point3< S > &p) const
vcg::Point3< S > ConvertWorldToCameraCoordinates (const vcg::Point3< S > &p) const
 convert a 3d point from world to camera coordinates
Depth (const vcg::Point3< S > &p) const
 returns distance of point p from camera plane (z depth), used for unprojection
Matrix44< S > GetExtrinsicsToWorldMatrix () const
const vcg::Point3< S > GetViewPoint () const
 GET the viewpoint.
Matrix44< S > GetWorldToExtrinsicsMatrix () const
bool IsValid () const
void LookAt (const S &eye_x, const S &eye_y, const S &eye_z, const S &at_x, const S &at_y, const S &at_z, const S &up_x, const S &up_y, const S &up_z)
 look at (opengl-like)
void LookAt (const vcg::Point3< S > &point, const vcg::Point3< S > &up)
 look at (point+up)
void LookTowards (const vcg::Point3< S > &z_dir, const vcg::Point3< S > &up)
 look towards (dir+up)
void MultMatrix (vcg::Matrix44< S > m44)
void MultSimilarity (const Similarity< S > &s)
vcg::Point2< S > Project (const vcg::Point3< S > &p) const
 project a 3d point from world coordinates to 2d camera viewport (pixel)
void SetViewPoint (const vcg::Point3< S > &viewpoint)
 SET the viewpoint.
 Shot ()
 Shot (Camera< S > c)
vcg::Point3< S > UnProject (const vcg::Point2< S > &p, const S &d) const
 inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates
vcg::Point3< S > UnProject_Substitute (const vcg::Point2< S > &p, const S &d) const

Public Attributes

ReferenceFrame< S, RotationType > Extrinsics
Camera< S > Intrinsics

Detailed Description

template<class S, class RotationType = Matrix44<S>>
class vcg::Shot< S, RotationType >

Definition at line 130 of file vcg/math/shot.h.


Member Typedef Documentation

template<class S, class RotationType = Matrix44<S>>
typedef Camera<S> vcg::Shot< S, RotationType >::CameraType

Definition at line 132 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
typedef S vcg::Shot< S, RotationType >::ScalarType

Definition at line 133 of file vcg/math/shot.h.


Constructor & Destructor Documentation

template<class S, class RotationType = Matrix44<S>>
vcg::Shot< S, RotationType >::Shot ( Camera< S >  c  )  [inline]

Definition at line 152 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
vcg::Shot< S, RotationType >::Shot (  )  [inline]

Definition at line 158 of file vcg/math/shot.h.


Member Function Documentation

template<class S , class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::Axis ( const int &  i  )  const [inline]

GET the i-th axis of the coordinate system of the camera.

Definition at line 269 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates ( const vcg::Point3< S > &  p  )  const [inline]

convert a 3d point from camera to world coordinates

Definition at line 325 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates_Substitute ( const vcg::Point3< S > &  p  )  const [inline]

convert a 3d point from camera to world coordinates, uses inverse instead of trranspose for non-exactly-rigid rotation matrices (such as calculated by tsai and garcia)

Definition at line 338 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertWorldToCameraCoordinates ( const vcg::Point3< S > &  p  )  const [inline]

convert a 3d point from world to camera coordinates

Definition at line 314 of file vcg/math/shot.h.

template<class S, class RotationType >
S vcg::Shot< S, RotationType >::Depth ( const vcg::Point3< S > &  p  )  const [inline]

returns distance of point p from camera plane (z depth), used for unprojection

Definition at line 381 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
Matrix44<S> vcg::Shot< S, RotationType >::GetExtrinsicsToWorldMatrix (  )  const [inline]

Definition at line 213 of file vcg/math/shot.h.

template<class S , class RotationType >
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewPoint (  )  const [inline]

GET the viewpoint.

Definition at line 255 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
Matrix44<S> vcg::Shot< S, RotationType >::GetWorldToExtrinsicsMatrix (  )  const [inline]

Definition at line 222 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
bool vcg::Shot< S, RotationType >::IsValid (  )  const [inline]

Definition at line 243 of file vcg/math/shot.h.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::LookAt ( const S &  eye_x,
const S &  eye_y,
const S &  eye_z,
const S &  at_x,
const S &  at_y,
const S &  at_z,
const S &  up_x,
const S &  up_y,
const S &  up_z 
) [inline]

look at (opengl-like)

Definition at line 286 of file vcg/math/shot.h.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::LookAt ( const vcg::Point3< S > &  point,
const vcg::Point3< S > &  up 
) [inline]

look at (point+up)

Definition at line 279 of file vcg/math/shot.h.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::LookTowards ( const vcg::Point3< S > &  z_dir,
const vcg::Point3< S > &  up 
) [inline]

look towards (dir+up)

look towards

Definition at line 296 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
void vcg::Shot< S, RotationType >::MultMatrix ( vcg::Matrix44< S >  m44  )  [inline]

Definition at line 231 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
void vcg::Shot< S, RotationType >::MultSimilarity ( const Similarity< S > &  s  )  [inline]

Definition at line 241 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point2< S > vcg::Shot< S, RotationType >::Project ( const vcg::Point3< S > &  p  )  const [inline]

project a 3d point from world coordinates to 2d camera viewport (pixel)

Definition at line 350 of file vcg/math/shot.h.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::SetViewPoint ( const vcg::Point3< S > &  viewpoint  )  [inline]

SET the viewpoint.

Definition at line 261 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject ( const vcg::Point2< S > &  p,
const S &  d 
) const [inline]

inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates

Definition at line 360 of file vcg/math/shot.h.

template<class S, class RotationType >
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject_Substitute ( const vcg::Point2< S > &  p,
const S &  d 
) const [inline]

inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates, uses inverse instead of trranspose for non-exactly-rigid rotation matrices (such as calculated by tsai and garcia)

Definition at line 371 of file vcg/math/shot.h.


Member Data Documentation

template<class S, class RotationType = Matrix44<S>>
ReferenceFrame<S,RotationType> vcg::Shot< S, RotationType >::Extrinsics

Definition at line 149 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
Camera<S> vcg::Shot< S, RotationType >::Intrinsics

Definition at line 148 of file vcg/math/shot.h.


The documentation for this class 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:23:04 2013