23 namespace SOP_MaterialEnums
34 using namespace UT::Literal;
63 local_type =
"float"_UTsh;
75 if (local_type != src.
local_type)
return false;
76 if (local_ival != src.
local_ival)
return false;
77 if (local_fval != src.
local_fval)
return false;
78 if (local_sval != src.
local_sval)
return false;
79 if (local_cval != src.
local_cval)
return false;
80 if (local_vval != src.
local_vval)
return false;
96 for (
int i = 0; i < list.
entries(); i++)
112 buf.
appendSprintf(
"(%f, %f, %f)", list(i).local_cval.x(), list(i).local_cval.y(), list(i).local_cval.z());
114 buf.
appendSprintf(
"(%f, %f, %f, %f)", list(i).local_vval.x(), list(i).local_vval.y(), list(i).local_vval.z(), list(i).local_vval.w());
137 mergeoverride =
false;
138 num_local.setSize(0);
144 if (group != src.
group)
return false;
146 if (localvar != src.
localvar)
return false;
148 if (num_local != src.
num_local)
return false;
164 for (
int i = 0; i < list.
entries(); i++)
174 buf.
appendSprintf(
"%s", (list(i).localvar) ?
"true" :
"false");
176 buf.
appendSprintf(
"%s", (list(i).mergeoverride) ?
"true" :
"false");
178 buf.
strcat(createString(list(i).num_local));
190 myStyle =
"primitive"_UTsh;
192 myCreatestylesheets =
false;
194 myNum_materials.setSize(1);
207 if (myStyle != src.myStyle)
return false;
208 if (myUselabels != src.myUselabels)
return false;
209 if (myCreatestylesheets != src.myCreatestylesheets)
return false;
210 if (myFullpath != src.myFullpath)
return false;
211 if (myNum_materials != src.myNum_materials)
return false;
225 myStyle =
"primitive"_UTsh;
227 graph->
evalOpParm(myStyle, nodeidx,
"style", time, 0);
230 graph->
evalOpParm(myUselabels, nodeidx,
"uselabels", time, 0);
231 myCreatestylesheets =
false;
233 graph->
evalOpParm(myCreatestylesheets, nodeidx,
"createstylesheets", time, 0);
236 graph->
evalOpParm(myFullpath, nodeidx,
"fullpath", time, 0);
240 graph->
evalOpParm(length, nodeidx,
"num_materials", time, 0);
241 if (length < 0) length = 0;
242 myNum_materials.setSize(length);
249 auto && _curentry = myNum_materials(i);
251 _curentry.group =
""_UTsh;
253 graph->
evalOpParmInst(_curentry.group, nodeidx,
"group#", parmidx, offsets, time, 0, 2-1);
254 _curentry.shop_materialpath =
""_UTsh;
256 graph->
evalOpParmInst(_curentry.shop_materialpath, nodeidx,
"shop_materialpath#", parmidx, offsets, time, 0, 2-1);
257 _curentry.localvar =
false;
259 graph->
evalOpParmInst(_curentry.localvar, nodeidx,
"localvar#", parmidx, offsets, time, 0, 2-1);
260 _curentry.mergeoverride =
false;
262 graph->
evalOpParmInst(_curentry.mergeoverride, nodeidx,
"mergeoverride#", parmidx, offsets, time, 0, 2-1);
267 graph->
evalOpParmInst(length, nodeidx,
"num_local#", parmidx, offsets, time, 0, 2-1);
268 if (length < 0) length = 0;
269 _curentry.num_local.setSize(length);
272 auto && _unshadow_entry = _curentry.num_local;
273 auto && _unshadow_parmidx = parmidx;
274 auto && _unshadow_offsets =
offsets;
276 auto && _curentry = _unshadow_entry(i);
279 for (
int _i = 0; _i < 2 - 1; _i++)
280 parmidx[_i] = _unshadow_parmidx[_i];
281 for (
int _i = 0; _i < 2 - 1; _i++)
282 offsets[_i] = _unshadow_offsets[_i];
286 _curentry.local_name =
""_UTsh;
288 graph->
evalOpParmInst(_curentry.local_name, nodeidx,
"local#_name#", parmidx, offsets, time, 0, 3-1);
289 _curentry.local_type =
"float"_UTsh;
291 graph->
evalOpParmInst(_curentry.local_type, nodeidx,
"local#_type#", parmidx, offsets, time, 0, 3-1);
292 _curentry.local_ival = 0;
293 if (
true && ( (
true&&!(((_curentry.local_type!=
"int")))) ) )
294 graph->
evalOpParmInst(_curentry.local_ival, nodeidx,
"local#_ival#", parmidx, offsets, time, 0, 3-1);
295 _curentry.local_fval = 0;
296 if (
true && ( (
true&&!(((_curentry.local_type!=
"float")))) ) )
297 graph->
evalOpParmInst(_curentry.local_fval, nodeidx,
"local#_fval#", parmidx, offsets, time, 0, 3-1);
298 _curentry.local_sval =
""_UTsh;
299 if (
true && ( (
true&&!(((_curentry.local_type!=
"string")))) ) )
300 graph->
evalOpParmInst(_curentry.local_sval, nodeidx,
"local#_sval#", parmidx, offsets, time, 0, 3-1);
302 if (
true && ( (
true&&!(((_curentry.local_type!=
"color")))) ) )
303 graph->
evalOpParmInst(_curentry.local_cval, nodeidx,
"local#_cval#", parmidx, offsets, time, 0, 3-1);
305 if (
true && ( (
true&&!(((_curentry.local_type!=
"vector2")&&(_curentry.local_type!=
"vector3")&&(_curentry.local_type!=
"vector4")))) ) )
306 graph->
evalOpParmInst(_curentry.local_vval, nodeidx,
"local#_vval#", parmidx, offsets, time, 0, 3-1);
312 _curentry.num_local.clear();
318 myNum_materials.clear();
334 template <
typename T>
341 if (idx.
size() != instance.
size()+1)
346 coerceValue(value, myStyle);
349 coerceValue(value, myUselabels);
352 coerceValue(value, myCreatestylesheets);
355 coerceValue(value, myFullpath);
359 coerceValue(value, myNum_materials.entries());
360 else if (instance[0] < myNum_materials.entries())
362 auto && _data = myNum_materials(instance[0]);
366 coerceValue(value, _data.group);
369 coerceValue(value, _data.shop_materialpath);
372 coerceValue(value, _data.localvar);
375 coerceValue(value, _data.mergeoverride);
379 coerceValue(value, _data.num_local.entries());
380 else if (instance[2-1] < _data.num_local.entries())
382 auto && _unshadow = _data.num_local;
384 auto && _data = _unshadow(instance[2-1]);
388 coerceValue(value, _data.local_name);
391 coerceValue(value, _data.local_type);
394 coerceValue(value, _data.local_ival);
397 coerceValue(value, _data.local_fval);
400 coerceValue(value, _data.local_sval);
403 coerceValue(value, _data.local_cval);
406 coerceValue(value, _data.local_vval);
431 { doGetParmValue(idx, instance, value); }
433 { doGetParmValue(idx, instance, value); }
435 { doGetParmValue(idx, instance, value); }
437 { doGetParmValue(idx, instance, value); }
439 { doGetParmValue(idx, instance, value); }
441 { doGetParmValue(idx, instance, value); }
443 { doGetParmValue(idx, instance, value); }
445 { doGetParmValue(idx, instance, value); }
447 { doGetParmValue(idx, instance, value); }
449 { doGetParmValue(idx, instance, value); }
451 { doGetParmValue(idx, instance, value); }
453 template <
typename T>
460 if (idx.
size() != instance.
size()+1)
465 coerceValue(myStyle, ( ( value ) ));
468 coerceValue(myUselabels, clampMinValue(0, clampMaxValue(1, value ) ));
471 coerceValue(myCreatestylesheets, ( ( value ) ));
474 coerceValue(myFullpath, ( ( value ) ));
480 coerceValue(newsize, value);
481 if (newsize < 0) newsize = 0;
482 myNum_materials.setSize(newsize);
488 myNum_materials.setSizeIfNeeded(instance[0]+1);
489 auto && _data = myNum_materials(instance[0]);
493 coerceValue(_data.group, value);
496 coerceValue(_data.shop_materialpath, value);
499 coerceValue(_data.localvar, value);
502 coerceValue(_data.mergeoverride, value);
508 coerceValue(newsize, value);
509 if (newsize < 0) newsize = 0;
510 _data.num_local.setSize(newsize);
514 if (instance[2-1] < 0)
516 _data.num_local.setSizeIfNeeded(instance[2-1]+1);
517 auto && _unshadow = _data.num_local;
519 auto && _data = _unshadow(instance[2-1]);
523 coerceValue(_data.local_name, value);
526 coerceValue(_data.local_type, value);
529 coerceValue(_data.local_ival, value);
532 coerceValue(_data.local_fval, value);
535 coerceValue(_data.local_sval, value);
538 coerceValue(_data.local_cval, value);
541 coerceValue(_data.local_vval, value);
557 { doSetParmValue(idx, instance, value); }
559 { doSetParmValue(idx, instance, value); }
561 { doSetParmValue(idx, instance, value); }
563 { doSetParmValue(idx, instance, value); }
565 { doSetParmValue(idx, instance, value); }
567 { doSetParmValue(idx, instance, value); }
569 { doSetParmValue(idx, instance, value); }
571 { doSetParmValue(idx, instance, value); }
573 { doSetParmValue(idx, instance, value); }
575 { doSetParmValue(idx, instance, value); }
577 { doSetParmValue(idx, instance, value); }
595 if (fieldnum.
size() < 1)
604 return "createstylesheets";
608 if (fieldnum.
size() == 1)
609 return "num_materials";
615 return "shop_materialpath#";
619 return "mergeoverride#";
621 if (fieldnum.
size() == 2)
626 return "local#_name#";
628 return "local#_type#";
630 return "local#_ival#";
632 return "local#_fval#";
634 return "local#_sval#";
636 return "local#_cval#";
638 return "local#_vval#";
652 if (fieldnum.
size() < 1)
653 return PARM_UNSUPPORTED;
665 if (fieldnum.
size() == 1)
666 return PARM_MULTIPARM;
678 if (fieldnum.
size() == 2)
679 return PARM_MULTIPARM;
698 return PARM_UNSUPPORTED;
701 return PARM_UNSUPPORTED;
704 return PARM_UNSUPPORTED;
740 loadData(is, rampdata);
758 int typelen = colon - data.
buffer();
772 {
int64 iv =
v; UTwrite(os, &iv); }
774 { UTwrite<fpreal64>(os, &
v); }
776 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
778 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
779 UTwrite<fpreal64>(os, &v.
z()); }
781 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
782 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
794 if (s) s->save(ostr);
796 saveData(os, result);
803 ostr << s->getDataTypeToken();
808 saveData(os, result);
812 void save(std::ostream &os)
const
816 saveData(os, myStyle);
817 saveData(os, myUselabels);
818 saveData(os, myCreatestylesheets);
819 saveData(os, myFullpath);
822 UTwrite(os, &length);
825 auto && _curentry = myNum_materials(i);
827 saveData(os, _curentry.group);
828 saveData(os, _curentry.shop_materialpath);
829 saveData(os, _curentry.localvar);
830 saveData(os, _curentry.mergeoverride);
832 int64 length2 = _curentry.num_local.entries();
833 UTwrite(os, &length2);
836 auto && _unshadow_entry = _curentry;
838 auto && _curentry = _unshadow_entry.num_local(
i2);
840 saveData(os, _curentry.local_name);
841 saveData(os, _curentry.local_type);
842 saveData(os, _curentry.local_ival);
843 saveData(os, _curentry.local_fval);
844 saveData(os, _curentry.local_sval);
845 saveData(os, _curentry.local_cval);
846 saveData(os, _curentry.local_vval);
866 loadData(is, myStyle);
867 loadData(is, myUselabels);
868 loadData(is, myCreatestylesheets);
869 loadData(is, myFullpath);
873 myNum_materials.setSize(length);
876 auto && _curentry = myNum_materials(i);
878 loadData(is, _curentry.group);
879 loadData(is, _curentry.shop_materialpath);
880 loadData(is, _curentry.localvar);
881 loadData(is, _curentry.mergeoverride);
884 is.
read(&length2, 1);
885 _curentry.num_local.setSize(length2);
888 auto && _unshadow_entry = _curentry;
890 auto && _curentry = _unshadow_entry.num_local(
i2);
892 loadData(is, _curentry.local_name);
893 loadData(is, _curentry.local_type);
894 loadData(is, _curentry.local_ival);
895 loadData(is, _curentry.local_fval);
896 loadData(is, _curentry.local_sval);
897 loadData(is, _curentry.local_cval);
898 loadData(is, _curentry.local_vval);
915 if (!thissop)
return getStyle();
917 OP_Utils::evalOpParm(result, thissop,
"style", cookparms.
getCookTime(), 0);
925 if (!thissop)
return getUselabels();
927 OP_Utils::evalOpParm(result, thissop,
"uselabels", cookparms.
getCookTime(), 0);
935 if (!thissop)
return getCreatestylesheets();
937 OP_Utils::evalOpParm(result, thissop,
"createstylesheets", cookparms.
getCookTime(), 0);
945 if (!thissop)
return getFullpath();
947 OP_Utils::evalOpParm(result, thissop,
"fullpath", cookparms.
getCookTime(), 0);
955 if (!thissop)
return getNum_materials().entries();
957 OP_Utils::evalOpParm(result, thissop,
"num_materials", cookparms.
getCookTime(), 0);
961 {
return opinstNum_materials_group(cookparms, &_idx); }
965 if (!thissop)
return (myNum_materials(_idx[0]).group);
967 _parmidx[1-1] = _idx[1-1] + 1;
970 OP_Utils::evalOpParmInst(result, thissop,
"group#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
974 {
return opinstNum_materials_shop_materialpath(cookparms, &_idx); }
980 _parmidx[1-1] = _idx[1-1] + 1;
983 OP_Utils::evalOpParmInst(result, thissop,
"shop_materialpath#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
987 {
return opinstNum_materials_localvar(cookparms, &_idx); }
991 if (!thissop)
return (myNum_materials(_idx[0]).localvar);
993 _parmidx[1-1] = _idx[1-1] + 1;
996 OP_Utils::evalOpParmInst(result, thissop,
"localvar#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1000 {
return opinstNum_materials_mergeoverride(cookparms, &_idx); }
1004 if (!thissop)
return (myNum_materials(_idx[0]).mergeoverride);
1006 _parmidx[1-1] = _idx[1-1] + 1;
1009 OP_Utils::evalOpParmInst(result, thissop,
"mergeoverride#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1015 if (!thissop)
return myNum_materials(_idx[0]).num_local.entries();
1018 _parmidx[1-1] = _idx[1-1] + 1;
1020 OP_Utils::evalOpParmInst(result, thissop,
"num_local#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1026 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).
local_name);
1028 _parmidx[1-1] = _idx[1-1] + 1;
1029 _parmidx[2-1] = _idx[2-1] + 1;
1032 OP_Utils::evalOpParmInst(result, thissop,
"local#_name#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1038 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_type);
1040 _parmidx[1-1] = _idx[1-1] + 1;
1041 _parmidx[2-1] = _idx[2-1] + 1;
1044 OP_Utils::evalOpParmInst(result, thissop,
"local#_type#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1050 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_ival);
1052 _parmidx[1-1] = _idx[1-1] + 1;
1053 _parmidx[2-1] = _idx[2-1] + 1;
1056 OP_Utils::evalOpParmInst(result, thissop,
"local#_ival#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1062 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_fval);
1064 _parmidx[1-1] = _idx[1-1] + 1;
1065 _parmidx[2-1] = _idx[2-1] + 1;
1068 OP_Utils::evalOpParmInst(result, thissop,
"local#_fval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1074 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_sval);
1076 _parmidx[1-1] = _idx[1-1] + 1;
1077 _parmidx[2-1] = _idx[2-1] + 1;
1080 OP_Utils::evalOpParmInst(result, thissop,
"local#_sval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1086 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_cval);
1088 _parmidx[1-1] = _idx[1-1] + 1;
1089 _parmidx[2-1] = _idx[2-1] + 1;
1092 OP_Utils::evalOpParmInst(result, thissop,
"local#_cval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1098 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_vval);
1100 _parmidx[1-1] = _idx[1-1] + 1;
1101 _parmidx[2-1] = _idx[2-1] + 1;
1104 OP_Utils::evalOpParmInst(result, thissop,
"local#_vval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1113 bool myCreatestylesheets;
UT_StringHolder opinstNum_materials_num_local_local_type(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, fpreal64 v)
bool operator==(const Num_local &src) const
const char * getNestParmName(TempIndex fieldnum) const override
bool opNum_materials_localvar(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_StringHolder createString(const UT_Array< Num_local > &list) const
GLenum GLuint GLenum GLsizei const GLchar * buf
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator!=(const Num_local &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
SOP_Node * getNode() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_StringHolder local_name
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
PUGI__FN const char_t * local_name(const xpath_node &node)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
ParmType getNestParmType(TempIndex fieldnum) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, bool v)
bool operator!=(const SOP_MaterialParms &src) const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
exint opNum_materials(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder shop_materialpath
constexpr SYS_FORCE_INLINE T & z() noexcept
static void saveData(std::ostream &os, UT_Matrix2D v)
bool isParmColorRamp(exint idx) const override
bool operator==(const Num_materials &src) const
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
bool opCreatestylesheets(const SOP_NodeVerb::CookParms &cookparms) const
GLuint GLsizei GLsizei * length
bool load(UT_IStream &is)
An output stream object that owns its own string buffer storage.
UT_StringHolder opStyle(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
**But if you need a result
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
Uselabels getUselabels() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void copyFrom(const OP_NodeParms *src) override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector3D &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_Vector4D opinstNum_materials_num_local_local_vval(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder opinstNum_materials_num_local_local_sval(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
bool operator==(const SOP_MaterialParms &src) const
UT_StringHolder local_type
GLuint GLsizei const GLuint const GLintptr * offsets
UT_StringHolder opinstNum_materials_group(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
constexpr SYS_FORCE_INLINE T & x() noexcept
UT_StringHolder opNum_materials_group(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_StringHolder local_sval
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
int64 opinstNum_materials_num_local_local_ival(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
void setStyle(const UT_StringHolder &val)
void setCreatestylesheets(bool val)
exint read(bool *array, exint sz=1)
const OP_GraphProxy * graph() const
UT_StringHolder opinstNum_materials_num_local_local_name(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder opNum_materials_shop_materialpath(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, fpreal64 &v)
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
bool getCreatestylesheets() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_Vector3T< fpreal64 > UT_Vector3D
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal64 opinstNum_materials_num_local_local_fval(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const UT_Array< Num_materials > & getNum_materials() const
bool opNum_materials_mergeoverride(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_Vector3D opinstNum_materials_num_local_local_cval(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setUselabels(Uselabels val)
SYS_FORCE_INLINE UT_StringHolder getToken(Uselabels enum_value)
UT_Array< Num_local > num_local
SYS_FORCE_INLINE void strcat(const char *src)
exint opinstNum_materials_num_local(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
GT_API const UT_StringHolder version
exint entries() const
Alias of size(). size() is preferred.
bool opinstNum_materials_localvar(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNum_materials(const UT_Array< Num_materials > &val)
static void saveData(std::ostream &os, UT_Vector3D v)
DEP_MicroNode * depnode() const
bool operator!=(const Num_materials &src) const
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & w() noexcept
SYS_FORCE_INLINE void append(char character)
const UT_StringHolder & getStyle() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
Uselabels opUselabels(const SOP_NodeVerb::CookParms &cookparms) const
void setFullpath(bool val)
fpreal getCookTime() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Vector2I &v)
const char * findChar(int c) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool opFullpath(const SOP_NodeVerb::CookParms &cookparms) const
bool opinstNum_materials_mergeoverride(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void saveData(std::ostream &os, int64 v)
UT_Vector4T< fpreal64 > UT_Vector4D
constexpr SYS_FORCE_INLINE T & y() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opinstNum_materials_shop_materialpath(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
UT_StringHolder createString(const UT_Array< Num_materials > &list) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
GA_API const UT_StringHolder shop_materialpath
constexpr SYS_FORCE_INLINE T & x() noexcept