Ignore:
Timestamp:
03/22/07 18:24:13 (17 years ago)
Author:
mattausch
Message:

removed dependency on ogre in gtpvisibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/QueryManager.h

    r2255 r2280  
    55 
    66#include "VisibilityInfo.h" 
    7 #include "VisibilityVector3.h" 
    8 #include "VisibilityCamera.h" 
    9 #include "VisibilityRay.h" 
     7//#include "VisibilityCamera.h" 
     8//#include "VisibilityRay.h" 
     9 
    1010 
    1111namespace GtpVisibility { 
    12    
     12 
     13 
    1314typedef std::vector<OcclusionQuery *> QueryList; 
    1415 
     
    2526public: 
    2627    /** Constructor taking a hierarchy interface as an argument. This allows to operate 
    27         on different hierarchy types, while reusing the implementation of the query methods. 
     28                on different hierarchy types, while reusing the implementation of the query methods. 
    2829     */ 
    29     QueryManager(HierarchyInterface *hierarchyInterface, int queryModes); 
    30      
    31     /**  
    32         Computes restricted visibility from point by using an explicit camera to execute 
    33         the visibility query. 
    34         @param camera The camera to be used 
     30    //QueryManager(HierarchyInterface *hierarchyInterface, int queryModes); 
     31    QueryManager(int queryModes); 
    3532 
    36         @param visibleNodes Pointer to the container where visible nodes should be added. 
    37         This set is formed of visible leafs or fully visible interior nodes. 
    38         If NULL no visible nodes are not evaluated. 
     33    /** Computes restricted visibility from point by using an explicit camera to execute 
     34                the visibility query. 
     35                @param camera The camera to be used 
    3936 
    40         @param visibleGeometry Pointer to the container where visible meshes should be added. 
    41         If NULL no visible meshes are not evaluated. 
     37                @param visibleNodes Pointer to the container where visible nodes should be added. 
     38                This set is formed of visible leafs or fully visible interior nodes. 
     39                If NULL no visible nodes are not evaluated. 
    4240 
    43         @param visiblePatches Pointer to the container where visible patches should be added. 
    44         If NULL no visible meshes are not evaluated. 
     41                @param visibleGeometry Pointer to the container where visible meshes should be added. 
     42                If NULL no visible meshes are not evaluated. 
    4543 
    46         @param relativeVisibility If true the visibility member for 
    47         NodeInfo and MeshInfo represent relative visibility; i.e. the number of visible 
    48         pixels divided by the the number of projected pixels. 
     44                @param visiblePatches Pointer to the container where visible patches should be added. 
     45                If NULL no visible meshes are not evaluated. 
    4946 
    50         @return true if the corresponding PVS exists. 
     47                @param relativeVisibility If true the visibility member for 
     48                NodeInfo and MeshInfo represent relative visibility; i.e. the number of visible 
     49                pixels divided by the the number of projected pixels. 
     50 
     51                @return true if the corresponding PVS exists. 
    5152    */ 
    52     virtual void 
    53     ComputeCameraVisibility(const Camera &camera, 
    54                             NodeInfoContainer *visibleNodes, 
    55                             MeshInfoContainer *visibleGeometry, 
    56                                 PatchInfoContainer *visiblePatches, 
    57                             const bool relativeVisibility, 
    58                                 const bool approximateVisibility 
    59                             ) = 0; 
    60      
     53    /*virtual void ComputeCameraVisibility(const Camera &camera, 
     54                                                                                 NodeInfoContainer *visibleNodes, 
     55                                                                                 MeshInfoContainer *visibleGeometry, 
     56                                                                                 PatchInfoContainer *visiblePatches, 
     57                                                                                 const bool relativeVisibility, 
     58                                                                                 const bool approximateVisibility) = 0; 
     59    */ 
    6160    /**  
    6261        Uses the specified point to execute the visibility query in all directions.  
    6362        @sa ComputeCameraVisibility() 
    6463    */ 
    65     virtual void 
     64    /*virtual void 
    6665    ComputeFromPointVisibility(const Vector3 &point, 
    67                                NodeInfoContainer *visibleNodes, 
    68                                MeshInfoContainer *visibleGeometry, 
    69                                    PatchInfoContainer *visiblePatches, 
    70                                const bool relativeVisibility, 
    71                                    const bool approximateVisibility 
    72                                ) = 0; 
    73      
     66                                                           NodeInfoContainer *visibleNodes, 
     67                                                           MeshInfoContainer *visibleGeometry, 
     68                                                           PatchInfoContainer *visiblePatches, 
     69                                                           const bool relativeVisibility, 
     70                                                           const bool approximateVisibility) = 0; 
     71    */ 
    7472  /**  
    7573      Ray shooting interface: finds an intersection with objects in the scene. 
    7674 
    7775      @param ray The given input ray (assuming the ray direction is normalized) 
    78  
    7976      @param visibleMeshes List of meshes intersecting the ray 
    80  
    8177      @param isGlobalLine If false only first intersection with opaque object is returned. 
    8278      Otherwise all intersections of the ray with the scene are found. 
    8379 
    84       @return true if there is any intersection.  
     80          @return true if there is any intersection.  
    8581        */ 
    86     virtual bool 
    87                 ShootRay(const Ray &ray, 
    88              std::vector<Mesh *> *visibleMeshes, 
    89              bool isGlobalLine = false 
    90              ); 
    91    
     82    /*virtual bool ShootRay(const Ray &ray, 
     83                                                  std::vector<Mesh *> *visibleMeshes, 
     84                                                  bool isGlobalLine = false); 
     85*/ 
    9286        /** Sets the hierarchy interface. 
    9387      @remark the traversal depends on the type of hierarchyInterface the scene consists of. 
     
    10195protected: 
    10296   
    103         HierarchyInterface *mHierarchyInterface; 
     97        //HierarchyInterface *mHierarchyInterface; 
    10498        int mQueryModes;   
    10599}; 
Note: See TracChangeset for help on using the changeset viewer.