Frapper  1.0a
FiveViewCamera.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 
34 
35 #ifndef FIVEVIEWCAMERA_H
36 #define FIVEVIEWCAMERA_H
37 
38 #include "OgreTools.h"
39 #include "ViewNode.h"
40 // OGRE
41 #include <Ogre.h>
42 #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32)
43 #include <windows.h>
44 #endif
45 
46 namespace FiveViewCameraNode {
47 using namespace Frapper;
48 
52 class FiveViewCamera : public ViewNode
53 {
54 
55  Q_OBJECT
56 
57 public: // constructors and destructors
58 
65  FiveViewCamera ( const QString &name, ParameterGroup *parameterRoot );
66 
74  virtual ~FiveViewCamera ();
75 
76 public:
77 
84  virtual Ogre::SceneNode * getSceneNode ();
85 
86 public slots: //
87 
91  void AdjustCameras();
92 
93  void ProcessCamera1();
94  void ProcessCamera2();
95  void ProcessCamera3();
96  void ProcessCamera4();
97  void ProcessCamera5();
98 
99 private: // functions
100 
101  void DeleteCameraSceneNode( Ogre::SceneNode* cameraSceneNode );
102 
103 protected: // data
104 
108  Ogre::Camera *m_camera1, *m_camera2, *m_camera3, *m_camera4, *m_camera5;
109 
113  Ogre::SceneNode *m_cameraSceneNode1, *m_cameraSceneNode2, *m_cameraSceneNode3, *m_cameraSceneNode4, *m_cameraSceneNode5;
114 
118  Parameter *m_outputCamera1, *m_outputCamera2, *m_outputCamera3, *m_outputCamera4, *m_outputCamera5;
119 
120  OgreContainer *m_cameraContainer1, *m_cameraContainer2, *m_cameraContainer3, *m_cameraContainer4, *m_cameraContainer5;
121 
122  Ogre::SceneManager* m_sceneManager;
125 };
126 
127 } // namespace FiveViewCameraNode
128 #endif