36 myInputnumattrib =
"sourceinput"_UTsh;
37 myPrimnumattrib =
"sourceprim"_UTsh;
38 myPrimuvwattrib =
"sourceprimuv"_UTsh;
39 myKeeppointattribs =
true;
52 if (myAgroup != src.myAgroup)
return false;
53 if (myBgroup != src.myBgroup)
return false;
54 if (myUseproxtol != src.myUseproxtol)
return false;
55 if (myProxtol != src.myProxtol)
return false;
56 if (mySplitcurves != src.mySplitcurves)
return false;
57 if (myInputnumattrib != src.myInputnumattrib)
return false;
58 if (myPrimnumattrib != src.myPrimnumattrib)
return false;
59 if (myPrimuvwattrib != src.myPrimuvwattrib)
return false;
60 if (myKeeppointattribs != src.myKeeppointattribs)
return false;
75 graph->
evalOpParm(myAgroup, nodeidx,
"agroup", time, 0);
78 graph->
evalOpParm(myBgroup, nodeidx,
"bgroup", time, 0);
81 graph->
evalOpParm(myUseproxtol, nodeidx,
"useproxtol", time, 0);
83 if (
true && ( (
true&&!(((getUseproxtol()==0)))) ) )
84 graph->
evalOpParm(myProxtol, nodeidx,
"proxtol", time, 0);
87 graph->
evalOpParm(mySplitcurves, nodeidx,
"splitcurves", time, 0);
88 myInputnumattrib =
"sourceinput"_UTsh;
89 if (
true && ( (
true&&!((((graph->
getInput(nodeidx,2)>=0)==0)))) ) )
90 graph->
evalOpParm(myInputnumattrib, nodeidx,
"inputnumattrib", time, 0);
91 myPrimnumattrib =
"sourceprim"_UTsh;
92 if (
true && ( (
true&&!((((graph->
getInput(nodeidx,2)>=0)==0)))) ) )
93 graph->
evalOpParm(myPrimnumattrib, nodeidx,
"primnumattrib", time, 0);
94 myPrimuvwattrib =
"sourceprimuv"_UTsh;
95 if (
true && ( (
true&&!((((graph->
getInput(nodeidx,2)>=0)==0)))) ) )
96 graph->
evalOpParm(myPrimuvwattrib, nodeidx,
"primuvwattrib", time, 0);
97 myKeeppointattribs =
true;
98 if (
true && ( (
true&&!((((graph->
getInput(nodeidx,2)>=0)==0)))) ) )
99 graph->
evalOpParm(myKeeppointattribs, nodeidx,
"keeppointattribs", time, 0);
115 template <
typename T>
122 if (idx.
size() != instance.
size()+1)
167 { doGetParmValue(idx, instance, value); }
169 { doGetParmValue(idx, instance, value); }
171 { doGetParmValue(idx, instance, value); }
173 { doGetParmValue(idx, instance, value); }
175 { doGetParmValue(idx, instance, value); }
177 { doGetParmValue(idx, instance, value); }
179 { doGetParmValue(idx, instance, value); }
181 { doGetParmValue(idx, instance, value); }
183 { doGetParmValue(idx, instance, value); }
185 { doGetParmValue(idx, instance, value); }
187 { doGetParmValue(idx, instance, value); }
189 template <
typename T>
196 if (idx.
size() != instance.
size()+1)
232 { doSetParmValue(idx, instance, value); }
234 { doSetParmValue(idx, instance, value); }
236 { doSetParmValue(idx, instance, value); }
238 { doSetParmValue(idx, instance, value); }
240 { doSetParmValue(idx, instance, value); }
242 { doSetParmValue(idx, instance, value); }
244 { doSetParmValue(idx, instance, value); }
246 { doSetParmValue(idx, instance, value); }
248 { doSetParmValue(idx, instance, value); }
250 { doSetParmValue(idx, instance, value); }
252 { doSetParmValue(idx, instance, value); }
268 if (fieldnum.
size() < 1)
281 return "splitcurves";
283 return "inputnumattrib";
285 return "primnumattrib";
287 return "primuvwattrib";
289 return "keeppointattribs";
297 if (fieldnum.
size() < 1)
298 return PARM_UNSUPPORTED;
357 loadData(is, rampdata);
375 int typelen = colon - data.
buffer();
389 {
int64 iv =
v; UTwrite(os, &iv); }
391 { UTwrite<fpreal64>(os, &
v); }
393 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
395 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
396 UTwrite<fpreal64>(os, &v.
z()); }
398 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
399 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
411 if (s) s->save(ostr);
413 saveData(os, result);
420 ostr << s->getDataTypeToken();
425 saveData(os, result);
429 void save(std::ostream &os)
const
433 saveData(os, myAgroup);
434 saveData(os, myBgroup);
435 saveData(os, myUseproxtol);
436 saveData(os, myProxtol);
437 saveData(os, mySplitcurves);
438 saveData(os, myInputnumattrib);
439 saveData(os, myPrimnumattrib);
440 saveData(os, myPrimuvwattrib);
441 saveData(os, myKeeppointattribs);
454 loadData(is, myAgroup);
455 loadData(is, myBgroup);
456 loadData(is, myUseproxtol);
457 loadData(is, myProxtol);
458 loadData(is, mySplitcurves);
459 loadData(is, myInputnumattrib);
460 loadData(is, myPrimnumattrib);
461 loadData(is, myPrimuvwattrib);
462 loadData(is, myKeeppointattribs);
472 if (!thissop)
return getAgroup();
474 OP_Utils::evalOpParm(result, thissop,
"agroup", cookparms.
getCookTime(), 0);
482 if (!thissop)
return getBgroup();
484 OP_Utils::evalOpParm(result, thissop,
"bgroup", cookparms.
getCookTime(), 0);
492 if (!thissop)
return getUseproxtol();
494 OP_Utils::evalOpParm(result, thissop,
"useproxtol", cookparms.
getCookTime(), 0);
502 if (!thissop)
return getProxtol();
504 OP_Utils::evalOpParm(result, thissop,
"proxtol", cookparms.
getCookTime(), 0);
512 if (!thissop)
return getSplitcurves();
514 OP_Utils::evalOpParm(result, thissop,
"splitcurves", cookparms.
getCookTime(), 0);
522 if (!thissop)
return getInputnumattrib();
524 OP_Utils::evalOpParm(result, thissop,
"inputnumattrib", cookparms.
getCookTime(), 0);
532 if (!thissop)
return getPrimnumattrib();
534 OP_Utils::evalOpParm(result, thissop,
"primnumattrib", cookparms.
getCookTime(), 0);
542 if (!thissop)
return getPrimuvwattrib();
544 OP_Utils::evalOpParm(result, thissop,
"primuvwattrib", cookparms.
getCookTime(), 0);
552 if (!thissop)
return getKeeppointattribs();
554 OP_Utils::evalOpParm(result, thissop,
"keeppointattribs", cookparms.
getCookTime(), 0);
567 bool myKeeppointattribs;
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setPrimuvwattrib(const UT_StringHolder &val)
bool getKeeppointattribs() const
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_StringHolder opAgroup(const SOP_NodeVerb::CookParms &cookparms) const
SOP_Node * getNode() const
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Vector2D v)
exint bread(int32 *buffer, exint asize=1)
const UT_StringHolder & getPrimnumattrib() const
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
const OP_Context & context() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
const UT_StringHolder & getInputnumattrib() const
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
An output stream object that owns its own string buffer storage.
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
**But if you need a result
bool opSplitcurves(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, int64 &v)
virtual NodeIdx getInput(NodeIdx idx, int input, bool markused=false) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setSplitcurves(bool val)
bool operator!=(const SOP_IntersectionStitchParms &src) const
void setBgroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const UT_StringHolder & getBgroup() const
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
static void saveData(std::ostream &os, UT_StringHolder s)
constexpr SYS_FORCE_INLINE T & z() noexcept
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setPrimnumattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_StringHolder opBgroup(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
ParmType getNestParmType(TempIndex fieldnum) const override
bool load(UT_IStream &is)
static void saveData(std::ostream &os, bool v)
fpreal64 getProxtol() const
void setInputnumattrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
fpreal64 opProxtol(const SOP_NodeVerb::CookParms &cookparms) const
SOP_IntersectionStitchParms()
static void loadData(UT_IStream &is, UT_Matrix3D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void saveBinary(std::ostream &os) const
Save string to binary stream.
UT_StringHolder opInputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GT_API const UT_StringHolder version
bool operator==(const SOP_IntersectionStitchParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void coerceValue(T &result, const S &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
const UT_StringHolder & getPrimuvwattrib() const
DEP_MicroNode * depnode() const
Utility class for containing a color ramp.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
exint getNestNumParms(TempIndex idx) const override
fpreal getCookTime() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool opKeeppointattribs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const char * findChar(int c) const
void setProxtol(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
bool getUseproxtol() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setUseproxtol(bool val)
void setKeeppointattribs(bool val)
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, bool &v)
const UT_StringHolder & getAgroup() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & y() noexcept
void save(std::ostream &os) const
SYS_FORCE_INLINE bool isstring() const
bool getSplitcurves() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setAgroup(const UT_StringHolder &val)
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept