vtkSMComparativeAnimationCueUndoElement.h 1.88 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*=========================================================================

  Program:   ParaView
  Module:    vtkSMComparativeAnimationCueUndoElement.h

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
15 16 17 18 19
/**
 * @class   vtkSMComparativeAnimationCueUndoElement
 * @brief   UndoElement for ComparativeAnimationCue
 *
*/
20

21 22
#ifndef vtkSMComparativeAnimationCueUndoElement_h
#define vtkSMComparativeAnimationCueUndoElement_h
23

24
#include "vtkPVServerManagerRenderingModule.h" //needed for exports
25
#include "vtkSMUndoElement.h"
Sebastien Jourdain's avatar
Sebastien Jourdain committed
26
#include <vtkSmartPointer.h> // needed for vtkSmartPointer.
27
#include <vtkWeakPointer.h>  // needed for vtkWeakPointer.
28 29 30

class vtkPVXMLElement;

Kitware Robot's avatar
Kitware Robot committed
31 32
class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMComparativeAnimationCueUndoElement
  : public vtkSMUndoElement
33 34 35 36
{
public:
  static vtkSMComparativeAnimationCueUndoElement* New();
  vtkTypeMacro(vtkSMComparativeAnimationCueUndoElement, vtkSMUndoElement);
37
  void PrintSelf(ostream& os, vtkIndent indent) override;
38

39 40
  int Undo() override;
  int Redo() override;
41 42 43 44 45

  void SetXMLStates(vtkTypeUInt32 id, vtkPVXMLElement* before, vtkPVXMLElement* after);

protected:
  vtkSMComparativeAnimationCueUndoElement();
46
  ~vtkSMComparativeAnimationCueUndoElement() override;
47 48 49 50 51 52

  vtkSmartPointer<vtkPVXMLElement> BeforeState;
  vtkSmartPointer<vtkPVXMLElement> AfterState;
  vtkTypeUInt32 ComparativeAnimationCueID;

private:
53 54
  vtkSMComparativeAnimationCueUndoElement(const vtkSMComparativeAnimationCueUndoElement&) = delete;
  void operator=(const vtkSMComparativeAnimationCueUndoElement&) = delete;
55 56 57
};

#endif