vtkPythonAnimationCue.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkPythonAnimationCue_h
23 #define vtkPythonAnimationCue_h
24 
25 #include "vtkAnimationCue.h"
26 #include "vtkRemotingAnimationModule.h" //needed for exports
27 
28 #include <memory>
29 #include <string>
30 
32 {
33 public:
34  static vtkPythonAnimationCue* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetMacro(Enabled, bool);
43  vtkGetMacro(Enabled, bool);
44  vtkBooleanMacro(Enabled, bool);
46 
48 
55  void SetScript(const std::string&);
56  std::string GetScript() const;
58 
59 protected:
61  ~vtkPythonAnimationCue() override;
62 
64 
67  virtual void HandleStartCueEvent();
68  virtual void HandleTickEvent();
69  virtual void HandleEndCueEvent();
71 
75  void DeleteInterpretor();
76 
77  bool Enabled;
78  std::string Script;
79 
80 private:
82  void operator=(const vtkPythonAnimationCue&) = delete;
83 
84  struct pqInternals;
85  std::unique_ptr<pqInternals> Internals;
86 };
87 
88 #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