ParaView
vtkSMComparativeAnimationCueUndoElement.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMComparativeAnimationCueUndoElement.h
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 =========================================================================*/
21 #ifndef vtkSMComparativeAnimationCueUndoElement_h
22 #define vtkSMComparativeAnimationCueUndoElement_h
23 
24 #include "vtkPVServerManagerRenderingModule.h" //needed for exports
25 #include "vtkSMUndoElement.h"
26 #include <vtkSmartPointer.h> // needed for vtkSmartPointer.
27 #include <vtkWeakPointer.h> // needed for vtkWeakPointer.
28 
29 class vtkPVXMLElement;
30 
31 class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMComparativeAnimationCueUndoElement
32  : public vtkSMUndoElement
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  virtual int Undo();
40  virtual int Redo();
41 
42  void SetXMLStates(vtkTypeUInt32 id, vtkPVXMLElement* before, vtkPVXMLElement* after);
43 
44 protected:
47 
48  vtkSmartPointer<vtkPVXMLElement> BeforeState;
49  vtkSmartPointer<vtkPVXMLElement> AfterState;
51 
52 private:
54  const vtkSMComparativeAnimationCueUndoElement&) VTK_DELETE_FUNCTION;
55  void operator=(const vtkSMComparativeAnimationCueUndoElement&) VTK_DELETE_FUNCTION;
56 };
57 
58 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual int Undo()=0
Undo the operation encapsulated by this element.
virtual int Redo()=0
Redo the operation encaspsulated by this element.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
abstract superclass for Server Manager undo elements.