35 virtual PT(
Lens) make_copy()
const;
38 virtual bool do_extrude(
const Lens::CData *lens_cdata,
const LPoint3 &point2d,
39 LPoint3 &near_point, LPoint3 &far_point)
const;
40 virtual bool do_extrude_vec(
const Lens::CData *lens_cdata,
const LPoint3 &point2d,
42 virtual bool do_project(
const Lens::CData *lens_cdata,
43 const LPoint3 &point3d, LPoint3 &point2d)
const;
45 virtual PN_stdfloat fov_to_film(PN_stdfloat fov, PN_stdfloat focal_length,
bool horiz)
const;
46 virtual PN_stdfloat fov_to_focal_length(PN_stdfloat fov, PN_stdfloat film_size,
bool horiz)
const;
47 virtual PN_stdfloat film_to_fov(PN_stdfloat film_size, PN_stdfloat focal_length,
bool horiz)
const;
51 return get_class_type();
53 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
57 static void init_type() {
60 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.