33class EXPCL_PANDAFX PSphereLens :
public Lens {
38 INLINE PSphereLens(
const PSphereLens ©);
39 INLINE
void operator = (
const PSphereLens ©);
42 virtual PT(Lens) make_copy()
const;
45 virtual bool do_extrude(
const Lens::CData *lens_cdata,
const LPoint3 &point2d,
46 LPoint3 &near_point, LPoint3 &far_point)
const;
47 virtual bool do_project(
const Lens::CData *lens_cdata,
48 const LPoint3 &point3d, LPoint3 &point2d)
const;
50 virtual PN_stdfloat fov_to_film(PN_stdfloat fov, PN_stdfloat focal_length,
bool horiz)
const;
51 virtual PN_stdfloat fov_to_focal_length(PN_stdfloat fov, PN_stdfloat film_size,
bool horiz)
const;
52 virtual PN_stdfloat film_to_fov(PN_stdfloat film_size, PN_stdfloat focal_length,
bool horiz)
const;
56 return get_class_type();
58 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
62 static void init_type() {
65 Lens::get_class_type());
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...