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

Revision 65, 1.2 KB checked in by bittner, 19 years ago (diff)

Merged headers and sources for dummy modules. Added GtpVisibilityPreprocessor?

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   */
13  class NodeInfo {
14  public:
15    NodeInfo(HierarchyNode *node,
16             const float v):
17      mNode(node), mVisibility(v) {}
18
19  protected:
20    /** pointer to the scene node */
21    HierarchyNode *mNode;
22    /** node visibility can either be a number of visible pixels or relative
23        number of visible pixels (if the hardware queries will provide the
24        total number of ratsterized pixels */
25    float mVisibility;
26  };
27 
28 
29  /** Class storing the visibility information of a mesh.
30   */
31  class MeshInfo {
32  public:
33    MeshInfo(Mesh *mesh,
34             const float v):
35      mMesh(mesh), mVisibility(v) {}
36
37  protected:
38    /** pointer to the scene node */
39    Mesh *mMesh;
40    /** node visibility can either be a number of visible pixels or relative
41        number of visible pixels (if the hardware queries will provide the
42        total number of ratsterized pixels */
43    float mVisibility;
44  };
45 
46  // this define shall be replaced by template typedef
47#define InfoContainer std::vector
48};
49
50
51#endif
Note: See TracBrowser for help on using the repository browser.