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());
A base class for any number of different kinds of lenses, linear and otherwise.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A OSphereLens is a special nonlinear lens that doesn't correspond to any real physical lenses.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.