23 namespace SOP_AgentUnpackEnums
35 using namespace UT::Literal;
56 using namespace UT::Literal;
78 using namespace UT::Literal;
104 jointnames =
""_UTsh;
112 if (jointnames != src.
jointnames)
return false;
113 if (percentage != src.
percentage)
return false;
114 if (seed != src.
seed)
return false;
130 for (
int i = 0; i < list.
entries(); i++)
155 myUniqueAgentDefinitions =
false;
156 myApplyAgentXform =
true;
157 myRestShapesMode = 0;
158 myLayerFilter =
"*"_UTsh;
159 myShapeFilter =
"*"_UTsh;
160 myLimitIterations =
true;
162 myAddShapeDeformerAttrib =
false;
163 myShapeDeformerAttrib =
"agentshapedeformer"_UTsh;
164 myAddXformNameAttrib =
false;
165 myXformNameAttrib =
"agenttransformname"_UTsh;
166 myAddLayerNameAttrib =
false;
167 myLayerNameAttrib =
"agentlayername"_UTsh;
168 myClipNames =
""_UTsh;
169 myTransferAttributes =
""_UTsh;
170 myTransferGroups =
""_UTsh;
171 myFilters.setSize(0);
173 myApplyJointXforms =
true;
186 if (myGroup != src.myGroup)
return false;
187 if (myGroupType != src.myGroupType)
return false;
188 if (myOutput != src.myOutput)
return false;
189 if (myUniqueAgentDefinitions != src.myUniqueAgentDefinitions)
return false;
190 if (myApplyAgentXform != src.myApplyAgentXform)
return false;
191 if (myRestShapesMode != src.myRestShapesMode)
return false;
192 if (myLayerFilter != src.myLayerFilter)
return false;
193 if (myShapeFilter != src.myShapeFilter)
return false;
194 if (myLimitIterations != src.myLimitIterations)
return false;
195 if (myIterations != src.myIterations)
return false;
196 if (myAddShapeDeformerAttrib != src.myAddShapeDeformerAttrib)
return false;
197 if (myShapeDeformerAttrib != src.myShapeDeformerAttrib)
return false;
198 if (myAddXformNameAttrib != src.myAddXformNameAttrib)
return false;
199 if (myXformNameAttrib != src.myXformNameAttrib)
return false;
200 if (myAddLayerNameAttrib != src.myAddLayerNameAttrib)
return false;
201 if (myLayerNameAttrib != src.myLayerNameAttrib)
return false;
202 if (myClipNames != src.myClipNames)
return false;
203 if (myTransferAttributes != src.myTransferAttributes)
return false;
204 if (myTransferGroups != src.myTransferGroups)
return false;
205 if (myFilters != src.myFilters)
return false;
206 if (mySkeletonColor != src.mySkeletonColor)
return false;
207 if (myApplyJointXforms != src.myApplyJointXforms)
return false;
225 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
228 graph->
evalOpParm(myGroupType, nodeidx,
"grouptype", time, 0);
231 graph->
evalOpParm(myOutput, nodeidx,
"output", time, 0);
232 myUniqueAgentDefinitions =
false;
233 if (
true && ( (
true&&!(((
int64(getOutput())!=1))||((
int64(getOutput())!=1)))) ) )
234 graph->
evalOpParm(myUniqueAgentDefinitions, nodeidx,
"uniqueagentdefinitions", time, 0);
235 myApplyAgentXform =
true;
236 if (
true && ( (
true&&!(((
int64(getOutput())==4))||((
int64(getOutput())==4)))) ) )
237 graph->
evalOpParm(myApplyAgentXform, nodeidx,
"applyagentxform", time, 0);
238 myRestShapesMode = 0;
239 if (
true && ( (
true&&!(((
int64(getOutput())!=1))||((
int64(getOutput())!=1)))) ) )
240 graph->
evalOpParm(myRestShapesMode, nodeidx,
"unpackrestshapesfrom", time, 0);
241 myLayerFilter =
"*"_UTsh;
242 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
243 graph->
evalOpParm(myLayerFilter, nodeidx,
"layerfilter", time, 0);
244 myShapeFilter =
"*"_UTsh;
245 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
246 graph->
evalOpParm(myShapeFilter, nodeidx,
"shapefilter", time, 0);
247 myLimitIterations =
true;
248 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
249 graph->
evalOpParm(myLimitIterations, nodeidx,
"limititerations", time, 0);
251 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((getLimitIterations()==0))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
252 graph->
evalOpParm(myIterations, nodeidx,
"iterations", time, 0);
253 myAddShapeDeformerAttrib =
false;
254 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
255 graph->
evalOpParm(myAddShapeDeformerAttrib, nodeidx,
"addshapedeformerattrib", time, 0);
256 myShapeDeformerAttrib =
"agentshapedeformer"_UTsh;
257 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((getAddShapeDeformerAttrib()==0))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
258 graph->
evalOpParm(myShapeDeformerAttrib, nodeidx,
"shapedeformerattrib", time, 0);
259 myAddXformNameAttrib =
false;
260 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
261 graph->
evalOpParm(myAddXformNameAttrib, nodeidx,
"addxformnameattrib", time, 0);
262 myXformNameAttrib =
"agenttransformname"_UTsh;
263 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((getAddXformNameAttrib()==0))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
264 graph->
evalOpParm(myXformNameAttrib, nodeidx,
"xformnameattrib", time, 0);
265 myAddLayerNameAttrib =
false;
266 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
267 graph->
evalOpParm(myAddLayerNameAttrib, nodeidx,
"addlayernameattrib", time, 0);
268 myLayerNameAttrib =
"agentlayername"_UTsh;
269 if (
true && ( (
true&&!(((
int64(getOutput())!=0)&&(
int64(getOutput())!=1))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((getAddLayerNameAttrib()==0))||((
int64(getOutput())!=0)&&(
int64(getOutput())!=1)))) ) )
270 graph->
evalOpParm(myLayerNameAttrib, nodeidx,
"layernameattrib", time, 0);
271 myClipNames =
""_UTsh;
272 if (
true && ( (
true&&!(((
int64(getOutput())!=4))||((
int64(getOutput())!=4)))) ) )
273 graph->
evalOpParm(myClipNames, nodeidx,
"clipnames", time, 0);
274 myTransferAttributes =
""_UTsh;
276 graph->
evalOpParm(myTransferAttributes, nodeidx,
"transferattributes", time, 0);
277 myTransferGroups =
""_UTsh;
279 graph->
evalOpParm(myTransferGroups, nodeidx,
"transfergroups", time, 0);
280 if (
true && ( (!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) )
283 graph->
evalOpParm(length, nodeidx,
"numjointfilters", time, 0);
284 if (length < 0) length = 0;
285 myFilters.setSize(length);
292 auto && _curentry = myFilters(i);
294 _curentry.jointnames =
""_UTsh;
295 if (
true && ( (!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) && ( (
true&&!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) )
296 graph->
evalOpParmInst(_curentry.jointnames, nodeidx,
"jointnames#", parmidx, offsets, time, 0, 2-1);
297 _curentry.percentage = 100;
298 if (
true && ( (!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) && ( (
true&&!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) )
299 graph->
evalOpParmInst(_curentry.percentage, nodeidx,
"percentage#", parmidx, offsets, time, 0, 2-1);
301 if (
true && ( (!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) && ( (
true&&!(((
int64(getOutput())!=2))||((
int64(getOutput())!=2)))) ) )
302 graph->
evalOpParmInst(_curentry.seed, nodeidx,
"seed#", parmidx, offsets, time, 0, 2-1);
309 if (
true && ( (
true&&!(((
int64(getOutput())!=3)&&(
int64(getOutput())!=4))||((
int64(getOutput())!=3)&&(
int64(getOutput())!=4)))) ) )
310 graph->
evalOpParm(mySkeletonColor, nodeidx,
"skeletoncolor", time, 0);
311 myApplyJointXforms =
true;
312 if (
true && ( (
true&&!(((
int64(getOutput())==0))||((
int64(getOutput())==4))||((
int64(getOutput())==1)&&(
int64(getRestShapesMode())==3))||((
int64(getOutput())==0))||((
int64(getOutput())==4)))) ) )
313 graph->
evalOpParm(myApplyJointXforms, nodeidx,
"applyjointxforms", time, 0);
329 template <
typename T>
336 if (idx.
size() != instance.
size()+1)
341 coerceValue(value, myGroup);
344 coerceValue(value, myGroupType);
347 coerceValue(value, myOutput);
350 coerceValue(value, myUniqueAgentDefinitions);
353 coerceValue(value, myApplyAgentXform);
356 coerceValue(value, myRestShapesMode);
359 coerceValue(value, myLayerFilter);
362 coerceValue(value, myShapeFilter);
365 coerceValue(value, myLimitIterations);
368 coerceValue(value, myIterations);
371 coerceValue(value, myAddShapeDeformerAttrib);
374 coerceValue(value, myShapeDeformerAttrib);
377 coerceValue(value, myAddXformNameAttrib);
380 coerceValue(value, myXformNameAttrib);
383 coerceValue(value, myAddLayerNameAttrib);
386 coerceValue(value, myLayerNameAttrib);
389 coerceValue(value, myClipNames);
392 coerceValue(value, myTransferAttributes);
395 coerceValue(value, myTransferGroups);
399 coerceValue(value, myFilters.entries());
400 else if (instance[0] < myFilters.entries())
402 auto && _data = myFilters(instance[0]);
406 coerceValue(value, _data.jointnames);
409 coerceValue(value, _data.percentage);
412 coerceValue(value, _data.seed);
419 coerceValue(value, mySkeletonColor);
422 coerceValue(value, myApplyJointXforms);
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 { doGetParmValue(idx, instance, value); }
458 { doGetParmValue(idx, instance, value); }
460 template <
typename T>
467 if (idx.
size() != instance.
size()+1)
472 coerceValue(myGroup, ( ( value ) ));
475 coerceValue(myGroupType, clampMinValue(0, clampMaxValue(2, value ) ));
478 coerceValue(myOutput, clampMinValue(0, clampMaxValue(4, value ) ));
481 coerceValue(myUniqueAgentDefinitions, ( ( value ) ));
484 coerceValue(myApplyAgentXform, ( ( value ) ));
487 coerceValue(myRestShapesMode, clampMinValue(0, clampMaxValue(3, value ) ));
490 coerceValue(myLayerFilter, ( ( value ) ));
493 coerceValue(myShapeFilter, ( ( value ) ));
496 coerceValue(myLimitIterations, ( ( value ) ));
499 coerceValue(myIterations, clampMinValue(1, ( value ) ));
502 coerceValue(myAddShapeDeformerAttrib, ( ( value ) ));
505 coerceValue(myShapeDeformerAttrib, ( ( value ) ));
508 coerceValue(myAddXformNameAttrib, ( ( value ) ));
511 coerceValue(myXformNameAttrib, ( ( value ) ));
514 coerceValue(myAddLayerNameAttrib, ( ( value ) ));
517 coerceValue(myLayerNameAttrib, ( ( value ) ));
520 coerceValue(myClipNames, ( ( value ) ));
523 coerceValue(myTransferAttributes, ( ( value ) ));
526 coerceValue(myTransferGroups, ( ( value ) ));
532 coerceValue(newsize, value);
533 if (newsize < 0) newsize = 0;
534 myFilters.setSize(newsize);
540 myFilters.setSizeIfNeeded(instance[0]+1);
541 auto && _data = myFilters(instance[0]);
545 coerceValue(_data.jointnames, value);
548 coerceValue(_data.percentage, value);
551 coerceValue(_data.seed, value);
558 coerceValue(mySkeletonColor, ( ( value ) ));
561 coerceValue(myApplyJointXforms, ( ( 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); }
582 { doSetParmValue(idx, instance, value); }
584 { doSetParmValue(idx, instance, value); }
586 { doSetParmValue(idx, instance, value); }
588 { doSetParmValue(idx, instance, value); }
606 if (fieldnum.
size() < 1)
617 return "uniqueagentdefinitions";
619 return "applyagentxform";
621 return "unpackrestshapesfrom";
623 return "layerfilter";
625 return "shapefilter";
627 return "limititerations";
631 return "addshapedeformerattrib";
633 return "shapedeformerattrib";
635 return "addxformnameattrib";
637 return "xformnameattrib";
639 return "addlayernameattrib";
641 return "layernameattrib";
645 return "transferattributes";
647 return "transfergroups";
649 if (fieldnum.
size() == 1)
650 return "numjointfilters";
654 return "jointnames#";
656 return "percentage#";
663 return "skeletoncolor";
665 return "applyjointxforms";
673 if (fieldnum.
size() < 1)
674 return PARM_UNSUPPORTED;
716 if (fieldnum.
size() == 1)
717 return PARM_MULTIPARM;
728 return PARM_UNSUPPORTED;
735 return PARM_UNSUPPORTED;
771 loadData(is, rampdata);
789 int typelen = colon - data.
buffer();
803 {
int64 iv =
v; UTwrite(os, &iv); }
805 { UTwrite<fpreal64>(os, &
v); }
807 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
809 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
810 UTwrite<fpreal64>(os, &v.
z()); }
812 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
813 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
825 if (s) s->save(ostr);
827 saveData(os, result);
834 ostr << s->getDataTypeToken();
839 saveData(os, result);
843 void save(std::ostream &os)
const
847 saveData(os, myGroup);
848 saveData(os, myGroupType);
849 saveData(os, myOutput);
850 saveData(os, myUniqueAgentDefinitions);
851 saveData(os, myApplyAgentXform);
852 saveData(os, myRestShapesMode);
853 saveData(os, myLayerFilter);
854 saveData(os, myShapeFilter);
855 saveData(os, myLimitIterations);
856 saveData(os, myIterations);
857 saveData(os, myAddShapeDeformerAttrib);
858 saveData(os, myShapeDeformerAttrib);
859 saveData(os, myAddXformNameAttrib);
860 saveData(os, myXformNameAttrib);
861 saveData(os, myAddLayerNameAttrib);
862 saveData(os, myLayerNameAttrib);
863 saveData(os, myClipNames);
864 saveData(os, myTransferAttributes);
865 saveData(os, myTransferGroups);
868 UTwrite(os, &length);
871 auto && _curentry = myFilters(i);
873 saveData(os, _curentry.jointnames);
874 saveData(os, _curentry.percentage);
875 saveData(os, _curentry.seed);
879 saveData(os, mySkeletonColor);
880 saveData(os, myApplyJointXforms);
893 loadData(is, myGroup);
894 loadData(is, myGroupType);
895 loadData(is, myOutput);
896 loadData(is, myUniqueAgentDefinitions);
897 loadData(is, myApplyAgentXform);
898 loadData(is, myRestShapesMode);
899 loadData(is, myLayerFilter);
900 loadData(is, myShapeFilter);
901 loadData(is, myLimitIterations);
902 loadData(is, myIterations);
903 loadData(is, myAddShapeDeformerAttrib);
904 loadData(is, myShapeDeformerAttrib);
905 loadData(is, myAddXformNameAttrib);
906 loadData(is, myXformNameAttrib);
907 loadData(is, myAddLayerNameAttrib);
908 loadData(is, myLayerNameAttrib);
909 loadData(is, myClipNames);
910 loadData(is, myTransferAttributes);
911 loadData(is, myTransferGroups);
915 myFilters.setSize(length);
918 auto && _curentry = myFilters(i);
920 loadData(is, _curentry.jointnames);
921 loadData(is, _curentry.percentage);
922 loadData(is, _curentry.seed);
926 loadData(is, mySkeletonColor);
927 loadData(is, myApplyJointXforms);
937 if (!thissop)
return getGroup();
939 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
947 if (!thissop)
return getGroupType();
949 OP_Utils::evalOpParm(result, thissop,
"grouptype", cookparms.
getCookTime(), 0);
957 if (!thissop)
return getOutput();
959 OP_Utils::evalOpParm(result, thissop,
"output", cookparms.
getCookTime(), 0);
967 if (!thissop)
return getUniqueAgentDefinitions();
969 OP_Utils::evalOpParm(result, thissop,
"uniqueagentdefinitions", cookparms.
getCookTime(), 0);
977 if (!thissop)
return getApplyAgentXform();
979 OP_Utils::evalOpParm(result, thissop,
"applyagentxform", cookparms.
getCookTime(), 0);
987 if (!thissop)
return getRestShapesMode();
989 OP_Utils::evalOpParm(result, thissop,
"unpackrestshapesfrom", cookparms.
getCookTime(), 0);
997 if (!thissop)
return getLayerFilter();
999 OP_Utils::evalOpParm(result, thissop,
"layerfilter", cookparms.
getCookTime(), 0);
1007 if (!thissop)
return getShapeFilter();
1009 OP_Utils::evalOpParm(result, thissop,
"shapefilter", cookparms.
getCookTime(), 0);
1017 if (!thissop)
return getLimitIterations();
1019 OP_Utils::evalOpParm(result, thissop,
"limititerations", cookparms.
getCookTime(), 0);
1027 if (!thissop)
return getIterations();
1029 OP_Utils::evalOpParm(result, thissop,
"iterations", cookparms.
getCookTime(), 0);
1037 if (!thissop)
return getAddShapeDeformerAttrib();
1039 OP_Utils::evalOpParm(result, thissop,
"addshapedeformerattrib", cookparms.
getCookTime(), 0);
1047 if (!thissop)
return getShapeDeformerAttrib();
1049 OP_Utils::evalOpParm(result, thissop,
"shapedeformerattrib", cookparms.
getCookTime(), 0);
1057 if (!thissop)
return getAddXformNameAttrib();
1059 OP_Utils::evalOpParm(result, thissop,
"addxformnameattrib", cookparms.
getCookTime(), 0);
1067 if (!thissop)
return getXformNameAttrib();
1069 OP_Utils::evalOpParm(result, thissop,
"xformnameattrib", cookparms.
getCookTime(), 0);
1077 if (!thissop)
return getAddLayerNameAttrib();
1079 OP_Utils::evalOpParm(result, thissop,
"addlayernameattrib", cookparms.
getCookTime(), 0);
1087 if (!thissop)
return getLayerNameAttrib();
1089 OP_Utils::evalOpParm(result, thissop,
"layernameattrib", cookparms.
getCookTime(), 0);
1097 if (!thissop)
return getClipNames();
1099 OP_Utils::evalOpParm(result, thissop,
"clipnames", cookparms.
getCookTime(), 0);
1107 if (!thissop)
return getTransferAttributes();
1109 OP_Utils::evalOpParm(result, thissop,
"transferattributes", cookparms.
getCookTime(), 0);
1117 if (!thissop)
return getTransferGroups();
1119 OP_Utils::evalOpParm(result, thissop,
"transfergroups", cookparms.
getCookTime(), 0);
1127 if (!thissop)
return getFilters().entries();
1129 OP_Utils::evalOpParm(result, thissop,
"numjointfilters", cookparms.
getCookTime(), 0);
1133 {
return opinstFilters_jointnames(cookparms, &_idx); }
1137 if (!thissop)
return (myFilters(_idx[0]).jointnames);
1139 _parmidx[1-1] = _idx[1-1] + 1;
1142 OP_Utils::evalOpParmInst(result, thissop,
"jointnames#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1146 {
return opinstFilters_percentage(cookparms, &_idx); }
1150 if (!thissop)
return (myFilters(_idx[0]).percentage);
1152 _parmidx[1-1] = _idx[1-1] + 1;
1155 OP_Utils::evalOpParmInst(result, thissop,
"percentage#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1159 {
return opinstFilters_seed(cookparms, &_idx); }
1163 if (!thissop)
return (myFilters(_idx[0]).seed);
1165 _parmidx[1-1] = _idx[1-1] + 1;
1168 OP_Utils::evalOpParmInst(result, thissop,
"seed#", _parmidx, cookparms.
getCookTime(), 0, 2-1);
1177 if (!thissop)
return getSkeletonColor();
1179 OP_Utils::evalOpParm(result, thissop,
"skeletoncolor", cookparms.
getCookTime(), 0);
1187 if (!thissop)
return getApplyJointXforms();
1189 OP_Utils::evalOpParm(result, thissop,
"applyjointxforms", cookparms.
getCookTime(), 0);
1197 bool myUniqueAgentDefinitions;
1198 bool myApplyAgentXform;
1199 int64 myRestShapesMode;
1202 bool myLimitIterations;
1204 bool myAddShapeDeformerAttrib;
1206 bool myAddXformNameAttrib;
1208 bool myAddLayerNameAttrib;
1215 bool myApplyJointXforms;
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setFilters(const UT_Array< Filters > &val)
int64 getIterations() const
Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
void setApplyAgentXform(bool val)
bool isParmColorRamp(exint idx) const override
GLenum GLuint GLenum GLsizei const GLchar * buf
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
const UT_StringHolder & getTransferGroups() const
UT_StringHolder opinstFilters_jointnames(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
SOP_Node * getNode() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool operator!=(const SOP_AgentUnpackParms &src) const
fpreal64 opFilters_seed(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setClipNames(const UT_StringHolder &val)
UT_StringHolder opShapeFilter(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
const UT_Array< Filters > & getFilters() const
RestShapesMode opRestShapesMode(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Vector4I &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
const UT_StringHolder & getLayerNameAttrib() const
const UT_StringHolder & getShapeDeformerAttrib() const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool getApplyJointXforms() const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
bool getApplyAgentXform() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool opApplyJointXforms(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const Filters &src) const
constexpr SYS_FORCE_INLINE T & z() noexcept
static void saveData(std::ostream &os, fpreal64 v)
void setAddLayerNameAttrib(bool val)
SYS_FORCE_INLINE const char * buffer() const
void setApplyJointXforms(bool val)
GLuint GLsizei GLsizei * length
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
exint getNestNumParms(TempIndex idx) const override
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setTransferAttributes(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
fpreal64 opinstFilters_percentage(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_StringHolder opTransferAttributes(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setGroup(const UT_StringHolder &val)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
bool opAddXformNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
fpreal64 opFilters_percentage(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
exint opFilters(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
static void saveData(std::ostream &os, UT_Vector3D v)
void setAddXformNameAttrib(bool val)
UT_StringHolder opClipNames(const SOP_NodeVerb::CookParms &cookparms) const
GLuint GLsizei const GLuint const GLintptr * offsets
constexpr SYS_FORCE_INLINE T & x() noexcept
void setLimitIterations(bool val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
const UT_StringHolder & getTransferAttributes() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const UT_StringHolder & getXformNameAttrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setGroupType(GroupType val)
void setLayerNameAttrib(const UT_StringHolder &val)
const UT_StringHolder & getGroup() const
UT_Vector3D opSkeletonColor(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool load(UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
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
bool getAddXformNameAttrib() const
void setLayerFilter(const UT_StringHolder &val)
exint read(bool *array, exint sz=1)
const OP_GraphProxy * graph() const
GroupType opGroupType(const SOP_NodeVerb::CookParms &cookparms) const
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, int64 &v)
RestShapesMode getRestShapesMode() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setShapeFilter(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Vector4D v)
UT_Vector3T< fpreal64 > UT_Vector3D
const UT_StringHolder & getLayerFilter() const
void save(std::ostream &os) const
GroupType getGroupType() const
UT_StringHolder jointnames
const UT_StringHolder & getShapeFilter() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
bool opUniqueAgentDefinitions(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_StringHolder s)
exint entries() const
Alias of size(). size() is preferred.
void setSkeletonColor(UT_Vector3D val)
void setRestShapesMode(RestShapesMode val)
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
void setOutput(Output val)
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool operator!=(const Filters &src) const
static void loadData(UT_IStream &is, fpreal64 &v)
void setIterations(int64 val)
bool getLimitIterations() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
DEP_MicroNode * depnode() const
UT_StringHolder opLayerNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
bool opAddLayerNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opFilters_jointnames(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
constexpr SYS_FORCE_INLINE T & w() noexcept
SYS_FORCE_INLINE void append(char character)
void setTransferGroups(const UT_StringHolder &val)
const UT_StringHolder & getClipNames() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void setXformNameAttrib(const UT_StringHolder &val)
bool operator==(const SOP_AgentUnpackParms &src) const
UT_StringHolder createString(const UT_Array< Filters > &list) const
bool getAddShapeDeformerAttrib() const
bool opAddShapeDeformerAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void setShapeDeformerAttrib(const UT_StringHolder &val)
fpreal getCookTime() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 opinstFilters_seed(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
const char * findChar(int c) const
bool getAddLayerNameAttrib() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setAddShapeDeformerAttrib(bool val)
UT_Vector3D getSkeletonColor() const
bool opLimitIterations(const SOP_NodeVerb::CookParms &cookparms) const
bool opApplyAgentXform(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
void setUniqueAgentDefinitions(bool val)
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE UT_StringHolder getToken(GroupType enum_value)
static void loadData(UT_IStream &is, UT_Vector2D &v)
UT_StringHolder opTransferGroups(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opShapeDeformerAttrib(const SOP_NodeVerb::CookParms &cookparms) const
bool getUniqueAgentDefinitions() const
UT_StringHolder opXformNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
UT_StringHolder opLayerFilter(const SOP_NodeVerb::CookParms &cookparms) const
ParmType getNestParmType(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
static void loadData(UT_IStream &is, UT_StringHolder &v)