14 #ifndef __SOP_Node_h__
15 #define __SOP_Node_h__
50 class SOP_SoftLockData;
53 class sop_AttributeEvaluator;
102 #define SOP_LOCALVAR_START 1000000 // Start of local variable indices
126 void *
data=0)
override;
134 SOP_Node *getOutputSop(
int outputidx,
135 bool fallback_to_display_render =
true);
143 const char *
name)
override;
145 const char *
name)
override;
151 void setVariableOrder(
int detail,
int prim,
155 int getVariableOrder(
int level)
const;
157 int getVariablePrecedence(
int var)
const;
170 int outputidx)
override;
173 void clearLocalVars();
174 void updateLocalVarOffsets();
182 void clearAttributeEvalCaches();
191 theGlobalCaptOverride = flag;
195 return theGlobalCaptOverride;
202 bool setupLocalVars();
207 void resetLocalVarRefs();
209 void setCurGdh(
int index,
211 void clearCurGdh(
int index);
214 void setCurPoint(
int index,
216 void clearCurPoint(
int index);
217 void setCurVertex(
int index,
219 void clearCurVertex(
int index);
220 void setCurPrim(
int index,
222 void clearCurPrim(
int index);
223 void setCurVertexNum(
int index,
225 void clearCurVertexNum(
int index);
252 operator int()
const {
return myIndex; }
260 void addGenericVariable(
const char *varname,
262 const AttribTupleIndexArg &tuple_idx,
265 void addGenericVariable(
const char *varname,
266 const char *attribname,
267 const AttribTupleIndexArg &tuple_idx,
270 void addGenericVariable(
const char *varname,
277 void addGenericVariable(
const GU_Detail *gdp,
280 const char *attribname,
281 const AttribTupleIndexArg &tuple_idx,
284 void addGenericVariable(
int gpdidx,
289 void addSpecificVariable(
const GU_Detail *gdp,
292 const char *attribname,
293 const AttribTupleIndexArg &tuple_idx,
297 void addSpecificVariable(
int gpidx,
304 static int addCustomVariableCallback(
const char *attr,
305 const char *varname,
void *
data);
306 void addCustomVariable(
const char *attr,
307 const char *varname);
309 void cacheVarPtBox(
int gpdidx);
310 void cacheVarPrimBox(
int gpdidx);
344 {
UT_ASSERT(index == 0 || index == 1);
return myCurVtxNum[
index]; }
350 {
UT_ASSERT(local_var_gdp_index == 0 || local_var_gdp_index == 1);
352 return myCurVtxOff[local_var_gdp_index]; }
358 {
UT_ASSERT(index == 0 || index == 1);
if (!myCurGdp[index])
return 0;
return myCurGdp[
index]->getGEOPrimitive(myCurPrimOff[index]); }
367 cacheVarPtBox(index);
368 return myCurPtBox[
index];
375 cacheVarPrimBox(index);
376 return myCurPrimBox[
index];
381 void setPivotParmToGroupCentroid(
OP_Context &context);
385 void getGroupMenuHeader(
int sourcenum,
const char * title,
389 const char *prim_header,
390 const char *pt_header,
391 const char *edge_header,
392 const char *vertex_header,
393 PRM_Name *menuEntries,
int themenusize,
395 bool includeselection,
const PRM_Parm *parm,
396 bool include_name_attrib =
true);
399 const char * edge_header,
400 const char *prim_header,
const char *pt_header,
401 const char *vertex_header,
402 PRM_Name *menuEntries,
int themenusize,
403 bool addprim,
int start,
406 static int buildSopBreakpointGroups(
const GU_Detail *
src,
407 const char * brkpt_header,
408 const char * prim_header,
const char *pt_header,
409 const char * edge_header,
410 const char *vertex_header,
411 PRM_Name *choicenames,
int menusize,
412 bool addprim,
int start,
418 static void buildGroupsFromSop(
SOP_Node * src_sop,
422 PRM_Name *menuEntries,
int thelistsize,
423 bool include_name_attrib =
true);
425 static int buildEdgeGroupsFromSop(
SOP_Node * src_sop,
428 bool addprim,
int start,
429 PRM_Name *menuEntries,
int thelistsize );
431 static int buildBreakpointGroupsFromSop(
SOP_Node * src_sop,
434 bool addprim,
int start,
435 PRM_Name *menuEntries,
int thelistsize );
437 void buildNamedPrims(
int thesourcenum,
442 bool numberedvolumes);
444 void buildInputGroups(
int thesourcenum,
448 bool includeselection,
451 int buildInputEdgeGroups(
int sourcenum,
452 PRM_Name *choicenames,
int menusize,
453 bool addprim,
int start,
456 int buildInputBreakpointGroups(
int sourcenum,
457 PRM_Name *choicenames,
int menusize,
458 bool addprim,
int start,
461 OP_LockTypes setModelLock(OP_LockTypes lock_type,
462 void *modeler =
nullptr,
463 bool allow_softlock_promotion =
false,
464 UT_Undo *undo =
nullptr)
override;
469 void *getCookedData(
const OP_Context &ctx)
override;
488 const SOP_Guide *getCookedGuide1()
const;
489 const SOP_Guide *getCookedGuide2()
const;
519 {
return GuideType::VIEWPORT; }
532 void unlockInput(
unsigned idx)
override;
534 void unlockInputs()
override;
537 static void initializeExpressions();
554 bool forceValidGroupPrefix(
UT_String &prefix,
557 void expandGroupMask(
const char *
pattern,
564 { expandGroupMask(pattern, outNames, type, gdp); }
571 bool allow_numeric =
true,
572 bool ordered =
false,
583 {
return parsePrimitiveGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
586 const GroupCreator &creator,
587 bool allow_numeric =
true,
588 bool ordered =
false,
589 bool strict =
false);
595 bool strict =
false);
597 {
return parsePrimitiveGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
600 const GroupCreator &creator,
601 bool allow_numeric =
true,
602 bool ordered =
false,
613 {
return parsePointGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
616 const GroupCreator &creator,
617 bool allow_numeric =
true,
618 bool ordered =
false,
619 bool strict =
false);
625 bool strict =
false);
627 {
return parsePointGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
629 const GA_EdgeGroup *parseEdgeGroups(
const char *pattern,
635 {
return parseEdgeGroups(pattern, (
const GU_Detail *)gdp); }
640 {
return parseEdgeGroupsCopy(pattern, (
const GU_Detail *)gdp); }
647 {
return parseBreakpointGroups(pattern, (
const GU_Detail *)gdp); }
652 {
return parseBreakpointGroupsCopy(pattern,(
const GU_Detail *)gdp);}
659 {
return parseVertexGroups(pattern, (
const GU_Detail *)gdp); }
664 {
return parseVertexGroupsCopy(pattern, (
const GU_Detail *)gdp); }
666 const GA_Group *parseAllGroups(
const char *pattern,
667 const GroupCreator &creator,
668 bool allow_numeric =
true,
669 bool ordered =
false,
673 const GA_Group *parseAllGroups(
const char *pattern,
679 {
return parseAllGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
681 GA_Group *parseAllGroupsCopy(
const char *pattern,
682 const GroupCreator &creator,
683 bool allow_numeric =
true,
684 bool ordered =
false,
688 GA_Group *parseAllGroupsCopy(
const char *pattern,
694 {
return parseAllGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
703 {
return myGroupParse.destroyAdhocGroup(group); }
705 { myGroupParse.destroyAdhocGroups(); }
707 { myGroupParse.destroyAdhocGroups(g); }
714 void updateUserSelectionOnDetail();
727 void clearNodeSelectionSet();
733 void copyCookedSelectionToUserSelection(
OP_Context *context = 0);
745 bool add_to_sel = false);
749 bool add_to_sel = false);
752 bool add_to_sel = false);
754 bool prim_sel = true,
755 bool add_to_sel = false);
756 void selectPoint(
GA_Offset ptoff,
bool point_sel = true,
757 bool add_to_sel = false);
758 void selectFrom(const
GEO_Primitive &prim,
bool sel_prim = true,
759 bool add_to_sel = false);
760 void selectPointsFrom(
GA_Offset ptoff,
bool point_sel = true,
761 bool add_to_sel = false);
763 bool add_to_sel = false);
768 void selectInputGroup(const
GA_Group *group,
773 void selectInputGroup(const
GA_Group *group,
778 void clearSelection();
793 bool destroySelection();
796 bool selectionEnabled()
const
798 return getHighlight();
803 return myHasCookedSelection;
830 static const
char *getGroupTypeName(
GA_GroupType gagrouptype, const
char *guess = "guess");
834 virtual
void resetSimulation () {}
838 void addInstanceReference(
SOP_Node *node);
839 void clearInstanceReference(
SOP_Node *node);
861 virtual void makePreserveRequest();
866 void getNodeSpecificInfoText(
OP_Context &context,
901 fpreal getW()
const override;
903 fpreal getH()
const override;
917 void setUniqueId(
int id)
override;
918 void clearUniqueId()
override;
927 {
return myGroupParse.removeAdhocGroup(group); }
929 { myGroupParse.removeAdhocGroups(); }
938 int &copied_input)
override;
960 int alone = 0)
override;
962 void notifyGroupParmListeners(
963 int parm_index,
int group_type_index,
985 bool alone =
false,
bool do_selection =
true,
987 int group_type_index = -1,
988 bool allow_reference =
true,
989 bool ordered =
false,
990 bool detached =
true,
991 int input_index = 0);
994 bool alone,
bool do_selection,
996 int group_type_index,
997 bool allow_reference,
999 const GroupCreator &creator);
1004 int alone = 0,
bool do_selection =
true,
1005 int input_index = 0,
int parm_index = 0,
1006 int group_type_index = -1,
1007 bool allow_reference =
true,
1008 bool fetchgdp =
true,
1014 bool alone =
false,
bool do_selection =
true,
1016 int group_type_index = -1,
1017 bool allow_reference =
true,
1018 bool ordered =
false,
1019 bool detached =
true,
1020 int input_index = 0);
1023 bool alone,
bool do_selection,
1025 int group_type_index,
1026 bool allow_reference,
1028 const GroupCreator &creator);
1033 int alone = 0,
bool do_selection =
true,
1034 int input_index = 0,
int parm_index = 0,
1035 int group_type_index = -1,
1036 bool allow_reference =
true,
1037 bool fetchgdp =
true,
1043 bool alone =
false,
bool do_selection =
true,
1045 int group_type_index = -1,
1046 bool allow_reference =
true,
1047 int input_index = 0);
1050 bool alone,
bool do_selection,
1052 int group_type_index,
1053 bool allow_reference,
1059 int alone = 0,
bool do_selection =
true,
1060 int input_index = 0,
int parm_index = 0,
1061 int group_type_index = -1,
1066 bool allow_reference =
false,
1067 bool fetchgdp =
true,
1076 bool alone =
false,
bool do_selection =
true,
1078 int group_type_index = -1,
1080 bool allow_reference =
true,
1081 bool is_default_prim =
true,
1082 bool ordered =
false,
1083 bool detached =
true,
1084 int input_index = 0);
1087 bool alone,
bool do_selection,
1089 int group_type_index,
1091 bool allow_reference,
1092 bool is_default_prim,
1094 const GroupCreator &creator);
1099 int alone = 0,
bool do_selection =
true,
1100 int input_index = 0,
int parm_index = 0,
1101 int group_type_index = -1,
1102 bool allow_reference =
false,
1103 bool is_default_prim =
true,
1104 bool fetchgdp =
true,
1114 bool allow_reference,
bool is_default_prim,
1115 bool ordered=
false);
1118 bool allow_reference,
bool is_default_prim);
1127 bool alone,
int input_index,
bool detached,
1128 GroupCreator &creator);
1131 bool alone,
int input_index,
1136 void cookInputGroupsEpilogue(
int parm_index,
int group_type_index,
1138 int input_index,
bool fetchgdp,
bool alone);
1141 void inputConnectChanged(
int which_input)
override;
1151 {
return inputGeo(index); }
1174 { getLockedErrorManager()->systemError(msg);}
1176 const char *msg = 0)
1177 { getLockedErrorManager()->commonError(what, msg);}
1179 const char *msg = 0)
1180 { getLockedErrorManager()->commonWarning(what, msg);}
1267 const char *group_type_parm = NULL,
1268 int input_index = 0,
1270 const char *assoc_groups = NULL,
1271 GroupSelectAsOrdered ordered =
1272 GroupSelectAsOrdered::AUTO,
1273 const char *use_name_attr=
nullptr,
1274 const char *select_script=
nullptr);
1278 const char *group_type_parm = NULL,
1279 int input_index = 0,
1281 const char *assoc_groups = NULL,
1282 GroupSelectAsOrdered ordered =
1283 GroupSelectAsOrdered::AUTO,
1284 const char *use_name_attr=
nullptr,
1285 const char *select_script=
nullptr);
1294 void pickPrimitivesUsingPathAttribute(
1297 const char *stringparm,
1299 const char *path_attrib=
"path",
1300 bool use_packed_names=
true);
1303 void pickPrimitivesUsingPathAttribute(
1304 const char *stringparm,
1307 const char *path_attrib=
"path",
1308 bool use_packed_names=
true);
1312 static GA_Range getPickedRangeUsingPathAttribute(
1315 const char *pickedstring,
1316 const char *path_attrib=
"path",
1317 bool use_packed_names=
true);
1321 int parseGroups(
const char *pattern,
1325 bool strict =
false);
1328 int parseGroupsCopy(
const char *pattern,
1334 bool strict =
false,
1352 int fillAttribNameMenu(
PRM_Name *menu_entries,
1357 void *approve_data = NULL,
1358 bool decode_tokens =
false);
1361 static void removeMenuDuplicates(
PRM_Name *menuEntries,
int size);
1366 void getVectorAttribs(
const char * attrib_names,
1370 static void getVectorAttribs(
GU_Detail *gdp,
1371 const char * attrib_names,
1378 const char * attrib_string,
1387 const char *l)
override;
1395 int forEachGroupMatchingMask(
1396 const char *pattern,
1397 GroupOperation operation,
1401 bool maintainorder=
false);
1403 static int invokeForEachGroupMatchingMask(
1405 const char *pattern,
1408 bool maintainorder);
1415 static void invokeForSubdivisionOfPrimitiveGroup(
1419 int opstep,
const char *oplabel,
1423 void subdividePrimitiveGroup(
1424 GroupOperation operation,
1426 void *
data,
int optype,
1427 int opstep,
const char *oplabel,
1429 void subdivideMixPrimitiveGroup(
1430 GroupOperation operation,
1432 void *
data,
int optype,
1433 int opstep,
const char *oplabel,
1435 void subdividePointGroup(
1436 GroupOperation operation,
1438 void *
data,
int optype,
1439 int opstep,
const char *oplabel,
1446 const char *p=
"adhoc")
1447 {
return myGroupParse.createPrimitiveGroup(geo, p); }
1449 const char *p=
"adhoc")
1450 {
return myGroupParse.createPointGroup(geo, p); }
1452 const char *p=
"adhoc")
1453 {
return myGroupParse.createEdgeGroup(geo, p); }
1455 const char *p=
"adhoc")
1456 {
return myGroupParse.createVertexGroup(geo, p); }
1459 return myGroupParse.appendAdhocGroup(
1476 return myGroupParse.createBreakpointGroup(geo);
1486 void clearInstance(
int duplicate = 0);
1488 bool hasInstances();
1490 int countInstances();
1492 void clearAllInstances();
1511 return duplicateSource(index, context, gdp,
true);
1528 bool wattrib =
true,
1532 return duplicatePointSource(index, ctx, gdp, 1,
1539 bool copyPointPosFromSource(
1545 int *changed = 0,
bool force=
false);
1554 void resetChangedSourceFlags();
1555 void resetChangedSourceFlags(
int which_input);
1575 return myInputChangeHelper.useInput(
1576 *
this, idx, changed, force);
1579 void deleteCookedData()
override;
1580 int deleteNodeData(
void *)
override;
1583 void convertPivotAboutGroupCentroid(
1587 void convertPivotAboutGroupCentroid(
1589 const char *pivot_parm_name,
1604 const char *pathPrefix,
1609 const char *
path=0)
override;
1636 OP_ERROR saveIntrinsic(std::ostream &os,
1640 short class_id,
short sig,
1641 const char *
path=0)
override;
1642 bool loadPacket(
UT_IStream &is,
const char *token,
1643 const char *
path=0)
override;
1645 void clearAndDestroy()
override;
1647 int saveCookedData(
const char *,
1649 int saveCookedData(std::ostream &os,
1651 int binary = 0)
override;
1653 const char *
path=0)
override;
1660 const char *getFileExtension(
int binary)
const override;
1662 bool softLockable(
const GU_Detail &unmodelled_gdp,
1669 SOP_SoftLockData *old_slockdata=0);
1672 void *myVisualizeCallbackData;
1681 virtual void unloadDataHack();
1686 bool unloadData()
override;
1689 void clearVerbCache();
1693 int64 getMemoryUsage(
bool inclusive)
const override;
1698 virtual int64 getLoadedMemoryUsage()
const;
1701 bool isLoaded()
const override;
1704 bool shouldUnload()
const;
1720 static void markDetailDirty(
GU_Detail *dirtygdp,
1721 bool bumpalldataid);
1743 friend class SOP_CacheData;
1744 friend class sop_AttributeEvaluator;
1749 SOP_SoftLockData *mySoftLockData;
1751 bool myHasCookedSelection;
1757 static bool theGlobalCaptOverride;
1767 { myUsesSOPLocalVar =
true; }
1770 const char *
name)
override;
1771 void getAttributeEvaluatorNames(
1775 bool hasTransformTracks()
const override;
1776 bool evaluateTransformTracks(
OP_Context &context,
1778 bool evaluateTransformTracksTargets(
OP_Context &context,
1812 int myCurBuiltPtBox[2];
1814 int myCurBuiltPrimBox[2];
1827 int myAttribCacheOffsetGdpId[2];
1828 int myAttribCacheOffsetMetaCacheCount[2];
1829 unsigned int myAttribCacheTotalDictSize[2];
1839 friend class sop_NodeInputs;
static PRM_ChoiceList primGroupMenu
GA_VertexGroup * parseVertexGroupsCopy(const char *pattern)
virtual void setVisualization(bool)
GT_API const UT_StringHolder selection
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
int curVertexNum(int index) const
Definition of a geometry attribute.
static PRM_ChoiceList pointAttribReplaceMenu
GA_VertexGroup * createAdhocVertexGroup(GU_Detail &geo, const char *p="adhoc")
static PRM_ChoiceList allGroupMenu
static PRM_ChoiceList vertexTextureCoordMenu
static PRM_SpareData theFourthInput
GA_PrimitiveGroupUPtr createDetachedPrimitiveGroup() const
virtual const SOP_NodeVerb * cookVerb() const
GLdouble GLdouble GLint GLint const GLdouble * points
#define SYS_DEPRECATED(__V__)
GA_StorageClass myStorageClass
GA_ROAttributeRef myOffset
const GA_Group * parseAllGroups(const char *pattern)
static PRM_ChoiceList edgeGroupReplaceMenu
GA_Offset curVertex(int local_var_gdp_index) const
GA_PointGroup * createAdhocPointGroup(const GEO_Detail &geo)
static PRM_ChoiceList namedPrimsMenu
static PRM_ChoiceList namedVolumesGlobMenu
Class which stores the default values for a GA_Attribute.
#define SYS_VISIBILITY_EXPORT
getFileOption("OpenEXR:storage") storage
UT_StringMap< sop_AttributeEvaluator * > myAttributeEvaluatorCache
Stores the @ cache lookups generated JIT.
GT_API const UT_StringHolder time
#define SYS_DEPRECATED_PUSH_DISABLE()
const GA_PrimitiveGroup * parsePrimitiveGroups(const char *pattern)
static PRM_ChoiceList allAttribMenu
GA_AttributeOwner myDictionary
#define SYS_DEPRECATED_POP_DISABLE()
static PRM_ChoiceList groupNameMenu
virtual GuideType getGuideType(int guide_idx)
#define SYS_DEPRECATED_HDK_REPLACE(__V__, __R__)
const GLuint GLenum const void * binary
void destroyAdhocGroups(const GU_Detail *g)
GLsizei const GLchar *const * path
static PRM_ChoiceList breakpointGroupMenu
int removeAdhocGroup(const GA_Group *group)
void addSystemError(const char *msg=0)
static PRM_ChoiceList pointAttribMenu
static PRM_ChoiceList primGroupReplaceMenu
bool useInputSource(unsigned idx, bool &changed, bool force)
Mark the given input as used for cooking by this node.
void addMessage(SOP_ErrorCodes code, const char *msg=0)
static PRM_ChoiceList edgePointGroupReplaceMenu
void addCommonError(UT_CommonErrorCode what, const char *msg=0)
static PRM_ChoiceList primNamedGroupMenu
Parameters for OP_Node::getInfoText()/OP_Node::getNodeSpecificInfoText()
fpreal(SOP_Node::* SOP_LocalVarFunc)(sopVarInfo *varinfo)
static PRM_SpareData theSecondElseFirstInput
UT_SharedPtr< GU_SelectionSet > GU_SelectionSetHandle
GU_DetailHandle myGdpHandle
static PRM_ChoiceList primNamedGroupReplaceMenu
const GEO_Primitive * curPrim(int index) const
const GA_PointGroup * parsePointGroups(const char *pattern)
static PRM_ChoiceList pointGroupMenu
OP_Network * getCreator() const
void addError(int code, const char *msg=0)
static PRM_ChoiceList allGroupReplaceMenu
bool hasCookedSelection() const
#define GA_INVALID_OFFSET
static PRM_ChoiceList pointNamedGroupMenu
virtual const CH_LocalVariable * resolveExtraVariableForSyntaxHighlight(const char *name)
A range of elements in an index-map.
GA_EdgeGroup * parseEdgeGroupsCopy(const char *pattern)
A string map of attributes to ease backward compatibility In the GB/GEO/GU library code would often p...
GA_Offset curPoint(int index) const
#define SYS_DEPRECATED_REPLACE(__V__, __R__)
GA_PointGroupUPtr createDetachedPointGroup() const
SYS_VISIBILITY_EXPORT void newSopOperator(OP_OperatorTable *table)
const GU_DetailHandle & curGdh(int index) const
static PRM_SpareData theFirstInput
static PRM_ChoiceList edgePointGroupMenu
SYS_FORCE_INLINE const X * cast(const InstancablePtr *o)
static PRM_ChoiceList vertexNamedGroupMenu
int myLocalVarOrderCache
Cached values so we can tell if we have to rebuild.
static PRM_ChoiceList namedVolumesMenu
void expandGroupMask(const char *pattern, UT_String &outNames, GA_GroupType type)
void destroyAdhocGroups()
vint4 select(const vbool4 &mask, const vint4 &a, const vint4 &b)
const GU_Detail * inputGeo(int index, OP_Context &)
This class provides a way to manage a reference to an attribute permitting Read-Only access...
GOP_Manager::GroupCreator GroupCreator
Typedef to help make use of GroupCreator less verbose.
void addWarning(SOP_ErrorCodes code, const char *msg=0)
static PRM_ChoiceList namedPrimsGlobMenu
GA_VertexGroup * createAdhocVertexGroup(const GEO_Detail &geo)
SOP_NodeCache * myNodeVerbCache
static bool getCaptureOverrideFlag()
GA_EdgeGroupUPtr createDetachedEdgeGroup() const
UT_ValArray< sopVarInfo * > myLocalVarArray
void opChanged(OP_EventType reason, void *data=0) override
GA_EdgeGroup * createAdhocEdgeGroup(GU_Detail &geo, const char *p="adhoc")
static PRM_ChoiceList groupReplaceMenu
virtual GOP_GuideListType getGuideListType() const
virtual bool addOrMoveVisualizerToOutput(int outputidx)
static PRM_ChoiceList primAttribReplaceMenu
static PRM_ChoiceList breakpointGroupReplaceMenu
UT_BoundingBox curPointBBox(int index)
sopVarInfo * mySecondaryVariable
GA_PointGroup * parsePointGroupsCopy(const char *pattern)
int isCookingRender() const override
GLuint const GLchar * name
SOP_API void SOPfillMetaKernelMenu(void *, PRM_Name *names, int size, const PRM_SpareData *, const PRM_Parm *)
int destroyAdhocGroup(const GA_Group *group)
virtual const CH_LocalVariable * resolveVariable(const char *name)
GA_BreakpointGroup * parseBreakpointGroupsCopy(const char *pattern)
std::function< T > UT_Function
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
virtual bool getGroupCentroid(OP_Context &, UT_Vector3 &)
static PRM_ChoiceList detailAttribReplaceMenu
GA_PrimitiveGroup * createAdhocPrimGroup(GU_Detail &geo, const char *p="adhoc")
UT_SharedPtr< GU_Selection > GU_SelectionHandle
virtual void setForceCapture(bool)
const GA_VertexGroup * parseVertexGroups(const char *pattern)
GLenum GLenum GLsizei void * table
virtual OP_OpTypeId getOpTypeID() const
static PRM_ChoiceList groupMenu
SOP_API void SOPgetVexReservedTemplateLists(UT_ValArray< PRM_Template * > &tplatelists)
GT_API const UT_StringHolder version
static PRM_ChoiceList edgeGroupMenu
void setUsesSOPLocalVar()
const GU_Detail * curGdp(int index) const
GA_VertexGroupUPtr createDetachedVertexGroup() const
static PRM_ChoiceList vertexAttribReplaceMenu
static PRM_ChoiceList vertexAttribMenu
AttribTupleIndexArg(int index)
const SOP_NodeFlags & getFlags() const
virtual const char * getChildType() const
static PRM_ChoiceList pointNamedGroupReplaceMenu
void addFatal(SOP_ErrorCodes code, const char *msg=0)
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
virtual bool shouldResetGeoToEmpty() const
Parameters for OP_Node::fillInfoTree()/OP_Node::fillInfoTreeNodeSpecific()
static PRM_ChoiceList primAttribMenu
static PRM_ChoiceList edgeNamedGroupReplaceMenu
void sopVisualizeCallback(void *, SOP_Node *, OP_Context &, GU_Detail *)
static void setCaptureOverrideFlag(bool flag)
bool isSelectionOwnerType() const overridefinal
void addCommonWarning(UT_CommonErrorCode what, const char *msg=0)
SIM_API const UT_StringHolder force
bool usesFootprint() const override
static PRM_ChoiceList edgeNamedGroupMenu
virtual GU_DetailHandle cookMyGuide(int guide_idx, OP_Context &context)
SOP_LocalVarFunc myCallback
GA_Group * parseAllGroupsCopy(const char *pattern)
GA_GroupType
An ordinal enum for the different types of groups in GA.
const GA_BreakpointGroup * parseBreakpointGroups(const char *pattern)
GA_PrimitiveGroup * parsePrimitiveGroupsCopy(const char *pattern)
SOP_NodeParms * myNodeVerbParms
virtual const char * getOpType() const
UT_SymbolMap< sopVarInfo * > myLocalVarTable
Local variable items:
A global error manager scope.
static PRM_ChoiceList detailAttribMenu
GA_PrimitiveGroup * createAdhocPrimGroup(const GEO_Detail &geo)
virtual OP_OpTypeId getChildTypeID() const =0
static PRM_SpareData theThirdInput
**If you just want to fire and args
GA_PointGroup * createAdhocPointGroup(GU_Detail &geo, const char *p="adhoc")
virtual bool evalVariableValue(UT_String &val, int index, int thread)
OP_ERROR duplicatePointSource(unsigned index, OP_Context &ctx)
virtual bool isGuideTimeDep(int guide_idx) const
static PRM_ChoiceList pointGroupReplaceMenu
virtual int isCookingRender() const
static PRM_ChoiceList vertexNamedGroupReplaceMenu
static PRM_SpareData theSecondInput
virtual int getNumGuides()
UT_BoundingBox curPrimBBox(int index)
const GA_EdgeGroup * parseEdgeGroups(const char *pattern)
static PRM_ChoiceList allAttribReplaceMenu
GA_BreakpointGroup * createAdhocBreakpointGroup(const GEO_Detail &geo)
OP_ERROR duplicateSource(unsigned index, OP_Context &context)
static PRM_ChoiceList allTextureCoordMenu
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept
GA_EdgeGroup * createAdhocEdgeGroup(const GEO_Detail &geo)
virtual void clearCache()
GA_Offset curPrimOff(int index) const