Frapper  1.0a
TridelityNode.h
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 #ifndef TRIDELITYNODE_H
12 #define TRIDELITYNODE_H
13 
14 #include "CompositorNode.h"
15 #include "InstanceCounterMacros.h"
16 
17 namespace TridelityNode {
18 using namespace Frapper;
19 
24 {
25 
26  Q_OBJECT
28 
29 public: // constructors and destructors
30 
37  TridelityNode ( const QString &name, ParameterGroup *parameterRoot );
38 
46  virtual ~TridelityNode ();
47 
48 protected: // functions
49 
56  virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr &mat);
57 
58  void SetupTextures();
59 
60  Ogre::TexturePtr CreateLookupTexture();
61 
62 public:
63 
64 private slots:
65 
66 
70  void processOutputImage ();
71 
75  void redrawTriggered ();
76 
77 private: // members
78 
82  Ogre::CompositorInstance *m_compositors[2];
83 
84  Ogre::PixelFormat m_pixelFormat;
85  Ogre::TexturePtr m_lookupTexture;
88 
89  static const int lookupX;
90  static const int lookupY;
91  static const int lookupML[5][15];
92  static const int lookupMV[5][15];
93 
95 
96 };
97 
98 } // namespace TridelityNode
99 #endif