9 #ifndef __HOM_NetworkEditor_h__
10 #define __HOM_NetworkEditor_h__
52 virtual bool isShowingConnectors() = 0;
53 virtual bool isUnderCursor() = 0;
54 virtual bool isPosInside(
56 bool ignore_floating_windows=
true) = 0;
57 virtual void setCursorPosition(
const HOM_Vector2 &pos) = 0;
58 virtual HOM_Vector2 cursorPosition(
bool confine_to_view =
true) = 0;
61 SWIGOUT(%kwargs setVisibleBounds;)
63 float transition_time = 0.0,
64 float max_scale = 0.0,
65 bool set_center_when_scale_rejected =
false) = 0;
66 virtual void requestZoomReset() = 0;
67 virtual void _requestZoomReset(
const std::vector<HOM_NetworkItem *> &
items) = 0;
68 virtual bool isZoomResetRequested() = 0;
69 virtual void _requestGraphUpdate() = 0;
71 virtual void setLocatingEnabled(
bool enabled) = 0;
72 virtual bool locatingEnabled() = 0;
74 virtual float lengthToScreen(
float len) = 0;
75 virtual float lengthFromScreen(
float len) = 0;
85 virtual bool overviewVisible() = 0;
86 virtual bool overviewVisibleIfAutomatic() = 0;
88 SWIGOUT(%kwargs networkItemsInBox;)
93 bool for_drop =
false,
bool for_select =
false) = 0;
94 virtual void setDropTargetItem(
99 SWIGOUT(%newobject decoratedItem;)
101 virtual bool decorationInteractive() = 0;
103 virtual void setPreSelectedItems(
104 const std::vector<HOM_NetworkItem *> &
items) = 0;
105 virtual std::vector<HOM_ElemPtr<HOM_NetworkItem> > preSelectedItems() = 0;
106 virtual std::vector<HOM_ElemPtr<HOM_NodeConnection> >
107 selectedConnections() = 0;
108 virtual void clearAllSelected() = 0;
110 virtual void setNetworkBoxPendingRemovals(
111 const std::vector<HOM_NetworkMovableItem *> &
items) = 0;
112 virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> >
113 networkBoxPendingRemovals() = 0;
115 virtual void setFootprints(
116 const std::vector<HOM_NetworkFootprint> &footprints) = 0;
117 virtual std::vector<HOM_NetworkFootprint> footprints() = 0;
119 virtual void setCursorMap(
120 std::map<std::pair<std::string, int>, std::string> cursors) = 0;
121 virtual std::map<std::pair<std::string, int>, std::string> cursorMap() = 0;
122 virtual void setDefaultCursor(
const char *cursor_name) = 0;
123 virtual std::string defaultCursor() = 0;
125 virtual void setBackgroundImages(
126 const std::vector<HOM_NetworkImage> &images) = 0;
127 virtual std::vector<HOM_NetworkImage> backgroundImages() = 0;
139 virtual std::vector<std::pair<HOM_ElemPtr<HOM_NetworkMovableItem>,
141 const std::vector<HOM_NetworkMovableItem *> &ignore_items,
142 bool adjusted =
true) = 0;
144 SWIGOUT(%kwargs setAdjustments;)
145 virtual void setAdjustments(
146 const std::vector<HOM_NetworkItem *> &
items,
147 const std::vector<HOM_NetworkAnimValue> &adjustments,
148 bool auto_remove =
false) = 0;
149 virtual void setShapes(
150 const std::vector<HOM_NetworkShape *> &shapes) = 0;
151 virtual void setOverlayShapes(
152 const std::vector<HOM_NetworkShape *> &shapes) = 0;
154 virtual void setTooltip(
const char *tooltip) = 0;
155 virtual std::string tooltip() = 0;
156 virtual void setPrompt(
const char *prompt) = 0;
157 virtual std::string prompt() = 0;
158 virtual void flashMessage(
const char *
image,
159 const char *
message,
float duration) = 0;
162 virtual void openTabMenu(
const char *key = NULL,
163 bool auto_place =
false,
166 int src_connector_index = -1,
168 int dest_connector_index = -1,
170 const std::vector<HOM_NetworkMovableItem *> &src_items =
171 std::vector<HOM_NetworkMovableItem *>(),
172 const std::vector<int> &src_connector_indexes =
174 const std::vector<HOM_NetworkMovableItem *> &dest_items =
175 std::vector<HOM_NetworkMovableItem *>(),
176 const std::vector<int> &dest_connector_indexes =
177 std::vector<int>()) = 0;
180 const std::vector<HOM_NetworkMovableItem *> &
items =
181 std::vector<HOM_NetworkMovableItem *>()) = 0;
182 virtual void openVopEffectsMenu(
HOM_VopNode *
node,
int input_index) = 0;
183 virtual void openVopOutputInfoMenu(
HOM_VopNode *
node,
int output_index) = 0;
184 virtual void openFloatingParameterEditor(
HOM_Node *
node) = 0;
187 bool select_all =
false) = 0;
189 bool select_all =
false) = 0;
191 bool select_all =
false) = 0;
192 SWIGOUT(%kwargs closeTextEditor;)
193 virtual void closeTextEditor(
int id,
bool apply_changes =
true) = 0;
194 virtual void runShelfTool(
const char *tool_name) = 0;
196 virtual int scheduleTimerEvent(
float seconds) = 0;
197 virtual void handleCurrentKeyboardEvent(
bool resend =
false) = 0;
198 virtual void setVolatileHotkeys(
199 const std::vector<std::string> &hotkey_symbols) = 0;
200 virtual bool isVolatileHotkeyDown(
const char *hotkey_symbol) = 0;
202 virtual std::vector<std::vector<std::string> >
203 hotkeyAssignments(
const std::vector<std::string> &hotkey_symbols) = 0;
205 virtual void setPref(
const char *pref,
const char *
value) = 0;
206 virtual std::string getPref(
const char *pref) = 0;
207 virtual void setPrefs(
const std::map<std::string, std::string> &prefs) = 0;
208 virtual std::map<std::string, std::string> getPrefs() = 0;
209 virtual void registerPref(
const char *pref,
const char *
value,
bool global) = 0;
210 virtual std::vector<std::vector<std::string> > badges() = 0;
211 virtual std::vector<std::vector<std::string> > textBadges() = 0;
213 virtual std::vector<std::string> nodeShapes() = 0;
214 virtual std::vector<std::string> reloadNodeShapes() = 0;
215 virtual void redraw() = 0;
217 virtual void setDragSourceData(
218 const std::vector<HOM_NetworkMovableItem *> &
items) = 0;
219 virtual void setDragSourceWorkItem(
int item_id) = 0;
222 virtual bool pushOpaqueEventContext(
const char *module,
void *
data) = 0;
223 virtual void popEventContext() = 0;
225 virtual void *opaqueEventContextData() = 0;
230 virtual void setParmFilterEnabled(
bool on ) = 0;
231 virtual bool parmFilterEnabled() = 0;
233 virtual void setParmFilterExactMatch(
bool on ) = 0;
234 virtual bool parmFilterExactMatch() = 0;
236 virtual void setParmFilterPattern(
const char*
filter ) = 0;
237 virtual std::string parmFilterPattern() = 0;
239 virtual void setParmFilterMode(
HOM_EnumValue &
mode=HOM_parmFilterMode::AllParms) = 0;
242 virtual void setParmFilterCriteria(
HOM_EnumValue &criteria=HOM_parmFilterCriteria::NameOrLabel ) = 0;
246 virtual void _scrollToParms(
const char *
parms ) = 0;
247 virtual void _filterParms(
const char*
parms) = 0;
250 virtual void _startModalUI(
const char *
name ) = 0;
251 virtual void _endModalUI() = 0;
256 virtual bool pushEventContext(
const char *module, InterpreterObject
data)
257 {
return self->pushOpaqueEventContext(module, data); }
258 virtual InterpreterObject eventContextData()
259 {
return HOMincRef((InterpreterObject)self->opaqueEventContextData()); }
GLuint GLsizei const GLchar * message
#define HOM_DESTRUCT_OBJECT(pointer)
virtual std::vector< HOM_ElemPtr< HOM_NetworkMovableItem > > items(const std::vector< std::string > &item_paths)=0
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
~HOM_NetworkEditor() override
GLenum GLenum GLsizei void * image
std::tuple< Types...> UT_Tuple
GLenum GLenum GLsizei const GLuint GLboolean enabled
virtual std::vector< HOM_ElemPtr< HOM_Parm > > parms()=0
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
virtual HOM_Node * node(const char *node_path)=0
virtual HOM_NetworkMovableItem * item(const char *item_path)=0
GLuint const GLchar * name
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
SIM_API const UT_StringHolder position
HOM_NetworkEditor(const HOM_NetworkEditor &pane)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter