Ignore:
Timestamp:
01/02/07 01:44:59 (17 years ago)
Author:
mattausch
Message:

worked on preprocessor with and without qt and threads

File:
1 edited

Legend:

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

    r1900 r1926  
    111111        */ 
    112112        bool LoadSamples(VssRayContainer &samples, 
    113                                          ObjectContainer &objects) const; 
     113                ObjectContainer &objects) const; 
    114114 
    115115        /** Exports samples to file. 
     
    121121        bool ExportKdTree(const string filename); 
    122122 
    123   virtual bool 
    124   ExportRays(const char *filename, 
    125                          const VssRayContainer &vssRays, 
    126                          const int number 
    127                          ); 
    128          
     123        virtual bool 
     124                ExportRays(const char *filename, 
     125                const VssRayContainer &vssRays, 
     126                const int number 
     127                ); 
     128 
    129129        virtual int 
    130         GenerateRays(const int number, 
    131                                  SamplingStrategy &strategy, 
    132                                  SimpleRayContainer &rays); 
    133  
    134   virtual int GenerateRays(const int number, 
    135                                                    const int raysType, 
    136                                                    SimpleRayContainer &rays); 
     130                GenerateRays(const int number, 
     131                SamplingStrategy &strategy, 
     132                SimpleRayContainer &rays); 
     133 
     134        virtual int GenerateRays(const int number, 
     135                const int raysType, 
     136                SimpleRayContainer &rays); 
    137137 
    138138        bool GenerateRayBundle(SimpleRayContainer &rayBundle, 
     
    142142 
    143143        virtual void CastRays(SimpleRayContainer &rays, 
    144                                                   VssRayContainer &vssRays, 
    145                                                   const bool castDoubleRays, 
    146                                                   const bool pruneInvalidRays = true); 
     144                VssRayContainer &vssRays, 
     145                const bool castDoubleRays, 
     146                const bool pruneInvalidRays = true); 
    147147 
    148148        /** Returns a view cells manager of the given name. 
     
    157157 
    158158        Intersectable *GetParentObject(const int index) const; 
    159 Vector3 GetParentNormal(const int index) const; 
     159        Vector3 GetParentNormal(const int index) const; 
     160 
     161        /** Sets a Preprocessor thread. 
     162        */ 
     163        void SetThread(PreprocessorThread *t); 
     164 
     165        /** Returns a Preprocessor thread. 
     166        */ 
     167        PreprocessorThread *GetThread() const; 
     168 
     169 
     170 
    160171        //////////////////////////////////////////////// 
    161172 
     
    205216        int mPass; 
    206217  
    207     bool mDelayVisibilityComputation; 
    208218        bool mStopComputation; 
    209219   
    210220        bool mExportObj; 
    211221 
    212   bool mExportRays; 
    213   int mExportNumRays; 
     222        bool mExportRays; 
     223        int mExportNumRays; 
    214224 
    215225        ofstream mStats; 
    216226 
    217   GlRendererBuffer *renderer; 
    218  
    219   void SetThread(PreprocessorThread *t) { 
    220         mThread = t; 
    221   } 
    222  
    223   PreprocessorThread *GetThread() const { 
    224         return mThread; 
    225   } 
     227        GlRendererBuffer *renderer; 
     228 
    226229 
    227230protected: 
     
    255258        bool mUseViewSpaceBox; 
    256259 
    257   PreprocessorThread *mThread; 
     260        PreprocessorThread *mThread; 
    258261}; 
    259262 
Note: See TracChangeset for help on using the changeset viewer.