35 myDetectverts =
false;
37 myUseinputnumattrib =
false;
38 myInputnumattrib =
"sourceinput"_UTsh;
39 myUseprimnumattrib =
false;
40 myPrimnumattrib =
"sourceprim"_UTsh;
41 myUseprimuvwattrib =
false;
42 myPrimuvwattrib =
"sourceprimuv"_UTsh;
43 myUseptnumattrib =
false;
44 myPtnumattrib =
"sourceptnum"_UTsh;
57 if (myAgroup != src.myAgroup)
return false;
58 if (myBgroup != src.myBgroup)
return false;
59 if (myUseproxtol != src.myUseproxtol)
return false;
60 if (myProxtol != src.myProxtol)
return false;
61 if (myDetectverts != src.myDetectverts)
return false;
62 if (myOutputsegs != src.myOutputsegs)
return false;
63 if (myUseinputnumattrib != src.myUseinputnumattrib)
return false;
64 if (myInputnumattrib != src.myInputnumattrib)
return false;
65 if (myUseprimnumattrib != src.myUseprimnumattrib)
return false;
66 if (myPrimnumattrib != src.myPrimnumattrib)
return false;
67 if (myUseprimuvwattrib != src.myUseprimuvwattrib)
return false;
68 if (myPrimuvwattrib != src.myPrimuvwattrib)
return false;
69 if (myUseptnumattrib != src.myUseptnumattrib)
return false;
70 if (myPtnumattrib != src.myPtnumattrib)
return false;
85 graph->
evalOpParm(myAgroup, nodeidx,
"agroup", time, 0);
88 graph->
evalOpParm(myBgroup, nodeidx,
"bgroup", time, 0);
91 graph->
evalOpParm(myUseproxtol, nodeidx,
"useproxtol", time, 0);
93 if (
true && ( (
true&&!(((getUseproxtol()==0)))) ) )
94 graph->
evalOpParm(myProxtol, nodeidx,
"proxtol", time, 0);
95 myDetectverts =
false;
97 graph->
evalOpParm(myDetectverts, nodeidx,
"detectverts", time, 0);
100 graph->
evalOpParm(myOutputsegs, nodeidx,
"outputsegs", time, 0);
101 myUseinputnumattrib =
false;
103 graph->
evalOpParm(myUseinputnumattrib, nodeidx,
"useinputnumattrib", time, 0);
104 myInputnumattrib =
"sourceinput"_UTsh;
105 if (
true && ( (
true&&!(((getUseinputnumattrib()==0)))) ) )
106 graph->
evalOpParm(myInputnumattrib, nodeidx,
"inputnumattrib", time, 0);
107 myUseprimnumattrib =
false;
109 graph->
evalOpParm(myUseprimnumattrib, nodeidx,
"useprimnumattrib", time, 0);
110 myPrimnumattrib =
"sourceprim"_UTsh;
111 if (
true && ( (
true&&!(((getUseprimnumattrib()==0)))) ) )
112 graph->
evalOpParm(myPrimnumattrib, nodeidx,
"primnumattrib", time, 0);
113 myUseprimuvwattrib =
false;
115 graph->
evalOpParm(myUseprimuvwattrib, nodeidx,
"useprimuvwattrib", time, 0);
116 myPrimuvwattrib =
"sourceprimuv"_UTsh;
117 if (
true && ( (
true&&!(((getUseprimuvwattrib()==0)))) ) )
118 graph->
evalOpParm(myPrimuvwattrib, nodeidx,
"primuvwattrib", time, 0);
119 myUseptnumattrib =
false;
121 graph->
evalOpParm(myUseptnumattrib, nodeidx,
"useptnumattrib", time, 0);
122 myPtnumattrib =
"sourceptnum"_UTsh;
123 if (
true && ( (
true&&!(((getUseptnumattrib()==0)))) ) )
124 graph->
evalOpParm(myPtnumattrib, nodeidx,
"ptnumattrib", time, 0);
140 template <
typename T>
147 if (idx.
size() != instance.
size()+1)
207 { doGetParmValue(idx, instance, value); }
209 { doGetParmValue(idx, instance, value); }
211 { doGetParmValue(idx, instance, value); }
213 { doGetParmValue(idx, instance, value); }
215 { doGetParmValue(idx, instance, value); }
217 { doGetParmValue(idx, instance, value); }
219 { doGetParmValue(idx, instance, value); }
221 { doGetParmValue(idx, instance, value); }
223 { doGetParmValue(idx, instance, value); }
225 { doGetParmValue(idx, instance, value); }
227 { doGetParmValue(idx, instance, value); }
229 template <
typename T>
236 if (idx.
size() != instance.
size()+1)
287 { doSetParmValue(idx, instance, value); }
289 { doSetParmValue(idx, instance, value); }
291 { doSetParmValue(idx, instance, value); }
293 { doSetParmValue(idx, instance, value); }
295 { doSetParmValue(idx, instance, value); }
297 { doSetParmValue(idx, instance, value); }
299 { doSetParmValue(idx, instance, value); }
301 { doSetParmValue(idx, instance, value); }
303 { doSetParmValue(idx, instance, value); }
305 { doSetParmValue(idx, instance, value); }
307 { doSetParmValue(idx, instance, value); }
323 if (fieldnum.
size() < 1)
336 return "detectverts";
340 return "useinputnumattrib";
342 return "inputnumattrib";
344 return "useprimnumattrib";
346 return "primnumattrib";
348 return "useprimuvwattrib";
350 return "primuvwattrib";
352 return "useptnumattrib";
354 return "ptnumattrib";
362 if (fieldnum.
size() < 1)
363 return PARM_UNSUPPORTED;
432 loadData(is, rampdata);
450 int typelen = colon - data.
buffer();
464 {
int64 iv =
v; UTwrite(os, &iv); }
466 { UTwrite<fpreal64>(os, &
v); }
468 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
470 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
471 UTwrite<fpreal64>(os, &v.
z()); }
473 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
474 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
486 if (s) s->save(ostr);
488 saveData(os, result);
495 ostr << s->getDataTypeToken();
500 saveData(os, result);
504 void save(std::ostream &os)
const
508 saveData(os, myAgroup);
509 saveData(os, myBgroup);
510 saveData(os, myUseproxtol);
511 saveData(os, myProxtol);
512 saveData(os, myDetectverts);
513 saveData(os, myOutputsegs);
514 saveData(os, myUseinputnumattrib);
515 saveData(os, myInputnumattrib);
516 saveData(os, myUseprimnumattrib);
517 saveData(os, myPrimnumattrib);
518 saveData(os, myUseprimuvwattrib);
519 saveData(os, myPrimuvwattrib);
520 saveData(os, myUseptnumattrib);
521 saveData(os, myPtnumattrib);
534 loadData(is, myAgroup);
535 loadData(is, myBgroup);
536 loadData(is, myUseproxtol);
537 loadData(is, myProxtol);
538 loadData(is, myDetectverts);
539 loadData(is, myOutputsegs);
540 loadData(is, myUseinputnumattrib);
541 loadData(is, myInputnumattrib);
542 loadData(is, myUseprimnumattrib);
543 loadData(is, myPrimnumattrib);
544 loadData(is, myUseprimuvwattrib);
545 loadData(is, myPrimuvwattrib);
546 loadData(is, myUseptnumattrib);
547 loadData(is, myPtnumattrib);
557 if (!thissop)
return getAgroup();
559 OP_Utils::evalOpParm(result, thissop,
"agroup", cookparms.
getCookTime(), 0);
567 if (!thissop)
return getBgroup();
569 OP_Utils::evalOpParm(result, thissop,
"bgroup", cookparms.
getCookTime(), 0);
577 if (!thissop)
return getUseproxtol();
579 OP_Utils::evalOpParm(result, thissop,
"useproxtol", cookparms.
getCookTime(), 0);
587 if (!thissop)
return getProxtol();
589 OP_Utils::evalOpParm(result, thissop,
"proxtol", cookparms.
getCookTime(), 0);
597 if (!thissop)
return getDetectverts();
599 OP_Utils::evalOpParm(result, thissop,
"detectverts", cookparms.
getCookTime(), 0);
607 if (!thissop)
return getOutputsegs();
609 OP_Utils::evalOpParm(result, thissop,
"outputsegs", cookparms.
getCookTime(), 0);
617 if (!thissop)
return getUseinputnumattrib();
619 OP_Utils::evalOpParm(result, thissop,
"useinputnumattrib", cookparms.
getCookTime(), 0);
627 if (!thissop)
return getInputnumattrib();
629 OP_Utils::evalOpParm(result, thissop,
"inputnumattrib", cookparms.
getCookTime(), 0);
637 if (!thissop)
return getUseprimnumattrib();
639 OP_Utils::evalOpParm(result, thissop,
"useprimnumattrib", cookparms.
getCookTime(), 0);
647 if (!thissop)
return getPrimnumattrib();
649 OP_Utils::evalOpParm(result, thissop,
"primnumattrib", cookparms.
getCookTime(), 0);
657 if (!thissop)
return getUseprimuvwattrib();
659 OP_Utils::evalOpParm(result, thissop,
"useprimuvwattrib", cookparms.
getCookTime(), 0);
667 if (!thissop)
return getPrimuvwattrib();
669 OP_Utils::evalOpParm(result, thissop,
"primuvwattrib", cookparms.
getCookTime(), 0);
677 if (!thissop)
return getUseptnumattrib();
679 OP_Utils::evalOpParm(result, thissop,
"useptnumattrib", cookparms.
getCookTime(), 0);
687 if (!thissop)
return getPtnumattrib();
689 OP_Utils::evalOpParm(result, thissop,
"ptnumattrib", cookparms.
getCookTime(), 0);
700 bool myUseinputnumattrib;
702 bool myUseprimnumattrib;
704 bool myUseprimuvwattrib;
706 bool myUseptnumattrib;
static void saveData(std::ostream &os, UT_Matrix2D v)
bool getUseproxtol() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
exint getNestNumParms(TempIndex idx) const override
bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
SOP_Node * getNode() const
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setPtnumattrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Vector4D v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setUseptnumattrib(bool val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
fpreal64 getProxtol() const
void setUseprimuvwattrib(bool val)
fpreal64 opProxtol(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void copyFrom(const OP_NodeParms *src) override
An output stream object that owns its own string buffer storage.
bool getOutputsegs() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
**But if you need a result
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector2D &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool getDetectverts() const
bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & x() noexcept
const UT_StringHolder & getPrimuvwattrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void setPrimnumattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool getUseptnumattrib() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getAgroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const 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
static void loadData(UT_IStream &is, int64 &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
const OP_GraphProxy * graph() const
void setOutputsegs(bool val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
const UT_StringHolder & getPrimnumattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
UT_StringHolder opInputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
const UT_StringHolder & getBgroup() const
bool operator!=(const SOP_IntersectionAnalysisParms &src) const
bool getUseprimnumattrib() const
void setUseprimnumattrib(bool val)
void setProxtol(fpreal64 val)
static void saveData(std::ostream &os, UT_Vector3D v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_StringHolder s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
UT_StringHolder opAgroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, fpreal64 v)
UT_StringHolder opPtnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
void coerceValue(T &result, const S &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool getUseinputnumattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setBgroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, int64 v)
DEP_MicroNode * depnode() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
bool getUseprimuvwattrib() const
SOP_IntersectionAnalysisParms()
bool opUseptnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
static void saveData(std::ostream &os, UT_Vector2D v)
void setUseproxtol(bool val)
bool opUseinputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal getCookTime() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
const char * findChar(int c) const
void setUseinputnumattrib(bool val)
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setInputnumattrib(const UT_StringHolder &val)
void setPrimuvwattrib(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
const UT_StringHolder & getPtnumattrib() const
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setDetectverts(bool val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
UT_StringHolder opBgroup(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
bool opDetectverts(const SOP_NodeVerb::CookParms &cookparms) const
void setAgroup(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
const UT_StringHolder & getInputnumattrib() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool operator==(const SOP_IntersectionAnalysisParms &src) const
static void saveData(std::ostream &os, bool v)
constexpr SYS_FORCE_INLINE T & x() noexcept
bool opOutputsegs(const SOP_NodeVerb::CookParms &cookparms) const