HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD_Defines.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: DD_Define.h
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __DD_Define__
12 #define __DD_Define__
13 
14 enum DD_State {
19 };
20 
21 //
22 // Some common drag-n-drop attributes
23 // which are supplied by the sender
24 //
25 // Strings are chose over enumerated types
26 // so custom drag-n-drop objects will have
27 // a smaller chance of name collision.
28 //
29 
30 #define DD_MIMETYPE_NAMESPACE "application/sidefx-houdini-"
31 
32 #define DD_DATA_TEXT "text/plain"
33 #define DD_LABEL_TEXT "Text"
34 
35 // the data parameter is a (void *)int to index between multiple choices
36 #define DD_DATA_PARM_PATH DD_MIMETYPE_NAMESPACE "parm.path"
37 #define DD_LABEL_PARM_PATH "Parameter Path"
38 
39 #define DD_DATA_CHAN_PATH DD_MIMETYPE_NAMESPACE "channel.path"
40 #define DD_DATA_FLAG_PATH DD_MIMETYPE_NAMESPACE "node.flag.path"
41 
42 // the node and track are separated by a space since track names may
43 // have slashes in them
44 #define DD_DATA_TRACK_PATH DD_MIMETYPE_NAMESPACE "chop.track.path"
45 
46 // the data parameter is a (void *)int to index between multiple choices
47 #define DD_DATA_OP_PATH DD_MIMETYPE_NAMESPACE "node.path"
48 #define DD_LABEL_OP_PATH "Node Path"
49 
50 #define DD_DATA_ITEM_PATH DD_MIMETYPE_NAMESPACE "item.path"
51 #define DD_LABEL_ITEM_PATH "Network Item Path"
52 #define DD_DATA_PERS_HANDLE_PATH DD_MIMETYPE_NAMESPACE \
53  "persistent.handle.path"
54 
55 // returns the name of a take
56 #define DD_DATA_TAKE_NAME DD_MIMETYPE_NAMESPACE "take.name"
57 
58 // returns a pointer to an OP_GalleryEntry or the gallery entry name
59 #define DD_DATA_GALLERY_ENTRY DD_MIMETYPE_NAMESPACE "gallery.entry"
60 #define DD_DATA_GALLERY_ENTRY_NAME DD_MIMETYPE_NAMESPACE \
61  "gallery.entry.name"
62 #define DD_LABEL_GALLERY_ENTRY_NAME "Gallery Entry"
63 
64 // returns a pointer to SHLF_Tool or the shelf tool name
65 #define DD_DATA_SHELF_TOOL DD_MIMETYPE_NAMESPACE "shelf.tool"
66 #define DD_DATA_SHELF_TOOL_NAME DD_MIMETYPE_NAMESPACE "shelf.tool.name"
67 #define DD_LABEL_SHELF_TOOL_NAME "Shelf Tool"
68 
69 // Returns the name of the node type
70 #define DD_DATA_ASSET_GUID DD_MIMETYPE_NAMESPACE "asset.guid"
71 #define DD_LABEL_ASSET_GUID "Asset Guid"
72 #define DD_DATA_ASSETTOOL_NAME DD_MIMETYPE_NAMESPACE \
73  "orbolt.node.type.name"
74 #define DD_LABEL_ASSETTOOL_NAME "Asset Tool"
75 #define DD_DATA_FOLDER_GUID DD_MIMETYPE_NAMESPACE "folder.guid"
76 #define DD_LABEL_FOLDER_GUID "Folder Guid"
77 
78 // returns a pointer to OPUI_ToolbarItem
79 #define DD_DATA_SHELF_TOOL_BUTTON DD_MIMETYPE_NAMESPACE \
80  "shelf.tool.button"
81 
82 // returns a pointer to the OPUI_Toolbar or the shelf name
83 #define DD_DATA_SHELF_TOOLBAR DD_MIMETYPE_NAMESPACE \
84  "shelf.toolbar"
85 #define DD_DATA_SHELF_TOOLBAR_NAME DD_MIMETYPE_NAMESPACE "shelf.name"
86 #define DD_LABEL_SHELF_TOOLBAR_NAME "Shelf"
87 
88 // returns a pointer to FUSE_DesktopNode or the name of the pane tab
89 #define DD_DATA_DESKTOP_NODE DD_MIMETYPE_NAMESPACE "desktop.node"
90 #define DD_DATA_DESKTOP_NODE_NAME DD_MIMETYPE_NAMESPACE "pane.tab.name"
91 #define DD_LABEL_DESKTOP_NODE_NAME "Pane Tab"
92 
93 #define DD_DATA_DOPDATA_PYTHON DD_MIMETYPE_NAMESPACE "dop.data.python"
94 #define DD_LABEL_DOPDATA_PYTHON "Dop Data as Python expression"
95 #define DD_DATA_DOPDATA_HSCRIPT_FLOAT DD_MIMETYPE_NAMESPACE \
96  "dop.data.hscript.float"
97 #define DD_LABEL_DOPDATA_HSCRIPT_FLOAT "Dop Data as Hscript float"
98 #define DD_DATA_DOPDATA_HSCRIPT_STRING DD_MIMETYPE_NAMESPACE \
99  "dop.data.hscript.string"
100 #define DD_LABEL_DOPDATA_HSCRIPT_STRING "Dop Data as Hscript string"
101 
102 // Returns a path to a primitive, which is essentially the SOP path
103 // ('/obj/foo/mysop') plus the primitive path name (can be partial) separated
104 // by a colon (e.g: '/obj/foo/mysop:/alembic/foo/prim')
105 #define DD_DATA_PRIM_PATH DD_MIMETYPE_NAMESPACE "primitive.path"
106 #define DD_LABEL_PRIM_PATH "Primitive Path"
107 
108 // Visualizder
109 #define DD_DATA_VISUALIZER DD_MIMETYPE_NAMESPACE "visualizer"
110 #define DD_LABEL_VISUALIZER "Visualizer"
111 
112 // USD Primitives and collections
113 #define DD_DATA_USDPRIMPATH DD_MIMETYPE_NAMESPACE \
114  "usd.primitive.path"
115 #define DD_DATA_USDPRIMPYTHON DD_MIMETYPE_NAMESPACE \
116  "usd.primitive.python"
117 #define DD_LABEL_USDPRIMPYTHON "USD Primitive as Python expression"
118 #define DD_DATA_USDPROPERTYPATH DD_MIMETYPE_NAMESPACE \
119  "usd.property.path"
120 #define DD_DATA_USDPROPERTYPYTHON DD_MIMETYPE_NAMESPACE \
121  "usd.property.python"
122 #define DD_LABEL_USDPROPERTYPYTHON "USD Property as Python expression"
123 
124 //
125 // Some attributes which receivers can derive given the above
126 //
127 
128 //
129 // parameter
130 //
131 
132 #define DD_DATA_CHAN_VALUE DD_MIMETYPE_NAMESPACE "chan.value"
133 #define DD_LABEL_CHAN_VALUE "Current Channel Value"
134 
135 
136 #define DD_DATA_CHAN_EXPR DD_MIMETYPE_NAMESPACE "chan.express"
137 #define DD_LABEL_CHAN_EXPR "Channel Expression"
138 
139 #define DD_DATA_CHAN_REF_ABS DD_MIMETYPE_NAMESPACE "chan.ref.abs"
140 #define DD_LABEL_CHAN_REF_ABS "Absolute Channel Reference"
141 
142 #define DD_DATA_CHAN_REF_REL DD_MIMETYPE_NAMESPACE "chan.ref.rel"
143 #define DD_LABEL_CHAN_REF_REL "Relative Channel Reference"
144 
145 #define DD_DATA_COPY_CHANNEL DD_MIMETYPE_NAMESPACE "copy.channel"
146 #define DD_LABEL_COPY_CHANNEL "Copy Channel"
147 
148 #define DD_DATA_CHAN_GROUPS DD_MIMETYPE_NAMESPACE "chgroups"
149 #define DD_LABEL_CHAN_GROUPS "Channel Groups"
150 
151 #define DD_DATA_SI_TREENODES DD_MIMETYPE_NAMESPACE "si.tree.nodes"
152 
153 //
154 // chop
155 //
156 //
157 
158 #define DD_DATA_TRACK_VALUE DD_MIMETYPE_NAMESPACE "chop.value"
159 #define DD_LABEL_TRACK_VALUE "Current CHOP Value"
160 
161 #define DD_DATA_TRACK_REF_ABS DD_MIMETYPE_NAMESPACE "chop.ref.abs"
162 #define DD_LABEL_TRACK_REF_ABS "CHOP Reference"
163 
164 #define DD_DATA_TRACK_REF_REL DD_MIMETYPE_NAMESPACE "chop.ref.rel"
165 #define DD_LABEL_TRACK_REF_REL "Relative CHOP Reference"
166 
167 #define DD_DATA_TRACK_EXPORT DD_MIMETYPE_NAMESPACE "chop.export"
168 #define DD_LABEL_TRACK_EXPORT "Export CHOP"
169 
170 #endif
171 
172 
DD_State
Definition: DD_Defines.h:14