00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ORTHOGRAPHICLENS_H
00016 #define ORTHOGRAPHICLENS_H
00017
00018 #include "pandabase.h"
00019
00020 #include "lens.h"
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class EXPCL_PANDA_GOBJ OrthographicLens : public Lens {
00035 PUBLISHED:
00036 INLINE OrthographicLens();
00037
00038 public:
00039 INLINE OrthographicLens(const OrthographicLens ©);
00040 INLINE void operator = (const OrthographicLens ©);
00041
00042 public:
00043 virtual PT(Lens) make_copy() const;
00044 virtual bool is_linear() const;
00045 virtual bool is_orthographic() const;
00046
00047 virtual void write(ostream &out, int indent_level = 0) const;
00048
00049 protected:
00050 virtual void do_compute_projection_mat(Lens::CData *lens_cdata);
00051
00052 public:
00053 static void register_with_read_factory();
00054
00055 protected:
00056 static TypedWritable *make_from_bam(const FactoryParams ¶ms);
00057
00058 public:
00059 virtual TypeHandle get_type() const {
00060 return get_class_type();
00061 }
00062 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00063 static TypeHandle get_class_type() {
00064 return _type_handle;
00065 }
00066 static void init_type() {
00067 Lens::init_type();
00068 register_type(_type_handle, "OrthographicLens",
00069 Lens::get_class_type());
00070 }
00071
00072 private:
00073 static TypeHandle _type_handle;
00074 };
00075
00076 #include "orthographicLens.I"
00077
00078 #endif