32 myPolyGroup =
""_UTsh;
33 myKeepPolygons =
false;
35 myOutputSolidity =
false;
36 mySolidityAttrib =
"solidity"_UTsh;
49 if (myTetGroup != src.myTetGroup)
return false;
50 if (myPolyGroup != src.myPolyGroup)
return false;
51 if (myKeepPolygons != src.myKeepPolygons)
return false;
52 if (mySolidBdry != src.mySolidBdry)
return false;
53 if (myOutputSolidity != src.myOutputSolidity)
return false;
54 if (mySolidityAttrib != src.mySolidityAttrib)
return false;
69 graph->
evalOpParm(myTetGroup, nodeidx,
"tetgroup", time, 0);
70 myPolyGroup =
""_UTsh;
72 graph->
evalOpParm(myPolyGroup, nodeidx,
"polygroup", time, 0);
73 myKeepPolygons =
false;
75 graph->
evalOpParm(myKeepPolygons, nodeidx,
"keeppolygons", time, 0);
78 graph->
evalOpParm(mySolidBdry, nodeidx,
"solidbdry", time, 0);
79 myOutputSolidity =
false;
81 graph->
evalOpParm(myOutputSolidity, nodeidx,
"outputsolidity", time, 0);
82 mySolidityAttrib =
"solidity"_UTsh;
83 if (
true && ( (
true&&!(((getOutputSolidity()==0)))) ) )
84 graph->
evalOpParm(mySolidityAttrib, nodeidx,
"solidityattrib", time, 0);
100 template <
typename T>
107 if (idx.
size() != instance.
size()+1)
143 { doGetParmValue(idx, instance, value); }
145 { doGetParmValue(idx, instance, value); }
147 { doGetParmValue(idx, instance, value); }
149 { doGetParmValue(idx, instance, value); }
151 { doGetParmValue(idx, instance, value); }
153 { doGetParmValue(idx, instance, value); }
155 { doGetParmValue(idx, instance, value); }
157 { doGetParmValue(idx, instance, value); }
159 { doGetParmValue(idx, instance, value); }
161 { doGetParmValue(idx, instance, value); }
163 { doGetParmValue(idx, instance, value); }
165 template <
typename T>
172 if (idx.
size() != instance.
size()+1)
199 { doSetParmValue(idx, instance, value); }
201 { doSetParmValue(idx, instance, value); }
203 { doSetParmValue(idx, instance, value); }
205 { doSetParmValue(idx, instance, value); }
207 { doSetParmValue(idx, instance, value); }
209 { doSetParmValue(idx, instance, value); }
211 { doSetParmValue(idx, instance, value); }
213 { doSetParmValue(idx, instance, value); }
215 { doSetParmValue(idx, instance, value); }
217 { doSetParmValue(idx, instance, value); }
219 { doSetParmValue(idx, instance, value); }
235 if (fieldnum.
size() < 1)
244 return "keeppolygons";
248 return "outputsolidity";
250 return "solidityattrib";
258 if (fieldnum.
size() < 1)
259 return PARM_UNSUPPORTED;
312 loadData(is, rampdata);
330 int typelen = colon - data.
buffer();
344 {
int64 iv =
v; UTwrite(os, &iv); }
346 { UTwrite<fpreal64>(os, &
v); }
348 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
350 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
351 UTwrite<fpreal64>(os, &v.
z()); }
353 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
354 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
366 if (s) s->save(ostr);
368 saveData(os, result);
375 ostr << s->getDataTypeToken();
380 saveData(os, result);
384 void save(std::ostream &os)
const
388 saveData(os, myTetGroup);
389 saveData(os, myPolyGroup);
390 saveData(os, myKeepPolygons);
391 saveData(os, mySolidBdry);
392 saveData(os, myOutputSolidity);
393 saveData(os, mySolidityAttrib);
406 loadData(is, myTetGroup);
407 loadData(is, myPolyGroup);
408 loadData(is, myKeepPolygons);
409 loadData(is, mySolidBdry);
410 loadData(is, myOutputSolidity);
411 loadData(is, mySolidityAttrib);
421 if (!thissop)
return getTetGroup();
423 OP_Utils::evalOpParm(result, thissop,
"tetgroup", cookparms.
getCookTime(), 0);
431 if (!thissop)
return getPolyGroup();
433 OP_Utils::evalOpParm(result, thissop,
"polygroup", cookparms.
getCookTime(), 0);
441 if (!thissop)
return getKeepPolygons();
443 OP_Utils::evalOpParm(result, thissop,
"keeppolygons", cookparms.
getCookTime(), 0);
451 if (!thissop)
return getSolidBdry();
453 OP_Utils::evalOpParm(result, thissop,
"solidbdry", cookparms.
getCookTime(), 0);
461 if (!thissop)
return getOutputSolidity();
463 OP_Utils::evalOpParm(result, thissop,
"outputsolidity", cookparms.
getCookTime(), 0);
471 if (!thissop)
return getSolidityAttrib();
473 OP_Utils::evalOpParm(result, thissop,
"solidityattrib", cookparms.
getCookTime(), 0);
482 bool myOutputSolidity;
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
fpreal64 opSolidBdry(const SOP_NodeVerb::CookParms &cookparms) const
void setPolyGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
SOP_Node * getNode() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
const UT_StringHolder & getPolyGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const OP_Context & context() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
An output stream object that owns its own string buffer storage.
const UT_StringHolder & getTetGroup() const
bool opOutputSolidity(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
**But if you need a result
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
fpreal64 getSolidBdry() const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Vector4I &v)
UT_StringHolder opPolyGroup(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
bool operator==(const SOP_Solidify_2_0Parms &src) const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setSolidityAttrib(const UT_StringHolder &val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
static void saveData(std::ostream &os, fpreal64 v)
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setTetGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix3D v)
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
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const OP_GraphProxy * graph() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setKeepPolygons(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint getNestNumParms(TempIndex idx) const override
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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.
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GT_API const UT_StringHolder version
bool opKeepPolygons(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getSolidityAttrib() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void coerceValue(T &result, const S &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
DEP_MicroNode * depnode() const
static void saveData(std::ostream &os, UT_StringHolder s)
Utility class for containing a color ramp.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, int64 &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
ParmType getNestParmType(TempIndex fieldnum) const override
bool operator!=(const SOP_Solidify_2_0Parms &src) const
static void saveData(std::ostream &os, UT_Vector2D v)
fpreal getCookTime() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool load(UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const char * findChar(int c) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Vector3D v)
UT_StringHolder opSolidityAttrib(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
bool getOutputSolidity() const
void setOutputSolidity(bool val)
void save(std::ostream &os) const
void setSolidBdry(fpreal64 val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, bool &v)
UT_StringHolder opTetGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Matrix4D v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool getKeepPolygons() const
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
static void loadData(UT_IStream &is, UT_Vector2D &v)