HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TAKE_Event.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: TAKE_Event.h ( TAK Library, C++)
7  *
8  * COMMENTS: Take events
9  */
10 
11 #ifndef __TAKE_Event__
12 #define __TAKE_Event__
13 
14 #include "TAKE_API.h"
15 #include <UT/UT_Notifier.h>
16 
17 class TAKE_Take;
18 
20 public:
22  TAKE_SWITCH, // Current take was switched
23  TAKE_ADDED, // New take was created
24  TAKE_DELETED, // Take was deleted
25  TAKE_RENAME, // Take was re-named
26  TAKE_RELABEL, // Take was re-labelled
27  TAKE_MOVED, // Take was moved in the hierarchy
28  TAKE_INCLUDE, // Parameter included/excluded
29  TAKE_DEFNAME, // Default take name changed
30  TAKE_MODECHANGE, // Auto include mode was changed
31  };
32 
33  TAKE_Event(TAKE_EventType type, const char *name, const TAKE_Take *take=0)
34  : myEventType(type), myTakeName(name), myTake(take) { }
35 
36  const char *getTakeName() const { return myTakeName; }
37  const TAKE_Take *getTake() const { return myTake; }
38  TAKE_EventType getType() const { return myEventType; }
39 
40  static const char *getEventName(TAKE_EventType type);
41 
42 private:
43  TAKE_EventType myEventType;
44  const TAKE_Take *myTake;
45  const char *myTakeName;
46 };
47 
48 
49 #endif
TAKE_EventType getType() const
Definition: TAKE_Event.h:38
const char * getTakeName() const
Definition: TAKE_Event.h:36
GLuint const GLchar * name
Definition: glcorearb.h:785
TAKE_Event(TAKE_EventType type, const char *name, const TAKE_Take *take=0)
Definition: TAKE_Event.h:33
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
const TAKE_Take * getTake() const
Definition: TAKE_Event.h:37
#define TAKE_API
Definition: TAKE_API.h:10