Changeset 746 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h
- Timestamp:
- 04/11/06 15:33:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h
r713 r746 68 68 int timerId; 69 69 bool mUseFalseColors; 70 bool mUseForcedColors; 70 71 71 72 HaltonSequence halton; … … 117 118 118 119 119 class GlRendererBuffer : public QGLPixelBuffer, public GlRenderer 120 { 120 class GlRendererBuffer : public QObject, public QGLPixelBuffer, public GlRenderer 121 { 122 Q_OBJECT 121 123 public: 122 124 GlRendererBuffer(const int w, … … 175 177 float mError; 176 178 int mPvsSize; 179 Vector3 mPosition; 180 Vector3 mDirection; 177 181 }; 178 182 … … 185 189 void SetupProjectionForViewPoint(const Vector3 &viewPoint, 186 190 const Beam &beam, 191 187 192 Intersectable *sourceObject); 193 194 public: 195 signals: 196 UpdatePvsErrorItem(int i, 197 GlRendererBuffer::PvsErrorEntry &); 188 198 }; 189 199 … … 193 203 Q_OBJECT 194 204 public: 205 206 QListWidget *mPvsErrorWidget; 207 195 208 RendererControlWidget(QWidget * parent = 0, Qt::WFlags f = 0); 209 210 public slots: 211 212 void FocusNextPvsErrorFrame(); 213 void UpdatePvsErrorItem(int i, 214 GlRendererBuffer::PvsErrorEntry &); 196 215 197 216 signals: … … 202 221 SetVisibilityFilterSize(int); 203 222 223 SetRenderFilter(bool); 224 SetRenderErrors(bool); 204 225 SetShowViewCells(bool); 226 SetShowRenderCost(bool); 227 SetShowPvsSizes(bool); 205 228 SetTopView(bool); 206 229 SetCutViewCells(bool); 207 230 SetCutScene(bool); 208 231 209 232 210 233 }; 211 234 … … 222 245 bool mCutViewCells; 223 246 bool mCutScene; 224 247 bool mRenderErrors; 248 bool mRenderFilter; 249 bool mShowRenderCost; 250 bool mShowPvsSizes; 251 225 252 Plane3 mSceneCutPlane; 226 253 float mTopDistance; 254 255 // some statistics 256 int mPvsSize; 257 float mRenderError; 258 259 RendererControlWidget *mControlWidget; 227 260 228 261 GlRendererWidget(SceneGraph *sceneGraph, … … 249 282 250 283 void keyPressEvent ( QKeyEvent * e ) ; 251 284 285 void 286 RenderPvs(); 287 252 288 float 253 289 RenderErrors(); … … 265 301 266 302 public slots: 267 void 268 SetViewCellGranularity(int number); 269 303 304 void SetRenderErrors(bool b) { 305 mRenderErrors = b; 306 updateGL(); 307 } 308 309 void SetRenderFilter(bool b) { 310 mRenderFilter = b; 311 updateGL(); 312 } 313 314 315 void 316 SetViewCellGranularity(int number); 317 270 318 void 271 319 SetVisibilityFilterSize(int number); 272 320 273 321 void 274 322 SetSceneCut(int cut); … … 281 329 updateGL(); 282 330 } 283 331 332 void SetShowRenderCost(bool b) { 333 mShowRenderCost = b; 334 updateGL(); 335 } 336 337 void SetShowPvsSizes(bool b) { 338 mShowPvsSizes = b; 339 updateGL(); 340 } 341 284 342 void SetTopView(bool b) { 285 343 mTopView = b; … … 295 353 updateGL(); 296 354 } 355 297 356 298 357 };
Note: See TracChangeset
for help on using the changeset viewer.