Changeset 154 for trunk/VUT/Ogre/include


Ignore:
Timestamp:
07/04/05 17:57:51 (19 years ago)
Author:
mattausch
Message:

added item buffer queries.

Location:
trunk/VUT/Ogre/include
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgreBspHierarchyInterface.h

    r87 r154  
    4343        */ 
    4444        AxisAlignedBox *GetBoundingBox(GtpVisibility::HierarchyNode *node); 
    45          
    46         unsigned int mNumOctreeNodes; 
    4745}; 
    4846} // namespace Ogre 
  • trunk/VUT/Ogre/include/OgreItemBufferQueryManager.h

    r153 r154  
    2222                            bool relativeVisibility = false); 
    2323     
    24     /**  
    25         Uses the specified point to execute the visibility query in all directions.  
    26         @sa ComputeCameraVisibility() 
    27     */ 
    28     void ComputeFromPointVisibility(const Vector3 &point, 
    29                                InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 
    30                                InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 
    31                                bool relativeVisibility = false); 
    32      
    3324        bool ShootRay(const Ray &ray, std::vector<Mesh *> *visibleMeshes, bool isGlobalLine = false);   
    3425         
     
    3627        void InitItemBuffer( InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 
    3728                            InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry); 
    38         bool mWasInitialised; 
     29         
    3930}; 
    4031 
  • trunk/VUT/Ogre/include/OgreOctreeHierarchyInterface.h

    r130 r154  
    2525                See setOption 
    2626        */ 
    27         //bool getOption( const String &, void * ); 
    28         //bool getOptionKeys( StringVector &refKeys ); 
    2927        void PullUpVisibility(GtpVisibility::HierarchyNode *node); 
     28         
    3029        /** Traverses given node. 
    3130                @param node current node 
     
    5049                                                        InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry,  
    5150                                                        bool includeChildren = false);*/ 
     51 
    5252        void GetGeometry(GtpVisibility::HierarchyNode *node, 
    5353                                         GtpVisibility::GeometryList *geometryList,  
    5454                                         bool includeChildren); 
     55 
     56        void SetNodeId(GtpVisibility::HierarchyNode *node, int id); 
     57         
     58        int GetNodeId(GtpVisibility::HierarchyNode *node); 
    5559 
    5660protected: 
     
    6569        */ 
    6670        Real GetSquaredViewDepth(const Camera* cam, const AxisAlignedBox* box) const; 
    67         /** number of octree hierarchy nodes */ 
    68         unsigned int mNumOctreeNodes; 
    6971}; 
    7072} // namespace Ogre 
  • trunk/VUT/Ogre/include/OgrePlatformQueryManager.h

    r144 r154  
    2020     
    2121    /**  
    22         Computes restricted visibility from point by using an explicit camera to execute 
    23         the visibility query. 
    24         @param camera The camera to be used 
    25  
    26         @param visibleNodes Pointer to the container where visible nodes should be added. 
    27         This set is formed of visible leafs or fully visible interior nodes. 
    28         If NULL no visible nodes are not evaluated. 
    29  
    30         @param visibleGeometry Pointer to the container where visible meshes should be added. 
    31         If NULL no visible meshes are not evaluated. 
    32  
    33         @param projectedPixels If true the visibility member for 
    34         NodeInfo and MeshInfo represent relative visibility; i.e. the number of visible 
    35         pixels divided by the the number of projected pixels. 
    36  
    37         @return true if the corresponding PVS exists. 
    38     */ 
    39     virtual void 
    40     ComputeCameraVisibility(const Camera &camera, 
    41                             InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 
    42                             InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 
    43                             bool relativeVisibility = false 
    44                             ); 
    45      
    46     /**  
    4722        Uses the specified point to execute the visibility query in all directions.  
    4823        @sa ComputeCameraVisibility() 
    4924    */ 
    50     virtual void 
    51     ComputeFromPointVisibility(const Vector3 &point, 
     25    void ComputeFromPointVisibility(const Vector3 &point, 
    5226                               InfoContainer<GtpVisibility::NodeInfo> *visibleNodes, 
    5327                               InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 
    54                                bool relativeVisibility = false 
    55                                ); 
     28                               bool relativeVisibility = false); 
    5629     
    5730  /**  
     
    7952protected: 
    8053        Viewport *mViewport; 
     54        bool mWasInitialised; 
    8155}; 
    8256 
  • trunk/VUT/Ogre/include/OgreSceneNodeHierarchyInterface.h

    r130 r154  
    4949                                         GtpVisibility::GeometryList *geometryList,  
    5050                                         bool includeChildren); 
     51 
     52        void SetNodeId(GtpVisibility::HierarchyNode *node, int id); 
     53         
     54        int GetNodeId(GtpVisibility::HierarchyNode *node); 
    5155}; 
    5256 
Note: See TracChangeset for help on using the changeset viewer.