31 mySetcomponents =
false;
33 myXgroup =
"@name=*.x"_UTsh;
34 myYgroup =
"@name=*.y"_UTsh;
35 myZgroup =
"@name=*.z"_UTsh;
36 myWgroup =
"@name=*.w"_UTsh;
50 if (mySetcomponents != src.mySetcomponents)
return false;
51 if (myComponents != src.myComponents)
return false;
52 if (myXgroup != src.myXgroup)
return false;
53 if (myYgroup != src.myYgroup)
return false;
54 if (myZgroup != src.myZgroup)
return false;
55 if (myWgroup != src.myWgroup)
return false;
56 if (myKeep != src.myKeep)
return false;
72 mySetcomponents =
false;
74 graph->
evalOpParm(mySetcomponents, nodeidx,
"setcomponents", time, graph->
isDirect()?
nullptr:depnode);
76 if (
true && ( (
true&&!(((getSetcomponents()==0)))) ) )
77 graph->
evalOpParm(myComponents, nodeidx,
"components", time, graph->
isDirect()?
nullptr:depnode);
78 myXgroup =
"@name=*.x"_UTsh;
80 graph->
evalOpParm(myXgroup, nodeidx,
"xgroup", time, graph->
isDirect()?
nullptr:depnode);
81 myYgroup =
"@name=*.y"_UTsh;
82 if (
true && ( (
true&&!(((getSetcomponents()==1)&&(
int64(getComponents())<2)))) ) )
83 graph->
evalOpParm(myYgroup, nodeidx,
"ygroup", time, graph->
isDirect()?
nullptr:depnode);
84 myZgroup =
"@name=*.z"_UTsh;
85 if (
true && ( (
true&&!(((getSetcomponents()==1)&&(
int64(getComponents())<3)))) ) )
86 graph->
evalOpParm(myZgroup, nodeidx,
"zgroup", time, graph->
isDirect()?
nullptr:depnode);
87 myWgroup =
"@name=*.w"_UTsh;
88 if (
true && ( (
true&&!(((getSetcomponents()==1)&&(
int64(getComponents())<4)))) ) )
89 graph->
evalOpParm(myWgroup, nodeidx,
"wgroup", time, graph->
isDirect()?
nullptr:depnode);
108 template <
typename T>
115 if (idx.
size() != instance.
size()+1)
154 { doGetParmValue(idx, instance, value); }
156 { doGetParmValue(idx, instance, value); }
158 { doGetParmValue(idx, instance, value); }
160 { doGetParmValue(idx, instance, value); }
162 { doGetParmValue(idx, instance, value); }
164 { doGetParmValue(idx, instance, value); }
166 { doGetParmValue(idx, instance, value); }
168 { doGetParmValue(idx, instance, value); }
170 { doGetParmValue(idx, instance, value); }
172 { doGetParmValue(idx, instance, value); }
174 { doGetParmValue(idx, instance, value); }
176 template <
typename T>
183 if (idx.
size() != instance.
size()+1)
213 { doSetParmValue(idx, instance, value); }
215 { doSetParmValue(idx, instance, value); }
217 { doSetParmValue(idx, instance, value); }
219 { doSetParmValue(idx, instance, value); }
221 { doSetParmValue(idx, instance, value); }
223 { doSetParmValue(idx, instance, value); }
225 { doSetParmValue(idx, instance, value); }
227 { doSetParmValue(idx, instance, value); }
229 { doSetParmValue(idx, instance, value); }
231 { doSetParmValue(idx, instance, value); }
233 { doSetParmValue(idx, instance, value); }
249 if (fieldnum.
size() < 1)
254 return "setcomponents";
274 if (fieldnum.
size() < 1)
275 return PARM_UNSUPPORTED;
330 loadData(is, rampdata);
348 int typelen = colon - data.
buffer();
362 {
int64 iv =
v; UTwrite(os, &iv); }
364 { UTwrite<fpreal64>(os, &
v); }
366 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
368 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
369 UTwrite<fpreal64>(os, &v.
z()); }
371 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
372 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
384 if (s) s->save(ostr);
386 saveData(os, result);
393 ostr << s->getDataTypeToken();
398 saveData(os, result);
402 void save(std::ostream &os)
const
406 saveData(os, mySetcomponents);
407 saveData(os, myComponents);
408 saveData(os, myXgroup);
409 saveData(os, myYgroup);
410 saveData(os, myZgroup);
411 saveData(os, myWgroup);
412 saveData(os, myKeep);
425 loadData(is, mySetcomponents);
426 loadData(is, myComponents);
427 loadData(is, myXgroup);
428 loadData(is, myYgroup);
429 loadData(is, myZgroup);
430 loadData(is, myWgroup);
431 loadData(is, myKeep);
441 if (!thissop)
return getSetcomponents();
443 OP_Utils::evalOpParm(result, thissop,
"setcomponents", cookparms.
getCookTime(), 0);
451 if (!thissop)
return getComponents();
453 OP_Utils::evalOpParm(result, thissop,
"components", cookparms.
getCookTime(), 0);
461 if (!thissop)
return getXgroup();
463 OP_Utils::evalOpParm(result, thissop,
"xgroup", cookparms.
getCookTime(), 0);
471 if (!thissop)
return getYgroup();
473 OP_Utils::evalOpParm(result, thissop,
"ygroup", cookparms.
getCookTime(), 0);
481 if (!thissop)
return getZgroup();
483 OP_Utils::evalOpParm(result, thissop,
"zgroup", cookparms.
getCookTime(), 0);
491 if (!thissop)
return getWgroup();
493 OP_Utils::evalOpParm(result, thissop,
"wgroup", cookparms.
getCookTime(), 0);
501 if (!thissop)
return getKeep();
503 OP_Utils::evalOpParm(result, thissop,
"keep", cookparms.
getCookTime(), 0);
508 bool mySetcomponents;
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool opSetcomponents(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
SOP_Node * getNode() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void setSetcomponents(bool val)
T clampMaxValue(fpreal maxvalue, const T &src) const
UT_StringHolder opYgroup(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
GLsizei const GLfloat * value
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setZgroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector2D v)
const OP_Context & context() const
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
An output stream object that owns its own string buffer storage.
const UT_StringHolder & getXgroup() const
**But if you need a result
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T clampMinValue(fpreal minvalue, const T &src) const
UT_StringHolder opXgroup(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void save(std::ostream &os) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
constexpr SYS_FORCE_INLINE T & x() noexcept
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
void loadFromOpSubclass(const LoadParms &loadparms) override
int64 getComponents() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setComponents(int64 val)
UT_StringHolder opWgroup(const SOP_NodeVerb::CookParms &cookparms) const
SOP_VolumeVectorJoinParms()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
const UT_StringHolder & getWgroup() const
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const OP_GraphProxy * graph() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
UT_StringHolder opZgroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
const UT_StringHolder & getYgroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setYgroup(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
GT_API const UT_StringHolder version
bool operator==(const SOP_VolumeVectorJoinParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const UT_StringHolder & getZgroup() const
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, int64 &v)
void coerceValue(T &result, const S &src) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
DEP_MicroNode * depnode() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
int64 opComponents(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
Utility class for containing a color ramp.
static void saveData(std::ostream &os, UT_StringHolder s)
constexpr SYS_FORCE_INLINE T & w() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
virtual UT_StringHolder baseGetSignature() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool operator!=(const SOP_VolumeVectorJoinParms &src) const
fpreal getCookTime() const
const char * findChar(int c) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setXgroup(const UT_StringHolder &val)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_Vector3D v)
bool isParmColorRamp(exint idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
bool load(UT_IStream &is)
void setWgroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, fpreal64 v)
bool getSetcomponents() const
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
OP_NodeParms & operator=(const OP_NodeParms &)=default
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept