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 class VTKREMOTINGANIMATION_EXPORT vtkPythonAnimationCue : public vtkAnimationCue
29 {
30 public:
31  static vtkPythonAnimationCue* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  vtkSetMacro(Enabled, bool);
40  vtkGetMacro(Enabled, bool);
41  vtkBooleanMacro(Enabled, bool);
43 
45 
52  vtkSetStringMacro(Script);
53  vtkGetStringMacro(Script);
55 
56 protected:
58  ~vtkPythonAnimationCue() override;
59 
61 
64  virtual void HandleStartCueEvent();
65  virtual void HandleTickEvent();
66  virtual void HandleEndCueEvent();
68 
72  void DeleteInterpretor();
73 
74  bool Enabled;
75  char* Script;
76 
77 private:
79  void operator=(const vtkPythonAnimationCue&) = delete;
80 };
81 
82 #endif
static vtkAnimationCue * New()
vtkPythonAnimationCue is an animation cue that can execute arbitrary Python scripts.
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE