10 #define __HOM_Parm_h__
46 virtual bool operator<(
HOM_Parm *parm) = 0;
48 virtual int __hash__() = 0;
55 SWIGOUT(%warnfilter(321) tuple;)
58 SWIGOUT(%newobject parmTemplate;)
64 virtual int componentIndex() = 0;
66 virtual std::vector<std::string> menuContents() = 0;
67 virtual std::vector<std::string> menuLabels() = 0;
68 virtual std::vector<std::string> menuItems() = 0;
69 virtual bool isDynamicMenu() = 0;
72 virtual void pressButton(std::map<std::string, hboost::any>
const & arguments=std::map<std::string, hboost::any>()) = 0;
75 bool follow_parm_reference=
true) = 0;
77 virtual void _set(
double float_value) = 0;
78 virtual void _setPending(
double float_value) = 0;
79 virtual void _set(
int64 int_value) = 0;
80 virtual void _setPending(
int64 int_value) = 0;
85 virtual void _set(
const std::map<std::string, std::string> &map) = 0;
86 virtual void _setPending(
const std::map<std::string, std::string> &map) = 0;
87 virtual void _set(
HOM_Ramp *ramp_value) = 0;
88 virtual void _setPending(
HOM_Ramp *ramp_value) = 0;
92 bool follow_parm_reference=
true) = 0;
94 virtual void _setNone() = 0;
95 virtual void _setNonePending() = 0;
98 virtual void setFromParmDefaults(
HOM_Parm &
src) = 0;
100 virtual void overwriteDefaults() = 0;
101 virtual void revertToDefaults() = 0;
102 virtual void revertToAndRestorePermanentDefaults() = 0;
103 virtual void revertToRampDefaults() = 0;
104 virtual bool hasTemporaryDefaults() = 0;
106 virtual bool isAtDefault(
bool compare_temporary_defaults=
true,
107 bool compare_expressions=
true) = 0;
108 virtual bool isAtRampDefault() = 0;
110 SWIGOUT(%kwargs setExpression;)
111 virtual void setExpression(
const char *expression,
113 bool replace_expression=
true) = 0;
120 virtual bool isShowingExpression() = 0;
121 virtual void showExpression(
bool value) = 0;
124 virtual void setKeyframes(
const std::vector<HOM_BaseKeyframe *> &keyframes) = 0;
126 virtual std::vector<HOM_ElemPtr<HOM_BaseKeyframe> > keyframes() = 0;
128 virtual std::vector<HOM_ElemPtr<HOM_BaseKeyframe> >
129 keyframesInRange(
double start_frame,
double end_frame) = 0;
131 virtual std::vector<HOM_ElemPtr<HOM_BaseKeyframe> > keyframesBefore(
double frame) = 0;
132 virtual std::vector<HOM_ElemPtr<HOM_BaseKeyframe> > keyframesAfter(
double frame) = 0;
134 virtual double evalAsFloat() = 0;
135 virtual double evalAsFloatAtFrame(
double frame) = 0;
136 virtual int64 evalAsInt() = 0;
137 virtual int64 evalAsIntAtFrame(
double frame) = 0;
139 virtual std::string evalAsStringAtFrame(
double frame) = 0;
141 virtual HOM_Geometry *evalAsGeometryAtFrame(
double frame) = 0;
142 virtual std::map<std::string, std::string> evalAsJSONMap() = 0;
143 virtual std::map<std::string, std::string>
144 evalAsJSONMapAtFrame(
double frame) = 0;
145 SWIGOUT(%newobject evalAsRamp;)
147 SWIGOUT(%newobject evalAsRampAtFrame;)
148 virtual HOM_Ramp *evalAsRampAtFrame(
double frame) = 0;
149 SWIGOUT(%newobject evalAsNode;)
151 SWIGOUT(%newobject evalAsNodeAtFrame;)
152 virtual HOM_Node *evalAsNodeAtFrame(
double frame) = 0;
153 virtual std::vector<HOM_ElemPtr<HOM_Node> > evalAsNodes() = 0;
154 virtual std::vector<HOM_ElemPtr<HOM_Node> > evalAsNodesAtFrame(
double frame) = 0;
156 virtual std::string evalAsNodePathAtFrame(
double frame) = 0;
157 virtual std::vector<std::string> evalAsNodePaths() = 0;
158 virtual std::vector<std::string> evalAsNodePathsAtFrame(
double frame) = 0;
162 virtual void deleteKeyframeAtFrame(
double frame) = 0;
164 virtual void deleteAllKeyframes() = 0;
167 SWIGOUT(%newobject getReferencedParm;)
168 virtual HOM_Parm *getReferencedParm() = 0;
170 virtual std::vector<HOM_ElemPtr<HOM_Parm> > parmsReferencingThis() = 0;
172 virtual bool isLocked() = 0;
173 virtual void lock(
bool on) = 0;
175 virtual bool isAutoscoped() = 0;
176 virtual void setAutoscope(
bool on) = 0;
178 virtual bool isScoped() = 0;
179 virtual void setScope(
bool on) = 0;
181 virtual bool isAutoSelected() = 0;
182 virtual void setAutoSelect(
bool on) = 0;
184 virtual bool isSelected() = 0;
185 virtual void setSelect(
bool on) = 0;
188 virtual void setAlias(
const char *alias_name) = 0;
190 virtual bool isSpare() = 0;
192 virtual bool isTimeDependent() = 0;
194 virtual bool isMultiParmInstance() = 0;
195 virtual bool isMultiParmParent() = 0;
196 SWIGOUT(%newobject parentMultiParm;)
197 virtual HOM_Parm *parentMultiParm() = 0;
198 virtual std::vector<int> multiParmInstanceIndices() = 0;
200 virtual int multiParmInstancesPerItem() = 0;
201 virtual int multiParmInstancesCount() = 0;
202 virtual int multiParmStartOffset() = 0;
204 virtual std::vector<HOM_ElemPtr<HOM_Parm> > multiParmInstances() = 0;
206 virtual void insertMultiParmInstance(
int inst_index) = 0;
208 virtual void removeMultiParmInstance(
int inst_index) = 0;
210 virtual void moveMultiParmInstances(
const std::vector<int> &moves) = 0;
211 virtual void moveUpMultiParmInstance(
int inst_index) = 0;
212 virtual void moveDownMultiParmInstance(
int inst_index) = 0;
214 virtual std::vector<std::string> containingFolders() = 0;
215 virtual std::vector<int> containingFolderIndices() = 0;
216 virtual std::vector<HOM_ElemPtr<HOM_ParmTuple> >
217 containingFolderSetParmTuples() = 0;
222 bool save_values =
true,
223 bool save_keyframes =
true,
224 bool save_keys_in_frames=
false,
225 bool save_flag_values=
true,
226 bool save_aliases=
true,
227 const char *function_name = NULL) = 0;
234 virtual int parmDataTypeEnumId() = 0;
242 virtual int dataParmTypeEnumId() = 0;
244 SWIGOUT(%newobject createClip;)
248 bool apply_immediately,
249 bool current_value_only=
false,
250 bool create_locked=
false,
251 bool set_value_to_default=
false) = 0;
253 virtual void appendClip(
HOM_Node &chop_node,
254 bool apply_immediately,
255 bool current_value_only=
false,
256 bool create_locked=
false,
257 bool set_value_to_default=
false) = 0;
262 bool use_blosc_compression =
true,
263 double sample_rate = 0) = 0;
268 bool blosc_compressed =
true,
269 double sample_rate = 0,
275 double sample_rate = 0) = 0;
279 double sample_rate = 0,
282 SWIGOUT(%newobject overrideTrack;)
284 virtual bool isOverrideTrackActive() = 0;
286 virtual void copyToParmClipboard() = 0;
288 virtual bool isDisabled() = 0;
290 virtual void disable(
bool on) = 0;
292 virtual bool isHidden() = 0;
294 virtual void hide(
bool on) = 0;
296 virtual bool isVisible() = 0;
298 virtual bool isConstrained() = 0;
300 virtual bool isPending() = 0;
302 virtual HOM_EnumValue &keyframeExtrapolation(
bool before ) = 0;
304 virtual void setKeyframeExtrapolation(
bool before,
HOM_EnumValue &e ) = 0;
306 SWIGOUT(%kwargs keyframesRefit;)
307 virtual void keyframesRefit(
308 bool refit,
double refit_tol,
bool refit_preserve_extrema,
309 bool refit_bezier,
bool resample,
double resample_rate,
double resample_tol,
310 bool range,
double range_start,
double range_end,
HOM_EnumValue &bake_chop,
const char *expression=
"",
311 bool refit_smooth=
false) = 0;
313 SWIGOUT(%newobject uiBackgroundColor;)
314 virtual HOM_Color *uiBackgroundColor() = 0;
316 virtual void _moveKeyframes(
const std::vector<int> &keyframe_ids,
317 const std::vector<double> &time_offsets,
318 const std::vector<double> &value_offsets) = 0;
320 virtual void _deleteKeyframes(
const std::vector<int> &keyframe_ids) = 0;
322 virtual void _moveAllKeyframes(
double time_offset,
double value_offset)=0;
327 %warnfilter(321)
eval;
328 InterpreterObject
eval()
330 return HOMevalParm(*
self);
333 InterpreterObject evalAtFrame(
double frame)
335 return HOMevalParmAtFrame(*
self, frame);
338 InterpreterObject evalAtTime(
double time)
340 return HOMevalParmAtFrame(*
self,
HOM().timeToFrame(time));
#define HOM_DESTRUCT_OBJECT(pointer)
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
const GLuint GLenum const void * binary
GLsizei const GLchar *const * path
string __repr__(VtArray< T > const &self)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
char * lock(exint offset=0, exint reserve_bytes=0)
#define HOM_MIN_NEGATIVE_DOUBLE
HUSD_API bool eval(VtValue &val, T &ret_val)
GLuint const GLchar * name
HOM_Parm(const HOM_Parm &parm)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
ImageBuf OIIO_API resample(const ImageBuf &src, bool interpolate=true, ROI roi={}, int nthreads=0)
HOM_API HOM_Module & HOM()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.