HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_EditorContext.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: OP_EditorContext.h ( OP Library, C++)
7  *
8  * COMMENTS: Data structure holding information about a network editor that
9  * may affect the way nodes are represented in that pane. One such
10  * use is to track which nodes contributed to the current/display
11  * node's cooked data.
12  */
13 
14 #ifndef __OP_EditorContext__
15 #define __OP_EditorContext__
16 
17 #include "OP_API.h"
18 #include <UT/UT_ArraySet.h>
19 
21 {
22 public:
25 
26  void clearCookSet()
27  { myCookSet.clear(); }
28  void addNodeToCookSet(int id)
29  { myCookSet.insert(id); }
30  bool cookSetContainsNode(int id) const
31  { return myCookSet.contains(id); }
32 
33  void setUseCookSetLook(bool use_cook_set)
34  { myUseCookSetLook = use_cook_set; }
35  bool useCookSetLook() const
36  { return myUseCookSetLook; }
37 
38 private:
39  UT_ArraySet<int> myCookSet;
40  bool myUseCookSetLook;
41 };
42 
43 #endif
44 
bool useCookSetLook() const
bool cookSetContainsNode(int id) const
void addNodeToCookSet(int id)
void setUseCookSetLook(bool use_cook_set)
#define OP_API
Definition: OP_API.h:10