HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Frustum< T > Class Template Reference

#include <ImathForward.h>

Public Member Functions

 Frustum ()
 
 Frustum (const Frustum &)
 
 Frustum (T nearPlane, T farPlane, T left, T right, T top, T bottom, bool ortho=false)
 
 Frustum (T nearPlane, T farPlane, T fovx, T fovy, T aspect)
 
virtual ~Frustum ()
 
const Frustumoperator= (const Frustum &)
 
bool operator== (const Frustum< T > &src) const
 
bool operator!= (const Frustum< T > &src) const
 
void set (T nearPlane, T farPlane, T left, T right, T top, T bottom, bool ortho=false)
 
void set (T nearPlane, T farPlane, T fovx, T fovy, T aspect)
 
void modifyNearAndFar (T nearPlane, T farPlane)
 
void setOrthographic (bool)
 
bool orthographic () const
 
T nearPlane () const
 
T hither () const
 
T farPlane () const
 
T yon () const
 
T left () const
 
T right () const
 
T bottom () const
 
T top () const
 
void planes (Plane3< T > p[6]) const
 
void planes (Plane3< T > p[6], const Matrix44< T > &M) const
 
T fovx () const
 
T fovy () const
 
T aspect () const
 
Matrix44< TprojectionMatrix () const
 
bool degenerate () const
 
Frustum< Twindow (T left, T right, T top, T bottom) const
 
Line3< TprojectScreenToRay (const Vec2< T > &) const
 
Vec2< TprojectPointToScreen (const Vec3< T > &) const
 
T ZToDepth (long zval, long min, long max) const
 
T normalizedZToDepth (T zval) const
 
long DepthToZ (T depth, long zmin, long zmax) const
 
T worldRadius (const Vec3< T > &p, T radius) const
 
T screenRadius (const Vec3< T > &p, T radius) const
 

Protected Member Functions

Vec2< TscreenToLocal (const Vec2< T > &) const
 
Vec2< TlocalToScreen (const Vec2< T > &) const
 

Protected Attributes

T _nearPlane
 
T _farPlane
 
T _left
 
T _right
 
T _top
 
T _bottom
 
bool _orthographic
 

Detailed Description

template<class T>
class Frustum< T >

Definition at line 50 of file ImathForward.h.

Constructor & Destructor Documentation

template<class T >
Frustum< T >::Frustum ( )
inline

Definition at line 186 of file ImathFrustum.h.

template<class T >
Frustum< T >::Frustum ( const Frustum< T > &  f)
inline

Definition at line 198 of file ImathFrustum.h.

template<class T >
Frustum< T >::Frustum ( T  nearPlane,
T  farPlane,
T  left,
T  right,
T  top,
T  bottom,
bool  ortho = false 
)
inline

Definition at line 204 of file ImathFrustum.h.

template<class T >
Frustum< T >::Frustum ( T  nearPlane,
T  farPlane,
T  fovx,
T  fovy,
T  aspect 
)
inline

Definition at line 210 of file ImathFrustum.h.

template<class T >
Frustum< T >::~Frustum ( )
virtual

Definition at line 216 of file ImathFrustum.h.

Member Function Documentation

template<class T >
T Frustum< T >::aspect ( ) const

Definition at line 342 of file ImathFrustum.h.

template<class T>
T Frustum< T >::bottom ( ) const
inline

Definition at line 121 of file ImathFrustum.h.

template<class T >
bool Frustum< T >::degenerate ( ) const

Definition at line 444 of file ImathFrustum.h.

template<class T >
long Frustum< T >::DepthToZ ( T  depth,
long  zmin,
long  zmax 
) const

Definition at line 558 of file ImathFrustum.h.

template<class T>
T Frustum< T >::farPlane ( ) const
inline

Definition at line 117 of file ImathFrustum.h.

template<class T >
T Frustum< T >::fovx ( ) const

Definition at line 330 of file ImathFrustum.h.

template<class T >
T Frustum< T >::fovy ( ) const

Definition at line 336 of file ImathFrustum.h.

template<class T>
T Frustum< T >::hither ( ) const
inline

Definition at line 116 of file ImathFrustum.h.

template<class T>
T Frustum< T >::left ( ) const
inline

Definition at line 119 of file ImathFrustum.h.

template<class T >
Vec2< T > Frustum< T >::localToScreen ( const Vec2< T > &  p) const
protected

Definition at line 471 of file ImathFrustum.h.

template<class T >
void Frustum< T >::modifyNearAndFar ( T  nearPlane,
T  farPlane 
)

Definition at line 269 of file ImathFrustum.h.

template<class T>
T Frustum< T >::nearPlane ( ) const
inline

Definition at line 115 of file ImathFrustum.h.

template<class T >
T Frustum< T >::normalizedZToDepth ( T  zval) const

Definition at line 531 of file ImathFrustum.h.

template<class T >
bool Frustum< T >::operator!= ( const Frustum< T > &  src) const
inline

Definition at line 251 of file ImathFrustum.h.

template<class T >
const Frustum< T > & Frustum< T >::operator= ( const Frustum< T > &  f)

Definition at line 222 of file ImathFrustum.h.

template<class T >
bool Frustum< T >::operator== ( const Frustum< T > &  src) const

Definition at line 237 of file ImathFrustum.h.

template<class T>
bool Frustum< T >::orthographic ( ) const
inline

Definition at line 114 of file ImathFrustum.h.

template<class T >
void Frustum< T >::planes ( Plane3< T p[6]) const

Definition at line 648 of file ImathFrustum.h.

template<class T >
void Frustum< T >::planes ( Plane3< T p[6],
const Matrix44< T > &  M 
) const

Definition at line 681 of file ImathFrustum.h.

template<class T >
Matrix44< T > Frustum< T >::projectionMatrix ( ) const

Definition at line 358 of file ImathFrustum.h.

template<class T >
Vec2< T > Frustum< T >::projectPointToScreen ( const Vec3< T > &  point) const

Definition at line 504 of file ImathFrustum.h.

template<class T >
Line3< T > Frustum< T >::projectScreenToRay ( const Vec2< T > &  p) const

Definition at line 493 of file ImathFrustum.h.

template<class T>
T Frustum< T >::right ( ) const
inline

Definition at line 120 of file ImathFrustum.h.

template<class T >
T Frustum< T >::screenRadius ( const Vec3< T > &  p,
T  radius 
) const

Definition at line 606 of file ImathFrustum.h.

template<class T >
Vec2< T > Frustum< T >::screenToLocal ( const Vec2< T > &  s) const
protected

Definition at line 464 of file ImathFrustum.h.

template<class T >
void Frustum< T >::set ( T  nearPlane,
T  farPlane,
T  left,
T  right,
T  top,
T  bottom,
bool  ortho = false 
)

Definition at line 257 of file ImathFrustum.h.

template<class T >
void Frustum< T >::set ( T  nearPlane,
T  farPlane,
T  fovx,
T  fovy,
T  aspect 
)

Definition at line 303 of file ImathFrustum.h.

template<class T >
void Frustum< T >::setOrthographic ( bool  ortho)

Definition at line 297 of file ImathFrustum.h.

template<class T>
T Frustum< T >::top ( ) const
inline

Definition at line 122 of file ImathFrustum.h.

template<class T >
Frustum< T > Frustum< T >::window ( T  left,
T  right,
T  top,
T  bottom 
) const

Definition at line 452 of file ImathFrustum.h.

template<class T >
T Frustum< T >::worldRadius ( const Vec3< T > &  p,
T  radius 
) const

Definition at line 633 of file ImathFrustum.h.

template<class T>
T Frustum< T >::yon ( ) const
inline

Definition at line 118 of file ImathFrustum.h.

template<class T >
T Frustum< T >::ZToDepth ( long  zval,
long  min,
long  max 
) const

Definition at line 514 of file ImathFrustum.h.

Member Data Documentation

template<class T>
T Frustum< T >::_bottom
protected

Definition at line 180 of file ImathFrustum.h.

template<class T>
T Frustum< T >::_farPlane
protected

Definition at line 176 of file ImathFrustum.h.

template<class T>
T Frustum< T >::_left
protected

Definition at line 177 of file ImathFrustum.h.

template<class T>
T Frustum< T >::_nearPlane
protected

Definition at line 175 of file ImathFrustum.h.

template<class T>
bool Frustum< T >::_orthographic
protected

Definition at line 181 of file ImathFrustum.h.

template<class T>
T Frustum< T >::_right
protected

Definition at line 178 of file ImathFrustum.h.

template<class T>
T Frustum< T >::_top
protected

Definition at line 179 of file ImathFrustum.h.


The documentation for this class was generated from the following files: