45 if (myIndex != src.myIndex)
return false;
46 if (myKeepPacked != src.myKeepPacked)
return false;
61 graph->
evalOpParm(myIndex, nodeidx,
"index", time, 0);
64 graph->
evalOpParm(myKeepPacked, nodeidx,
"keeppacked", time, 0);
111 { doGetParmValue(idx, instance, value); }
113 { doGetParmValue(idx, instance, value); }
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 template <
typename T>
140 if (idx.
size() != instance.
size()+1)
155 { doSetParmValue(idx, instance, value); }
157 { doSetParmValue(idx, instance, value); }
159 { doSetParmValue(idx, instance, value); }
161 { doSetParmValue(idx, instance, value); }
163 { doSetParmValue(idx, instance, 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); }
191 if (fieldnum.
size() < 1)
206 if (fieldnum.
size() < 1)
207 return PARM_UNSUPPORTED;
252 loadData(is, rampdata);
270 int typelen = colon - data.
buffer();
284 {
int64 iv =
v; UTwrite(os, &iv); }
286 { UTwrite<fpreal64>(os, &
v); }
288 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
290 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
291 UTwrite<fpreal64>(os, &v.
z()); }
293 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
294 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
306 if (s) s->save(ostr);
308 saveData(os, result);
315 ostr << s->getDataTypeToken();
320 saveData(os, result);
324 void save(std::ostream &os)
const
328 saveData(os, myIndex);
329 saveData(os, myKeepPacked);
342 loadData(is, myIndex);
343 loadData(is, myKeepPacked);
353 if (!thissop)
return getIndex();
355 OP_Utils::evalOpParm(result, thissop,
"index", cookparms.
getCookTime(), 0);
363 if (!thissop)
return getKeepPacked();
365 OP_Utils::evalOpParm(result, thissop,
"keeppacked", cookparms.
getCookTime(), 0);
SOP_Node * getNode() const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
const OP_Context & context() const
constexpr SYS_FORCE_INLINE T & z() noexcept
SYS_FORCE_INLINE const char * buffer() const
An output stream object that owns its own string buffer storage.
**But if you need a result
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
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.
constexpr SYS_FORCE_INLINE T & z() noexcept
const OP_GraphProxy * graph() const
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 coerceValue(T &result, const S &src) const
DEP_MicroNode * depnode() const
Utility class for containing a color ramp.
constexpr SYS_FORCE_INLINE T & w() noexcept
fpreal getCookTime() const
const char * findChar(int c) const
constexpr SYS_FORCE_INLINE T & y() noexcept
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
constexpr SYS_FORCE_INLINE T & x() noexcept