34 INLINE
void operator = (
const MatrixLens ©);
37 INLINE
void set_user_mat(
const LMatrix4 &user_mat);
38 INLINE
const LMatrix4 &get_user_mat()
const;
39 MAKE_PROPERTY(user_mat, get_user_mat, set_user_mat);
41 INLINE
void set_left_eye_mat(
const LMatrix4 &user_mat);
42 INLINE
void clear_left_eye_mat();
43 INLINE
bool has_left_eye_mat()
const;
44 INLINE
const LMatrix4 &get_left_eye_mat()
const;
46 INLINE
void set_right_eye_mat(
const LMatrix4 &user_mat);
47 INLINE
void clear_right_eye_mat();
48 INLINE
bool has_right_eye_mat()
const;
49 INLINE
const LMatrix4 &get_right_eye_mat()
const;
52 virtual PT(
Lens) make_copy()
const;
55 virtual void write(std::ostream &out,
int indent_level = 0)
const;
58 virtual void do_compute_projection_mat(Lens::CData *lens_cdata);
62 LMatrix4 _left_eye_mat;
63 LMatrix4 _right_eye_mat;
66 MF_has_left_eye = 0x001,
67 MF_has_right_eye = 0x002,
72 static void register_with_read_factory();
81 return get_class_type();
83 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
87 static void init_type() {
90 Lens::get_class_type());
virtual bool is_linear() const
Returns true if the lens represents a linear projection (e.g.
A base class for any number of different kinds of lenses, linear and otherwise.
A completely generic linear lens.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
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.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...