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

PerspectiveLens Class Reference

#include <perspectiveLens.h>

Inheritance diagram for PerspectiveLens:

Lens TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

INLINE PerspectiveLens (const PerspectiveLens &copy)
INLINE void operator= (const PerspectiveLens &copy)
virtual PT (Lens) make_copy() const
virtual bool is_linear () 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 void compute_projection_mat ()
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 PerspectiveLens()

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE PerspectiveLens::PerspectiveLens const PerspectiveLens &  copy  ) 
 


Member Function Documentation

void PerspectiveLens::compute_projection_mat  )  [protected, virtual]
 

Reimplemented from Lens.

Definition at line 54 of file perspectiveLens.cxx.

References Lens::_cs, Lens::_projection_mat, a, Lens::adjust_comp_flags(), b, Lens::CF_projection_mat, Lens::CF_projection_mat_inv, CoordinateSystem, cs, CS_default, CS_yup_left, CS_yup_right, CS_zup_left, CS_zup_right, default_coordinate_system, Lens::get_far(), Lens::get_film_mat(), Lens::get_focal_length(), Lens::get_lens_mat_inv(), and Lens::get_near().

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

Reimplemented from Lens.

Definition at line 150 of file perspectiveLens.cxx.

References catan(), and rad_2_deg().

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

Reimplemented from Lens.

Definition at line 54 of file perspectiveLens.h.

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

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

Reimplemented from Lens.

Definition at line 122 of file perspectiveLens.cxx.

References ctan(), and deg_2_rad().

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

Reimplemented from Lens.

Definition at line 136 of file perspectiveLens.cxx.

References ctan(), and deg_2_rad().

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

Reimplemented from Lens.

Definition at line 55 of file perspectiveLens.h.

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

Reimplemented from Lens.

Definition at line 51 of file perspectiveLens.h.

References Lens::get_class_type().

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

Reimplemented from Lens.

Definition at line 58 of file perspectiveLens.h.

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

Referenced by ConfigureFn().

bool PerspectiveLens::is_linear  )  const [virtual]
 

Reimplemented from Lens.

Definition at line 43 of file perspectiveLens.cxx.

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

virtual PerspectiveLens::PT Lens   )  const [virtual]
 


Member Data Documentation

PUBLISHED PerspectiveLens::__pad0__ [private]
 

Reimplemented from Lens.

Definition at line 33 of file perspectiveLens.h.

TypeHandle PerspectiveLens::_type_handle [static, private]
 

Reimplemented from Lens.

Definition at line 21 of file perspectiveLens.cxx.


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