Ignore:
Timestamp:
01/10/07 18:20:53 (17 years ago)
Author:
mattausch
Message:

worked on global lines

File:
1 edited

Legend:

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

    r1963 r1964  
    2121{ 
    2222public: 
    23         /*GlobalLinesRenderer(RenderTexture *buffer1,  
    24                                                 RenderTexture *buffer2,  
    25                                                 Preprocessor *preprocessor, 
    26                                                 GlRenderer *renderer); 
    27 */ 
     23         
     24        GlobalLinesRenderer(Preprocessor *preprocessor,  
     25                                                GlRenderer *renderer, 
     26                                                const float texHeight, 
     27                                                const float mTexWidth, 
     28                                                const float eps); 
     29 
    2830        GlobalLinesRenderer(Preprocessor *preprocessor, GlRenderer *renderer); 
    2931 
    3032        ~GlobalLinesRenderer(); 
    3133 
    32         void CastGlobalLines(Beam &beam, const int samples); 
     34        /** Casts global lines in the angle specified by alpha and 
     35                beta.  
     36                @returns Computed samples in the container rays 
     37        */ 
     38        void CastGlobalLines(const float alpha,  
     39                                                 const float beta,  
     40                                                 VssRayContainer &rays); 
    3341 
    3442        void InitGl(); 
     
    5159        void GrabDepthBuffer(float *data, RenderTexture *rt); 
    5260        void GrabItemBuffer(unsigned char *data, RenderTexture *rt); 
    53         void ApplyDepthPeeling(VssRayContainer &rays, Beam &beam, const int samples); 
     61        void ApplyDepthPeeling(VssRayContainer &rays); 
    5462        void ExportDepthBuffer(); 
    5563        void ExportItemBuffer(); 
    56         void ProcessDepthBuffer(VssRayContainer &vssRays, const bool oldBufferInitialised, const int pass); 
     64        void ProcessDepthBuffer(VssRayContainer &vssRays,  
     65                                                        const bool oldBufferInitialised,  
     66                                                        const int pass); 
     67 
    5768        void DisplayBuffer(const bool isDepth); 
    5869         
     
    93104                                           Vector3 &eye,  
    94105                                           Vector3 &up,  
    95                                            Vector3 left); 
     106                                           Vector3 &left); 
    96107protected: 
    97108 
    98109        void SwitchRenderTextures(); 
    99110 
    100         void SetupProjection(const Vector3 &viewPoint,  
    101                                                  const Beam &beam); 
    102  
    103          
     111        void InitScene(const float alpha, const float beta); 
    104112 
    105113        Preprocessor *mPreprocessor; 
    106114 
    107115        GlRenderer *mRenderer; 
     116 
     117        int mTexWidth; 
     118        int mTexHeight; 
     119        float mEpsilon; 
    108120}; 
    109121 
Note: See TracChangeset for help on using the changeset viewer.