HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OR_Mapping.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: OR_Mapping.h ( OR Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __OR_Mapping__
12 #define __OR_Mapping__
13 
14 #include "OP_API.h"
15 #include <UT/UT_ValArray.h>
16 
17 
18 #define OR_MAP_AUTONAME 0
19 #define OR_MAP_MANUAL 1
20 
21 #define OR_MAP_DEFAULT OR_MAP_AUTONAME
22 
23 class orMapElement;
24 class OP_Node;
25 class opParmData;
26 class UT_IStream;
27 class UT_OStream;
28 
30 {
31 
32 public:
33 
34  OR_Mapping();
35  ~OR_Mapping();
36 
37  void setMapping(int idx, int type, const char *label = 0);
38  int getMapping(int idx, const char *&label) const;
39 
40  int getNumMappings() const
41  { return myElements.entries(); }
42 
43  int findManualParms(int index, OP_Node *src);
44  const opParmData *getManualParm(int index, int i);
45 
46  void buildOpDependencies( OP_Node *src );
47  void changeOpRef(const char *new_fullpath, const char *old_fullpath,
48  const char *old_cwd);
49 
50  bool save(UT_OStream &os);
51  bool load(UT_IStream &is);
52 
53  int64 getMemoryUsage(bool inclusive) const;
54 
55 private:
56 
57  void reset();
58 
59 
60  UT_ValArray<orMapElement *> myElements;
61 
62 };
63 
64 #endif
65 
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLboolean reset
Definition: glad.h:5138
long long int64
Definition: SYS_Types.h:116
int getNumMappings() const
Definition: OR_Mapping.h:40
#define OP_API
Definition: OP_API.h:10
GLuint index
Definition: glcorearb.h:786
type
Definition: core.h:1059
GLenum src
Definition: glcorearb.h:1793