vtkPythonAnimationCue.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPythonAnimationCue_h
11 #define vtkPythonAnimationCue_h
12 
13 #include "vtkAnimationCue.h"
14 #include "vtkRemotingAnimationModule.h" //needed for exports
15 
16 #include <memory> //for std::unique_ptr
17 #include <string> // for std::string
18 
20 {
21 public:
22  static vtkPythonAnimationCue* New();
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
27 
30  vtkSetMacro(Enabled, bool);
31  vtkGetMacro(Enabled, bool);
32  vtkBooleanMacro(Enabled, bool);
34 
36 
43  void SetScript(const std::string&);
44  std::string GetScript() const;
46 
47 protected:
49  ~vtkPythonAnimationCue() override;
50 
52 
55  virtual void HandleStartCueEvent();
56  virtual void HandleTickEvent();
57  virtual void HandleEndCueEvent();
59 
63  void DeleteInterpretor();
64 
65  bool Enabled;
66  std::string Script;
67 
68 private:
70  void operator=(const vtkPythonAnimationCue&) = delete;
71 
72  struct pqInternals;
73  std::unique_ptr<pqInternals> Internals;
74 };
75 
76 #endif
static vtkAnimationCue * New()
#define VTKREMOTINGANIMATION_EXPORT
vtkPythonAnimationCue is an animation cue that can execute arbitrary Python scripts.
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE