45 if (myIndex != src.myIndex)
return false;
46 if (myKeepPacked != src.myKeepPacked)
return false;
67 graph->
evalOpParm(myKeepPacked, nodeidx,
"keeppacked", 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)
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, myIndex);
332 saveData(os, myKeepPacked);
345 loadData(is, myIndex);
346 loadData(is, myKeepPacked);
356 if (!thissop)
return getIndex();
358 OP_Utils::evalOpParm(result, thissop,
"index", cookparms.
getCookTime(), 0);
366 if (!thissop)
return getKeepPacked();
368 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
GLsizei const GLfloat * value
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
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
virtual UT_StringHolder baseGetSignature() const
fpreal getCookTime() const
const char * findChar(int c) const
constexpr SYS_FORCE_INLINE T & y() noexcept
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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