20 using namespace UT::Literal;
44 if (myGroup != src.myGroup)
return false;
45 if (myAttribname != src.myAttribname)
return false;
46 if (myTol != src.myTol)
return false;
47 if (myPromote != src.myPromote)
return false;
62 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
65 graph->
evalOpParm(myAttribname, nodeidx,
"attribname", time, 0);
68 graph->
evalOpParm(myTol, nodeidx,
"tol", time, 0);
71 graph->
evalOpParm(myPromote, nodeidx,
"promote", time, 0);
99 coerceValue(value, myGroup);
102 coerceValue(value, myAttribname);
105 coerceValue(value, myTol);
108 coerceValue(value, myPromote);
115 { doGetParmValue(idx, instance, value); }
117 { doGetParmValue(idx, instance, value); }
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 template <
typename T>
144 if (idx.
size() != instance.
size()+1)
149 coerceValue(myGroup, value);
152 coerceValue(myAttribname, value);
155 coerceValue(myTol, value);
158 coerceValue(myPromote, value);
165 { doSetParmValue(idx, instance, value); }
167 { doSetParmValue(idx, instance, value); }
169 { doSetParmValue(idx, instance, value); }
171 { doSetParmValue(idx, instance, value); }
173 { doSetParmValue(idx, instance, value); }
175 { doSetParmValue(idx, instance, value); }
177 { doSetParmValue(idx, instance, value); }
179 { doSetParmValue(idx, instance, value); }
181 { doSetParmValue(idx, instance, value); }
183 { doSetParmValue(idx, instance, value); }
185 { doSetParmValue(idx, instance, value); }
201 if (fieldnum.
size() < 1)
220 if (fieldnum.
size() < 1)
221 return PARM_UNSUPPORTED;
234 return PARM_UNSUPPORTED;
270 loadData(is, rampdata);
288 int typelen = colon - data.
buffer();
302 {
int64 iv =
v; UTwrite(os, &iv); }
304 { UTwrite<fpreal64>(os, &
v); }
306 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
308 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
309 UTwrite<fpreal64>(os, &v.
z()); }
311 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
312 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
324 if (s) s->save(ostr);
326 saveData(os, result);
333 ostr << s->getDataTypeToken();
338 saveData(os, result);
342 void save(std::ostream &os)
const
346 saveData(os, myGroup);
347 saveData(os, myAttribname);
349 saveData(os, myPromote);
362 loadData(is, myGroup);
363 loadData(is, myAttribname);
365 loadData(is, myPromote);
375 if (!thissop)
return getGroup();
377 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
385 if (!thissop)
return getAttribname();
387 OP_Utils::evalOpParm(result, thissop,
"attribname", cookparms.
getCookTime(), 0);
395 if (!thissop)
return getTol();
397 OP_Utils::evalOpParm(result, thissop,
"tol", cookparms.
getCookTime(), 0);
405 if (!thissop)
return getPromote();
407 OP_Utils::evalOpParm(result, thissop,
"promote", cookparms.
getCookTime(), 0);
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setTol(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void copyFrom(const SOP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SOP_Node * getNode() const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GLuint const GLfloat * val
const UT_StringHolder & getAttribname() const
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Vector3D v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool operator!=(const SOP_VertexSplitParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, bool &v)
void save(std::ostream &os) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
bool operator==(const SOP_VertexSplitParms &src) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
~SOP_VertexSplitParms() override
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
GLint GLenum GLsizei GLint GLsizei const void * data
void setPromote(bool val)
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_Vector2D v)
fpreal64 opTol(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
const UT_StringHolder & getGroup() const
bool opPromote(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
Utility class for containing a color ramp.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
GLdouble GLdouble GLdouble r
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setAttribname(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
fpreal getCookTime() const
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
const char * findChar(int c) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
GLsizei const GLfloat * value
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const OP_Context & context() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const