61 virtual std::vector<HOM_ElemPtr<HOM_Desktop> > desktops() = 0;
64 virtual std::vector<HOM_ElemPtr<HOM_RadialMenu> > radialMenus() = 0;
67 const char *
label) = 0;
69 SWIGOUT(%kwargs createRadialItem;)
70 SWIGOUT(%newobject createRadialItem;)
73 bool callback=
false) = 0;
81 virtual void updateMainMenuBar() = 0;
82 virtual std::vector<HOM_ElemPtr<HOM_Pane> > panes() = 0;
83 virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > paneTabs() = 0;
85 virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > currentPaneTabs() = 0;
87 SWIGOUT(%newobject paneTabOfType;)
91 virtual HOM_Pane *findPane(
int pane_id) = 0;
93 SWIGOUT(%newobject findPaneTab;)
96 virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > floatingPaneTabs() = 0;
98 virtual std::vector<HOM_ElemPtr<HOM_FloatingPanel> > floatingPanels() = 0;
100 SWIGOUT(%newobject paneUnderCursor;)
101 virtual HOM_Pane *paneUnderCursor() = 0;
102 SWIGOUT(%newobject paneTabUnderCursor;)
105 virtual bool isUserInteracting() = 0;
106 virtual void setUserInteracting(
bool interacting) = 0;
111 SWIGOUT(%kwargs displayConfirmation;)
112 virtual bool displayConfirmation(
115 const char *
help = NULL,
116 const char *title = NULL,
117 const char *details = NULL,
118 const char *details_label = NULL,
119 HOM_EnumValue &suppress = HOM_confirmType::OverwriteFile) = 0;
121 SWIGOUT(%kwargs displayCustomConfirmation;)
122 virtual int displayCustomConfirmation(
124 const std::vector<std::string> &buttons =
125 std::vector<std::string>(),
127 int default_choice = 0,
128 int close_choice = -1,
129 const char *
help = NULL,
130 const char *title = NULL,
131 const char *details = NULL,
132 const char *details_label = NULL,
133 HOM_EnumValue &suppress = HOM_confirmType::OverwriteFile) = 0;
135 SWIGOUT(%kwargs displayMessage;)
136 virtual int displayMessage(
138 const std::vector<std::string> &buttons =
139 std::vector<std::string>(1,
"OK"),
141 int default_choice = 0,
142 int close_choice = -1,
143 const char *
help = NULL,
144 const char *title = NULL,
145 const char *details = NULL,
146 const char *details_label = NULL,
147 bool details_expanded =
false,
148 HOM_EnumValue& suppress = HOM_confirmType::NoConfirmType) = 0;
151 virtual std::pair<int, std::string> readInput(
153 const std::vector<std::string> &buttons =
154 std::vector<std::string>(1,
"OK"),
156 int default_choice = 0,
157 int close_choice = -1,
158 const char *
help = NULL,
159 const char *title = NULL,
160 const char *initial_contents = NULL) = 0;
162 SWIGOUT(%kwargs readMultiInput;)
163 virtual std::pair<
int, std::vector<std::string> > readMultiInput(
165 const std::vector<std::string> &input_labels,
166 const std::vector<int> &password_input_indices = std::vector<int>(),
167 const std::vector<std::string> &buttons =
168 std::vector<std::string>(1,
"OK"),
170 int default_choice = 0,
171 int close_choice = -1,
172 const char *
help = NULL,
173 const char *title = NULL,
174 const std::vector<std::string> &initial_contents =
175 std::vector<std::string>() ) = 0;
177 SWIGOUT(%kwargs selectFromList;)
178 virtual std::vector<int> selectFromList(
179 const std::vector<std::string> &choices,
180 const std::vector<int> &default_choices = std::vector<int>(),
181 bool exclusive =
false,
182 const char *message = NULL,
183 const char *title = NULL,
184 const char *column_header =
"Choices",
185 int num_visible_rows = 10,
186 bool clear_on_cancel =
false,
190 bool condense_paths =
false) = 0;
192 SWIGOUT(%kwargs selectFromTree;)
193 virtual std::vector<std::string> selectFromTree(
194 const std::vector<std::string> &choices,
195 const std::vector<std::string> &picked = std::vector<std::string>(),
196 bool exclusive =
false,
197 const char *message = NULL,
198 const char *title = NULL,
199 bool clear_on_cancel =
false,
205 const char *start_directory = NULL,
206 const char *title = NULL,
207 bool collapse_sequences =
false,
209 const std::vector<HOM_EnumValue *>&
210 file_types = {&HOM_fileType::Any},
212 const char *default_value = NULL,
213 bool multiple_select =
false,
214 bool image_chooser =
false,
215 bool ignore_preferences =
false,
216 HOM_EnumValue &chooser_mode = HOM_fileChooserMode::ReadAndWrite,
221 virtual std::vector<std::string> _selectNodeInternal(
225 const char *title = NULL,
228 bool multiple_select =
false,
229 void *custom_node_filter_callback =
nullptr) = 0;
233 virtual std::vector<std::string> _selectMultipleNodes(
237 const char *title = NULL,
240 void *custom_node_filter_callback =
nullptr) = 0;
243 virtual std::vector<std::string> _selectNodeDataInternal(
244 const char *title = NULL,
245 const char *message = NULL,
248 const std::vector<std::string> &
249 initial_selection = std::vector<std::string>(),
251 bool multiple_select =
false,
252 bool include_data_type_headers =
true,
253 bool include_parms=
true,
254 bool include_object_transforms=
true,
255 bool include_geometry_bounding_boxes=
true,
256 bool include_geometry_attributes=
true,
257 bool expand_components=
true,
258 void *custom_data_callback=
nullptr,
259 void *custom_node_filter_callback =
nullptr,
260 const char *help_url=
nullptr) = 0;
262 SWIGOUT(%kwargs selectParmTag;)
263 virtual std::vector<std::string> selectParmTag(
268 virtual std::vector<std::string> selectParm(
270 bool bound_parms_only =
false,
272 const char *message = NULL,
273 const char *title = NULL,
274 const std::vector<std::string> &
275 initial_parms = std::vector<std::string>(),
276 bool multiple_select =
true,
280 SWIGOUT(%kwargs selectParmTuple;)
281 virtual std::vector<std::string> selectParmTuple(
283 bool bound_parms_only =
false,
285 const char *message = NULL,
286 const char *title = NULL,
287 const std::vector<std::string> &
288 initial_parm_tuples = std::vector<std::string>(),
289 bool multiple_select =
true,
294 SWIGOUT(%newobject selectColor;)
298 SWIGOUT(%kwargs _openBookmarkEditor;)
299 virtual void _openBookmarkEditor(
HOM_Bookmark *bookmark) = 0;
301 SWIGOUT(%kwargs _openColorEditor;)
302 virtual void _openColorEditor(
303 void *color_changed_callback,
bool include_alpha=
false,
304 HOM_Color *initial_color=
nullptr,
float initial_alpha=1.0
f) = 0;
306 virtual std::vector<HOM_Color> loadPaletteFile(
const char *file) = 0;
307 virtual void savePaletteFile(
const char *file,
308 const std::vector<HOM_Color> &colors) = 0;
311 SWIGOUT(%kwargs _openValueLadder;)
312 virtual void _openValueLadder(
313 float initial_value,
void *value_changed_callback,
315 HOM_EnumValue &data_type=HOM_valueLadderDataType::Float) = 0;
316 virtual void updateValueLadder(
317 int cursor_x,
int cursor_y,
bool alt_key,
bool shift_key) = 0;
318 virtual void closeValueLadder() = 0;
320 SWIGOUT(%kwargs displayFileDependencyDialog;)
323 displayFileDependencyDialog(
325 const std::vector<std::string> &uploaded_files =
326 std::vector<std::string>(),
327 const std::vector<std::string> &forced_unselected_patterns =
328 std::vector<std::string>(),
329 const char *project_dir_variable=
"HIP",
330 bool is_standalone=
true) = 0;
332 virtual void displayNodeHelp(
HOM_NodeType &node_type) = 0;
333 virtual void _openTypePropertiesDialogForNode(
334 HOM_Node &node,
bool promote_spare_parms,
335 bool immediately_save) = 0;
336 virtual void _openTypePropertiesDialogForNodeType(
338 bool immediately_save) = 0;
340 virtual void openRenderDialog(
HOM_RopNode &rop) = 0;
342 virtual void openRenameSelectedDialog(
HOM_Node &network) = 0;
344 SWIGOUT(%kwargs openParameterInterfaceDialog;)
345 virtual void openParameterInterfaceDialog(
HOM_Node &node,
347 const char *open_tab_tree_path =
nullptr) = 0;
351 virtual void addOpaqueTriggerUpdateCallback(
void *py_callback) = 0;
353 virtual void removeOpaqueTriggerUpdateCallback(
void *py_callback) = 0;
356 virtual void triggerUpdate() = 0;
357 virtual void reloadViewportColorSchemes() = 0;
358 virtual void reloadColorScheme() = 0;
361 virtual bool isAutoKey() = 0;
363 virtual std::vector<int> _getTabMenuIconSize() = 0;
366 virtual void addOpaqueSelectionCallback(
void *py_callback) = 0;
368 virtual void removeOpaqueSelectionCallback(
void *py_callback) = 0;
369 virtual void removeAllSelectionCallbacks() = 0;
371 virtual std::vector<void *> opaqueSelectionCallbacks() = 0;
374 virtual void addOpaqueEventLoopCallback(
void *callback) = 0;
376 virtual void removeOpaqueEventLoopCallback(
void *callback) = 0;
378 virtual std::vector<void *> opaqueEventLoopCallbacks() = 0;
380 virtual void postOpaqueEventCallback(
void *callback) = 0;
382 virtual void removePostedOpaqueEventCallback(
void *callback) = 0;
384 SWIGOUT(%newobject createDialog;)
385 virtual HOM_Dialog *createDialog(
const char *ui_file_name) = 0;
386 SWIGOUT(%newobject findDialog;)
387 virtual HOM_Dialog *findDialog(
const char *ui_file_name) = 0;
388 virtual std::vector<HOM_ElemPtr<HOM_Dialog> > dialogs() = 0;
391 virtual void opaqueWaitUntil(
void *condition_callback) = 0;
393 SWIGOUT(%kwargs writePythonShellHistoryFile;)
394 virtual void writePythonShellHistoryFile(
const char *
filename=NULL) = 0;
396 SWIGOUT(%kwargs readPythonShellHistoryFile;)
397 virtual void readPythonShellHistoryFile(
const char *
filename=NULL) = 0;
399 SWIGOUT(%kwargs setStatusMessage;)
400 virtual void setStatusMessage(
403 virtual std::pair<std::string, HOM_EnumValue *> statusMessage() = 0;
405 virtual bool _processEvents() = 0;
407 virtual void openAssetUploadDialog(
408 HOM_Node *uploading_node,
const char *session_key,
411 virtual void openAssetDependenciesDialog(
412 const std::vector<HOM_Node *> &uploading_nodes,
413 const std::vector<HOM_Node *> &uploaded_nodes,
414 const char *session_key,
417 virtual bool hasDragSourceData(
const char *
label) = 0;
418 SWIGOUT(%kwargs getDragSourceData;)
424 virtual double globalScaleFactor() = 0;
425 virtual int scaledSize(
int size) = 0;
427 virtual double inchesToPixels(
double inches) = 0;
428 virtual double pixelsToInches(
double pixels) = 0;
430 virtual void copyTextToClipboard(
const char *text) = 0;
433 virtual std::vector<std::string> hotkeys(
const char *hotkey_symbol) = 0;
434 virtual std::string hotkeyDescription(
const char *hotkey_symbol) = 0;
435 virtual bool isKeyMatch(
const char *key,
const char *hotkey_symbol) = 0;
437 virtual std::string _geoSpreadsheetCellText(
int sheet_id,
int row,
int col) = 0;
438 virtual void openCaptureWeightSpreadsheet(
HOM_Node *node,
439 const char *pattern = NULL) = 0;
442 virtual void _closeCaptureWeightSpreadsheet(
const std::string &identifier) = 0;
445 virtual void registerViewerStateFile(
std::string const& state_file) = 0;
446 virtual void registerViewerStates() = 0;
447 virtual void unregisterViewerState(
std::string const& state_typename) = 0;
448 virtual void unregisterViewerStateFile(
std::string const& state_file) = 0;
449 virtual bool isRegisteredViewerState(
std::string const& state_name) = 0;
450 virtual void reloadViewerState(
std::string const& state_typename) = 0;
451 SWIGOUT(%kwargs reloadViewerStates;)
452 virtual void reloadViewerStates(std::vector<std::string>
const& state_names=std::vector<std::string>()) = 0;
454 SWIGOUT(%kwargs viewerStateInfo;)
455 virtual std::string viewerStateInfo(std::vector<std::string>
const& state_names=std::vector<std::string>()) = 0;
458 SWIGOUT(%kwargs viewerHandleInfo;)
459 virtual std::string viewerHandleInfo(std::vector<std::string>
const& handle_names=std::vector<std::string>()) = 0;
461 SWIGOUT(%kwargs printResourceMessage;)
462 virtual void printResourceMessage(
465 HOM_EnumValue &message_type = HOM_severityType::Message) = 0;
466 SWIGOUT(%kwargs fireResourceCustomEvent;)
467 virtual void fireResourceCustomEvent(
469 std::map<std::string, hboost::any>
const &user_data,
470 bool queue =
true) = 0;
473 SWIGOUT(%kwargs _openViewerStateCodeGenDialog;)
474 virtual void _openViewerStateCodeGenDialog(
476 void *action_callback,
480 virtual void addOpaqueResourceEventCallback(
void *py_callback) = 0;
482 virtual void removeOpaqueResourceEventCallback(
void *py_callback) = 0;
485 SWIGOUT(%kwargs _openFileEditor;)
486 virtual void _openFileEditor(
489 void *action_callback =
nullptr,
490 std::map<std::string, hboost::any>
const &
params =
491 std::map<std::string, hboost::any>()) = 0;
493 virtual void showInFileBrowser(
const char *file_path) = 0;
495 SWIGOUT(%newobject showFloatingParameterEditor;)
498 virtual void openParameterExpressionEditor(
HOM_Parm *parm) = 0;
499 virtual void openPreferences(
const char *page,
const char *
label) = 0;
501 virtual bool hideAllMinimizedStowbars() = 0;
502 virtual void setHideAllMinimizedStowbars(
bool hide) = 0;
506 virtual void registerViewerHandles() = 0;
507 virtual void registerViewerHandleFile(
std::string const& handle_file) = 0;
508 virtual void unregisterViewerHandle(
std::string const& handle_name) = 0;
509 virtual void unregisterViewerHandleFile(
std::string const& handle_file) = 0;
510 virtual bool isRegisteredViewerHandle(
std::string const& handle_name) = 0;
511 virtual void reloadViewerHandle(
std::string const& handle_name) = 0;
513 virtual void loadPackage(
std::string const& package_filepath) = 0;
514 SWIGOUT(%kwargs loadPackageArchive;)
516 virtual void unloadPackage(
std::string const& package_filepath) = 0;
517 virtual void reloadPackage(
std::string const& package_filepath) = 0;
518 virtual void activatePackage(
std::string const& package_filepath) = 0;
519 virtual void deactivatePackage(
std::string const& package_filepath) = 0;
520 virtual std::string packageInfo(std::vector<std::string>
const& package_filepaths=std::vector<std::string>()) = 0;
523 SWIGOUT(%kwargs _openViewerHandleCodeGenDialog;)
524 virtual void _openViewerHandleCodeGenDialog(
528 SWIGOUT(%newobject sharedAssetGalleryDataSource;)
530 virtual void setSharedAssetGalleryDataSource(
532 const char *gallery_name)
534 virtual void reloadSharedAssetGalleryDataSource(
const char *gallery_name) = 0;
539 SWIGOUT(%kwargs _selectNodeData;)
540 std::vector<std::string> _selectNodeData(
541 const char *title = NULL,
542 const char *message = NULL,
545 const std::vector<std::string> &
546 initial_selection = std::vector<std::string>(),
548 bool multiple_select =
false,
549 bool include_data_type_headers =
true,
550 bool include_parms=
true,
551 bool include_object_transforms=
true,
552 bool include_geometry_bounding_boxes=
true,
553 bool include_geometry_attributes=
true,
554 bool expand_components=
true,
555 InterpreterObject custom_data_callback=
nullptr,
556 InterpreterObject custom_node_filter_callback=
nullptr,
557 const char *help_url=
nullptr)
559 if (custom_data_callback && custom_data_callback == Py_None)
560 custom_data_callback =
nullptr;
562 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
563 custom_node_filter_callback =
nullptr;
565 return self->_selectNodeDataInternal(
573 include_data_type_headers,
575 include_object_transforms,
576 include_geometry_bounding_boxes,
577 include_geometry_attributes,
579 custom_data_callback,
580 custom_node_filter_callback,
586 std::vector<std::string> _selectNode(
590 const char *title = NULL,
593 bool multiple_select =
false,
594 InterpreterObject custom_node_filter_callback =
nullptr)
596 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
597 custom_node_filter_callback =
nullptr;
599 return self->_selectNodeInternal(
607 custom_node_filter_callback
612 SWIGOUT(%kwargs selectMultipleNodes;)
613 std::vector<std::string> selectMultipleNodes(
617 const char *title = NULL,
620 InterpreterObject custom_node_filter_callback =
nullptr)
622 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
623 custom_node_filter_callback =
nullptr;
625 return self->_selectMultipleNodes(
632 custom_node_filter_callback
636 SWIGOUT(%kwargs openBookmarkEditor;)
638 {
self->_openBookmarkEditor(bookmark); }
640 SWIGOUT(%kwargs openColorEditor;)
641 void openColorEditor(
642 InterpreterObject color_changed_callback,
643 bool include_alpha=
false,
644 HOM_Color *initial_color=
nullptr,
float initial_alpha=1.0
f)
645 {
self->_openColorEditor(
646 color_changed_callback, include_alpha, initial_color, initial_alpha); }
648 SWIGOUT(%kwargs openValueLadder;)
649 void openValueLadder(
651 InterpreterObject value_changed_callback,
654 {
self->_openValueLadder(
655 initial_value, value_changed_callback,
type, data_type); }
657 void addEventLoopCallback(InterpreterObject callback)
658 {
self->addOpaqueEventLoopCallback(callback); }
660 void removeEventLoopCallback(InterpreterObject callback)
661 {
self->removeOpaqueEventLoopCallback(callback); }
663 void postEventCallback(InterpreterObject callback)
664 {
self->postOpaqueEventCallback(callback); }
665 void removePostedEventCallback(InterpreterObject callback)
666 {
self->removePostedOpaqueEventCallback(callback); }
670 std::vector<InterpreterObject> eventLoopCallbacks()
672 std::vector<void *> opaque_callbacks(self->opaqueEventLoopCallbacks());
674 std::vector<InterpreterObject> callbacks;
675 for (
int i=0; i< opaque_callbacks.size(); ++i)
676 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
680 void waitUntil(InterpreterObject callback)
681 {
self->opaqueWaitUntil(callback); }
683 void addTriggerUpdateCallback(InterpreterObject callback)
684 {
self->addOpaqueTriggerUpdateCallback(callback); }
686 void removeTriggerUpdateCallback(InterpreterObject callback)
687 {
self->removeOpaqueTriggerUpdateCallback(callback); }
689 void addSelectionCallback(InterpreterObject callback)
690 {
self->addOpaqueSelectionCallback(callback); }
692 void removeSelectionCallback(InterpreterObject callback)
693 {
self->removeOpaqueSelectionCallback(callback); }
695 std::vector<InterpreterObject> selectionCallbacks()
697 std::vector<void *> opaque_callbacks =
self->opaqueSelectionCallbacks();
698 std::vector<InterpreterObject> callbacks;
700 for (
int i = 0,
n = opaque_callbacks.size(); i <
n; i++)
701 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
707 void addResourceEventCallback(InterpreterObject callback)
709 self->addOpaqueResourceEventCallback(callback);
712 void removeResourceEventCallback(InterpreterObject callback)
714 self->removeOpaqueResourceEventCallback(callback);
717 SWIGOUT(%kwargs openFileEditor;)
721 InterpreterObject action_callback =
nullptr,
722 std::map<std::string, hboost::any>
const&
params =
723 std::map<std::string, hboost::any>() )
725 self->_openFileEditor(title, file_path, action_callback,
params);
728 SWIGOUT(%kwargs openViewerStateCodeGenDialog;)
729 void openViewerStateCodeGenDialog(
731 InterpreterObject action_callback,
734 self->_openViewerStateCodeGenDialog(category, action_callback, op_name);
737 SWIGOUT(%kwargs openViewerHandleCodeGenDialog;)
738 void openViewerHandleCodeGenDialog(
740 InterpreterObject action_callback )
742 self->_openViewerHandleCodeGenDialog(category, action_callback);
GLuint GLsizei const GLchar * message
GT_API const UT_StringHolder filename
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
GLint GLint GLsizei GLint GLenum GLenum const void * pixels
std::tuple< Types...> UT_Tuple
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
GLenum const GLfloat * params
GLint GLsizei GLsizei height
void ignore(T const &) VULKAN_HPP_NOEXCEPT
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the queue
GLuint const GLchar * name
hboost::any HOM_DDSourceAny
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLenum GLenum GLsizei void * row
void sort(I begin, I end, const Pred &pred)