source: trunk/VUT/GtpVisibility/include/VisibilityInfo.h @ 71

Revision 71, 1.1 KB checked in by mattausch, 20 years ago (diff)
RevLine 
[65]1#ifndef _VisibilityInfo_H__
2#define _VisibilityInfo_H__
3
4#include <vector>
5
6#include "VisibilityMesh.h"
7#include "HierarchyInterface.h"
8
9namespace GtpVisibility {
10 
[71]11/** Class storing the visibility information of a scene node.
12*/
13class NodeInfo
14{
15public:
16    NodeInfo(HierarchyNode *node,const float v): mNode(node), mVisibility(v) {}
[65]17
[71]18protected:
[65]19    /** pointer to the scene node */
20    HierarchyNode *mNode;
21    /** node visibility can either be a number of visible pixels or relative
22        number of visible pixels (if the hardware queries will provide the
23        total number of ratsterized pixels */
24    float mVisibility;
[71]25};
[65]26 
[71]27/** Class storing the visibility information of a mesh.
28*/
29class MeshInfo
30{
31public:
32        MeshInfo(Mesh *mesh, const float v): mMesh(mesh), mVisibility(v) {}
[65]33
[71]34protected:
35    /** Pointer to the mesh.
36        */
[65]37    Mesh *mMesh;
[71]38    /** Node visibility can either be a number of visible pixels or relative
[65]39        number of visible pixels (if the hardware queries will provide the
[71]40        total number of ratsterized pixels.
41        */
[65]42    float mVisibility;
[71]43};
[65]44 
[71]45//TODO: this define shall be replaced by template typedef
[65]46#define InfoContainer std::vector
47};
48
49
50#endif
Note: See TracBrowser for help on using the repository browser.