00001 /////////////////////////////////////////////////////////////////////////// 00002 // _____________ ______________________ __ __ _____ 00003 // / ________ | | ___ ________ / | \ / \ | 00004 // | | | |_ | |_ | | / / \__ | | 00005 // | | ___ | || | || | | / / | | | 00006 // | | | \ | || | || | | / / \__/ \__/ __|__ 00007 // | | |_@ || || | || | | / / Institute 00008 // | |___/ || ||_| || | | / /_____________________ 00009 // \_______/ \______/ | |__| /___________________________ 00010 // | |__| | 00011 // \______/ 00012 // University of Utah 00013 // 2002 00014 /////////////////////////////////////////////////////////////////////////// 00015 00016 //cameraEvent.h 00017 00018 #ifndef __GUTZ_CAMERA_EVENT_DOT_H 00019 #define __GUTZ_CAMERA_EVENT_DOT_H 00020 00021 #include <graphicsGutz.h> 00022 #include <smartptr.h> 00023 00024 namespace gutz { 00025 00026 class CameraEvent : public gutz::Counted { 00027 public: 00028 CameraEvent(const CameraSP camera, const ManipSP manipulator) 00029 : _cam(camera), _manip(manipulator) 00030 {} 00031 virtual ~CameraEvent() { _cam = 0; _manip = 0; } 00032 00033 const CameraSP getCamera() const { return _cam; } 00034 void setCamera(CameraSP cam) { _cam = cam; } 00035 const ManipSP getManip() const { return _manip; } 00036 void setManip(ManipSP manip) { _manip = manip; } 00037 00038 protected: 00039 CameraSP _cam; 00040 ManipSP _manip; 00041 00042 }; 00043 00044 typedef gutz::SmartPtr<CameraEvent> CameraEventSP; 00045 00046 } //< end namespace gutz 00047 00048 #endif 00049 00050