15 #ifndef ORTHOGRAPHICLENS_H
16 #define ORTHOGRAPHICLENS_H
18 #include "pandabase.h"
39 INLINE OrthographicLens(
const OrthographicLens ©);
40 INLINE
void operator = (
const OrthographicLens ©);
43 virtual PT(
Lens) make_copy()
const;
47 virtual void write(ostream &out,
int indent_level = 0)
const;
50 virtual bool do_extrude_depth(
const CData *cdata,
const LPoint3 &point2d,
52 virtual void do_compute_projection_mat(Lens::CData *lens_cdata);
55 static void register_with_read_factory();
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
68 static void init_type() {
70 register_type(_type_handle,
"OrthographicLens",
71 Lens::get_class_type());
78 #include "orthographicLens.I"
virtual bool is_orthographic() const
Returns true if the lens represents a orthographic projection (i.e.
A base class for any number of different kinds of lenses, linear and otherwise.
Base class for objects that can be written to and read from Bam files.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
virtual bool is_linear() const
Returns true if the lens represents a linear projection (e.g.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
TypeHandle is the identifier used to differentiate C++ class types.