Frapper  1.0a
SimpleRenderNode.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of FRAPPER
4 research.animationsinstitut.de
5 sourceforge.net/projects/frapper
6 
7 Copyright (c) 2008-2010 Filmakademie Baden-Wuerttemberg, Institute of Animation
8 
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU Lesser General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
12 version.
13 
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18 You should have received a copy of the GNU Lesser General Public License along with
19 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20 Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21 http://www.gnu.org/copyleft/lesser.txt.
22 -----------------------------------------------------------------------------
23 */
24 
33 
34 #ifndef SimpleRenderNode_H
35 #define SimpleRenderNode_H
36 
37 #include "GeometryRenderNode.h"
38 #include "OgreTools.h"
39 
40 // OGRE
41 #include <Ogre.h>
42 #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32)
43 #include <windows.h>
44 #endif
45 
46 namespace SimpleRenderNode {
47 using namespace Frapper;
48 
52 class SimpleRenderNode;
53 
54 
59 {
60 
61  Q_OBJECT
62 
63 public: // constructors and destructors
64 
71  SimpleRenderNode ( const QString &name, ParameterGroup *parameterRoot );
72 
80  virtual ~SimpleRenderNode ();
81 
82 
83 public slots: //
84 
88  void processOutputImage ();
89 
90 protected: // data
91 
92  Ogre::Light *m_sceneLight;
93  Ogre::Image m_defaultTextureImage;
94 
98  Ogre::Camera *m_cameraCopy;
99 };
100 
101 } // namespace SimpleRenderNode
102 
103 #endif