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,
210 const char *default_value = NULL,
211 bool multiple_select =
false,
212 bool image_chooser =
false,
213 bool ignore_preferences =
false,
214 HOM_EnumValue &chooser_mode = HOM_fileChooserMode::ReadAndWrite,
219 virtual std::vector<std::string> _selectNodeInternal(
223 const char *title = NULL,
226 bool multiple_select =
false,
227 void *custom_node_filter_callback =
nullptr) = 0;
231 virtual std::vector<std::string> _selectMultipleNodes(
235 const char *title = NULL,
238 void *custom_node_filter_callback =
nullptr) = 0;
241 virtual std::vector<std::string> _selectNodeDataInternal(
242 const char *title = NULL,
243 const char *message = NULL,
246 const std::vector<std::string> &
247 initial_selection = std::vector<std::string>(),
249 bool multiple_select =
false,
250 bool include_data_type_headers =
true,
251 bool include_parms=
true,
252 bool include_object_transforms=
true,
253 bool include_geometry_bounding_boxes=
true,
254 bool include_geometry_attributes=
true,
255 bool expand_components=
true,
256 void *custom_data_callback=
nullptr,
257 void *custom_node_filter_callback =
nullptr,
258 const char *help_url=
nullptr) = 0;
260 SWIGOUT(%kwargs selectParmTag;)
261 virtual std::vector<std::string> selectParmTag(
266 virtual std::vector<std::string> selectParm(
268 bool bound_parms_only =
false,
270 const char *message = NULL,
271 const char *title = NULL,
272 const std::vector<std::string> &
273 initial_parms = std::vector<std::string>(),
274 bool multiple_select =
true,
278 SWIGOUT(%kwargs selectParmTuple;)
279 virtual std::vector<std::string> selectParmTuple(
281 bool bound_parms_only =
false,
283 const char *message = NULL,
284 const char *title = NULL,
285 const std::vector<std::string> &
286 initial_parm_tuples = std::vector<std::string>(),
287 bool multiple_select =
true,
292 SWIGOUT(%newobject selectColor;)
296 SWIGOUT(%kwargs _openBookmarkEditor;)
297 virtual void _openBookmarkEditor(
HOM_Bookmark *bookmark) = 0;
299 SWIGOUT(%kwargs _openColorEditor;)
300 virtual void _openColorEditor(
301 void *color_changed_callback,
bool include_alpha=
false,
302 HOM_Color *initial_color=
nullptr,
float initial_alpha=1.0
f) = 0;
304 virtual std::vector<HOM_Color> loadPaletteFile(
const char *file) = 0;
305 virtual void savePaletteFile(
const char *file,
306 const std::vector<HOM_Color> &colors) = 0;
309 SWIGOUT(%kwargs _openValueLadder;)
310 virtual void _openValueLadder(
311 float initial_value,
void *value_changed_callback,
313 HOM_EnumValue &data_type=HOM_valueLadderDataType::Float) = 0;
314 virtual void updateValueLadder(
315 int cursor_x,
int cursor_y,
bool alt_key,
bool shift_key) = 0;
316 virtual void closeValueLadder() = 0;
318 SWIGOUT(%kwargs displayFileDependencyDialog;)
321 displayFileDependencyDialog(
323 const std::vector<std::string> &uploaded_files =
324 std::vector<std::string>(),
325 const std::vector<std::string> &forced_unselected_patterns =
326 std::vector<std::string>(),
327 const char *project_dir_variable=
"HIP",
328 bool is_standalone=
true) = 0;
330 virtual void displayNodeHelp(
HOM_NodeType &node_type) = 0;
331 virtual void _openTypePropertiesDialogForNode(
332 HOM_Node &node,
bool promote_spare_parms,
333 bool immediately_save) = 0;
334 virtual void _openTypePropertiesDialogForNodeType(
336 bool immediately_save) = 0;
338 virtual void openRenderDialog(
HOM_RopNode &rop) = 0;
340 virtual void openRenameSelectedDialog(
HOM_Node &network) = 0;
342 SWIGOUT(%kwargs openParameterInterfaceDialog;)
343 virtual void openParameterInterfaceDialog(
HOM_Node &node,
345 const char *open_tab_tree_path =
nullptr) = 0;
349 virtual void addOpaqueTriggerUpdateCallback(
void *py_callback) = 0;
351 virtual void removeOpaqueTriggerUpdateCallback(
void *py_callback) = 0;
354 virtual void triggerUpdate() = 0;
355 virtual void reloadViewportColorSchemes() = 0;
357 virtual bool isAutoKey() = 0;
359 virtual std::vector<int> _getTabMenuIconSize() = 0;
362 virtual void addOpaqueSelectionCallback(
void *py_callback) = 0;
364 virtual void removeOpaqueSelectionCallback(
void *py_callback) = 0;
365 virtual void removeAllSelectionCallbacks() = 0;
367 virtual std::vector<void *> opaqueSelectionCallbacks() = 0;
370 virtual void addOpaqueEventLoopCallback(
void *callback) = 0;
372 virtual void removeOpaqueEventLoopCallback(
void *callback) = 0;
374 virtual std::vector<void *> opaqueEventLoopCallbacks() = 0;
376 virtual void postOpaqueEventCallback(
void *callback) = 0;
378 virtual void removePostedOpaqueEventCallback(
void *callback) = 0;
380 SWIGOUT(%newobject createDialog;)
381 virtual HOM_Dialog *createDialog(
const char *ui_file_name) = 0;
382 SWIGOUT(%newobject findDialog;)
383 virtual HOM_Dialog *findDialog(
const char *ui_file_name) = 0;
384 virtual std::vector<HOM_ElemPtr<HOM_Dialog> > dialogs() = 0;
387 virtual void opaqueWaitUntil(
void *condition_callback) = 0;
389 SWIGOUT(%kwargs writePythonShellHistoryFile;)
390 virtual void writePythonShellHistoryFile(
const char *
filename=NULL) = 0;
392 SWIGOUT(%kwargs readPythonShellHistoryFile;)
393 virtual void readPythonShellHistoryFile(
const char *
filename=NULL) = 0;
395 SWIGOUT(%kwargs setStatusMessage;)
396 virtual void setStatusMessage(
399 virtual std::pair<std::string, HOM_EnumValue *> statusMessage() = 0;
401 virtual bool _processEvents() = 0;
403 virtual void openAssetUploadDialog(
404 HOM_Node *uploading_node,
const char *session_key,
407 virtual void openAssetDependenciesDialog(
408 const std::vector<HOM_Node *> &uploading_nodes,
409 const std::vector<HOM_Node *> &uploaded_nodes,
410 const char *session_key,
413 virtual bool hasDragSourceData(
const char *
label) = 0;
414 SWIGOUT(%kwargs getDragSourceData;)
420 virtual double globalScaleFactor() = 0;
421 virtual int scaledSize(
int size) = 0;
423 virtual double inchesToPixels(
double inches) = 0;
424 virtual double pixelsToInches(
double pixels) = 0;
426 virtual void copyTextToClipboard(
const char *text) = 0;
429 virtual std::vector<std::string> hotkeys(
const char *hotkey_symbol) = 0;
430 virtual std::string hotkeyDescription(
const char *hotkey_symbol) = 0;
431 virtual bool isKeyMatch(
const char *key,
const char *hotkey_symbol) = 0;
433 virtual std::string _geoSpreadsheetCellText(
int sheet_id,
int row,
int col) = 0;
434 virtual void openCaptureWeightSpreadsheet(
HOM_Node *node,
435 const char *
pattern = NULL) = 0;
438 virtual void _closeCaptureWeightSpreadsheet(
const std::string &identifier) = 0;
441 virtual void registerViewerStateFile(
std::string const& state_file) = 0;
442 virtual void registerViewerStates() = 0;
443 virtual void unregisterViewerState(
std::string const& state_typename) = 0;
444 virtual void unregisterViewerStateFile(
std::string const& state_file) = 0;
445 virtual bool isRegisteredViewerState(
std::string const& state_name) = 0;
446 virtual void reloadViewerState(
std::string const& state_typename) = 0;
447 SWIGOUT(%kwargs reloadViewerStates;)
448 virtual void reloadViewerStates(std::vector<std::string>
const& state_names=std::vector<std::string>()) = 0;
450 SWIGOUT(%kwargs viewerStateInfo;)
451 virtual std::string viewerStateInfo(std::vector<std::string>
const& state_names=std::vector<std::string>()) = 0;
454 SWIGOUT(%kwargs viewerHandleInfo;)
455 virtual std::string viewerHandleInfo(std::vector<std::string>
const& handle_names=std::vector<std::string>()) = 0;
457 SWIGOUT(%kwargs printResourceMessage;)
458 virtual void printResourceMessage(
461 HOM_EnumValue &message_type = HOM_severityType::Message) = 0;
462 SWIGOUT(%kwargs fireResourceCustomEvent;)
463 virtual void fireResourceCustomEvent(
465 std::map<std::string, hboost::any>
const &user_data,
466 bool queue =
true) = 0;
469 SWIGOUT(%kwargs _openViewerStateCodeGenDialog;)
470 virtual void _openViewerStateCodeGenDialog(
472 void *action_callback,
476 virtual void addOpaqueResourceEventCallback(
void *py_callback) = 0;
478 virtual void removeOpaqueResourceEventCallback(
void *py_callback) = 0;
481 SWIGOUT(%kwargs _openFileEditor;)
482 virtual void _openFileEditor(
485 void *action_callback =
nullptr,
486 std::map<std::string, hboost::any>
const &
params =
487 std::map<std::string, hboost::any>()) = 0;
489 virtual void showInFileBrowser(
const char *file_path) = 0;
491 SWIGOUT(%newobject showFloatingParameterEditor;)
494 virtual void openParameterExpressionEditor(
HOM_Parm *parm) = 0;
495 virtual void openPreferences(
const char *page,
const char *
label) = 0;
497 virtual bool hideAllMinimizedStowbars() = 0;
498 virtual void setHideAllMinimizedStowbars(
bool hide) = 0;
502 virtual void registerViewerHandles() = 0;
503 virtual void registerViewerHandleFile(
std::string const& handle_file) = 0;
504 virtual void unregisterViewerHandle(
std::string const& handle_name) = 0;
505 virtual void unregisterViewerHandleFile(
std::string const& handle_file) = 0;
506 virtual bool isRegisteredViewerHandle(
std::string const& handle_name) = 0;
507 virtual void reloadViewerHandle(
std::string const& handle_name) = 0;
509 virtual void loadPackage(
std::string const& package_filepath) = 0;
510 SWIGOUT(%kwargs loadPackageArchive;)
512 virtual void unloadPackage(
std::string const& package_filepath) = 0;
513 virtual void reloadPackage(
std::string const& package_filepath) = 0;
514 virtual std::string packageInfo(std::vector<std::string>
const& package_filepaths=std::vector<std::string>()) = 0;
517 SWIGOUT(%kwargs _openViewerHandleCodeGenDialog;)
518 virtual void _openViewerHandleCodeGenDialog(
522 SWIGOUT(%newobject sharedAssetGalleryDataSource;)
524 virtual void setSharedAssetGalleryDataSource(
526 const char *gallery_name)
528 virtual void reloadSharedAssetGalleryDataSource(
const char *gallery_name) = 0;
533 SWIGOUT(%kwargs _selectNodeData;)
534 std::vector<std::string> _selectNodeData(
535 const char *title = NULL,
536 const char *message = NULL,
539 const std::vector<std::string> &
540 initial_selection = std::vector<std::string>(),
542 bool multiple_select =
false,
543 bool include_data_type_headers =
true,
544 bool include_parms=
true,
545 bool include_object_transforms=
true,
546 bool include_geometry_bounding_boxes=
true,
547 bool include_geometry_attributes=
true,
548 bool expand_components=
true,
549 InterpreterObject custom_data_callback=
nullptr,
550 InterpreterObject custom_node_filter_callback=
nullptr,
551 const char *help_url=
nullptr)
553 if (custom_data_callback && custom_data_callback == Py_None)
554 custom_data_callback =
nullptr;
556 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
557 custom_node_filter_callback =
nullptr;
559 return self->_selectNodeDataInternal(
567 include_data_type_headers,
569 include_object_transforms,
570 include_geometry_bounding_boxes,
571 include_geometry_attributes,
573 custom_data_callback,
574 custom_node_filter_callback,
580 std::vector<std::string> _selectNode(
584 const char *title = NULL,
587 bool multiple_select =
false,
588 InterpreterObject custom_node_filter_callback =
nullptr)
590 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
591 custom_node_filter_callback =
nullptr;
593 return self->_selectNodeInternal(
601 custom_node_filter_callback
606 SWIGOUT(%kwargs selectMultipleNodes;)
607 std::vector<std::string> selectMultipleNodes(
611 const char *title = NULL,
614 InterpreterObject custom_node_filter_callback =
nullptr)
616 if (custom_node_filter_callback && custom_node_filter_callback == Py_None)
617 custom_node_filter_callback =
nullptr;
619 return self->_selectMultipleNodes(
626 custom_node_filter_callback
630 SWIGOUT(%kwargs openBookmarkEditor;)
632 {
self->_openBookmarkEditor(bookmark); }
634 SWIGOUT(%kwargs openColorEditor;)
635 void openColorEditor(
636 InterpreterObject color_changed_callback,
637 bool include_alpha=
false,
638 HOM_Color *initial_color=
nullptr,
float initial_alpha=1.0
f)
639 {
self->_openColorEditor(
640 color_changed_callback, include_alpha, initial_color, initial_alpha); }
642 SWIGOUT(%kwargs openValueLadder;)
643 void openValueLadder(
645 InterpreterObject value_changed_callback,
648 {
self->_openValueLadder(
649 initial_value, value_changed_callback,
type, data_type); }
651 void addEventLoopCallback(InterpreterObject callback)
652 {
self->addOpaqueEventLoopCallback(callback); }
654 void removeEventLoopCallback(InterpreterObject callback)
655 {
self->removeOpaqueEventLoopCallback(callback); }
657 void postEventCallback(InterpreterObject callback)
658 {
self->postOpaqueEventCallback(callback); }
659 void removePostedEventCallback(InterpreterObject callback)
660 {
self->removePostedOpaqueEventCallback(callback); }
664 std::vector<InterpreterObject> eventLoopCallbacks()
666 std::vector<void *> opaque_callbacks(self->opaqueEventLoopCallbacks());
668 std::vector<InterpreterObject> callbacks;
669 for (
int i=0; i< opaque_callbacks.size(); ++i)
670 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
674 void waitUntil(InterpreterObject callback)
675 {
self->opaqueWaitUntil(callback); }
677 void addTriggerUpdateCallback(InterpreterObject callback)
678 {
self->addOpaqueTriggerUpdateCallback(callback); }
680 void removeTriggerUpdateCallback(InterpreterObject callback)
681 {
self->removeOpaqueTriggerUpdateCallback(callback); }
683 void addSelectionCallback(InterpreterObject callback)
684 {
self->addOpaqueSelectionCallback(callback); }
686 void removeSelectionCallback(InterpreterObject callback)
687 {
self->removeOpaqueSelectionCallback(callback); }
689 std::vector<InterpreterObject> selectionCallbacks()
691 std::vector<void *> opaque_callbacks =
self->opaqueSelectionCallbacks();
692 std::vector<InterpreterObject> callbacks;
694 for (
int i = 0,
n = opaque_callbacks.size(); i <
n; i++)
695 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
701 void addResourceEventCallback(InterpreterObject callback)
703 self->addOpaqueResourceEventCallback(callback);
706 void removeResourceEventCallback(InterpreterObject callback)
708 self->removeOpaqueResourceEventCallback(callback);
711 SWIGOUT(%kwargs openFileEditor;)
715 InterpreterObject action_callback =
nullptr,
716 std::map<std::string, hboost::any>
const&
params =
717 std::map<std::string, hboost::any>() )
719 self->_openFileEditor(title, file_path, action_callback,
params);
722 SWIGOUT(%kwargs openViewerStateCodeGenDialog;)
723 void openViewerStateCodeGenDialog(
725 InterpreterObject action_callback,
728 self->_openViewerStateCodeGenDialog(category, action_callback, op_name);
731 SWIGOUT(%kwargs openViewerHandleCodeGenDialog;)
732 void openViewerHandleCodeGenDialog(
734 InterpreterObject action_callback )
736 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)