HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_NodeFlags.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: Flags for a sop (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __SOP_NodeFlags_h__
13 #define __SOP_NodeFlags_h__
14 
15 #include "SOP_API.h"
16 #include <iosfwd>
17 
18 class UT_IStream;
19 
21 {
22 public:
23  SOP_NodeFlags() { setDefaults(); }
25 
26  void setDefaults();
27 
28  void save(std::ostream &os, int binary = 0) const;
29  bool load(UT_IStream &is, const char *path=0);
30 
31  void setInstance(bool onOff) { instance = onOff; }
32  void setNeedGuide1(bool onOff) { needGuide1 = onOff; }
33  void setNeedGuide2(bool onOff) { needGuide2 = onOff; }
34  void setManagesDataIDs(bool onOff) { managesDataIDs = onOff; }
35  void setNeedOutputDetail(bool onOff) { needOutputDetail = onOff; }
36 
37  bool getInstance() const { return instance; }
38  bool getNeedGuide1() const { return needGuide1; }
39  bool getNeedGuide2() const { return needGuide2; }
40  bool getManagesDataIDs() const { return managesDataIDs; }
41 
42  /// If false, the node does not require myGdpHandle to refer
43  /// to a detail before cooking. This is for SOPs that usually
44  /// just instance another node's geometry, like Null, SubNet,
45  /// or Switch.
46  bool getNeedOutputDetail() const { return needOutputDetail; }
47 
48 private:
49  bool instance:1,
50  needGuide1:1,
51  needGuide2:1,
52  managesDataIDs:1,
53  needOutputDetail:1;
54 };
55 
56 #endif
void setNeedGuide2(bool onOff)
Definition: SOP_NodeFlags.h:33
void setNeedGuide1(bool onOff)
Definition: SOP_NodeFlags.h:32
void setInstance(bool onOff)
Definition: SOP_NodeFlags.h:31
const GLuint GLenum const void * binary
Definition: glcorearb.h:1924
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
bool getNeedGuide1() const
Definition: SOP_NodeFlags.h:38
bool getNeedOutputDetail() const
Definition: SOP_NodeFlags.h:46
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
bool getNeedGuide2() const
Definition: SOP_NodeFlags.h:39
void setNeedOutputDetail(bool onOff)
Definition: SOP_NodeFlags.h:35
void setManagesDataIDs(bool onOff)
Definition: SOP_NodeFlags.h:34
bool getInstance() const
Definition: SOP_NodeFlags.h:37
#define SOP_API
Definition: SOP_API.h:10
bool getManagesDataIDs() const
Definition: SOP_NodeFlags.h:40