32 myPackedfragments =
false;
45 if (myGroup != src.myGroup)
return false;
46 if (myPackedfragments != src.myPackedfragments)
return false;
65 myPackedfragments =
false;
67 graph->
evalOpParm(myPackedfragments, nodeidx,
"packedfragments", time, graph->
isDirect()?
nullptr:depnode);
114 { doGetParmValue(idx, instance, value); }
116 { doGetParmValue(idx, instance, value); }
118 { doGetParmValue(idx, instance, value); }
120 { doGetParmValue(idx, instance, value); }
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 template <
typename T>
143 if (idx.
size() != instance.
size()+1)
158 { doSetParmValue(idx, instance, value); }
160 { doSetParmValue(idx, instance, value); }
162 { doSetParmValue(idx, instance, value); }
164 { doSetParmValue(idx, instance, value); }
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); }
194 if (fieldnum.
size() < 1)
201 return "packedfragments";
209 if (fieldnum.
size() < 1)
210 return PARM_UNSUPPORTED;
255 loadData(is, rampdata);
273 int typelen = colon - data.
buffer();
287 {
int64 iv =
v; UTwrite(os, &iv); }
289 { UTwrite<fpreal64>(os, &
v); }
291 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
293 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
294 UTwrite<fpreal64>(os, &v.
z()); }
296 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
297 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
309 if (s) s->save(ostr);
311 saveData(os, result);
318 ostr << s->getDataTypeToken();
323 saveData(os, result);
327 void save(std::ostream &os)
const
331 saveData(os, myGroup);
332 saveData(os, myPackedfragments);
345 loadData(is, myGroup);
346 loadData(is, myPackedfragments);
356 if (!thissop)
return getGroup();
358 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
366 if (!thissop)
return getPackedfragments();
368 OP_Utils::evalOpParm(result, thissop,
"packedfragments", cookparms.
getCookTime(), 0);
374 bool myPackedfragments;
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
exint getNestNumParms(TempIndex idx) const override
void setPackedfragments(bool val)
static void loadData(UT_IStream &is, bool &v)
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
SOP_Node * getNode() const
static void loadData(UT_IStream &is, int64 &v)
const UT_StringHolder & getGroup() const
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, int64 v)
GLsizei const GLfloat * value
const OP_Context & context() const
constexpr SYS_FORCE_INLINE T & z() noexcept
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
**But if you need a result
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
constexpr SYS_FORCE_INLINE T & x() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
bool operator!=(const SOP_RepackParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
const OP_GraphProxy * graph() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool operator==(const SOP_RepackParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
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.
GT_API const UT_StringHolder version
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool load(UT_IStream &is)
void coerceValue(T &result, const S &src) const
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Matrix2D v)
DEP_MicroNode * depnode() const
bool getPackedfragments() const
Utility class for containing a color ramp.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
virtual UT_StringHolder baseGetSignature() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
fpreal getCookTime() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
const char * findChar(int c) const
bool opPackedfragments(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept