32 myConstrainStripLength =
false;
33 myMaxStripLength = 10;
46 if (myGroup != src.myGroup)
return false;
47 if (myConstrainStripLength != src.myConstrainStripLength)
return false;
48 if (myMaxStripLength != src.myMaxStripLength)
return false;
67 myConstrainStripLength =
false;
69 graph->
evalOpParm(myConstrainStripLength, nodeidx,
"constrainstriplength", time, graph->
isDirect()?
nullptr:depnode);
70 myMaxStripLength = 10;
71 if (
true && ( (
true&&!(((getConstrainStripLength()==0)))) ) )
72 graph->
evalOpParm(myMaxStripLength, nodeidx,
"maxstriplength", time, graph->
isDirect()?
nullptr:depnode);
122 { doGetParmValue(idx, instance, value); }
124 { doGetParmValue(idx, instance, value); }
126 { doGetParmValue(idx, instance, value); }
128 { doGetParmValue(idx, instance, value); }
130 { doGetParmValue(idx, instance, value); }
132 { doGetParmValue(idx, instance, value); }
134 { doGetParmValue(idx, instance, value); }
136 { doGetParmValue(idx, instance, value); }
138 { doGetParmValue(idx, instance, value); }
140 { doGetParmValue(idx, instance, value); }
142 { doGetParmValue(idx, instance, value); }
144 template <
typename T>
151 if (idx.
size() != instance.
size()+1)
159 coerceValue(myConstrainStripLength, ( ( 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); }
187 { doSetParmValue(idx, instance, value); }
189 { doSetParmValue(idx, instance, value); }
205 if (fieldnum.
size() < 1)
212 return "constrainstriplength";
214 return "maxstriplength";
222 if (fieldnum.
size() < 1)
223 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, myConstrainStripLength);
348 saveData(os, myMaxStripLength);
361 loadData(is, myGroup);
362 loadData(is, myConstrainStripLength);
363 loadData(is, myMaxStripLength);
373 if (!thissop)
return getGroup();
375 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
383 if (!thissop)
return getConstrainStripLength();
385 OP_Utils::evalOpParm(result, thissop,
"constrainstriplength", cookparms.
getCookTime(), 0);
393 if (!thissop)
return getMaxStripLength();
395 OP_Utils::evalOpParm(result, thissop,
"maxstriplength", cookparms.
getCookTime(), 0);
401 bool myConstrainStripLength;
402 int64 myMaxStripLength;
static void saveData(std::ostream &os, fpreal64 v)
SOP_Node * getNode() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_StringHolder s)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLsizei const GLfloat * value
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const OP_Context & context() const
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
static void loadData(UT_IStream &is, UT_StringHolder &v)
SYS_FORCE_INLINE const char * buffer() const
An output stream object that owns its own string buffer storage.
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool opConstrainStripLength(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
T clampMinValue(fpreal minvalue, const T &src) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, bool v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
constexpr SYS_FORCE_INLINE T & x() noexcept
bool operator==(const SOP_TriStripParms &src) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, bool &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void setGroup(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & z() noexcept
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setConstrainStripLength(bool val)
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
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
bool isParmColorRamp(exint idx) const override
int64 opMaxStripLength(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
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_Vector4D &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool operator!=(const SOP_TriStripParms &src) const
void coerceValue(T &result, const S &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
DEP_MicroNode * depnode() const
bool getConstrainStripLength() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
Utility class for containing a color ramp.
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
virtual UT_StringHolder baseGetSignature() const
static void loadData(UT_IStream &is, int64 &v)
fpreal getCookTime() const
static void saveData(std::ostream &os, UT_Matrix2D v)
const char * findChar(int c) const
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void copyFrom(const OP_NodeParms *src) override
void loadFromOpSubclass(const LoadParms &loadparms) override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void setMaxStripLength(int64 val)
constexpr SYS_FORCE_INLINE T & y() noexcept
int64 getMaxStripLength() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE bool isstring() const
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Vector2D 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