vtkSMAnimationSceneSeriesWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSMAnimationSceneSeriesWriter_h
14 #define vtkSMAnimationSceneSeriesWriter_h
15 
16 #include "vtkRemotingAnimationModule.h" //needed for exports
18 
19 class vtkSMExporterProxy;
20 class vtkSMViewProxy;
21 
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
39  vtkSetMacro(SingleFile, bool);
40  vtkGetMacro(SingleFile, bool);
41  vtkBooleanMacro(SingleFile, bool);
43 
44 protected:
46  ~vtkSMAnimationSceneSeriesWriter() override = default;
47 
52  bool SaveInitialize(int startCount) override;
53 
59  bool SaveFrame(double time) override;
60 
64  bool SaveFinalize() override;
65 
66 private:
68  void operator=(const vtkSMAnimationSceneSeriesWriter&) = delete;
69 
76  std::string BuildCurrentFilePath();
77 
78  int FrameCounter = 0;
79  bool SingleFile = false;
80 };
81 
82 #endif
proxy for view exporters.
Superclass for all view proxies.
virtual bool SaveInitialize(int countStart)=0
Subclasses should override this method.
helper class to write file series from animated scene
helper class used to write animations.
virtual bool SaveFrame(double time)=0
Subclasses should override this method.
#define VTKREMOTINGANIMATION_EXPORT
virtual bool SaveFinalize()=0
Subclasses should override this method.
static vtkSMSessionObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override