Changeset 608 for trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.h
- Timestamp:
- 02/08/06 20:32:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.h
r599 r608 99 99 100 100 101 v oid101 virtual void 102 102 SetupProjection(const int w, const int h); 103 103 … … 179 179 180 180 181 class RendererControlWidget : public QWidget 182 { 183 Q_OBJECT 184 public: 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 }; 181 199 182 200 class GlRendererWidget : public QGLWidget, public GlRenderer … … 190 208 bool mTopView; 191 209 bool mRenderViewCells; 210 bool mCutViewCells; 211 bool mCutScene; 212 213 Plane3 mSceneCutPlane; 214 float mTopDistance; 192 215 193 216 GlRendererWidget(SceneGraph *sceneGraph, … … 223 246 virtual int GetHeight() const { return height(); } 224 247 248 virtual void 249 SetupProjection(const int w, const int h); 225 250 226 251 void … … 229 254 public slots: 230 255 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 } 233 282 234 283 }; … … 253 302 void initPbuffer(); 254 303 304 255 305 GlRendererBuffer *mRenderBuffer; 256 306 … … 258 308 int mSamples; 259 309 Intersectable *mSourceObject; 310 260 311 private: 261 312 GLuint dynamicTexture;
Note: See TracChangeset
for help on using the changeset viewer.