Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FisheyeLens Class Reference

#include <fisheyeLens.h>

Inheritance diagram for FisheyeLens:

Lens TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

INLINE FisheyeLens (const FisheyeLens &copy)
INLINE void operator= (const FisheyeLens &copy)
virtual PT (Lens) make_copy() const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual bool extrude_impl (const LPoint3f &point2d, LPoint3f &near_point, LPoint3f &far_point) const
virtual bool project_impl (const LPoint3f &point3d, LPoint3f &point2d) const
virtual float fov_to_film (float fov, float focal_length, bool horiz) const
virtual float fov_to_focal_length (float fov, float film_size, bool horiz) const
virtual float film_to_fov (float film_size, float focal_length, bool horiz) const

Private Attributes

PUBLISHED __pad0__: INLINE FisheyeLens()

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE FisheyeLens::FisheyeLens const FisheyeLens &  copy  ) 
 


Member Function Documentation

bool FisheyeLens::extrude_impl const LPoint3f &  point2d,
LPoint3f &  near_point,
LPoint3f &  far_point
const [protected, virtual]
 

Reimplemented from Lens.

Definition at line 71 of file fisheyeLens.cxx.

References csincos(), deg_2_rad(), fisheye_k, Lens::get_far(), Lens::get_film_mat_inv(), Lens::get_focal_length(), Lens::get_lens_mat(), Lens::get_near(), p, r, and v.

float FisheyeLens::film_to_fov float  film_size,
float  focal_length,
bool  horiz
const [protected, virtual]
 

Reimplemented from Lens.

Definition at line 225 of file fisheyeLens.cxx.

References fisheye_k.

virtual TypeHandle FisheyeLens::force_init_type void   )  [inline, virtual]
 

Reimplemented from Lens.

Definition at line 58 of file fisheyeLens.h.

References Lens::get_class_type(), and Lens::init_type().

float FisheyeLens::fov_to_film float  fov,
float  focal_length,
bool  horiz
const [protected, virtual]
 

Reimplemented from Lens.

Definition at line 197 of file fisheyeLens.cxx.

References fisheye_k.

float FisheyeLens::fov_to_focal_length float  fov,
float  film_size,
bool  horiz
const [protected, virtual]
 

Reimplemented from Lens.

Definition at line 211 of file fisheyeLens.cxx.

References fisheye_k.

TypeHandle FisheyeLens::get_class_type void   )  [inline, static]
 

Reimplemented from Lens.

Definition at line 59 of file fisheyeLens.h.

virtual TypeHandle FisheyeLens::get_type void   )  const [inline, virtual]
 

Reimplemented from Lens.

Definition at line 55 of file fisheyeLens.h.

References Lens::get_class_type().

void FisheyeLens::init_type void   )  [inline, static]
 

Reimplemented from Lens.

Definition at line 62 of file fisheyeLens.h.

References Lens::get_class_type(), Lens::init_type(), and register_type().

Referenced by init_libdistort().

INLINE void FisheyeLens::operator= const FisheyeLens &  copy  ) 
 

bool FisheyeLens::project_impl const LPoint3f &  point3d,
LPoint3f &  point2d
const [protected, virtual]
 

Reimplemented from Lens.

Definition at line 131 of file fisheyeLens.cxx.

References catan2(), fisheye_k, Lens::get_far(), Lens::get_film_mat(), Lens::get_focal_length(), Lens::get_lens_mat_inv(), Lens::get_near(), r, rad_2_deg(), x, and y.

virtual FisheyeLens::PT Lens   )  const [virtual]
 


Member Data Documentation

PUBLISHED FisheyeLens::__pad0__ [private]
 

Reimplemented from Lens.

Definition at line 36 of file fisheyeLens.h.

TypeHandle FisheyeLens::_type_handle [static, private]
 

Reimplemented from Lens.

Definition at line 22 of file fisheyeLens.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:17 2003 for Panda by doxygen1.3