Ignore:
Timestamp:
02/08/06 20:32:42 (18 years ago)
Author:
bittner
Message:

slider support for viewcells

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.h

    r599 r608  
    9999 
    100100 
    101   void 
     101  virtual void 
    102102  SetupProjection(const int w, const int h); 
    103103 
     
    179179 
    180180 
     181class RendererControlWidget : public QWidget 
     182{ 
     183  Q_OBJECT 
     184public: 
     185  RendererControlWidget(QWidget * parent = 0, Qt::WFlags f = 0); 
     186 
     187  signals: 
     188   
     189  SetViewCellGranularity(int); 
     190  SetSceneCut(int); 
     191  SetTopDistance(int); 
     192 
     193  SetShowViewCells(bool); 
     194  SetTopView(bool); 
     195  SetCutViewCells(bool); 
     196  SetCutScene(bool); 
     197 
     198}; 
    181199 
    182200class GlRendererWidget : public QGLWidget, public GlRenderer 
     
    190208  bool mTopView; 
    191209  bool mRenderViewCells; 
     210  bool mCutViewCells; 
     211  bool mCutScene; 
     212   
     213  Plane3 mSceneCutPlane; 
     214  float mTopDistance; 
    192215   
    193216  GlRendererWidget(SceneGraph *sceneGraph, 
     
    223246  virtual int GetHeight() const { return height(); } 
    224247 
     248  virtual void 
     249  SetupProjection(const int w, const int h); 
    225250 
    226251  void 
     
    229254 public slots: 
    230255 void 
    231  SetViewcellGranularity(int number); 
    232  
     256 SetViewCellGranularity(int number); 
     257 
     258 void 
     259 SetSceneCut(int cut); 
     260 
     261 void 
     262 SetTopDistance(int dist); 
     263 
     264  void SetShowViewCells(bool b) { 
     265        mRenderViewCells = b; 
     266        updateGL(); 
     267  } 
     268   
     269  void SetTopView(bool b) { 
     270        mTopView = b; 
     271        updateGL(); 
     272  } 
     273 
     274  void SetCutViewCells(bool b) { 
     275        mCutViewCells = b; 
     276        updateGL(); 
     277  } 
     278  void SetCutScene(bool b) { 
     279        mCutScene = b; 
     280        updateGL(); 
     281  } 
    233282 
    234283}; 
     
    253302    void initPbuffer(); 
    254303 
     304   
    255305         GlRendererBuffer *mRenderBuffer; 
    256306 
     
    258308         int mSamples; 
    259309         Intersectable *mSourceObject; 
     310 
    260311private: 
    261312    GLuint dynamicTexture; 
Note: See TracChangeset for help on using the changeset viewer.