23 namespace SOP_MaterialEnums
51 local_type =
"float"_UTsh;
63 if (local_type != src.
local_type)
return false;
64 if (local_ival != src.
local_ival)
return false;
65 if (local_fval != src.
local_fval)
return false;
66 if (local_sval != src.
local_sval)
return false;
67 if (local_cval != src.
local_cval)
return false;
68 if (local_vval != src.
local_vval)
return false;
84 for (
int i = 0; i < list.
entries(); i++)
100 buf.
appendSprintf(
"(%f, %f, %f)", list(i).local_cval.x(), list(i).local_cval.y(), list(i).local_cval.z());
102 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());
125 mergeoverride =
false;
126 num_local.setSize(0);
132 if (group != src.
group)
return false;
134 if (localvar != src.
localvar)
return false;
136 if (num_local != src.
num_local)
return false;
152 for (
int i = 0; i < list.
entries(); i++)
162 buf.
appendSprintf(
"%s", (list(i).localvar) ?
"true" :
"false");
164 buf.
appendSprintf(
"%s", (list(i).mergeoverride) ?
"true" :
"false");
166 buf.
strcat(createString(list(i).num_local));
178 myStyle =
"primitive"_UTsh;
180 myCreatestylesheets =
false;
182 myNum_materials.setSize(1);
195 if (myStyle != src.myStyle)
return false;
196 if (myUselabels != src.myUselabels)
return false;
197 if (myCreatestylesheets != src.myCreatestylesheets)
return false;
198 if (myFullpath != src.myFullpath)
return false;
199 if (myNum_materials != src.myNum_materials)
return false;
213 myStyle =
"primitive"_UTsh;
215 graph->
evalOpParm(myStyle, nodeidx,
"style", time, 0);
218 graph->
evalOpParm(myUselabels, nodeidx,
"uselabels", time, 0);
219 myCreatestylesheets =
false;
221 graph->
evalOpParm(myCreatestylesheets, nodeidx,
"createstylesheets", time, 0);
224 graph->
evalOpParm(myFullpath, nodeidx,
"fullpath", time, 0);
228 graph->
evalOpParm(length, nodeidx,
"num_materials", time, 0);
229 if (length < 0) length = 0;
230 myNum_materials.setSize(length);
237 auto && _curentry = myNum_materials(i);
239 _curentry.group =
""_UTsh;
241 graph->
evalOpParmInst(_curentry.group, nodeidx,
"group#", parmidx, offsets, time, 0, 2-1);
242 _curentry.shop_materialpath =
""_UTsh;
244 graph->
evalOpParmInst(_curentry.shop_materialpath, nodeidx,
"shop_materialpath#", parmidx, offsets, time, 0, 2-1);
245 _curentry.localvar =
false;
247 graph->
evalOpParmInst(_curentry.localvar, nodeidx,
"localvar#", parmidx, offsets, time, 0, 2-1);
248 _curentry.mergeoverride =
false;
250 graph->
evalOpParmInst(_curentry.mergeoverride, nodeidx,
"mergeoverride#", parmidx, offsets, time, 0, 2-1);
255 graph->
evalOpParmInst(length, nodeidx,
"num_local#", parmidx, offsets, time, 0, 2-1);
256 if (length < 0) length = 0;
257 _curentry.num_local.setSize(length);
260 auto && _unshadow_entry = _curentry.num_local;
261 auto && _unshadow_parmidx = parmidx;
262 auto && _unshadow_offsets =
offsets;
264 auto && _curentry = _unshadow_entry(i);
267 for (
int _i = 0; _i < 2 - 1; _i++)
268 parmidx[_i] = _unshadow_parmidx[_i];
269 for (
int _i = 0; _i < 2 - 1; _i++)
270 offsets[_i] = _unshadow_offsets[_i];
274 _curentry.local_name =
""_UTsh;
276 graph->
evalOpParmInst(_curentry.local_name, nodeidx,
"local#_name#", parmidx, offsets, time, 0, 3-1);
277 _curentry.local_type =
"float"_UTsh;
279 graph->
evalOpParmInst(_curentry.local_type, nodeidx,
"local#_type#", parmidx, offsets, time, 0, 3-1);
280 _curentry.local_ival = 0;
281 if (
true && ( (
true&&!(((_curentry.local_type!=
"int")))) ) )
282 graph->
evalOpParmInst(_curentry.local_ival, nodeidx,
"local#_ival#", parmidx, offsets, time, 0, 3-1);
283 _curentry.local_fval = 0;
284 if (
true && ( (
true&&!(((_curentry.local_type!=
"float")))) ) )
285 graph->
evalOpParmInst(_curentry.local_fval, nodeidx,
"local#_fval#", parmidx, offsets, time, 0, 3-1);
286 _curentry.local_sval =
""_UTsh;
287 if (
true && ( (
true&&!(((_curentry.local_type!=
"string")))) ) )
288 graph->
evalOpParmInst(_curentry.local_sval, nodeidx,
"local#_sval#", parmidx, offsets, time, 0, 3-1);
290 if (
true && ( (
true&&!(((_curentry.local_type!=
"color")))) ) )
291 graph->
evalOpParmInst(_curentry.local_cval, nodeidx,
"local#_cval#", parmidx, offsets, time, 0, 3-1);
293 if (
true && ( (
true&&!(((_curentry.local_type!=
"vector2")&&(_curentry.local_type!=
"vector3")&&(_curentry.local_type!=
"vector4")))) ) )
294 graph->
evalOpParmInst(_curentry.local_vval, nodeidx,
"local#_vval#", parmidx, offsets, time, 0, 3-1);
300 _curentry.num_local.clear();
306 myNum_materials.clear();
322 template <
typename T>
329 if (idx.
size() != instance.
size()+1)
348 else if (instance[0] < myNum_materials.entries())
350 auto && _data = myNum_materials(instance[0]);
368 else if (instance[2-1] < _data.num_local.entries())
370 auto && _unshadow = _data.num_local;
372 auto && _data = _unshadow(instance[2-1]);
419 { doGetParmValue(idx, instance, value); }
421 { doGetParmValue(idx, instance, value); }
423 { doGetParmValue(idx, instance, value); }
425 { doGetParmValue(idx, instance, value); }
427 { doGetParmValue(idx, instance, value); }
429 { doGetParmValue(idx, instance, value); }
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 template <
typename T>
448 if (idx.
size() != instance.
size()+1)
469 if (newsize < 0) newsize = 0;
470 myNum_materials.setSize(newsize);
476 myNum_materials.setSizeIfNeeded(instance[0]+1);
477 auto && _data = myNum_materials(instance[0]);
497 if (newsize < 0) newsize = 0;
498 _data.num_local.setSize(newsize);
502 if (instance[2-1] < 0)
504 _data.num_local.setSizeIfNeeded(instance[2-1]+1);
505 auto && _unshadow = _data.num_local;
507 auto && _data = _unshadow(instance[2-1]);
545 { doSetParmValue(idx, instance, value); }
547 { doSetParmValue(idx, instance, value); }
549 { doSetParmValue(idx, instance, value); }
551 { doSetParmValue(idx, instance, value); }
553 { doSetParmValue(idx, instance, value); }
555 { doSetParmValue(idx, instance, 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); }
583 if (fieldnum.
size() < 1)
592 return "createstylesheets";
596 if (fieldnum.
size() == 1)
597 return "num_materials";
603 return "shop_materialpath#";
607 return "mergeoverride#";
609 if (fieldnum.
size() == 2)
614 return "local#_name#";
616 return "local#_type#";
618 return "local#_ival#";
620 return "local#_fval#";
622 return "local#_sval#";
624 return "local#_cval#";
626 return "local#_vval#";
640 if (fieldnum.
size() < 1)
641 return PARM_UNSUPPORTED;
653 if (fieldnum.
size() == 1)
654 return PARM_MULTIPARM;
666 if (fieldnum.
size() == 2)
667 return PARM_MULTIPARM;
711 {
for (
int r = 0;
r < 2;
r++)
for (
int c = 0; c < 2; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
713 {
for (
int r = 0;
r < 3;
r++)
for (
int c = 0; c < 3; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
715 {
for (
int r = 0;
r < 4;
r++)
for (
int c = 0; c < 4; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
728 loadData(is, rampdata);
746 int typelen = colon - data.
buffer();
760 {
int64 iv =
v; UTwrite(os, &iv); }
762 { UTwrite<fpreal64>(os, &
v); }
764 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
766 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
767 UTwrite<fpreal64>(os, &v.
z()); }
769 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
770 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
782 if (s) s->save(ostr);
784 saveData(os, result);
791 ostr << s->getDataTypeToken();
796 saveData(os, result);
800 void save(std::ostream &os)
const
804 saveData(os, myStyle);
805 saveData(os, myUselabels);
806 saveData(os, myCreatestylesheets);
807 saveData(os, myFullpath);
810 UTwrite(os, &length);
813 auto && _curentry = myNum_materials(i);
815 saveData(os, _curentry.group);
816 saveData(os, _curentry.shop_materialpath);
817 saveData(os, _curentry.localvar);
818 saveData(os, _curentry.mergeoverride);
820 int64 length2 = _curentry.num_local.entries();
821 UTwrite(os, &length2);
824 auto && _unshadow_entry = _curentry;
826 auto && _curentry = _unshadow_entry.num_local(
i2);
828 saveData(os, _curentry.local_name);
829 saveData(os, _curentry.local_type);
830 saveData(os, _curentry.local_ival);
831 saveData(os, _curentry.local_fval);
832 saveData(os, _curentry.local_sval);
833 saveData(os, _curentry.local_cval);
834 saveData(os, _curentry.local_vval);
854 loadData(is, myStyle);
855 loadData(is, myUselabels);
856 loadData(is, myCreatestylesheets);
857 loadData(is, myFullpath);
861 myNum_materials.setSize(length);
864 auto && _curentry = myNum_materials(i);
866 loadData(is, _curentry.group);
867 loadData(is, _curentry.shop_materialpath);
868 loadData(is, _curentry.localvar);
869 loadData(is, _curentry.mergeoverride);
872 is.
read(&length2, 1);
873 _curentry.num_local.setSize(length2);
876 auto && _unshadow_entry = _curentry;
878 auto && _curentry = _unshadow_entry.num_local(
i2);
880 loadData(is, _curentry.local_name);
881 loadData(is, _curentry.local_type);
882 loadData(is, _curentry.local_ival);
883 loadData(is, _curentry.local_fval);
884 loadData(is, _curentry.local_sval);
885 loadData(is, _curentry.local_cval);
886 loadData(is, _curentry.local_vval);
903 if (!thissop)
return getStyle();
905 OP_Utils::evalOpParm(result, thissop,
"style", cookparms.
getCookTime(), 0);
913 if (!thissop)
return getUselabels();
915 OP_Utils::evalOpParm(result, thissop,
"uselabels", cookparms.
getCookTime(), 0);
923 if (!thissop)
return getCreatestylesheets();
925 OP_Utils::evalOpParm(result, thissop,
"createstylesheets", cookparms.
getCookTime(), 0);
933 if (!thissop)
return getFullpath();
935 OP_Utils::evalOpParm(result, thissop,
"fullpath", cookparms.
getCookTime(), 0);
943 if (!thissop)
return getNum_materials().entries();
945 OP_Utils::evalOpParm(result, thissop,
"num_materials", cookparms.
getCookTime(), 0);
949 {
return opinstNum_materials_group(cookparms, &_idx); }
953 if (!thissop)
return (myNum_materials(_idx[0]).group);
955 _parmidx[1-1] = _idx[1-1] + 1;
958 OP_Utils::evalOpParmInst(result, thissop,
"group#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
962 {
return opinstNum_materials_shop_materialpath(cookparms, &_idx); }
968 _parmidx[1-1] = _idx[1-1] + 1;
971 OP_Utils::evalOpParmInst(result, thissop,
"shop_materialpath#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
975 {
return opinstNum_materials_localvar(cookparms, &_idx); }
979 if (!thissop)
return (myNum_materials(_idx[0]).localvar);
981 _parmidx[1-1] = _idx[1-1] + 1;
984 OP_Utils::evalOpParmInst(result, thissop,
"localvar#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
988 {
return opinstNum_materials_mergeoverride(cookparms, &_idx); }
992 if (!thissop)
return (myNum_materials(_idx[0]).mergeoverride);
994 _parmidx[1-1] = _idx[1-1] + 1;
997 OP_Utils::evalOpParmInst(result, thissop,
"mergeoverride#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1003 if (!thissop)
return myNum_materials(_idx[0]).num_local.entries();
1006 _parmidx[1-1] = _idx[1-1] + 1;
1008 OP_Utils::evalOpParmInst(result, thissop,
"num_local#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1014 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).
local_name);
1016 _parmidx[1-1] = _idx[1-1] + 1;
1017 _parmidx[2-1] = _idx[2-1] + 1;
1020 OP_Utils::evalOpParmInst(result, thissop,
"local#_name#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1026 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_type);
1028 _parmidx[1-1] = _idx[1-1] + 1;
1029 _parmidx[2-1] = _idx[2-1] + 1;
1032 OP_Utils::evalOpParmInst(result, thissop,
"local#_type#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1038 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_ival);
1040 _parmidx[1-1] = _idx[1-1] + 1;
1041 _parmidx[2-1] = _idx[2-1] + 1;
1044 OP_Utils::evalOpParmInst(result, thissop,
"local#_ival#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1050 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_fval);
1052 _parmidx[1-1] = _idx[1-1] + 1;
1053 _parmidx[2-1] = _idx[2-1] + 1;
1056 OP_Utils::evalOpParmInst(result, thissop,
"local#_fval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1062 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_sval);
1064 _parmidx[1-1] = _idx[1-1] + 1;
1065 _parmidx[2-1] = _idx[2-1] + 1;
1068 OP_Utils::evalOpParmInst(result, thissop,
"local#_sval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1074 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_cval);
1076 _parmidx[1-1] = _idx[1-1] + 1;
1077 _parmidx[2-1] = _idx[2-1] + 1;
1080 OP_Utils::evalOpParmInst(result, thissop,
"local#_cval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1086 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_vval);
1088 _parmidx[1-1] = _idx[1-1] + 1;
1089 _parmidx[2-1] = _idx[2-1] + 1;
1092 OP_Utils::evalOpParmInst(result, thissop,
"local#_vval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1101 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)
T clampMaxValue(fpreal maxvalue, const T &src) const
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
T clampMinValue(fpreal minvalue, const T &src) 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)
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 coerceValue(T &result, const S &src) const
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
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)
OP_NodeParms & operator=(const OP_NodeParms &)=default
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