23 namespace SOP_VolumeFFTEnums
59 if (myGroup != src.myGroup)
return false;
60 if (myCenterDC != src.myCenterDC)
return false;
61 if (myInvert != src.myInvert)
return false;
62 if (myNormalize != src.myNormalize)
return false;
63 if (mySlices != src.mySlices)
return false;
64 if (myVoxelplane != src.myVoxelplane)
return false;
80 graph->
evalOpParm(myGroup, nodeidx,
"group", time, 0);
83 graph->
evalOpParm(myCenterDC, nodeidx,
"centerdc", time, 0);
86 graph->
evalOpParm(myInvert, nodeidx,
"invert", time, 0);
89 graph->
evalOpParm(myNormalize, nodeidx,
"normalize", time, 0);
92 graph->
evalOpParm(mySlices, nodeidx,
"slices", time, 0);
94 if (
true && ( (
true&&!(((getSlices()==0)))) ) )
95 graph->
evalOpParm(myVoxelplane, nodeidx,
"voxelplane", time, 0);
111 template <
typename T>
118 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)
210 { doSetParmValue(idx, instance, value); }
212 { doSetParmValue(idx, instance, value); }
214 { doSetParmValue(idx, instance, value); }
216 { doSetParmValue(idx, instance, value); }
218 { doSetParmValue(idx, instance, value); }
220 { doSetParmValue(idx, instance, value); }
222 { doSetParmValue(idx, instance, value); }
224 { doSetParmValue(idx, instance, value); }
226 { doSetParmValue(idx, instance, value); }
228 { doSetParmValue(idx, instance, value); }
230 { doSetParmValue(idx, instance, value); }
246 if (fieldnum.
size() < 1)
269 if (fieldnum.
size() < 1)
270 return PARM_UNSUPPORTED;
306 {
for (
int r = 0;
r < 2;
r++)
for (
int c = 0; c < 2; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
308 {
for (
int r = 0;
r < 3;
r++)
for (
int c = 0; c < 3; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
310 {
for (
int r = 0;
r < 4;
r++)
for (
int c = 0; c < 4; c++) is.
bread<
fpreal64>(&v(
r, c), 1); }
323 loadData(is, rampdata);
341 int typelen = colon - data.
buffer();
355 {
int64 iv =
v; UTwrite(os, &iv); }
357 { UTwrite<fpreal64>(os, &
v); }
359 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
361 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
362 UTwrite<fpreal64>(os, &v.
z()); }
364 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
365 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
377 if (s) s->save(ostr);
379 saveData(os, result);
386 ostr << s->getDataTypeToken();
391 saveData(os, result);
395 void save(std::ostream &os)
const
399 saveData(os, myGroup);
400 saveData(os, myCenterDC);
401 saveData(os, myInvert);
402 saveData(os, myNormalize);
403 saveData(os, mySlices);
404 saveData(os, myVoxelplane);
417 loadData(is, myGroup);
418 loadData(is, myCenterDC);
419 loadData(is, myInvert);
420 loadData(is, myNormalize);
421 loadData(is, mySlices);
422 loadData(is, myVoxelplane);
432 if (!thissop)
return getGroup();
434 OP_Utils::evalOpParm(result, thissop,
"group", cookparms.
getCookTime(), 0);
442 if (!thissop)
return getCenterDC();
444 OP_Utils::evalOpParm(result, thissop,
"centerdc", cookparms.
getCookTime(), 0);
452 if (!thissop)
return getInvert();
454 OP_Utils::evalOpParm(result, thissop,
"invert", cookparms.
getCookTime(), 0);
462 if (!thissop)
return getNormalize();
464 OP_Utils::evalOpParm(result, thissop,
"normalize", cookparms.
getCookTime(), 0);
472 if (!thissop)
return getSlices();
474 OP_Utils::evalOpParm(result, thissop,
"slices", cookparms.
getCookTime(), 0);
482 if (!thissop)
return getVoxelplane();
484 OP_Utils::evalOpParm(result, thissop,
"voxelplane", cookparms.
getCookTime(), 0);
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Vector2I &v)
SOP_Node * getNode() const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setCenterDC(bool val)
T clampMaxValue(fpreal maxvalue, const T &src) const
static void saveData(std::ostream &os, bool v)
bool isParmColorRamp(exint idx) const override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool opInvert(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
const OP_Context & context() const
constexpr SYS_FORCE_INLINE T & z() noexcept
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, fpreal64 v)
**But if you need a result
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
Voxelplane getVoxelplane() const
T clampMinValue(fpreal minvalue, const T &src) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
exint getNestNumParms(TempIndex idx) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
constexpr SYS_FORCE_INLINE T & x() noexcept
void save(std::ostream &os) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
bool getNormalize() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Vector2D 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
static void saveData(std::ostream &os, UT_Matrix2D v)
Voxelplane opVoxelplane(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
static void saveData(std::ostream &os, UT_Vector4D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const OP_GraphProxy * graph() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool operator==(const SOP_VolumeFFTParms &src) const
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, UT_Matrix4D &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
bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const OP_NodeParms *src) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
void setVoxelplane(Voxelplane val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void coerceValue(T &result, const S &src) const
void setGroup(const UT_StringHolder &val)
DEP_MicroNode * depnode() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
Utility class for containing a color ramp.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
fpreal getCookTime() const
static void loadData(UT_IStream &is, int64 &v)
const char * findChar(int c) const
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool opSlices(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
bool opCenterDC(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const char * getNestParmName(TempIndex fieldnum) const override
bool operator!=(const SOP_VolumeFFTParms &src) const
static void loadData(UT_IStream &is, bool &v)
void setNormalize(bool val)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
const UT_StringHolder & getGroup() const
constexpr SYS_FORCE_INLINE T & x() noexcept
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override