HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
24
enum
SOP_UndoGDTType
{
25
SOP_UNDOGDTTYPE_APPLY_CURRENT_DELTA
= 0,
26
SOP_UNDOGDTTYPE_CLEAR_PERMANENT_DELTA
= 1
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
SOP_GDT
Definition:
SOP_GDT.h:24
UT_Undo::redo
virtual void redo()=0
GDT_Detail
Definition:
GDT_Detail.h:30
UT_Undo
Definition:
UT_Undo.h:23
SOP_API.h
SOP_UndoGDTType
SOP_UndoGDTType
Definition:
SOP_UndoGDT.h:24
UT_Undo::undo
virtual void undo()=0
SOP_UndoGDT
Definition:
SOP_UndoGDT.h:29
UT_Undo.h
SOP_UNDOGDTTYPE_APPLY_CURRENT_DELTA
Definition:
SOP_UndoGDT.h:25
GDT_CoordinateFrames
Definition:
GDT_CoordinateFrames.h:19
SOP_API
#define SOP_API
Definition:
SOP_API.h:10
GDT_Detail.h
SOP_UNDOGDTTYPE_CLEAR_PERMANENT_DELTA
Definition:
SOP_UndoGDT.h:26
SOP
SOP_UndoGDT.h
Generated on Sun Oct 13 2024 02:45:25 for HDK by
1.8.6