00001 /* 00002 * $Id: _render.h 319 2008-09-24 11:17:38Z kybav1 $ 00003 * 00004 * Description : Template for general purpose module. 00005 * Author : Vaclav Kyba <mail/Jabber: vaseo1@gmail.com> <ICQ: 98576293> 00006 * 00007 * Purpose : 00008 * Long description of what the file is for. 00009 */ 00010 00011 00015 00016 #ifndef __RAYTRACER_H__ 00017 #define __RAYTRACER_H__ 00018 00019 #include "../../core/src/rendermodule.h" 00020 #include "../../core/src/camera.h" 00021 00022 00023 namespace VRUT 00024 { 00026 const int MODULE_VERSION = 1; 00027 00029 class RayTracer : public RenderModule 00030 { 00031 protected: 00033 int var; 00034 00036 Scene *scene; 00038 BVH *bvh; 00039 00041 Parameter::ParameterIdentificator varParamID; 00042 00044 virtual void processEvent(wxCommandEvent & evt); 00045 00046 public: 00048 RayTracer(const MODULE_ID & _id, const wxString & _name, 00049 EventHandler * msgSink); 00050 00052 virtual ~RayTracer() 00053 { 00054 } 00055 00057 bool 00058 CastRay(const Ray & ray, 00059 RayIntersectionInfo &bestFound); 00060 00062 virtual wxString GetDesc() const 00063 { 00064 return wxT("This is my module"); 00065 } 00069 virtual void Draw(); 00070 00074 virtual void Deinitialize() 00075 { 00076 } 00077 }; 00078 }; 00079 00080 00081 EXPORT_VRUT_MODULE_FUNCTIONS( RayTracer ) 00082 00083 #endif
1.5.5