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

Revision 71, 1.1 KB checked in by mattausch, 20 years ago (diff)
Line 
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 
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) {}
17
18protected:
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;
25};
26 
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) {}
33
34protected:
35    /** Pointer to the mesh.
36        */
37    Mesh *mMesh;
38    /** Node visibility can either be a number of visible pixels or relative
39        number of visible pixels (if the hardware queries will provide the
40        total number of ratsterized pixels.
41        */
42    float mVisibility;
43};
44 
45//TODO: this define shall be replaced by template typedef
46#define InfoContainer std::vector
47};
48
49
50#endif
Note: See TracBrowser for help on using the repository browser.