9 #ifndef HOM_ViewerStateTemplate_h
10 #define HOM_ViewerStateTemplate_h
29 typedef std::vector< std::pair<std::string, std::string> >
Bindings;
37 HOM_ViewerStateTemplate(
41 std::vector<HOM_NodeTypeCategory*>
const& contexts =
42 std::vector<HOM_NodeTypeCategory*>())
61 virtual std::vector<HOM_NodeTypeCategory*> contexts()
const = 0;
63 SWIGOUT(%ignore bindFactory_internal;)
64 virtual void bindFactory_internal(
void *callback) = 0;
67 virtual void bindParameter(
71 MenuItemParms
const & menu_items=MenuItemParms(),
72 bool menu_as_button_strip=
false,
78 bool toolbox=
true) = 0;
81 virtual void bindHandle(
85 bool cache_previous_parms =
false,
86 HandleParmNames
const& handle_parms = HandleParmNames()) = 0;
88 SWIGOUT(%kwargs bindHandleStatic;)
89 virtual void bindHandleStatic(
92 Bindings
const & bindings,
99 SWIGOUT(%kwargs bindGeometrySelector;)
100 virtual void bindGeometrySelector(
102 bool allow_drag=
false,
103 bool quick_select=
true,
104 bool auto_start=
true,
105 bool use_existing_selection=
true,
109 std::vector<HOM_EnumValue *>
const& geometry_types=std::vector<HOM_EnumValue *>(),
110 std::vector<HOM_EnumValue *>
const& primitive_types=std::vector<HOM_EnumValue *>(),
111 bool allow_other_sops=
true,
112 bool consume_selection=
true,
113 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
117 SWIGOUT(%kwargs bindObjectSelector;)
118 virtual void bindObjectSelector(
120 bool quick_select=
true,
121 bool auto_start=
true,
122 bool use_existing_selection=
true,
123 bool allow_multisel =
true,
124 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
125 std::vector<std::string>
const & allowed_types = std::vector<std::string>(1,
"*"),
129 SWIGOUT(%kwargs bindSceneGraphSelector;)
130 virtual void bindSceneGraphSelector(
132 bool allow_drag =
true,
133 bool quick_select =
true,
134 bool auto_start=
true,
135 bool use_existing_selection =
true,
136 bool allow_multisel =
true,
137 bool consume_selection =
false,
138 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
139 std::vector<std::string>
const& prior_selection_paths = std::vector<std::string>(),
140 HOM_EnumValue const& prim_mask = HOM_scenePrimMask::ViewerSetting,
146 SWIGOUT(%kwargs bindDynamicsSelector;)
147 virtual void bindDynamicsSelector(
149 bool auto_start=
true,
150 bool allow_objects =
true,
151 bool allow_modifiers =
false,
152 bool quick_select =
false,
153 bool use_existing_selection =
true,
154 bool allow_multisel =
true,
155 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
159 SWIGOUT(%kwargs bindDynamicsPointSelector;)
160 virtual void bindDynamicsPointSelector(
162 bool auto_start=
true,
163 bool allow_objects =
true,
164 bool allow_modifiers =
false,
165 bool quick_select =
false,
166 bool use_existing_selection =
true,
167 bool allow_multisel =
true,
168 bool only_select_points =
true,
169 bool object_based_point_selection =
false,
170 bool use_last_selected_object =
false,
171 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
175 SWIGOUT(%kwargs bindDynamicsPolygonSelector;)
176 virtual void bindDynamicsPolygonSelector(
178 bool auto_start=
true,
179 bool quick_select =
false,
180 bool use_existing_selection =
true,
181 bool object_based_point_selection =
false,
182 bool use_last_selected_object =
false,
183 HOM_EnumValue const& secure_selection = HOM_secureSelectionOption::Obey,
188 virtual void bindSelector(
192 std::vector<HOM_EnumValue *> primitive_types = std::vector<HOM_EnumValue *>(),
195 bool input_required =
true,
196 bool allow_dragging =
true ) = 0;
200 virtual void bindIcon(
std::string const & name ) = 0;
202 virtual void bindSupportsSelectionChange(
bool supports_change ) = 0;
207 virtual void bindFactory(InterpreterObject callback)
209 self->bindFactory_internal(callback);
215 #endif // HOM_ViewerStateTemplate_h
#define HOM_DESTRUCT_OBJECT(pointer)
OIIO_API bool rename(string_view from, string_view to, std::string &err)
HOM_ViewerStateTemplate()
string __repr__(VtArray< T > const &self)
GLuint const GLchar * name
virtual HOM_ViewerStateTemplate * newViewerStateTemplate(std::string const &type_name, std::string const &label, HOM_NodeTypeCategory const &category, std::vector< HOM_NodeTypeCategory * > const &contexts)=0
bool any(const vbool4 &v)
#define HOM_CONSTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
GLuint GLsizei const GLchar * label
virtual ~HOM_ViewerStateTemplate()
std::vector< std::pair< std::string, std::string > > Bindings
std::vector< std::string > HandleParmNames
HOM_API HOM_Module & HOM()
std::vector< std::vector< std::string > > MenuItemParms