1 // SALOME VTKViewer : build VTK viewer into Salome desktop
3 // Copyright (C) 2003 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
29 #ifndef _VVTK_Recorder_Header_File_
30 #define _VVTK_Recorder_Header_File_
36 #include <vtkObject.h>
38 class vtkRenderWindow;
39 class vtkCallbackCommand;
40 class vtkWindowToImageFilter;
41 class VVTK_ImageWriterMgr;
43 class VVTK_Recorder : public vtkObject
47 VVTK_Recorder_Unknown=0,
53 static VVTK_Recorder *New();
54 vtkTypeRevisionMacro(VVTK_Recorder,vtkObject);
57 SetRenderWindow(vtkRenderWindow* theRenderWindow);
63 SetName(const char *theName);
69 SetNbFPS(const double theNbFPS);
75 SetQuality(int theQuality);
81 SetProgressiveMode(bool theProgressiveMode);
84 GetProgressiveMode() const;
87 SetUseSkippedFrames(bool theUseSkippedFrames);
90 UseSkippedFrames() const;
108 CheckExistAVIMaker();
129 ProcessEvents(vtkObject* theObject,
130 unsigned long theEvent,
143 int myNbWrittenFrames;
147 bool myProgressiveMode;
149 typedef std::vector<int> TFrameIndexes;
150 TFrameIndexes myFrameIndexes;
151 bool myUseSkippedFrames;
154 std::string myNameAVIMaker;
156 vtkCallbackCommand *myCommand;
157 vtkRenderWindow *myRenderWindow;
158 vtkWindowToImageFilter *myFilter;
159 VVTK_ImageWriterMgr *myWriterMgr;
163 VVTK_Recorder(const VVTK_Recorder&); //Not implemented
164 void operator=(const VVTK_Recorder&); //Not implemented