Ignore:
Timestamp:
04/24/06 20:27:38 (18 years ago)
Author:
bittner
Message:

first merge after the svn server crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h

    r746 r811  
    5151}; 
    5252 
     53struct RenderCostSample { 
     54 
     55  RenderCostSample() {} 
     56 
     57  void Reset() { 
     58        mVisibleObjects = 0; 
     59        mVisiblePixels = 0; 
     60  } 
     61   
     62  // visible object from the given point 
     63  int mVisibleObjects; 
     64 
     65  // visible pixels 
     66  int mVisiblePixels; 
     67   
     68}; 
    5369 
    5470/** Class encapsulating gl rendering for the scene. 
     
    7591  bool mWireFrame; 
    7692   
    77 bool mDetectEmptyViewSpace; 
     93  bool mDetectEmptyViewSpace; 
    7894  bool mSnapErrorFrames; 
     95 
     96  bool mUseGlLists; 
     97   
    7998  QString mSnapPrefix; 
    8099 
     
    83102  QWaitCondition mRenderingFinished; 
    84103   
     104  vector<unsigned int> mOcclusionQueries; 
    85105   
    86106  GlRenderer(SceneGraph *sceneGraph, 
     
    102122  RenderScene(); 
    103123 
     124  void 
     125  _RenderScene(); 
     126 
    104127 
    105128  virtual void 
    106   SetupProjection(const int w, const int h); 
     129  SetupProjection(const int w, const int h, const float angle = 70.0f); 
    107130 
    108131   
     
    122145Q_OBJECT 
    123146public: 
    124         GlRendererBuffer(const int w, 
    125                                          const int h, 
    126                                          SceneGraph *sceneGraph, 
    127                                          ViewCellsManager *viewcells, 
    128                                          KdTree *tree); 
    129  
    130    
     147GlRendererBuffer(const int w, 
     148                                 const int h, 
     149                                 SceneGraph *sceneGraph, 
     150                                 ViewCellsManager *viewcells, 
     151                                 KdTree *tree); 
     152 
     153 
     154  void 
     155  EvalRenderCostSample( 
     156                                           RenderCostSample &sample 
     157                                           ); 
     158 
     159  void 
     160  SampleRenderCost( 
     161                                   const int n, 
     162                                   vector<RenderCostSample> &samples 
     163                                   ); 
     164 
     165 
    131166  void 
    132167  EvalPvsStat(); 
     
    184219 
    185220private: 
    186          
     221  unsigned int *mPixelBuffer; 
     222   
    187223        static void GenQueries(const int numQueries); 
    188224         
Note: See TracChangeset for help on using the changeset viewer.