23 namespace SOP_ONNXEnums
36 using namespace UT::Literal;
55 using namespace UT::Literal;
73 using namespace UT::Literal;
91 using namespace UT::Literal;
118 input_name =
""_UTsh;
122 input_channelfirst =
false;
123 input_data =
""_UTsh;
129 if (input_name != src.
input_name)
return false;
131 if (input_type != src.
input_type)
return false;
134 if (input_data != src.
input_data)
return false;
150 for (
int i = 0; i < list.
entries(); i++)
158 buf.
appendSprintf(
"((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", list(i).input_shape(0,0), list(i).input_shape(0, 1), list(i).input_shape(0, 2), list(i).input_shape(1, 0), list(i).input_shape(1, 1), list(i).input_shape(1, 2), list(i).input_shape(2, 0), list(i).input_shape(2, 1), list(i).input_shape(2, 2));
164 buf.
appendSprintf(
"%s", (list(i).input_channelfirst) ?
"true" :
"false");
187 output_name =
""_UTsh;
191 output_channelfirst =
false;
192 output_data =
""_UTsh;
219 for (
int i = 0; i < list.
entries(); i++)
227 buf.
appendSprintf(
"((%f, %f, %f), (%f, %f, %f), (%f, %f, %f))", list(i).output_shape(0,0), list(i).output_shape(0, 1), list(i).output_shape(0, 2), list(i).output_shape(1, 0), list(i).output_shape(1, 1), list(i).output_shape(1, 2), list(i).output_shape(2, 0), list(i).output_shape(2, 1), list(i).output_shape(2, 2));
233 buf.
appendSprintf(
"%s", (list(i).output_channelfirst) ?
"true" :
"false");
247 myModelFile =
""_UTsh;
248 raw_myModelFile =
""_UTsh;
251 myOutputs.setSize(1);
252 myDoMaxBatch =
false;
267 if (myModelFile != src.myModelFile)
return false;
268 if (raw_myModelFile != src.raw_myModelFile)
return false;
269 if (myKeepInput != src.myKeepInput)
return false;
270 if (myInputs != src.myInputs)
return false;
271 if (myOutputs != src.myOutputs)
return false;
272 if (myDoMaxBatch != src.myDoMaxBatch)
return false;
273 if (myMaxBatch != src.myMaxBatch)
return false;
274 if (myCuda != src.myCuda)
return false;
291 myModelFile =
""_UTsh;
293 graph->
evalOpParm(myModelFile, nodeidx,
"modelfile", time, 0);
294 raw_myModelFile =
""_UTsh;
296 graph->
evalOpParmRaw(raw_myModelFile, nodeidx,
"modelfile", time, 0);
299 graph->
evalOpParm(myKeepInput, nodeidx,
"keepinput", time, 0);
303 graph->
evalOpParm(length, nodeidx,
"inputs", time, 0);
304 if (length < 0) length = 0;
305 myInputs.setSize(length);
312 auto && _curentry = myInputs(i);
314 _curentry.input_name =
""_UTsh;
316 graph->
evalOpParmInst(_curentry.input_name, nodeidx,
"input_name#", parmidx, offsets, time, 0, 2-1);
317 _curentry.input_shape = 1;
319 graph->
evalOpParmInst(_curentry.input_shape, nodeidx,
"input_shape#", parmidx, offsets, time, 0, 2-1);
320 _curentry.input_type = 0;
322 graph->
evalOpParmInst(_curentry.input_type, nodeidx,
"input_type#", parmidx, offsets, time, 0, 2-1);
323 _curentry.input_volorder = 0;
324 if (
true && ( (
true&&!(((_curentry.input_type!=0)))) ) )
325 graph->
evalOpParmInst(_curentry.input_volorder, nodeidx,
"input_volorder#", parmidx, offsets, time, 0, 2-1);
326 _curentry.input_channelfirst =
false;
327 if (
true && ( (
true&&!(((_curentry.input_type!=0)))) ) )
328 graph->
evalOpParmInst(_curentry.input_channelfirst, nodeidx,
"input_channelfirst#", parmidx, offsets, time, 0, 2-1);
329 _curentry.input_data =
""_UTsh;
331 graph->
evalOpParmInst(_curentry.input_data, nodeidx,
"input_data#", parmidx, offsets, time, 0, 2-1);
340 graph->
evalOpParm(length, nodeidx,
"outputs", time, 0);
341 if (length < 0) length = 0;
342 myOutputs.setSize(length);
349 auto && _curentry = myOutputs(i);
351 _curentry.output_name =
""_UTsh;
353 graph->
evalOpParmInst(_curentry.output_name, nodeidx,
"output_name#", parmidx, offsets, time, 0, 2-1);
354 _curentry.output_shape = 1;
356 graph->
evalOpParmInst(_curentry.output_shape, nodeidx,
"output_shape#", parmidx, offsets, time, 0, 2-1);
357 _curentry.output_type = 0;
359 graph->
evalOpParmInst(_curentry.output_type, nodeidx,
"output_type#", parmidx, offsets, time, 0, 2-1);
360 _curentry.output_volorder = 0;
361 if (
true && ( (
true&&!(((_curentry.output_type!=0)))) ) )
362 graph->
evalOpParmInst(_curentry.output_volorder, nodeidx,
"output_volorder#", parmidx, offsets, time, 0, 2-1);
363 _curentry.output_channelfirst =
false;
364 if (
true && ( (
true&&!(((_curentry.output_type!=0)))) ) )
365 graph->
evalOpParmInst(_curentry.output_channelfirst, nodeidx,
"output_channelfirst#", parmidx, offsets, time, 0, 2-1);
366 _curentry.output_data =
""_UTsh;
368 graph->
evalOpParmInst(_curentry.output_data, nodeidx,
"output_data#", parmidx, offsets, time, 0, 2-1);
374 myDoMaxBatch =
false;
376 graph->
evalOpParm(myDoMaxBatch, nodeidx,
"domaxbatch", time, 0);
378 if (
true && ( (
true&&!(((getDoMaxBatch()==0)))) ) )
379 graph->
evalOpParm(myMaxBatch, nodeidx,
"maxbatch", time, 0);
382 graph->
evalOpParm(myCuda, nodeidx,
"cuda", time, 0);
398 template <
typename T>
405 if (idx.
size() != instance.
size()+1)
410 coerceValue(value, myModelFile);
413 coerceValue(value, myKeepInput);
417 coerceValue(value, myInputs.entries());
418 else if (instance[0] < myInputs.entries())
420 auto && _data = myInputs(instance[0]);
424 coerceValue(value, _data.input_name);
427 coerceValue(value, _data.input_shape);
430 coerceValue(value, _data.input_type);
433 coerceValue(value, _data.input_volorder);
436 coerceValue(value, _data.input_channelfirst);
439 coerceValue(value, _data.input_data);
447 coerceValue(value, myOutputs.entries());
448 else if (instance[0] < myOutputs.entries())
450 auto && _data = myOutputs(instance[0]);
454 coerceValue(value, _data.output_name);
457 coerceValue(value, _data.output_shape);
460 coerceValue(value, _data.output_type);
463 coerceValue(value, _data.output_volorder);
466 coerceValue(value, _data.output_channelfirst);
469 coerceValue(value, _data.output_data);
476 coerceValue(value, myDoMaxBatch);
479 coerceValue(value, myMaxBatch);
482 coerceValue(value, myCuda);
498 { doGetParmValue(idx, instance, value); }
500 { doGetParmValue(idx, instance, value); }
502 { doGetParmValue(idx, instance, value); }
504 { doGetParmValue(idx, instance, value); }
506 { doGetParmValue(idx, instance, value); }
508 { doGetParmValue(idx, instance, value); }
510 { doGetParmValue(idx, instance, value); }
512 { doGetParmValue(idx, instance, value); }
514 { doGetParmValue(idx, instance, value); }
516 { doGetParmValue(idx, instance, value); }
518 { doGetParmValue(idx, instance, value); }
520 template <
typename T>
527 if (idx.
size() != instance.
size()+1)
532 coerceValue(myModelFile, ( ( value ) ));
535 coerceValue(myKeepInput, ( ( value ) ));
541 coerceValue(newsize, value);
542 if (newsize < 0) newsize = 0;
543 myInputs.setSize(newsize);
549 myInputs.setSizeIfNeeded(instance[0]+1);
550 auto && _data = myInputs(instance[0]);
554 coerceValue(_data.input_name, value);
557 coerceValue(_data.input_shape, value);
560 coerceValue(_data.input_type, value);
563 coerceValue(_data.input_volorder, value);
566 coerceValue(_data.input_channelfirst, value);
569 coerceValue(_data.input_data, value);
579 coerceValue(newsize, value);
580 if (newsize < 0) newsize = 0;
581 myOutputs.setSize(newsize);
587 myOutputs.setSizeIfNeeded(instance[0]+1);
588 auto && _data = myOutputs(instance[0]);
592 coerceValue(_data.output_name, value);
595 coerceValue(_data.output_shape, value);
598 coerceValue(_data.output_type, value);
601 coerceValue(_data.output_volorder, value);
604 coerceValue(_data.output_channelfirst, value);
607 coerceValue(_data.output_data, value);
614 coerceValue(myDoMaxBatch, ( ( value ) ));
617 coerceValue(myMaxBatch, ( ( value ) ));
620 coerceValue(myCuda, ( ( value ) ));
627 { doSetParmValue(idx, instance, value); }
629 { doSetParmValue(idx, instance, value); }
631 { doSetParmValue(idx, instance, value); }
633 { doSetParmValue(idx, instance, value); }
635 { doSetParmValue(idx, instance, value); }
637 { doSetParmValue(idx, instance, value); }
639 { doSetParmValue(idx, instance, value); }
641 { doSetParmValue(idx, instance, value); }
643 { doSetParmValue(idx, instance, value); }
645 { doSetParmValue(idx, instance, value); }
647 { doSetParmValue(idx, instance, value); }
667 if (fieldnum.
size() < 1)
676 if (fieldnum.
size() == 1)
681 return "input_name#";
683 return "input_shape#";
685 return "input_type#";
687 return "input_volorder#";
689 return "input_channelfirst#";
691 return "input_data#";
696 if (fieldnum.
size() == 1)
701 return "output_name#";
703 return "output_shape#";
705 return "output_type#";
707 return "output_volorder#";
709 return "output_channelfirst#";
711 return "output_data#";
728 if (fieldnum.
size() < 1)
729 return PARM_UNSUPPORTED;
737 if (fieldnum.
size() == 1)
738 return PARM_MULTIPARM;
755 return PARM_UNSUPPORTED;
757 if (fieldnum.
size() == 1)
758 return PARM_MULTIPARM;
775 return PARM_UNSUPPORTED;
784 return PARM_UNSUPPORTED;
820 loadData(is, rampdata);
838 int typelen = colon - data.
buffer();
852 {
int64 iv =
v; UTwrite(os, &iv); }
854 { UTwrite<fpreal64>(os, &
v); }
856 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
858 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
859 UTwrite<fpreal64>(os, &v.
z()); }
861 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
862 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
874 if (s) s->save(ostr);
876 saveData(os, result);
883 ostr << s->getDataTypeToken();
888 saveData(os, result);
892 void save(std::ostream &os)
const
896 saveData(os, myModelFile);
897 saveData(os, raw_myModelFile);
898 saveData(os, myKeepInput);
901 UTwrite(os, &length);
904 auto && _curentry = myInputs(i);
906 saveData(os, _curentry.input_name);
907 saveData(os, _curentry.input_shape);
908 saveData(os, _curentry.input_type);
909 saveData(os, _curentry.input_volorder);
910 saveData(os, _curentry.input_channelfirst);
911 saveData(os, _curentry.input_data);
917 UTwrite(os, &length);
920 auto && _curentry = myOutputs(i);
922 saveData(os, _curentry.output_name);
923 saveData(os, _curentry.output_shape);
924 saveData(os, _curentry.output_type);
925 saveData(os, _curentry.output_volorder);
926 saveData(os, _curentry.output_channelfirst);
927 saveData(os, _curentry.output_data);
931 saveData(os, myDoMaxBatch);
932 saveData(os, myMaxBatch);
933 saveData(os, myCuda);
946 loadData(is, myModelFile);
947 loadData(is, raw_myModelFile);
948 loadData(is, myKeepInput);
952 myInputs.setSize(length);
955 auto && _curentry = myInputs(i);
957 loadData(is, _curentry.input_name);
958 loadData(is, _curentry.input_shape);
959 loadData(is, _curentry.input_type);
960 loadData(is, _curentry.input_volorder);
961 loadData(is, _curentry.input_channelfirst);
962 loadData(is, _curentry.input_data);
969 myOutputs.setSize(length);
972 auto && _curentry = myOutputs(i);
974 loadData(is, _curentry.output_name);
975 loadData(is, _curentry.output_shape);
976 loadData(is, _curentry.output_type);
977 loadData(is, _curentry.output_volorder);
978 loadData(is, _curentry.output_channelfirst);
979 loadData(is, _curentry.output_data);
983 loadData(is, myDoMaxBatch);
984 loadData(is, myMaxBatch);
985 loadData(is, myCuda);
995 if (!thissop)
return getModelFile();
997 OP_Utils::evalOpParm(result, thissop,
"modelfile", cookparms.
getCookTime(), 0);
1005 if (!thissop)
return raw_getModelFile();
1007 OP_Utils::evalOpParmRaw(result, thissop,
"modelfile", cookparms.
getCookTime(), 0);
1015 if (!thissop)
return getKeepInput();
1017 OP_Utils::evalOpParm(result, thissop,
"keepinput", cookparms.
getCookTime(), 0);
1025 if (!thissop)
return getInputs().entries();
1027 OP_Utils::evalOpParm(result, thissop,
"inputs", cookparms.
getCookTime(), 0);
1031 {
return opinstInputs_input_name(cookparms, &_idx); }
1035 if (!thissop)
return (myInputs(_idx[0]).input_name);
1037 _parmidx[1-1] = _idx[1-1] + 1;
1040 OP_Utils::evalOpParmInst(result, thissop,
"input_name#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1044 {
return opinstInputs_input_shape(cookparms, &_idx); }
1048 if (!thissop)
return (myInputs(_idx[0]).input_shape);
1050 _parmidx[1-1] = _idx[1-1] + 1;
1053 OP_Utils::evalOpParmInst(result, thissop,
"input_shape#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1057 {
return opinstInputs_input_type(cookparms, &_idx); }
1061 if (!thissop)
return (myInputs(_idx[0]).input_type);
1063 _parmidx[1-1] = _idx[1-1] + 1;
1066 OP_Utils::evalOpParmInst(result, thissop,
"input_type#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1070 {
return opinstInputs_input_volorder(cookparms, &_idx); }
1074 if (!thissop)
return (myInputs(_idx[0]).input_volorder);
1076 _parmidx[1-1] = _idx[1-1] + 1;
1079 OP_Utils::evalOpParmInst(result, thissop,
"input_volorder#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1083 {
return opinstInputs_input_channelfirst(cookparms, &_idx); }
1087 if (!thissop)
return (myInputs(_idx[0]).input_channelfirst);
1089 _parmidx[1-1] = _idx[1-1] + 1;
1092 OP_Utils::evalOpParmInst(result, thissop,
"input_channelfirst#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1096 {
return opinstInputs_input_data(cookparms, &_idx); }
1100 if (!thissop)
return (myInputs(_idx[0]).input_data);
1102 _parmidx[1-1] = _idx[1-1] + 1;
1105 OP_Utils::evalOpParmInst(result, thissop,
"input_data#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1114 if (!thissop)
return getOutputs().entries();
1116 OP_Utils::evalOpParm(result, thissop,
"outputs", cookparms.
getCookTime(), 0);
1120 {
return opinstOutputs_output_name(cookparms, &_idx); }
1124 if (!thissop)
return (myOutputs(_idx[0]).output_name);
1126 _parmidx[1-1] = _idx[1-1] + 1;
1129 OP_Utils::evalOpParmInst(result, thissop,
"output_name#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1133 {
return opinstOutputs_output_shape(cookparms, &_idx); }
1137 if (!thissop)
return (myOutputs(_idx[0]).output_shape);
1139 _parmidx[1-1] = _idx[1-1] + 1;
1142 OP_Utils::evalOpParmInst(result, thissop,
"output_shape#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1146 {
return opinstOutputs_output_type(cookparms, &_idx); }
1150 if (!thissop)
return (myOutputs(_idx[0]).output_type);
1152 _parmidx[1-1] = _idx[1-1] + 1;
1155 OP_Utils::evalOpParmInst(result, thissop,
"output_type#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1159 {
return opinstOutputs_output_volorder(cookparms, &_idx); }
1163 if (!thissop)
return (myOutputs(_idx[0]).output_volorder);
1165 _parmidx[1-1] = _idx[1-1] + 1;
1168 OP_Utils::evalOpParmInst(result, thissop,
"output_volorder#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1172 {
return opinstOutputs_output_channelfirst(cookparms, &_idx); }
1176 if (!thissop)
return (myOutputs(_idx[0]).output_channelfirst);
1178 _parmidx[1-1] = _idx[1-1] + 1;
1181 OP_Utils::evalOpParmInst(result, thissop,
"output_channelfirst#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1185 {
return opinstOutputs_output_data(cookparms, &_idx); }
1189 if (!thissop)
return (myOutputs(_idx[0]).output_data);
1191 _parmidx[1-1] = _idx[1-1] + 1;
1194 OP_Utils::evalOpParmInst(result, thissop,
"output_data#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1203 if (!thissop)
return getDoMaxBatch();
1205 OP_Utils::evalOpParm(result, thissop,
"domaxbatch", cookparms.
getCookTime(), 0);
1213 if (!thissop)
return getMaxBatch();
1215 OP_Utils::evalOpParm(result, thissop,
"maxbatch", cookparms.
getCookTime(), 0);
1223 if (!thissop)
return getCuda();
1225 OP_Utils::evalOpParm(result, thissop,
"cuda", cookparms.
getCookTime(), 0);
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opinstOutputs_output_name(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
const char * getNestParmName(TempIndex fieldnum) const override
void setKeepInput(bool val)
int64 opinstInputs_input_volorder(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void save(std::ostream &os) const
bool opInputs_input_channelfirst(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLenum GLuint GLenum GLsizei const GLchar * buf
SYS_FORCE_INLINE UT_StringHolder getToken(Input_type enum_value)
SOP_Node * getNode() const
bool opinstInputs_input_channelfirst(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool opDoMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
void setOutputs(const UT_Array< Outputs > &val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint getNestNumParms(TempIndex idx) const override
UT_StringHolder raw_opModelFile(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_ONNXParms &src) const
exint bread(int32 *buffer, exint asize=1)
bool operator!=(const SOP_ONNXParms &src) const
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setInputs(const UT_Array< Inputs > &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
UT_StringHolder opinstInputs_input_name(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
const UT_StringHolder & getModelFile() const
virtual void evalOpParmRaw(UT_StringHolder &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
constexpr SYS_FORCE_INLINE T & z() noexcept
UT_StringHolder opinstInputs_input_data(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE const char * buffer() const
bool isParmColorRamp(exint idx) const override
GLuint GLsizei GLsizei * length
int64 opInputs_input_type(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
An output stream object that owns its own string buffer storage.
bool getDoMaxBatch() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, bool &v)
bool operator==(const Outputs &src) const
**But if you need a result
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
int64 opOutputs_output_type(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
int64 getMaxBatch() const
UT_StringHolder createString(const UT_Array< Outputs > &list) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_StringHolder opModelFile(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
int64 opInputs_input_volorder(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
exint opInputs(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opInputs_input_name(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
constexpr SYS_FORCE_INLINE T & x() noexcept
static void saveData(std::ostream &os, UT_Matrix3D v)
GLuint GLsizei const GLuint const GLintptr * offsets
UT_StringHolder createString(const UT_Array< Inputs > &list) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setMaxBatch(int64 val)
int64 opinstInputs_input_type(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
UT_Matrix3D opOutputs_output_shape(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & z() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
UT_StringHolder opInputs_input_data(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
exint read(bool *array, exint sz=1)
const OP_GraphProxy * graph() const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
UT_StringHolder opOutputs_output_data(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, const int *inst, const int *offsets, fpreal time, DEP_MicroNode *depnode, int nestlevel=1) const =0
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator!=(const Outputs &src) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
const UT_StringHolder & raw_getModelFile() const
void setDoMaxBatch(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
GT_API const UT_StringHolder version
bool opOutputs_output_channelfirst(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
exint entries() const
Alias of size(). size() is preferred.
UT_Matrix3D opInputs_input_shape(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
int64 opinstOutputs_output_volorder(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void copyFrom(const OP_NodeParms *src) override
UT_StringHolder output_name
UT_StringHolder opinstOutputs_output_data(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool opCuda(const SOP_NodeVerb::CookParms &cookparms) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setModelFile(const UT_StringHolder &val)
const UT_Array< Outputs > & getOutputs() const
static void saveData(std::ostream &os, UT_Matrix2D v)
DEP_MicroNode * depnode() const
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
UT_StringHolder opOutputs_output_name(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void raw_setModelFile(const UT_StringHolder &val)
UT_Matrix3D opinstInputs_input_shape(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
int64 opMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
SYS_FORCE_INLINE void append(char character)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool getKeepInput() const
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
int64 opinstOutputs_output_type(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
fpreal getCookTime() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
ParmType getNestParmType(TempIndex fieldnum) const override
const char * findChar(int c) const
static void saveData(std::ostream &os, UT_Vector3D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
int64 opOutputs_output_volorder(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void saveData(std::ostream &os, UT_Vector4D v)
UT_StringHolder output_data
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint opOutputs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
UT_Matrix3D opinstOutputs_output_shape(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void saveData(std::ostream &os, bool v)
const UT_Array< Inputs > & getInputs() const
static void loadData(UT_IStream &is, fpreal64 &v)
bool opinstOutputs_output_channelfirst(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
SYS_FORCE_INLINE bool isstring() const
bool opKeepInput(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
constexpr SYS_FORCE_INLINE T & x() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override