30class EXPCL_PANDAFX OSphereLens :
public Lens {
35 INLINE OSphereLens(
const OSphereLens ©);
36 INLINE
void operator = (
const OSphereLens ©);
39 virtual PT(Lens) make_copy()
const;
42 virtual bool do_extrude(
const Lens::CData *lens_cdata,
const LPoint3 &point2d,
43 LPoint3 &near_point, LPoint3 &far_point)
const;
44 virtual bool do_project(
const Lens::CData *lens_cdata,
45 const LPoint3 &point3d, LPoint3 &point2d)
const;
47 virtual PN_stdfloat fov_to_film(PN_stdfloat fov, PN_stdfloat focal_length,
bool horiz)
const;
48 virtual PN_stdfloat fov_to_focal_length(PN_stdfloat fov, PN_stdfloat film_size,
bool horiz)
const;
49 virtual PN_stdfloat film_to_fov(PN_stdfloat film_size, PN_stdfloat focal_length,
bool horiz)
const;
53 return get_class_type();
55 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
59 static void init_type() {
62 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(),...