20 using namespace UT::Literal;
43 if (myGroup != src.myGroup)
return false;
44 if (myDecay != src.myDecay)
return false;
45 if (myOutside != src.myOutside)
return false;
60 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
63 graph->
evalOpParm(myDecay, nodeidx,
"decay", time, 0);
66 graph->
evalOpParm(myOutside, nodeidx,
"outside", time, 0);
94 coerceValue(value, myGroup);
97 coerceValue(value, myDecay);
100 coerceValue(value, myOutside);
107 { doGetParmValue(idx, instance, value); }
109 { doGetParmValue(idx, instance, value); }
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 template <
typename T>
136 if (idx.
size() != instance.
size()+1)
141 coerceValue(myGroup, value);
144 coerceValue(myDecay, value);
147 coerceValue(myOutside, value);
154 { doSetParmValue(idx, instance, value); }
156 { doSetParmValue(idx, instance, value); }
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); }
190 if (fieldnum.
size() < 1)
207 if (fieldnum.
size() < 1)
208 return PARM_UNSUPPORTED;
219 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, myDecay);
333 saveData(os, myOutside);
346 loadData(is, myGroup);
347 loadData(is, myDecay);
348 loadData(is, myOutside);
358 if (!thissop)
return getGroup();
360 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
368 if (!thissop)
return getDecay();
370 OP_Utils::evalOpParm(result, thissop,
"decay", cookparms.
getCookTime(), 0);
378 if (!thissop)
return getOutside();
380 OP_Utils::evalOpParm(result, thissop,
"outside", cookparms.
getCookTime(), 0);
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, bool v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
SOP_Node * getNode() const
bool operator!=(const SOP_VolumeFeatherParms &src) const
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 getDecay() const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
GLuint const GLfloat * val
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
ParmType getNestParmType(TempIndex fieldnum) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const SOP_GraphProxy * graph() const
fpreal64 opDecay(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
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, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, bool &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_StringHolder s)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
bool operator==(const SOP_VolumeFeatherParms &src) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
bool opOutside(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) 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 buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setDecay(fpreal64 val)
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, fpreal64 v)
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const char * getNestParmName(TempIndex fieldnum) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
Utility class for containing a color ramp.
void setOutside(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLdouble GLdouble GLdouble r
void copyFrom(const SOP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
fpreal getCookTime() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const char * findChar(int c) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool load(UT_IStream &is)
GLsizei const GLfloat * value
~SOP_VolumeFeatherParms() override
static void loadData(UT_IStream &is, UT_Vector2D &v)
const OP_Context & context() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override