GCOP  1.0
view.h
Go to the documentation of this file.
00001 #ifndef GCOP_VIEW_H
00002 #define GCOP_VIEW_H
00003 
00004 #include <pthread.h>
00005 
00006 namespace gcop {
00007 
00008 class Viewer;
00009 
00016 class View {
00017  public:
00022   View(const char *name = 0);
00023 
00027   virtual ~View();
00028 
00032   virtual void Render();
00033 
00039   virtual bool RenderFrame(int i = 0);
00040 
00045   void Lock();
00046 
00050   void Unlock();
00051 
00055   //  virtual bool GetCamera(double x[3], double rpy[3]) const;
00056   
00057  protected:
00058   
00059   char name[256];         
00060   int id;                 
00061   pthread_mutex_t mut;    
00062 
00063   friend class Viewer;
00064   
00065 }; 
00066 
00067 }
00068 
00069 #endif