23 namespace SOP_AttribCreate_2_0Enums
109 name =
"attribute#"_UTsh;
111 createvarmap =
false;
129 if (enable != src.
enable)
return false;
131 if (existing != src.
existing)
return false;
133 if (varname != src.
varname)
return false;
134 if (_class != src.
_class)
return false;
135 if (savetoinfo != src.
savetoinfo)
return false;
137 if (typeinfo != src.
typeinfo)
return false;
140 if (defaultv != src.
defaultv)
return false;
142 if (uselocal != src.
uselocal)
return false;
143 if (valuev != src.
valuev)
return false;
144 if (
string != src.
string)
return false;
160 for (
int i = 0; i < list.
entries(); i++)
166 buf.
appendSprintf(
"%s", (list(i).enable) ?
"true" :
"false");
172 buf.
appendSprintf(
"%s", (list(i).createvarmap) ?
"true" :
"false");
178 buf.
appendSprintf(
"%s", (list(i).savetoinfo) ?
"true" :
"false");
188 buf.
appendSprintf(
"(%f, %f, %f, %f)", list(i).defaultv.x(), list(i).defaultv.y(), list(i).defaultv.z(), list(i).defaultv.w());
190 buf.
appendSprintf(
"%s", (list(i).writevalues) ?
"true" :
"false");
192 buf.
appendSprintf(
"%s", (list(i).uselocal) ?
"true" :
"false");
194 buf.
appendSprintf(
"(%f, %f, %f, %f)", list(i).valuev.x(), list(i).valuev.y(), list(i).valuev.z(), list(i).valuev.w());
210 myEncodenames =
false;
211 myNumattr.setSize(1);
224 if (myGroup != src.myGroup)
return false;
225 if (myGrouptype != src.myGrouptype)
return false;
226 if (myEncodenames != src.myEncodenames)
return false;
227 if (myNumattr != src.myNumattr)
return false;
248 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
251 graph->
evalOpParm(myGrouptype, nodeidx,
"grouptype", time, 0);
252 myEncodenames =
false;
254 graph->
evalOpParm(myEncodenames, nodeidx,
"encodenames", time, 0);
258 graph->
evalOpParm(length, nodeidx,
"numattr", time, 0);
259 if (length < 0) length = 0;
260 myNumattr.setSize(length);
267 auto && _curentry = myNumattr(i);
269 _curentry.enable =
true;
271 graph->
evalOpParmInst(_curentry.enable, nodeidx,
"enable#", parmidx, offsets, time, 0, 2-1);
272 _curentry.name =
"attribute#"_UTsh;
273 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
274 graph->
evalOpParmInst(_curentry.name, nodeidx,
"name#", parmidx, offsets, time, 0, 2-1);
275 _curentry.existing = 3;
276 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
277 graph->
evalOpParmInst(_curentry.existing, nodeidx,
"existing#", parmidx, offsets, time, 0, 2-1);
278 _curentry.createvarmap =
false;
279 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
280 graph->
evalOpParmInst(_curentry.createvarmap, nodeidx,
"createvarmap#", parmidx, offsets, time, 0, 2-1);
281 _curentry.varname =
""_UTsh;
282 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.createvarmap==0)))) ) )
283 graph->
evalOpParmInst(_curentry.varname, nodeidx,
"varname#", parmidx, offsets, time, 0, 2-1);
284 _curentry._class = 2;
285 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
286 graph->
evalOpParmInst(_curentry._class, nodeidx,
"class#", parmidx, offsets, time, 0, 2-1);
287 _curentry.savetoinfo =
false;
288 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry._class!=0)))) ) )
289 graph->
evalOpParmInst(_curentry.savetoinfo, nodeidx,
"savetoinfo#", parmidx, offsets, time, 0, 2-1);
291 if (
true && ( (
true&&!(((_curentry.enable==0)))) ) )
292 graph->
evalOpParmInst(_curentry.type, nodeidx,
"type#", parmidx, offsets, time, 0, 2-1);
293 _curentry.typeinfo = 0;
294 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type!=0)&&(_curentry.type!=4)))) ) )
295 graph->
evalOpParmInst(_curentry.typeinfo, nodeidx,
"typeinfo#", parmidx, offsets, time, 0, 2-1);
296 _curentry.precision = 4;
297 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
298 graph->
evalOpParmInst(_curentry.precision, nodeidx,
"precision#", parmidx, offsets, time, 0, 2-1);
300 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==2))||((_curentry.type==3)))) ) )
301 graph->
evalOpParmInst(_curentry.size, nodeidx,
"size#", parmidx, offsets, time, 0, 2-1);
303 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
304 graph->
evalOpParmInst(_curentry.defaultv, nodeidx,
"default#v", parmidx, offsets, time, 0, 2-1);
305 _curentry.writevalues =
true;
306 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
307 graph->
evalOpParmInst(_curentry.writevalues, nodeidx,
"writevalues#", parmidx, offsets, time, 0, 2-1);
308 _curentry.uselocal =
true;
309 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
310 graph->
evalOpParmInst(_curentry.uselocal, nodeidx,
"uselocal#", parmidx, offsets, time, 0, 2-1);
312 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=0)&&(_curentry.type!=1)&&(_curentry.type!=2)))) ) )
313 graph->
evalOpParmInst(_curentry.valuev, nodeidx,
"value#v", parmidx, offsets, time, 0, 2-1);
314 _curentry.string =
""_UTsh;
315 if (
true && ( (
true&&!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=3)))) ) )
316 graph->
evalOpParmInst(_curentry.string, nodeidx,
"string#", parmidx, offsets, time, 0, 2-1);
337 template <
typename T>
344 if (idx.
size() != instance.
size()+1)
360 else if (instance[0] < myNumattr.entries())
362 auto && _data = myNumattr(instance[0]);
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)
478 if (newsize < 0) newsize = 0;
479 myNumattr.setSize(newsize);
485 myNumattr.setSizeIfNeeded(instance[0]+1);
486 auto && _data = myNumattr(instance[0]);
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); }
558 { doSetParmValue(idx, instance, value); }
560 { doSetParmValue(idx, instance, value); }
562 { doSetParmValue(idx, instance, value); }
564 { doSetParmValue(idx, instance, value); }
566 { doSetParmValue(idx, instance, value); }
584 if (fieldnum.
size() < 1)
593 return "encodenames";
595 if (fieldnum.
size() == 1)
606 return "createvarmap#";
612 return "savetoinfo#";
624 return "writevalues#";
641 if (fieldnum.
size() < 1)
642 return PARM_UNSUPPORTED;
652 if (fieldnum.
size() == 1)
653 return PARM_MULTIPARM;
712 {
for (
int r = 0;
r < 2;
r++)
for (
int c = 0; c < 2; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
714 {
for (
int r = 0;
r < 3;
r++)
for (
int c = 0; c < 3; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
716 {
for (
int r = 0;
r < 4;
r++)
for (
int c = 0; c < 4; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
729 loadData(is, rampdata);
747 int typelen = colon - data.
buffer();
761 {
int64 iv =
v; UTwrite(os, &iv); }
763 { UTwrite<fpreal64>(os, &
v); }
765 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
767 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
768 UTwrite<fpreal64>(os, &v.
z()); }
770 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
771 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
783 if (s) s->save(ostr);
785 saveData(os, result);
792 ostr << s->getDataTypeToken();
797 saveData(os, result);
801 void save(std::ostream &os)
const
805 saveData(os, myGroup);
806 saveData(os, myGrouptype);
807 saveData(os, myEncodenames);
810 UTwrite(os, &length);
813 auto && _curentry = myNumattr(i);
815 saveData(os, _curentry.enable);
816 saveData(os, _curentry.name);
817 saveData(os, _curentry.existing);
818 saveData(os, _curentry.createvarmap);
819 saveData(os, _curentry.varname);
820 saveData(os, _curentry._class);
821 saveData(os, _curentry.savetoinfo);
822 saveData(os, _curentry.type);
823 saveData(os, _curentry.typeinfo);
824 saveData(os, _curentry.precision);
825 saveData(os, _curentry.size);
826 saveData(os, _curentry.defaultv);
827 saveData(os, _curentry.writevalues);
828 saveData(os, _curentry.uselocal);
829 saveData(os, _curentry.valuev);
830 saveData(os, _curentry.string);
846 loadData(is, myGroup);
847 loadData(is, myGrouptype);
848 loadData(is, myEncodenames);
852 myNumattr.setSize(length);
855 auto && _curentry = myNumattr(i);
857 loadData(is, _curentry.enable);
858 loadData(is, _curentry.name);
859 loadData(is, _curentry.existing);
860 loadData(is, _curentry.createvarmap);
861 loadData(is, _curentry.varname);
862 loadData(is, _curentry._class);
863 loadData(is, _curentry.savetoinfo);
864 loadData(is, _curentry.type);
865 loadData(is, _curentry.typeinfo);
866 loadData(is, _curentry.precision);
867 loadData(is, _curentry.size);
868 loadData(is, _curentry.defaultv);
869 loadData(is, _curentry.writevalues);
870 loadData(is, _curentry.uselocal);
871 loadData(is, _curentry.valuev);
872 loadData(is, _curentry.string);
885 if (!thissop)
return getGroup();
887 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
895 if (!thissop)
return getGrouptype();
897 OP_Utils::evalOpParm(result, thissop,
"grouptype", cookparms.
getCookTime(), 0);
905 if (!thissop)
return getEncodenames();
907 OP_Utils::evalOpParm(result, thissop,
"encodenames", cookparms.
getCookTime(), 0);
915 if (!thissop)
return getNumattr().entries();
917 OP_Utils::evalOpParm(result, thissop,
"numattr", cookparms.
getCookTime(), 0);
921 {
return opinstNumattr_enable(cookparms, &_idx); }
925 if (!thissop)
return (myNumattr(_idx[0]).enable);
927 _parmidx[1-1] = _idx[1-1] + 1;
930 OP_Utils::evalOpParmInst(result, thissop,
"enable#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
934 {
return opinstNumattr_name(cookparms, &_idx); }
938 if (!thissop)
return (myNumattr(_idx[0]).
name);
940 _parmidx[1-1] = _idx[1-1] + 1;
943 OP_Utils::evalOpParmInst(result, thissop,
"name#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
947 {
return opinstNumattr_existing(cookparms, &_idx); }
951 if (!thissop)
return (myNumattr(_idx[0]).existing);
953 _parmidx[1-1] = _idx[1-1] + 1;
956 OP_Utils::evalOpParmInst(result, thissop,
"existing#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
960 {
return opinstNumattr_createvarmap(cookparms, &_idx); }
964 if (!thissop)
return (myNumattr(_idx[0]).createvarmap);
966 _parmidx[1-1] = _idx[1-1] + 1;
969 OP_Utils::evalOpParmInst(result, thissop,
"createvarmap#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
973 {
return opinstNumattr_varname(cookparms, &_idx); }
977 if (!thissop)
return (myNumattr(_idx[0]).varname);
979 _parmidx[1-1] = _idx[1-1] + 1;
982 OP_Utils::evalOpParmInst(result, thissop,
"varname#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
986 {
return opinstNumattr__class(cookparms, &_idx); }
990 if (!thissop)
return (myNumattr(_idx[0])._class);
992 _parmidx[1-1] = _idx[1-1] + 1;
995 OP_Utils::evalOpParmInst(result, thissop,
"class#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
999 {
return opinstNumattr_savetoinfo(cookparms, &_idx); }
1003 if (!thissop)
return (myNumattr(_idx[0]).savetoinfo);
1005 _parmidx[1-1] = _idx[1-1] + 1;
1008 OP_Utils::evalOpParmInst(result, thissop,
"savetoinfo#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1012 {
return opinstNumattr_type(cookparms, &_idx); }
1016 if (!thissop)
return (myNumattr(_idx[0]).
type);
1018 _parmidx[1-1] = _idx[1-1] + 1;
1021 OP_Utils::evalOpParmInst(result, thissop,
"type#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1025 {
return opinstNumattr_typeinfo(cookparms, &_idx); }
1029 if (!thissop)
return (myNumattr(_idx[0]).typeinfo);
1031 _parmidx[1-1] = _idx[1-1] + 1;
1034 OP_Utils::evalOpParmInst(result, thissop,
"typeinfo#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1038 {
return opinstNumattr_precision(cookparms, &_idx); }
1042 if (!thissop)
return (myNumattr(_idx[0]).
precision);
1044 _parmidx[1-1] = _idx[1-1] + 1;
1047 OP_Utils::evalOpParmInst(result, thissop,
"precision#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1051 {
return opinstNumattr_size(cookparms, &_idx); }
1055 if (!thissop)
return (myNumattr(_idx[0]).
size);
1057 _parmidx[1-1] = _idx[1-1] + 1;
1060 OP_Utils::evalOpParmInst(result, thissop,
"size#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1064 {
return opinstNumattr_defaultv(cookparms, &_idx); }
1068 if (!thissop)
return (myNumattr(_idx[0]).defaultv);
1070 _parmidx[1-1] = _idx[1-1] + 1;
1073 OP_Utils::evalOpParmInst(result, thissop,
"default#v", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1077 {
return opinstNumattr_writevalues(cookparms, &_idx); }
1081 if (!thissop)
return (myNumattr(_idx[0]).writevalues);
1083 _parmidx[1-1] = _idx[1-1] + 1;
1086 OP_Utils::evalOpParmInst(result, thissop,
"writevalues#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1090 {
return opinstNumattr_uselocal(cookparms, &_idx); }
1094 if (!thissop)
return (myNumattr(_idx[0]).uselocal);
1096 _parmidx[1-1] = _idx[1-1] + 1;
1099 OP_Utils::evalOpParmInst(result, thissop,
"uselocal#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1103 {
return opinstNumattr_valuev(cookparms, &_idx); }
1107 if (!thissop)
return (myNumattr(_idx[0]).valuev);
1109 _parmidx[1-1] = _idx[1-1] + 1;
1112 OP_Utils::evalOpParmInst(result, thissop,
"value#v", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1116 {
return opinstNumattr_string(cookparms, &_idx); }
1120 if (!thissop)
return (myNumattr(_idx[0]).
string);
1122 _parmidx[1-1] = _idx[1-1] + 1;
1125 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)
GLenum GLuint GLenum GLsizei const GLchar * buf
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
T clampMaxValue(fpreal maxvalue, const T &src) const
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)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Vector4D v)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
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)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() 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
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator==(const Numattr &src) const
GLuint GLsizei GLsizei * length
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
**But if you need a result
bool opNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
T clampMinValue(fpreal minvalue, const T &src) 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)
constexpr SYS_FORCE_INLINE T & x() noexcept
SOP_AttribCreate_2_0Parms()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
GLuint GLsizei const GLuint const GLintptr * offsets
bool opinstNumattr_savetoinfo(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool isParmColorRamp(exint idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
static void saveData(std::ostream &os, bool v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
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.
constexpr SYS_FORCE_INLINE T & z() noexcept
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)
const OP_GraphProxy * graph() const
bool opinstNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
bool getEncodenames() 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
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
GLuint const GLchar * name
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
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
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 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
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
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
void coerceValue(T &result, const S &src) 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
void copyFrom(const OP_NodeParms *src) override
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
DEP_MicroNode * depnode() 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
constexpr SYS_FORCE_INLINE T & w() noexcept
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)
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)
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
constexpr SYS_FORCE_INLINE T & y() noexcept
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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
constexpr SYS_FORCE_INLINE T & x() noexcept