22 using namespace UT::Literal;
25 namespace SOP_AttribCreate_2_0Enums
111 name =
"attribute#"_sh;
113 createvarmap =
false;
133 if (existing != src.
existing)
return false;
135 if (varname != src.
varname)
return false;
136 if (_class != src.
_class)
return false;
137 if (savetoinfo != src.
savetoinfo)
return false;
139 if (typeinfo != src.
typeinfo)
return false;
142 if (defaultv != src.
defaultv)
return false;
144 if (uselocal != src.
uselocal)
return false;
145 if (valuev != src.
valuev)
return false;
146 if (
string != src.
string)
return false;
162 for (
int i = 0; i < list.
entries(); i++)
174 buf.
appendSprintf(
"%s", (list(i).createvarmap) ?
"true" :
"false");
180 buf.
appendSprintf(
"%s", (list(i).savetoinfo) ?
"true" :
"false");
190 buf.
appendSprintf(
"(%f, %f, %f, %f)", list(i).defaultv.x(), list(i).defaultv.y(), list(i).defaultv.z(), list(i).defaultv.w());
192 buf.
appendSprintf(
"%s", (list(i).writevalues) ?
"true" :
"false");
194 buf.
appendSprintf(
"%s", (list(i).uselocal) ?
"true" :
"false");
196 buf.
appendSprintf(
"(%f, %f, %f, %f)", list(i).valuev.x(), list(i).valuev.y(), list(i).valuev.z(), list(i).valuev.w());
212 myEncodenames =
false;
213 myNumattr.setSize(1);
223 if (myGroup != src.myGroup)
return false;
224 if (myGrouptype != src.myGrouptype)
return false;
225 if (myEncodenames != src.myEncodenames)
return false;
226 if (myNumattr != src.myNumattr)
return false;
247 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
250 graph->
evalOpParm(myGrouptype, nodeidx,
"grouptype", time, 0);
251 myEncodenames =
false;
253 graph->
evalOpParm(myEncodenames, nodeidx,
"encodenames", time, 0);
257 graph->
evalOpParm(length, nodeidx,
"numattr", time, 0);
258 if (length < 0) length = 0;
259 myNumattr.setSize(length);
266 auto && _curentry = myNumattr(i);
268 _curentry.enable =
true;
270 graph->
evalOpParmInst(_curentry.enable, nodeidx,
"enable#", parmidx, offsets, time, 0, 2-1);
271 _curentry.name =
"attribute#"_sh;
272 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
273 graph->
evalOpParmInst(_curentry.name, nodeidx,
"name#", parmidx, offsets, time, 0, 2-1);
274 _curentry.existing = 3;
275 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
276 graph->
evalOpParmInst(_curentry.existing, nodeidx,
"existing#", parmidx, offsets, time, 0, 2-1);
277 _curentry.createvarmap =
false;
278 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
279 graph->
evalOpParmInst(_curentry.createvarmap, nodeidx,
"createvarmap#", parmidx, offsets, time, 0, 2-1);
280 _curentry.varname =
""_sh;
281 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.createvarmap==0)))) ) )
282 graph->
evalOpParmInst(_curentry.varname, nodeidx,
"varname#", parmidx, offsets, time, 0, 2-1);
283 _curentry._class = 2;
284 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
285 graph->
evalOpParmInst(_curentry._class, nodeidx,
"class#", parmidx, offsets, time, 0, 2-1);
286 _curentry.savetoinfo =
false;
287 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry._class!=0)))) ) )
288 graph->
evalOpParmInst(_curentry.savetoinfo, nodeidx,
"savetoinfo#", parmidx, offsets, time, 0, 2-1);
290 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
291 graph->
evalOpParmInst(_curentry.type, nodeidx,
"type#", parmidx, offsets, time, 0, 2-1);
292 _curentry.typeinfo = 0;
293 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type!=0)&&(_curentry.type!=4)))) ) )
294 graph->
evalOpParmInst(_curentry.typeinfo, nodeidx,
"typeinfo#", parmidx, offsets, time, 0, 2-1);
295 _curentry.precision = 4;
296 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
297 graph->
evalOpParmInst(_curentry.precision, nodeidx,
"precision#", parmidx, offsets, time, 0, 2-1);
299 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==2))||((_curentry.type==3)))) ) )
300 graph->
evalOpParmInst(_curentry.size, nodeidx,
"size#", parmidx, offsets, time, 0, 2-1);
302 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
303 graph->
evalOpParmInst(_curentry.defaultv, nodeidx,
"default#v", parmidx, offsets, time, 0, 2-1);
304 _curentry.writevalues =
true;
305 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
306 graph->
evalOpParmInst(_curentry.writevalues, nodeidx,
"writevalues#", parmidx, offsets, time, 0, 2-1);
307 _curentry.uselocal =
true;
308 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
309 graph->
evalOpParmInst(_curentry.uselocal, nodeidx,
"uselocal#", parmidx, offsets, time, 0, 2-1);
311 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=0)&&(_curentry.type!=1)&&(_curentry.type!=2)))) ) )
312 graph->
evalOpParmInst(_curentry.valuev, nodeidx,
"value#v", parmidx, offsets, time, 0, 2-1);
313 _curentry.string =
""_sh;
314 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=3)))) ) )
315 graph->
evalOpParmInst(_curentry.string, nodeidx,
"string#", parmidx, offsets, time, 0, 2-1);
336 template <
typename T>
343 if (idx.
size() != instance.
size()+1)
348 coerceValue(value, myGroup);
351 coerceValue(value, myGrouptype);
354 coerceValue(value, myEncodenames);
358 coerceValue(value, myNumattr.entries());
359 else if (instance[0] < myNumattr.entries())
361 auto && _data = myNumattr(instance[0]);
365 coerceValue(value, _data.enable);
368 coerceValue(value, _data.name);
371 coerceValue(value, _data.existing);
374 coerceValue(value, _data.createvarmap);
377 coerceValue(value, _data.varname);
380 coerceValue(value, _data._class);
383 coerceValue(value, _data.savetoinfo);
386 coerceValue(value, _data.type);
389 coerceValue(value, _data.typeinfo);
392 coerceValue(value, _data.precision);
395 coerceValue(value, _data.size);
398 coerceValue(value, _data.defaultv);
401 coerceValue(value, _data.writevalues);
404 coerceValue(value, _data.uselocal);
407 coerceValue(value, _data.valuev);
410 coerceValue(value, _data.string);
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 { doGetParmValue(idx, instance, value); }
443 template <
typename T>
450 if (idx.
size() != instance.
size()+1)
455 coerceValue(myGroup, ( ( value ) ));
458 coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
461 coerceValue(myEncodenames, ( ( value ) ));
467 coerceValue(newsize, value);
468 if (newsize < 0) newsize = 0;
469 myNumattr.setSize(newsize);
475 myNumattr.setSizeIfNeeded(instance[0]+1);
476 auto && _data = myNumattr(instance[0]);
480 coerceValue(_data.enable, value);
483 coerceValue(_data.name, value);
486 coerceValue(_data.existing, value);
489 coerceValue(_data.createvarmap, value);
492 coerceValue(_data.varname, value);
495 coerceValue(_data._class, value);
498 coerceValue(_data.savetoinfo, value);
501 coerceValue(_data.type, value);
504 coerceValue(_data.typeinfo, value);
507 coerceValue(_data.precision, value);
510 coerceValue(_data.size, value);
513 coerceValue(_data.defaultv, value);
516 coerceValue(_data.writevalues, value);
519 coerceValue(_data.uselocal, value);
522 coerceValue(_data.valuev, value);
525 coerceValue(_data.string, value);
536 { doSetParmValue(idx, instance, value); }
538 { doSetParmValue(idx, instance, value); }
540 { doSetParmValue(idx, instance, value); }
542 { doSetParmValue(idx, instance, value); }
544 { doSetParmValue(idx, instance, value); }
546 { doSetParmValue(idx, instance, value); }
548 { doSetParmValue(idx, instance, value); }
550 { doSetParmValue(idx, instance, value); }
552 { doSetParmValue(idx, instance, value); }
554 { doSetParmValue(idx, instance, value); }
556 { doSetParmValue(idx, instance, value); }
574 if (fieldnum.
size() < 1)
583 return "encodenames";
585 if (fieldnum.
size() == 1)
596 return "createvarmap#";
602 return "savetoinfo#";
614 return "writevalues#";
631 if (fieldnum.
size() < 1)
632 return PARM_UNSUPPORTED;
642 if (fieldnum.
size() == 1)
643 return PARM_MULTIPARM;
680 return PARM_UNSUPPORTED;
683 return PARM_UNSUPPORTED;
719 loadData(is, rampdata);
737 int typelen = colon - data.
buffer();
751 {
int64 iv =
v; UTwrite(os, &iv); }
753 { UTwrite<fpreal64>(os, &
v); }
755 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
757 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
758 UTwrite<fpreal64>(os, &v.
z()); }
760 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
761 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
773 if (s) s->save(ostr);
775 saveData(os, result);
782 ostr << s->getDataTypeToken();
787 saveData(os, result);
791 void save(std::ostream &os)
const
795 saveData(os, myGroup);
796 saveData(os, myGrouptype);
797 saveData(os, myEncodenames);
800 UTwrite(os, &length);
803 auto && _curentry = myNumattr(i);
805 saveData(os, _curentry.enable);
806 saveData(os, _curentry.name);
807 saveData(os, _curentry.existing);
808 saveData(os, _curentry.createvarmap);
809 saveData(os, _curentry.varname);
810 saveData(os, _curentry._class);
811 saveData(os, _curentry.savetoinfo);
812 saveData(os, _curentry.type);
813 saveData(os, _curentry.typeinfo);
814 saveData(os, _curentry.precision);
815 saveData(os, _curentry.size);
816 saveData(os, _curentry.defaultv);
817 saveData(os, _curentry.writevalues);
818 saveData(os, _curentry.uselocal);
819 saveData(os, _curentry.valuev);
820 saveData(os, _curentry.string);
836 loadData(is, myGroup);
837 loadData(is, myGrouptype);
838 loadData(is, myEncodenames);
842 myNumattr.setSize(length);
845 auto && _curentry = myNumattr(i);
847 loadData(is, _curentry.enable);
848 loadData(is, _curentry.name);
849 loadData(is, _curentry.existing);
850 loadData(is, _curentry.createvarmap);
851 loadData(is, _curentry.varname);
852 loadData(is, _curentry._class);
853 loadData(is, _curentry.savetoinfo);
854 loadData(is, _curentry.type);
855 loadData(is, _curentry.typeinfo);
856 loadData(is, _curentry.precision);
857 loadData(is, _curentry.size);
858 loadData(is, _curentry.defaultv);
859 loadData(is, _curentry.writevalues);
860 loadData(is, _curentry.uselocal);
861 loadData(is, _curentry.valuev);
862 loadData(is, _curentry.string);
875 if (!thissop)
return getGroup();
877 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
885 if (!thissop)
return getGrouptype();
887 OP_Utils::evalOpParm(result, thissop,
"grouptype", cookparms.
getCookTime(), 0);
895 if (!thissop)
return getEncodenames();
897 OP_Utils::evalOpParm(result, thissop,
"encodenames", cookparms.
getCookTime(), 0);
905 if (!thissop)
return getNumattr().entries();
907 OP_Utils::evalOpParm(result, thissop,
"numattr", cookparms.
getCookTime(), 0);
911 {
return opinstNumattr_enable(cookparms, &_idx); }
915 if (!thissop)
return (myNumattr(_idx[0]).
enable);
917 _parmidx[1-1] = _idx[1-1] + 1;
920 OP_Utils::evalOpParmInst(result, thissop,
"enable#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
924 {
return opinstNumattr_name(cookparms, &_idx); }
928 if (!thissop)
return (myNumattr(_idx[0]).
name);
930 _parmidx[1-1] = _idx[1-1] + 1;
933 OP_Utils::evalOpParmInst(result, thissop,
"name#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
937 {
return opinstNumattr_existing(cookparms, &_idx); }
941 if (!thissop)
return (myNumattr(_idx[0]).existing);
943 _parmidx[1-1] = _idx[1-1] + 1;
946 OP_Utils::evalOpParmInst(result, thissop,
"existing#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
950 {
return opinstNumattr_createvarmap(cookparms, &_idx); }
954 if (!thissop)
return (myNumattr(_idx[0]).createvarmap);
956 _parmidx[1-1] = _idx[1-1] + 1;
959 OP_Utils::evalOpParmInst(result, thissop,
"createvarmap#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
963 {
return opinstNumattr_varname(cookparms, &_idx); }
967 if (!thissop)
return (myNumattr(_idx[0]).varname);
969 _parmidx[1-1] = _idx[1-1] + 1;
972 OP_Utils::evalOpParmInst(result, thissop,
"varname#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
976 {
return opinstNumattr__class(cookparms, &_idx); }
980 if (!thissop)
return (myNumattr(_idx[0])._class);
982 _parmidx[1-1] = _idx[1-1] + 1;
985 OP_Utils::evalOpParmInst(result, thissop,
"class#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
989 {
return opinstNumattr_savetoinfo(cookparms, &_idx); }
993 if (!thissop)
return (myNumattr(_idx[0]).savetoinfo);
995 _parmidx[1-1] = _idx[1-1] + 1;
998 OP_Utils::evalOpParmInst(result, thissop,
"savetoinfo#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1002 {
return opinstNumattr_type(cookparms, &_idx); }
1006 if (!thissop)
return (myNumattr(_idx[0]).
type);
1008 _parmidx[1-1] = _idx[1-1] + 1;
1011 OP_Utils::evalOpParmInst(result, thissop,
"type#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1015 {
return opinstNumattr_typeinfo(cookparms, &_idx); }
1019 if (!thissop)
return (myNumattr(_idx[0]).typeinfo);
1021 _parmidx[1-1] = _idx[1-1] + 1;
1024 OP_Utils::evalOpParmInst(result, thissop,
"typeinfo#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1028 {
return opinstNumattr_precision(cookparms, &_idx); }
1032 if (!thissop)
return (myNumattr(_idx[0]).
precision);
1034 _parmidx[1-1] = _idx[1-1] + 1;
1037 OP_Utils::evalOpParmInst(result, thissop,
"precision#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1041 {
return opinstNumattr_size(cookparms, &_idx); }
1045 if (!thissop)
return (myNumattr(_idx[0]).
size);
1047 _parmidx[1-1] = _idx[1-1] + 1;
1050 OP_Utils::evalOpParmInst(result, thissop,
"size#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1054 {
return opinstNumattr_defaultv(cookparms, &_idx); }
1058 if (!thissop)
return (myNumattr(_idx[0]).defaultv);
1060 _parmidx[1-1] = _idx[1-1] + 1;
1063 OP_Utils::evalOpParmInst(result, thissop,
"default#v", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1067 {
return opinstNumattr_writevalues(cookparms, &_idx); }
1071 if (!thissop)
return (myNumattr(_idx[0]).writevalues);
1073 _parmidx[1-1] = _idx[1-1] + 1;
1076 OP_Utils::evalOpParmInst(result, thissop,
"writevalues#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1080 {
return opinstNumattr_uselocal(cookparms, &_idx); }
1084 if (!thissop)
return (myNumattr(_idx[0]).uselocal);
1086 _parmidx[1-1] = _idx[1-1] + 1;
1089 OP_Utils::evalOpParmInst(result, thissop,
"uselocal#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1093 {
return opinstNumattr_valuev(cookparms, &_idx); }
1097 if (!thissop)
return (myNumattr(_idx[0]).valuev);
1099 _parmidx[1-1] = _idx[1-1] + 1;
1102 OP_Utils::evalOpParmInst(result, thissop,
"value#v", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1106 {
return opinstNumattr_string(cookparms, &_idx); }
1110 if (!thissop)
return (myNumattr(_idx[0]).
string);
1112 _parmidx[1-1] = _idx[1-1] + 1;
1115 OP_Utils::evalOpParmInst(result, thissop,
"string#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
bool opNumattr_savetoinfo(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
SOP_Node * getNode() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNumattr(const UT_Array< Numattr > &val)
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, UT_Vector4D v)
GT_API const UT_StringHolder time
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
exint getNestNumParms(TempIndex idx) const override
int64 opinstNumattr_typeinfo(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder opNumattr_varname(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, fpreal64 &v)
GLuint GLsizei const GLuint const GLintptr * offsets
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
void setGrouptype(Grouptype val)
bool opNumattr_uselocal(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
int64 opNumattr_precision(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
constexpr SYS_FORCE_INLINE T & z() noexcept
UT_StringHolder opinstNumattr_name(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE const char * buffer() const
const UT_StringHolder & getGroup() const
const SOP_GraphProxy * graph() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator==(const Numattr &src) const
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool operator==(const SOP_AttribCreate_2_0Parms &src) const
bool operator!=(const SOP_AttribCreate_2_0Parms &src) const
bool opinstNumattr_writevalues(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
int64 opNumattr__class(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLuint const GLchar * name
bool opNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void loadFromOpSubclass(const LoadParms &loadparms) override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Vector3D v)
SOP_AttribCreate_2_0Parms()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void copyFrom(const SOP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opinstNumattr_savetoinfo(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void saveData(std::ostream &os, bool v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
typedef INT(WINAPI *PFNWGLGETGPUINFOAMDPROC)(UINT id
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int64 opNumattr_size(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_StringHolder opNumattr_string(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
int64 opinstNumattr_size(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
~SOP_AttribCreate_2_0Parms() override
ParmType getNestParmType(TempIndex fieldnum) const override
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_StringHolder opinstNumattr_string(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
exint read(bool *array, exint sz=1)
bool opinstNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool getEncodenames() const
exint opNumattr(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opinstNumattr_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
Grouptype getGrouptype() const
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
UT_Vector4D opNumattr_valuev(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool opinstNumattr_uselocal(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void save(std::ostream &os) const
SYS_FORCE_INLINE void strcat(const char *src)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
static void saveData(std::ostream &os, UT_Matrix4D v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum GLint GLint * precision
exint entries() const
Alias of size(). size() is preferred.
int64 opinstNumattr__class(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool opNumattr_writevalues(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLuint GLsizei GLsizei * length
UT_StringHolder createString(const UT_Array< Numattr > &list) const
UT_StringHolder opNumattr_name(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setEncodenames(bool val)
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
UT_Vector4D opinstNumattr_valuev(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
int64 opNumattr_typeinfo(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
const UT_Array< Numattr > & getNumattr() const
int64 opinstNumattr_type(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder opinstNumattr_varname(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
int64 opinstNumattr_precision(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool operator!=(const Numattr &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
Utility class for containing a color ramp.
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void append(char character)
int64 opinstNumattr_existing(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
int64 opNumattr_type(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void saveData(std::ostream &os, fpreal64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
fpreal getCookTime() const
const char * findChar(int c) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
UT_Vector4T< fpreal64 > UT_Vector4D
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool opNumattr_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_Vector4D opNumattr_defaultv(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, bool &v)
const OP_Context & context() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SYS_FORCE_INLINE bool isstring() const
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector4D opinstNumattr_defaultv(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
int64 opNumattr_existing(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
bool opEncodenames(const SOP_NodeVerb::CookParms &cookparms) const
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
constexpr SYS_FORCE_INLINE T & x() noexcept