Frapper  1.0a
ImageSaverNode.h
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 #ifndef IMAGESAVERNODE_H
11 #define IMAGESAVERNODE_H
12 
13 #include "Node.h"
14 #include "InstanceCounterMacros.h"
15 
16 namespace ImageSaverNode {
17 using namespace Frapper;
18 
23 class ImageSaverNode : public Node
24 {
25 
26  Q_OBJECT
28 
29 public: // constructors and destructors
30 
37  ImageSaverNode ( const QString &name, ParameterGroup *parameterRoot );
38 
46  virtual ~ImageSaverNode ();
47 
48 protected: // static constants
49 
53  static const unsigned int NumImages;
54 
55 private:
59  void saveImage(Ogre::TexturePtr tex, std::string filename);
60 
61 private slots: //
62 
66  void saveAllImages ();
67 
68 private: // member variables
69 
74 };
75 
76 } // namespace ImageSaverNode
77 
78 #endif