31 myKeepprimitives =
false;
33 myBuildpolysoup =
false;
46 if (myKeepprimitives != src.myKeepprimitives)
return false;
47 if (myKeeppoints != src.myKeeppoints)
return false;
48 if (myBuildpolysoup != src.myBuildpolysoup)
return false;
61 myKeepprimitives =
false;
63 graph->
evalOpParm(myKeepprimitives, nodeidx,
"keepprimitives", time, 0);
65 if (
true && ( (
true&&!(((getKeepprimitives()==1)))) ) )
66 graph->
evalOpParm(myKeeppoints, nodeidx,
"keeppoints", time, 0);
67 myBuildpolysoup =
false;
69 graph->
evalOpParm(myBuildpolysoup, nodeidx,
"buildpolysoup", time, 0);
119 { doGetParmValue(idx, instance, value); }
121 { doGetParmValue(idx, instance, value); }
123 { doGetParmValue(idx, instance, value); }
125 { doGetParmValue(idx, instance, value); }
127 { doGetParmValue(idx, instance, value); }
129 { doGetParmValue(idx, instance, value); }
131 { doGetParmValue(idx, instance, value); }
133 { doGetParmValue(idx, instance, value); }
135 { doGetParmValue(idx, instance, value); }
137 { doGetParmValue(idx, instance, value); }
139 { doGetParmValue(idx, instance, value); }
141 template <
typename T>
148 if (idx.
size() != instance.
size()+1)
166 { doSetParmValue(idx, instance, value); }
168 { doSetParmValue(idx, instance, value); }
170 { doSetParmValue(idx, instance, value); }
172 { doSetParmValue(idx, instance, value); }
174 { doSetParmValue(idx, instance, value); }
176 { doSetParmValue(idx, instance, value); }
178 { doSetParmValue(idx, instance, value); }
180 { doSetParmValue(idx, instance, value); }
182 { doSetParmValue(idx, instance, value); }
184 { doSetParmValue(idx, instance, value); }
186 { doSetParmValue(idx, instance, value); }
202 if (fieldnum.
size() < 1)
207 return "keepprimitives";
211 return "buildpolysoup";
219 if (fieldnum.
size() < 1)
220 return PARM_UNSUPPORTED;
267 loadData(is, rampdata);
285 int typelen = colon - data.
buffer();
299 {
int64 iv =
v; UTwrite(os, &iv); }
301 { UTwrite<fpreal64>(os, &
v); }
303 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
305 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
306 UTwrite<fpreal64>(os, &v.
z()); }
308 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
309 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
321 if (s) s->save(ostr);
323 saveData(os, result);
330 ostr << s->getDataTypeToken();
335 saveData(os, result);
339 void save(std::ostream &os)
const
343 saveData(os, myKeepprimitives);
344 saveData(os, myKeeppoints);
345 saveData(os, myBuildpolysoup);
358 loadData(is, myKeepprimitives);
359 loadData(is, myKeeppoints);
360 loadData(is, myBuildpolysoup);
370 if (!thissop)
return getKeepprimitives();
372 OP_Utils::evalOpParm(result, thissop,
"keepprimitives", cookparms.
getCookTime(), 0);
380 if (!thissop)
return getKeeppoints();
382 OP_Utils::evalOpParm(result, thissop,
"keeppoints", cookparms.
getCookTime(), 0);
390 if (!thissop)
return getBuildpolysoup();
392 OP_Utils::evalOpParm(result, thissop,
"buildpolysoup", cookparms.
getCookTime(), 0);
397 bool myKeepprimitives;
399 bool myBuildpolysoup;
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SOP_Node * getNode() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool getKeeppoints() const
static void saveData(std::ostream &os, int64 v)
exint bread(int32 *buffer, exint asize=1)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool operator==(const SOP_ConvertTetsParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const OP_Context & context() const
constexpr SYS_FORCE_INLINE T & z() noexcept
const char * getNestParmName(TempIndex fieldnum) const override
SYS_FORCE_INLINE const char * buffer() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
**But if you need a result
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
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_Vector3D &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_StringHolder s)
bool opKeeppoints(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool getBuildpolysoup() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & z() noexcept
void setBuildpolysoup(bool val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const OP_GraphProxy * graph() const
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
bool operator!=(const SOP_ConvertTetsParms &src) const
static void saveData(std::ostream &os, bool v)
void setKeeppoints(bool val)
bool getKeepprimitives() const
static void saveData(std::ostream &os, UT_Vector2D v)
void setKeepprimitives(bool val)
bool opKeepprimitives(const SOP_NodeVerb::CookParms &cookparms) const
bool opBuildpolysoup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
ParmType getNestParmType(TempIndex fieldnum) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void coerceValue(T &result, const S &src) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
DEP_MicroNode * depnode() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
Utility class for containing a color ramp.
constexpr SYS_FORCE_INLINE T & w() noexcept
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal getCookTime() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
const char * findChar(int c) const
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, int64 &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
constexpr SYS_FORCE_INLINE T & x() noexcept
static void loadData(UT_IStream &is, bool &v)