1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef SVTK_RECORDER_H
23 #define SVTK_RECORDER_H
29 #include <vtkObject.h>
31 class vtkRenderWindow;
32 class vtkCallbackCommand;
33 class vtkWindowToImageFilter;
34 class SVTK_ImageWriterMgr;
36 class SVTK_Recorder : public vtkObject
40 SVTK_Recorder_Unknown=0,
46 static SVTK_Recorder *New();
47 vtkTypeRevisionMacro(SVTK_Recorder,vtkObject);
50 SetRenderWindow(vtkRenderWindow* theRenderWindow);
56 SetName(const char *theName);
62 SetNbFPS(const double theNbFPS);
68 SetQuality(int theQuality);
74 SetProgressiveMode(bool theProgressiveMode);
77 GetProgressiveMode() const;
80 SetUseSkippedFrames(bool theUseSkippedFrames);
83 UseSkippedFrames() const;
101 CheckExistAVIMaker();
122 ProcessEvents(vtkObject* theObject,
123 unsigned long theEvent,
136 int myNbWrittenFrames;
140 bool myProgressiveMode;
142 typedef std::vector<int> TFrameIndexes;
143 TFrameIndexes myFrameIndexes;
144 bool myUseSkippedFrames;
147 std::string myNameAVIMaker;
149 vtkCallbackCommand *myCommand;
150 vtkRenderWindow *myRenderWindow;
151 vtkWindowToImageFilter *myFilter;
152 SVTK_ImageWriterMgr *myWriterMgr;
155 SVTK_Recorder(const SVTK_Recorder&); //Not implemented
156 void operator=(const SVTK_Recorder&); //Not implemented