HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_UndoGDT.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: SOP Library (C++)
7  *
8  * COMMENTS: This class stores deltas (a GDT_Detail object) which are
9  * used to complete an undo/redo operation for a class
10  * derived from SOP_GDT.
11  * Depending on the type of undo, we may apply the deltas
12  * inversely or not on an undo.
13  */
14 
15 #ifndef __SOP_UndoGDT_h__
16 #define __SOP_UndoGDT_h__
17 
18 #include "SOP_API.h"
19 #include <UT/UT_Undo.h>
20 #include <GDT/GDT_Detail.h>
21 
22 class SOP_GDT;
23 
27 };
28 
29 class SOP_API SOP_UndoGDT : public UT_Undo
30 {
31  public:
32  // Upon creation of a SOP_UndoGDT object, the node id
33  // and a copy of the given GDT are stored.
34  SOP_UndoGDT(SOP_GDT *gdtnode,
35  GDT_Detail *delta,
36  SOP_UndoGDTType undotype);
37  ~SOP_UndoGDT() override;
38 
39  void undo() override;
40  void redo() override;
41 
42  private:
43  int myOpId;
44  GDT_Detail *myDelta;
45  SOP_UndoGDTType myUndoType;
46  GDT_CoordinateFrames *myCoordinateFrames;
47 };
48 
49 #endif
virtual void redo()=0
SOP_UndoGDTType
Definition: SOP_UndoGDT.h:24
virtual void undo()=0
#define SOP_API
Definition: SOP_API.h:10