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;
228 myStyle =
"primitive"_UTsh;
230 graph->
evalOpParm(myStyle, nodeidx,
"style", time, graph->
isDirect()?
nullptr:depnode);
233 graph->
evalOpParm(myUselabels, nodeidx,
"uselabels", time, graph->
isDirect()?
nullptr:depnode);
234 myCreatestylesheets =
false;
236 graph->
evalOpParm(myCreatestylesheets, nodeidx,
"createstylesheets", time, graph->
isDirect()?
nullptr:depnode);
239 graph->
evalOpParm(myFullpath, nodeidx,
"fullpath", time, graph->
isDirect()?
nullptr:depnode);
243 graph->
evalOpParm(length, nodeidx,
"num_materials", time, graph->
isDirect()?
nullptr:depnode);
244 if (length < 0) length = 0;
245 myNum_materials.setSize(length);
252 auto && _curentry = myNum_materials(i);
254 _curentry.group =
""_UTsh;
256 graph->
evalOpParmInst(_curentry.group, nodeidx,
"group#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 2-1);
257 _curentry.shop_materialpath =
""_UTsh;
259 graph->
evalOpParmInst(_curentry.shop_materialpath, nodeidx,
"shop_materialpath#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 2-1);
260 _curentry.localvar =
false;
262 graph->
evalOpParmInst(_curentry.localvar, nodeidx,
"localvar#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 2-1);
263 _curentry.mergeoverride =
false;
265 graph->
evalOpParmInst(_curentry.mergeoverride, nodeidx,
"mergeoverride#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 2-1);
270 graph->
evalOpParmInst(length, nodeidx,
"num_local#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 2-1);
271 if (length < 0) length = 0;
272 _curentry.num_local.setSize(length);
275 auto && _unshadow_entry = _curentry.num_local;
276 auto && _unshadow_parmidx = parmidx;
277 auto && _unshadow_offsets =
offsets;
279 auto && _curentry = _unshadow_entry(i);
282 for (
int _i = 0; _i < 2 - 1; _i++)
283 parmidx[_i] = _unshadow_parmidx[_i];
284 for (
int _i = 0; _i < 2 - 1; _i++)
285 offsets[_i] = _unshadow_offsets[_i];
289 _curentry.local_name =
""_UTsh;
291 graph->
evalOpParmInst(_curentry.local_name, nodeidx,
"local#_name#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
292 _curentry.local_type =
"float"_UTsh;
294 graph->
evalOpParmInst(_curentry.local_type, nodeidx,
"local#_type#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
295 _curentry.local_ival = 0;
296 if (
true && ( (
true&&!(((_curentry.local_type!=
"int")))) ) )
297 graph->
evalOpParmInst(_curentry.local_ival, nodeidx,
"local#_ival#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
298 _curentry.local_fval = 0;
299 if (
true && ( (
true&&!(((_curentry.local_type!=
"float")))) ) )
300 graph->
evalOpParmInst(_curentry.local_fval, nodeidx,
"local#_fval#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
301 _curentry.local_sval =
""_UTsh;
302 if (
true && ( (
true&&!(((_curentry.local_type!=
"string")))) ) )
303 graph->
evalOpParmInst(_curentry.local_sval, nodeidx,
"local#_sval#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
305 if (
true && ( (
true&&!(((_curentry.local_type!=
"color")))) ) )
306 graph->
evalOpParmInst(_curentry.local_cval, nodeidx,
"local#_cval#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
308 if (
true && ( (
true&&!(((_curentry.local_type!=
"vector2")&&(_curentry.local_type!=
"vector3")&&(_curentry.local_type!=
"vector4")))) ) )
309 graph->
evalOpParmInst(_curentry.local_vval, nodeidx,
"local#_vval#", parmidx, offsets, time, graph->
isDirect()?
nullptr:depnode, 3-1);
315 _curentry.num_local.clear();
321 myNum_materials.clear();
337 template <
typename T>
344 if (idx.
size() != instance.
size()+1)
349 coerceValue(value, myStyle);
352 coerceValue(value, myUselabels);
355 coerceValue(value, myCreatestylesheets);
358 coerceValue(value, myFullpath);
362 coerceValue(value, myNum_materials.entries());
363 else if (instance[0] < myNum_materials.entries())
365 auto && _data = myNum_materials(instance[0]);
369 coerceValue(value, _data.group);
372 coerceValue(value, _data.shop_materialpath);
375 coerceValue(value, _data.localvar);
378 coerceValue(value, _data.mergeoverride);
382 coerceValue(value, _data.num_local.entries());
383 else if (instance[2-1] < _data.num_local.entries())
385 auto && _unshadow = _data.num_local;
387 auto && _data = _unshadow(instance[2-1]);
391 coerceValue(value, _data.local_name);
394 coerceValue(value, _data.local_type);
397 coerceValue(value, _data.local_ival);
400 coerceValue(value, _data.local_fval);
403 coerceValue(value, _data.local_sval);
406 coerceValue(value, _data.local_cval);
409 coerceValue(value, _data.local_vval);
434 { doGetParmValue(idx, instance, value); }
436 { doGetParmValue(idx, instance, value); }
438 { doGetParmValue(idx, instance, value); }
440 { doGetParmValue(idx, instance, value); }
442 { doGetParmValue(idx, instance, value); }
444 { doGetParmValue(idx, instance, value); }
446 { doGetParmValue(idx, instance, value); }
448 { doGetParmValue(idx, instance, value); }
450 { doGetParmValue(idx, instance, value); }
452 { doGetParmValue(idx, instance, value); }
454 { doGetParmValue(idx, instance, value); }
456 template <
typename T>
463 if (idx.
size() != instance.
size()+1)
468 coerceValue(myStyle, ( ( value ) ));
471 coerceValue(myUselabels, clampMinValue(0, clampMaxValue(1, value ) ));
474 coerceValue(myCreatestylesheets, ( ( value ) ));
477 coerceValue(myFullpath, ( ( value ) ));
483 coerceValue(newsize, value);
484 if (newsize < 0) newsize = 0;
485 myNum_materials.setSize(newsize);
491 myNum_materials.setSizeIfNeeded(instance[0]+1);
492 auto && _data = myNum_materials(instance[0]);
496 coerceValue(_data.group, value);
499 coerceValue(_data.shop_materialpath, value);
502 coerceValue(_data.localvar, value);
505 coerceValue(_data.mergeoverride, value);
511 coerceValue(newsize, value);
512 if (newsize < 0) newsize = 0;
513 _data.num_local.setSize(newsize);
517 if (instance[2-1] < 0)
519 _data.num_local.setSizeIfNeeded(instance[2-1]+1);
520 auto && _unshadow = _data.num_local;
522 auto && _data = _unshadow(instance[2-1]);
526 coerceValue(_data.local_name, value);
529 coerceValue(_data.local_type, value);
532 coerceValue(_data.local_ival, value);
535 coerceValue(_data.local_fval, value);
538 coerceValue(_data.local_sval, value);
541 coerceValue(_data.local_cval, value);
544 coerceValue(_data.local_vval, value);
560 { doSetParmValue(idx, instance, value); }
562 { doSetParmValue(idx, instance, value); }
564 { doSetParmValue(idx, instance, value); }
566 { doSetParmValue(idx, instance, value); }
568 { doSetParmValue(idx, instance, value); }
570 { doSetParmValue(idx, instance, value); }
572 { doSetParmValue(idx, instance, value); }
574 { doSetParmValue(idx, instance, value); }
576 { doSetParmValue(idx, instance, value); }
578 { doSetParmValue(idx, instance, value); }
580 { doSetParmValue(idx, instance, value); }
598 if (fieldnum.
size() < 1)
607 return "createstylesheets";
611 if (fieldnum.
size() == 1)
612 return "num_materials";
618 return "shop_materialpath#";
622 return "mergeoverride#";
624 if (fieldnum.
size() == 2)
629 return "local#_name#";
631 return "local#_type#";
633 return "local#_ival#";
635 return "local#_fval#";
637 return "local#_sval#";
639 return "local#_cval#";
641 return "local#_vval#";
655 if (fieldnum.
size() < 1)
656 return PARM_UNSUPPORTED;
668 if (fieldnum.
size() == 1)
669 return PARM_MULTIPARM;
681 if (fieldnum.
size() == 2)
682 return PARM_MULTIPARM;
701 return PARM_UNSUPPORTED;
704 return PARM_UNSUPPORTED;
707 return PARM_UNSUPPORTED;
743 loadData(is, rampdata);
761 int typelen = colon - data.
buffer();
775 {
int64 iv =
v; UTwrite(os, &iv); }
777 { UTwrite<fpreal64>(os, &
v); }
779 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
781 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
782 UTwrite<fpreal64>(os, &v.
z()); }
784 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
785 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
797 if (s) s->save(ostr);
799 saveData(os, result);
806 ostr << s->getDataTypeToken();
811 saveData(os, result);
815 void save(std::ostream &os)
const
819 saveData(os, myStyle);
820 saveData(os, myUselabels);
821 saveData(os, myCreatestylesheets);
822 saveData(os, myFullpath);
825 UTwrite(os, &length);
828 auto && _curentry = myNum_materials(i);
830 saveData(os, _curentry.group);
831 saveData(os, _curentry.shop_materialpath);
832 saveData(os, _curentry.localvar);
833 saveData(os, _curentry.mergeoverride);
835 int64 length2 = _curentry.num_local.entries();
836 UTwrite(os, &length2);
839 auto && _unshadow_entry = _curentry;
841 auto && _curentry = _unshadow_entry.num_local(
i2);
843 saveData(os, _curentry.local_name);
844 saveData(os, _curentry.local_type);
845 saveData(os, _curentry.local_ival);
846 saveData(os, _curentry.local_fval);
847 saveData(os, _curentry.local_sval);
848 saveData(os, _curentry.local_cval);
849 saveData(os, _curentry.local_vval);
869 loadData(is, myStyle);
870 loadData(is, myUselabels);
871 loadData(is, myCreatestylesheets);
872 loadData(is, myFullpath);
876 myNum_materials.setSize(length);
879 auto && _curentry = myNum_materials(i);
881 loadData(is, _curentry.group);
882 loadData(is, _curentry.shop_materialpath);
883 loadData(is, _curentry.localvar);
884 loadData(is, _curentry.mergeoverride);
887 is.
read(&length2, 1);
888 _curentry.num_local.setSize(length2);
891 auto && _unshadow_entry = _curentry;
893 auto && _curentry = _unshadow_entry.num_local(
i2);
895 loadData(is, _curentry.local_name);
896 loadData(is, _curentry.local_type);
897 loadData(is, _curentry.local_ival);
898 loadData(is, _curentry.local_fval);
899 loadData(is, _curentry.local_sval);
900 loadData(is, _curentry.local_cval);
901 loadData(is, _curentry.local_vval);
918 if (!thissop)
return getStyle();
920 OP_Utils::evalOpParm(result, thissop,
"style", cookparms.
getCookTime(), 0);
928 if (!thissop)
return getUselabels();
930 OP_Utils::evalOpParm(result, thissop,
"uselabels", cookparms.
getCookTime(), 0);
938 if (!thissop)
return getCreatestylesheets();
940 OP_Utils::evalOpParm(result, thissop,
"createstylesheets", cookparms.
getCookTime(), 0);
948 if (!thissop)
return getFullpath();
950 OP_Utils::evalOpParm(result, thissop,
"fullpath", cookparms.
getCookTime(), 0);
958 if (!thissop)
return getNum_materials().entries();
960 OP_Utils::evalOpParm(result, thissop,
"num_materials", cookparms.
getCookTime(), 0);
964 {
return opinstNum_materials_group(cookparms, &_idx); }
968 if (!thissop)
return (myNum_materials(_idx[0]).group);
970 _parmidx[1-1] = _idx[1-1] + 1;
973 OP_Utils::evalOpParmInst(result, thissop,
"group#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
977 {
return opinstNum_materials_shop_materialpath(cookparms, &_idx); }
983 _parmidx[1-1] = _idx[1-1] + 1;
986 OP_Utils::evalOpParmInst(result, thissop,
"shop_materialpath#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
990 {
return opinstNum_materials_localvar(cookparms, &_idx); }
994 if (!thissop)
return (myNum_materials(_idx[0]).localvar);
996 _parmidx[1-1] = _idx[1-1] + 1;
999 OP_Utils::evalOpParmInst(result, thissop,
"localvar#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1003 {
return opinstNum_materials_mergeoverride(cookparms, &_idx); }
1007 if (!thissop)
return (myNum_materials(_idx[0]).mergeoverride);
1009 _parmidx[1-1] = _idx[1-1] + 1;
1012 OP_Utils::evalOpParmInst(result, thissop,
"mergeoverride#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1018 if (!thissop)
return myNum_materials(_idx[0]).num_local.entries();
1021 _parmidx[1-1] = _idx[1-1] + 1;
1023 OP_Utils::evalOpParmInst(result, thissop,
"num_local#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1029 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).
local_name);
1031 _parmidx[1-1] = _idx[1-1] + 1;
1032 _parmidx[2-1] = _idx[2-1] + 1;
1035 OP_Utils::evalOpParmInst(result, thissop,
"local#_name#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1041 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_type);
1043 _parmidx[1-1] = _idx[1-1] + 1;
1044 _parmidx[2-1] = _idx[2-1] + 1;
1047 OP_Utils::evalOpParmInst(result, thissop,
"local#_type#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1053 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_ival);
1055 _parmidx[1-1] = _idx[1-1] + 1;
1056 _parmidx[2-1] = _idx[2-1] + 1;
1059 OP_Utils::evalOpParmInst(result, thissop,
"local#_ival#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1065 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_fval);
1067 _parmidx[1-1] = _idx[1-1] + 1;
1068 _parmidx[2-1] = _idx[2-1] + 1;
1071 OP_Utils::evalOpParmInst(result, thissop,
"local#_fval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1077 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_sval);
1079 _parmidx[1-1] = _idx[1-1] + 1;
1080 _parmidx[2-1] = _idx[2-1] + 1;
1083 OP_Utils::evalOpParmInst(result, thissop,
"local#_sval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1089 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_cval);
1091 _parmidx[1-1] = _idx[1-1] + 1;
1092 _parmidx[2-1] = _idx[2-1] + 1;
1095 OP_Utils::evalOpParmInst(result, thissop,
"local#_cval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1101 if (!thissop)
return (myNum_materials(_idx[0]).num_local(_idx[1]).local_vval);
1103 _parmidx[1-1] = _idx[1-1] + 1;
1104 _parmidx[2-1] = _idx[2-1] + 1;
1107 OP_Utils::evalOpParmInst(result, thissop,
"local#_vval#", _parmidx, cookparms.
getCookTime(), 0, 3-1);
1116 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
GLsizei const GLfloat * value
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_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
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
virtual UT_StringHolder baseGetSignature() const
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
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
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