1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef SVTK_RECORDER_H
21 #define SVTK_RECORDER_H
27 #include <vtkObject.h>
29 class vtkRenderWindow;
30 class vtkCallbackCommand;
31 class vtkWindowToImageFilter;
32 class SVTK_ImageWriterMgr;
34 class SVTK_Recorder : public vtkObject
38 SVTK_Recorder_Unknown=0,
44 static SVTK_Recorder *New();
45 vtkTypeMacro(SVTK_Recorder,vtkObject);
48 SetRenderWindow(vtkRenderWindow* theRenderWindow);
54 SetName(const char *theName);
60 SetNbFPS(const double theNbFPS);
66 SetQuality(int theQuality);
72 SetProgressiveMode(bool theProgressiveMode);
75 GetProgressiveMode() const;
78 SetUseSkippedFrames(bool theUseSkippedFrames);
81 UseSkippedFrames() const;
120 ProcessEvents(vtkObject* theObject,
121 unsigned long theEvent,
134 int myNbWrittenFrames;
138 bool myProgressiveMode;
140 typedef std::vector<int> TFrameIndexes;
141 TFrameIndexes myFrameIndexes;
142 bool myUseSkippedFrames;
145 std::string myNameAVIMaker;
147 vtkCallbackCommand *myCommand;
148 vtkRenderWindow *myRenderWindow;
149 vtkWindowToImageFilter *myFilter;
150 SVTK_ImageWriterMgr *myWriterMgr;
153 SVTK_Recorder(const SVTK_Recorder&); //Not implemented
154 void operator=(const SVTK_Recorder&); //Not implemented