23 namespace SOP_ConnectivityEnums
 
   34         using namespace UT::Literal;
 
   51         using namespace UT::Literal;
 
   70         myPrimitiveIncludeGroup = 
""_UTsh;
 
   71         myPointIncludeGroup = 
""_UTsh;
 
   72         myAttribname = 
"class"_UTsh;
 
   74         myPrefix = 
"piece"_UTsh;
 
   75         myCreatevarmap = 
false;
 
   77         mySeamgroup = 
""_UTsh;
 
   79         myUVAttrib = 
"uv"_UTsh;
 
   92         if (myConnecttype != src.myConnecttype) 
return false;
 
   93         if (myPrimitiveIncludeGroup != src.myPrimitiveIncludeGroup) 
return false;
 
   94         if (myPointIncludeGroup != src.myPointIncludeGroup) 
return false;
 
   95         if (myAttribname != src.myAttribname) 
return false;
 
   96         if (myAttribType != src.myAttribType) 
return false;
 
   97         if (myPrefix != src.myPrefix) 
return false;
 
   98         if (myCreatevarmap != src.myCreatevarmap) 
return false;
 
   99         if (myVarname != src.myVarname) 
return false;
 
  100         if (mySeamgroup != src.mySeamgroup) 
return false;
 
  101         if (myByuv != src.myByuv) 
return false;
 
  102         if (myUVAttrib != src.myUVAttrib) 
return false;
 
  122             graph->
evalOpParm(myConnecttype, nodeidx, 
"connecttype", time, graph->
isDirect()?
nullptr:depnode);
 
  123         myPrimitiveIncludeGroup = 
""_UTsh;
 
  125             graph->
evalOpParm(myPrimitiveIncludeGroup, nodeidx, 
"primincgroup", time, graph->
isDirect()?
nullptr:depnode);
 
  126         myPointIncludeGroup = 
""_UTsh;
 
  127         if (
true && ( (
true&&!(((
int64(getConnecttype())!=0)))) ) )
 
  128             graph->
evalOpParm(myPointIncludeGroup, nodeidx, 
"pointincgroup", time, graph->
isDirect()?
nullptr:depnode);
 
  129         myAttribname = 
"class"_UTsh;
 
  131             graph->
evalOpParm(myAttribname, nodeidx, 
"attribname", time, graph->
isDirect()?
nullptr:depnode);
 
  134             graph->
evalOpParm(myAttribType, nodeidx, 
"attribtype", time, graph->
isDirect()?
nullptr:depnode);
 
  135         myPrefix = 
"piece"_UTsh;
 
  136         if (
true && ( (
true&&!(((
int64(getAttribType())!=1))||((
int64(getAttribType())!=1)))) ) )
 
  137             graph->
evalOpParm(myPrefix, nodeidx, 
"prefix", time, graph->
isDirect()?
nullptr:depnode);
 
  138         myCreatevarmap = 
false;
 
  140             graph->
evalOpParm(myCreatevarmap, nodeidx, 
"createvarmap", time, graph->
isDirect()?
nullptr:depnode);
 
  142         if (
true && ( (
true&&!(((getCreatevarmap()==0)))) ) )
 
  143             graph->
evalOpParm(myVarname, nodeidx, 
"varname", time, graph->
isDirect()?
nullptr:depnode);
 
  144         mySeamgroup = 
""_UTsh;
 
  145         if (
true && ( (
true&&!(((
int64(getConnecttype())==0)))) ) )
 
  146             graph->
evalOpParm(mySeamgroup, nodeidx, 
"seamgroup", time, graph->
isDirect()?
nullptr:depnode);
 
  148         if (
true && ( (
true&&!(((
int64(getConnecttype())==0))||((getSeamgroup()!=
"")))) ) )
 
  150         myUVAttrib = 
"uv"_UTsh;
 
  151         if (
true && ( (
true&&!(((
int64(getConnecttype())==0))||((getSeamgroup()!=
""))||((getByuv()==0)))) ) )
 
  152             graph->
evalOpParm(myUVAttrib, nodeidx, 
"uvattrib", time, graph->
isDirect()?
nullptr:depnode);
 
  168     template <
typename T>
 
  175         if (idx.
size() != instance.
size()+1)
 
  180                 coerceValue(value, myConnecttype);
 
  183                 coerceValue(value, myPrimitiveIncludeGroup);
 
  186                 coerceValue(value, myPointIncludeGroup);
 
  189                 coerceValue(value, myAttribname);
 
  192                 coerceValue(value, myAttribType);
 
  195                 coerceValue(value, myPrefix);
 
  198                 coerceValue(value, myCreatevarmap);
 
  201                 coerceValue(value, myVarname);
 
  204                 coerceValue(value, mySeamgroup);
 
  207                 coerceValue(value, myByuv);
 
  210                 coerceValue(value, myUVAttrib);
 
  226     { doGetParmValue(idx, instance, value); }
 
  228     { doGetParmValue(idx, instance, value); }
 
  230     { doGetParmValue(idx, instance, value); }
 
  232     { doGetParmValue(idx, instance, value); }
 
  234     { doGetParmValue(idx, instance, value); }
 
  236     { doGetParmValue(idx, instance, value); }
 
  238     { doGetParmValue(idx, instance, value); }
 
  240     { doGetParmValue(idx, instance, value); }
 
  242     { doGetParmValue(idx, instance, value); }
 
  244     { doGetParmValue(idx, instance, value); }
 
  246     { doGetParmValue(idx, instance, value); }
 
  248     template <
typename T>
 
  255         if (idx.
size() != instance.
size()+1)
 
  260                 coerceValue(myConnecttype, clampMinValue(0,  clampMaxValue(1,  value ) ));
 
  263                 coerceValue(myPrimitiveIncludeGroup, ( ( value ) ));
 
  266                 coerceValue(myPointIncludeGroup, ( ( value ) ));
 
  269                 coerceValue(myAttribname, ( ( value ) ));
 
  272                 coerceValue(myAttribType, clampMinValue(0,  clampMaxValue(1,  value ) ));
 
  275                 coerceValue(myPrefix, ( ( value ) ));
 
  278                 coerceValue(myCreatevarmap, ( ( value ) ));
 
  281                 coerceValue(myVarname, ( ( value ) ));
 
  284                 coerceValue(mySeamgroup, ( ( value ) ));
 
  287                 coerceValue(myByuv, ( ( value ) ));
 
  290                 coerceValue(myUVAttrib, ( ( value ) ));
 
  297     { doSetParmValue(idx, instance, value); }
 
  299     { doSetParmValue(idx, instance, value); }
 
  301     { doSetParmValue(idx, instance, value); }
 
  303     { doSetParmValue(idx, instance, value); }
 
  305     { doSetParmValue(idx, instance, value); }
 
  307     { doSetParmValue(idx, instance, value); }
 
  309     { doSetParmValue(idx, instance, value); }
 
  311     { doSetParmValue(idx, instance, value); }
 
  313     { doSetParmValue(idx, instance, value); }
 
  315     { doSetParmValue(idx, instance, value); }
 
  317     { doSetParmValue(idx, instance, value); }
 
  333         if (fieldnum.
size() < 1)
 
  338                 return "connecttype";
 
  340                 return "primincgroup";
 
  342                 return "pointincgroup";
 
  350                 return "createvarmap";
 
  366         if (fieldnum.
size() < 1)
 
  367             return PARM_UNSUPPORTED;
 
  394         return PARM_UNSUPPORTED;
 
  430         loadData(is, rampdata);
 
  448                 int             typelen = colon - data.
buffer();
 
  462     { 
int64 iv = 
v; UTwrite(os, &iv); }
 
  464     { UTwrite<fpreal64>(os, &
v); }
 
  466     { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
 
  468     { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
 
  469       UTwrite<fpreal64>(os, &v.
z()); }
 
  471     { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
 
  472       UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
 
  484         if (s) s->save(ostr);
 
  486         saveData(os, result);
 
  493             ostr << s->getDataTypeToken();
 
  498         saveData(os, result);
 
  502     void         save(std::ostream &os)
 const 
  506         saveData(os, myConnecttype);
 
  507         saveData(os, myPrimitiveIncludeGroup);
 
  508         saveData(os, myPointIncludeGroup);
 
  509         saveData(os, myAttribname);
 
  510         saveData(os, myAttribType);
 
  511         saveData(os, myPrefix);
 
  512         saveData(os, myCreatevarmap);
 
  513         saveData(os, myVarname);
 
  514         saveData(os, mySeamgroup);
 
  515         saveData(os, myByuv);
 
  516         saveData(os, myUVAttrib);
 
  529         loadData(is, myConnecttype);
 
  530         loadData(is, myPrimitiveIncludeGroup);
 
  531         loadData(is, myPointIncludeGroup);
 
  532         loadData(is, myAttribname);
 
  533         loadData(is, myAttribType);
 
  534         loadData(is, myPrefix);
 
  535         loadData(is, myCreatevarmap);
 
  536         loadData(is, myVarname);
 
  537         loadData(is, mySeamgroup);
 
  538         loadData(is, myByuv);
 
  539         loadData(is, myUVAttrib);
 
  549         if (!thissop) 
return getConnecttype();
 
  551         OP_Utils::evalOpParm(result, thissop, 
"connecttype", cookparms.
getCookTime(), 0);
 
  559         if (!thissop) 
return getPrimitiveIncludeGroup();
 
  561         OP_Utils::evalOpParm(result, thissop, 
"primincgroup", cookparms.
getCookTime(), 0);
 
  569         if (!thissop) 
return getPointIncludeGroup();
 
  571         OP_Utils::evalOpParm(result, thissop, 
"pointincgroup", cookparms.
getCookTime(), 0);
 
  579         if (!thissop) 
return getAttribname();
 
  581         OP_Utils::evalOpParm(result, thissop, 
"attribname", cookparms.
getCookTime(), 0);
 
  589         if (!thissop) 
return getAttribType();
 
  591         OP_Utils::evalOpParm(result, thissop, 
"attribtype", cookparms.
getCookTime(), 0);
 
  599         if (!thissop) 
return getPrefix();
 
  601         OP_Utils::evalOpParm(result, thissop, 
"prefix", cookparms.
getCookTime(), 0);
 
  609         if (!thissop) 
return getCreatevarmap();
 
  611         OP_Utils::evalOpParm(result, thissop, 
"createvarmap", cookparms.
getCookTime(), 0);
 
  619         if (!thissop) 
return getVarname();
 
  621         OP_Utils::evalOpParm(result, thissop, 
"varname", cookparms.
getCookTime(), 0);
 
  629         if (!thissop) 
return getSeamgroup();
 
  631         OP_Utils::evalOpParm(result, thissop, 
"seamgroup", cookparms.
getCookTime(), 0);
 
  639         if (!thissop) 
return getByuv();
 
  641         OP_Utils::evalOpParm(result, thissop, 
"byuv", cookparms.
getCookTime(), 0);
 
  649         if (!thissop) 
return getUVAttrib();
 
  651         OP_Utils::evalOpParm(result, thissop, 
"uvattrib", cookparms.
getCookTime(), 0);
 
const UT_StringHolder & getAttribname() const 
 
void save(std::ostream &os) const 
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
 
static void saveData(std::ostream &os, UT_Vector2D v)
 
SOP_Node * getNode() const 
 
static void saveData(std::ostream &os, int64 v)
 
bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const 
 
void setPointIncludeGroup(const UT_StringHolder &val)
 
static void loadData(UT_IStream &is, UT_Vector3I &v)
 
bool isParmColorRamp(exint idx) const override
 
static void loadData(UT_IStream &is, bool &v)
 
static void saveData(std::ostream &os, UT_Matrix2D v)
 
exint bread(int32 *buffer, exint asize=1)
 
void setConnecttype(Connecttype val)
 
GT_API const UT_StringHolder time
 
constexpr SYS_FORCE_INLINE T & y() noexcept
 
const UT_StringHolder & getPrimitiveIncludeGroup() const 
 
void setCreatevarmap(bool val)
 
GLsizei const GLfloat * value
 
void setPrimitiveIncludeGroup(const UT_StringHolder &val)
 
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
 
bool load(UT_IStream &is)
 
const OP_Context & context() const 
 
constexpr SYS_FORCE_INLINE T & z() noexcept
 
SYS_FORCE_INLINE const char * buffer() const 
 
ParmType getNestParmType(TempIndex fieldnum) const override
 
static void saveData(std::ostream &os, fpreal64 v)
 
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const 
 
An output stream object that owns its own string buffer storage. 
 
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
 
**But if you need a result
 
static void loadData(UT_IStream &is, UT_Matrix2D &v)
 
static void saveData(std::ostream &os, UT_Matrix4D v)
 
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
 
static void loadData(UT_IStream &is, UT_Vector2D &v)
 
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer. 
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
 
Connecttype opConnecttype(const SOP_NodeVerb::CookParms &cookparms) const 
 
constexpr SYS_FORCE_INLINE T & x() noexcept
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
 
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
 
constexpr SYS_FORCE_INLINE T & x() noexcept
 
UT_StringHolder opPointIncludeGroup(const SOP_NodeVerb::CookParms &cookparms) const 
 
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
 
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
 
static void loadData(UT_IStream &is, UT_Vector2I &v)
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
 
bool operator==(const SOP_ConnectivityParms &src) const 
 
void setSeamgroup(const UT_StringHolder &val)
 
bool getCreatevarmap() const 
 
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
 
void setUVAttrib(const UT_StringHolder &val)
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
 
static void saveData(std::ostream &os, UT_Matrix3D v)
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
 
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 setAttribType(AttribType val)
 
static void loadData(UT_IStream &is, UT_Vector4I &v)
 
const OP_GraphProxy * graph() const 
 
const UT_StringHolder & getPointIncludeGroup() const 
 
UT_StringHolder opPrimitiveIncludeGroup(const SOP_NodeVerb::CookParms &cookparms) const 
 
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
 
static void saveData(std::ostream &os, UT_StringHolder s)
 
static void saveData(std::ostream &os, bool v)
 
exint getNestNumParms(TempIndex idx) const override
 
SYS_FORCE_INLINE UT_StringHolder getToken(Connecttype enum_value)
 
static void loadData(UT_IStream &is, UT_Vector3D &v)
 
static void loadData(UT_IStream &is, UT_Vector4D &v)
 
const UT_StringHolder & getSeamgroup() const 
 
UT_StringHolder opUVAttrib(const SOP_NodeVerb::CookParms &cookparms) const 
 
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
 
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
 
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const 
 
bool operator!=(const SOP_ConnectivityParms &src) const 
 
void saveBinary(std::ostream &os) const 
Save string to binary stream. 
 
const UT_StringHolder & getVarname() const 
 
GT_API const UT_StringHolder version
 
UT_StringHolder opVarname(const SOP_NodeVerb::CookParms &cookparms) const 
 
void loadFromOpSubclass(const LoadParms &loadparms) override
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
 
bool opByuv(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_SharedPtr< UT_Ramp > s)
 
const char * getNestParmName(TempIndex fieldnum) const override
 
AttribType opAttribType(const SOP_NodeVerb::CookParms &cookparms) const 
 
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
 
const UT_StringHolder & getUVAttrib() const 
 
DEP_MicroNode * depnode() const 
 
LeafData & operator=(const LeafData &)=delete
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
 
Utility class for containing a color ramp. 
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
 
static void saveData(std::ostream &os, PRM_DataItemHandle s)
 
static void saveData(std::ostream &os, UT_Vector4D v)
 
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
 
constexpr SYS_FORCE_INLINE T & w() noexcept
 
virtual UT_StringHolder baseGetSignature() const 
 
static void saveData(std::ostream &os, UT_Vector3D v)
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
 
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
 
fpreal getCookTime() const 
 
AttribType getAttribType() const 
 
const char * findChar(int c) const 
 
static void loadData(UT_IStream &is, int64 &v)
 
void setPrefix(const UT_StringHolder &val)
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
 
Connecttype getConnecttype() const 
 
constexpr SYS_FORCE_INLINE T & y() noexcept
 
void setAttribname(const UT_StringHolder &val)
 
static void loadData(UT_IStream &is, UT_Matrix4D &v)
 
void setVarname(const UT_StringHolder &val)
 
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
 
const UT_StringHolder & getPrefix() const 
 
virtual bool isDirect() const =0
Direct proxies mirror actual nodes: 
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
 
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
 
static void loadData(UT_IStream &is, UT_Matrix3D &v)
 
static void loadData(UT_IStream &is, UT_StringHolder &v)
 
constexpr SYS_FORCE_INLINE T & y() noexcept
 
SYS_FORCE_INLINE bool isstring() const 
 
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
 
UT_StringHolder opPrefix(const SOP_NodeVerb::CookParms &cookparms) const 
 
static void loadData(UT_IStream &is, fpreal64 &v)
 
UT_StringHolder opSeamgroup(const SOP_NodeVerb::CookParms &cookparms) const 
 
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
 
void copyFrom(const OP_NodeParms *src) override
 
constexpr SYS_FORCE_INLINE T & x() noexcept