14 #ifndef __SOP_Node_h__
15 #define __SOP_Node_h__
49 class SOP_SoftLockData;
52 class sop_AttributeEvaluator;
101 #define SOP_LOCALVAR_START 1000000 // Start of local variable indices
126 void *
data=0)
override;
132 SOP_Node *getOutputSop(
int outputidx,
133 bool fallback_to_display_render =
true);
141 const char *
name)
override;
143 const char *
name)
override;
149 void setVariableOrder(
int detail,
int prim,
153 int getVariableOrder(
int level)
const;
155 int getVariablePrecedence(
int var)
const;
168 int outputidx)
override;
171 void clearLocalVars();
172 void updateLocalVarOffsets();
180 void clearAttributeEvalCaches();
189 theGlobalCaptOverride = flag;
193 return theGlobalCaptOverride;
200 bool setupLocalVars();
205 void resetLocalVarRefs();
207 void setCurGdh(
int index,
209 void clearCurGdh(
int index);
212 void setCurPoint(
int index,
214 void clearCurPoint(
int index);
215 void setCurVertex(
int index,
217 void clearCurVertex(
int index);
218 void setCurPrim(
int index,
220 void clearCurPrim(
int index);
221 void setCurVertexNum(
int index,
223 void clearCurVertexNum(
int index);
250 operator int()
const {
return myIndex; }
258 void addGenericVariable(
const char *varname,
260 const AttribTupleIndexArg &tuple_idx,
263 void addGenericVariable(
const char *varname,
264 const char *attribname,
265 const AttribTupleIndexArg &tuple_idx,
268 void addGenericVariable(
const char *varname,
275 void addGenericVariable(
const GU_Detail *gdp,
278 const char *attribname,
279 const AttribTupleIndexArg &tuple_idx,
282 void addGenericVariable(
int gpdidx,
287 void addSpecificVariable(
const GU_Detail *gdp,
290 const char *attribname,
291 const AttribTupleIndexArg &tuple_idx,
295 void addSpecificVariable(
int gpidx,
302 static int addCustomVariableCallback(
const char *attr,
303 const char *varname,
void *
data);
304 void addCustomVariable(
const char *attr,
305 const char *varname);
307 void cacheVarPtBox(
int gpdidx);
308 void cacheVarPrimBox(
int gpdidx);
342 {
UT_ASSERT(index == 0 || index == 1);
return myCurVtxNum[
index]; }
348 {
UT_ASSERT(local_var_gdp_index == 0 || local_var_gdp_index == 1);
350 return myCurVtxOff[local_var_gdp_index]; }
356 {
UT_ASSERT(index == 0 || index == 1);
if (!myCurGdp[index])
return 0;
return myCurGdp[
index]->getGEOPrimitive(myCurPrimOff[index]); }
362 cacheVarPtBox(index);
363 return myCurPtBox[
index];
370 cacheVarPrimBox(index);
371 return myCurPrimBox[
index];
380 void getGroupMenuHeader(
int sourcenum,
const char * title,
384 const char *prim_header,
385 const char *pt_header,
386 const char *edge_header,
387 const char *vertex_header,
388 PRM_Name *menuEntries,
int themenusize,
390 bool includeselection,
const PRM_Parm *parm);
393 const char * edge_header,
394 const char *prim_header,
const char *pt_header,
395 const char *vertex_header,
396 PRM_Name *menuEntries,
int themenusize,
397 bool addprim,
int start,
400 static int buildSopBreakpointGroups(
const GU_Detail *
src,
401 const char * brkpt_header,
402 const char * prim_header,
const char *pt_header,
403 const char * edge_header,
404 const char *vertex_header,
405 PRM_Name *choicenames,
int menusize,
406 bool addprim,
int start,
412 static void buildGroupsFromSop(
SOP_Node * src_sop,
416 PRM_Name *menuEntries,
int thelistsize );
418 static int buildEdgeGroupsFromSop(
SOP_Node * src_sop,
421 bool addprim,
int start,
422 PRM_Name *menuEntries,
int thelistsize );
424 static int buildBreakpointGroupsFromSop(
SOP_Node * src_sop,
427 bool addprim,
int start,
428 PRM_Name *menuEntries,
int thelistsize );
430 void buildNamedPrims(
int thesourcenum,
435 bool numberedvolumes);
437 void buildInputGroups(
int thesourcenum,
441 bool includeselection,
444 int buildInputEdgeGroups(
int sourcenum,
445 PRM_Name *choicenames,
int menusize,
446 bool addprim,
int start,
449 int buildInputBreakpointGroups(
int sourcenum,
450 PRM_Name *choicenames,
int menusize,
451 bool addprim,
int start,
454 OP_LockTypes setModelLock(OP_LockTypes lock_type,
455 void *modeler =
nullptr,
456 bool allow_softlock_promotion =
false,
457 UT_Undo *undo =
nullptr)
override;
462 void *getCookedData(
OP_Context &ctx)
override;
475 const SOP_Guide *getCookedGuide1()
const;
476 const SOP_Guide *getCookedGuide2()
const;
506 {
return GuideType::VIEWPORT; }
518 void unlockInput(
unsigned idx)
override;
520 void unlockInputs()
override;
523 static void initializeExpressions();
540 bool forceValidGroupPrefix(
UT_String &prefix,
543 void expandGroupMask(
const char *
pattern,
550 { expandGroupMask(pattern, outNames, type, gdp); }
557 bool allow_numeric =
true,
558 bool ordered =
false,
569 {
return parsePrimitiveGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
572 const GroupCreator &creator,
573 bool allow_numeric =
true,
574 bool ordered =
false,
575 bool strict =
false);
581 bool strict =
false);
583 {
return parsePrimitiveGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
586 const GroupCreator &creator,
587 bool allow_numeric =
true,
588 bool ordered =
false,
599 {
return parsePointGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
602 const GroupCreator &creator,
603 bool allow_numeric =
true,
604 bool ordered =
false,
605 bool strict =
false);
611 bool strict =
false);
613 {
return parsePointGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
615 const GA_EdgeGroup *parseEdgeGroups(
const char *pattern,
621 {
return parseEdgeGroups(pattern, (
const GU_Detail *)gdp); }
626 {
return parseEdgeGroupsCopy(pattern, (
const GU_Detail *)gdp); }
633 {
return parseBreakpointGroups(pattern, (
const GU_Detail *)gdp); }
638 {
return parseBreakpointGroupsCopy(pattern,(
const GU_Detail *)gdp);}
645 {
return parseVertexGroups(pattern, (
const GU_Detail *)gdp); }
650 {
return parseVertexGroupsCopy(pattern, (
const GU_Detail *)gdp); }
652 const GA_Group *parseAllGroups(
const char *pattern,
653 const GroupCreator &creator,
654 bool allow_numeric =
true,
655 bool ordered =
false,
659 const GA_Group *parseAllGroups(
const char *pattern,
665 {
return parseAllGroups(pattern,
GroupCreator(gdp,
false),
true,
true); }
667 GA_Group *parseAllGroupsCopy(
const char *pattern,
668 const GroupCreator &creator,
669 bool allow_numeric =
true,
670 bool ordered =
false,
674 GA_Group *parseAllGroupsCopy(
const char *pattern,
680 {
return parseAllGroupsCopy(pattern,
GroupCreator(gdp,
false),
true,
true); }
689 {
return myGroupParse.destroyAdhocGroup(group); }
691 { myGroupParse.destroyAdhocGroups(); }
693 { myGroupParse.destroyAdhocGroups(g); }
700 void updateUserSelectionOnDetail();
713 void clearNodeSelectionSet();
731 bool add_to_sel = false);
735 bool add_to_sel = false);
738 bool add_to_sel = false);
740 bool prim_sel = true,
741 bool add_to_sel = false);
742 void selectPoint(
GA_Offset ptoff,
bool point_sel = true,
743 bool add_to_sel = false);
744 void selectFrom(const
GEO_Primitive &prim,
bool sel_prim = true,
745 bool add_to_sel = false);
746 void selectPointsFrom(
GA_Offset ptoff,
bool point_sel = true,
747 bool add_to_sel = false);
749 bool add_to_sel = false);
754 void selectInputGroup(const
GA_Group *group,
759 void selectInputGroup(const
GA_Group *group,
764 void clearSelection();
779 bool destroySelection();
782 bool selectionEnabled()
const
784 return getHighlight();
789 return myHasCookedSelection;
820 virtual
void resetSimulation () {}
824 void addInstanceReference(
SOP_Node *node);
825 void clearInstanceReference(
SOP_Node *node);
847 virtual void makePreserveRequest();
887 fpreal getW()
const override;
889 fpreal getH()
const override;
903 void setUniqueId(
int id)
override;
904 void clearUniqueId()
override;
913 {
return myGroupParse.removeAdhocGroup(group); }
915 { myGroupParse.removeAdhocGroups(); }
924 int &copied_input)
override;
945 int alone = 0)
override;
947 void notifyGroupParmListeners(
948 int parm_index,
int group_type_index,
970 bool alone =
false,
bool do_selection =
true,
972 int group_type_index = -1,
973 bool allow_reference =
true,
974 bool ordered =
false,
975 bool detached =
true,
976 int input_index = 0);
979 bool alone,
bool do_selection,
981 int group_type_index,
982 bool allow_reference,
984 const GroupCreator &creator);
989 int alone = 0,
bool do_selection =
true,
990 int input_index = 0,
int parm_index = 0,
991 int group_type_index = -1,
992 bool allow_reference =
true,
993 bool fetchgdp =
true,
999 bool alone =
false,
bool do_selection =
true,
1001 int group_type_index = -1,
1002 bool allow_reference =
true,
1003 bool ordered =
false,
1004 bool detached =
true,
1005 int input_index = 0);
1008 bool alone,
bool do_selection,
1010 int group_type_index,
1011 bool allow_reference,
1013 const GroupCreator &creator);
1018 int alone = 0,
bool do_selection =
true,
1019 int input_index = 0,
int parm_index = 0,
1020 int group_type_index = -1,
1021 bool allow_reference =
true,
1022 bool fetchgdp =
true,
1028 bool alone =
false,
bool do_selection =
true,
1030 int group_type_index = -1,
1031 bool allow_reference =
true,
1032 int input_index = 0);
1035 bool alone,
bool do_selection,
1037 int group_type_index,
1038 bool allow_reference,
1044 int alone = 0,
bool do_selection =
true,
1045 int input_index = 0,
int parm_index = 0,
1046 int group_type_index = -1,
1051 bool allow_reference =
false,
1052 bool fetchgdp =
true,
1061 bool alone =
false,
bool do_selection =
true,
1063 int group_type_index = -1,
1065 bool allow_reference =
true,
1066 bool is_default_prim =
true,
1067 bool ordered =
false,
1068 bool detached =
true,
1069 int input_index = 0);
1072 bool alone,
bool do_selection,
1074 int group_type_index,
1076 bool allow_reference,
1077 bool is_default_prim,
1079 const GroupCreator &creator);
1084 int alone = 0,
bool do_selection =
true,
1085 int input_index = 0,
int parm_index = 0,
1086 int group_type_index = -1,
1087 bool allow_reference =
false,
1088 bool is_default_prim =
true,
1089 bool fetchgdp =
true,
1099 bool allow_reference,
bool is_default_prim,
1100 bool ordered=
false);
1103 bool allow_reference,
bool is_default_prim);
1112 bool alone,
int input_index,
bool detached,
1113 GroupCreator &creator);
1116 bool alone,
int input_index,
1121 void cookInputGroupsEpilogue(
int parm_index,
int group_type_index,
1123 int input_index,
bool fetchgdp,
bool alone);
1126 void inputConnectChanged(
int which_input)
override;
1136 {
return inputGeo(index); }
1159 { getLockedErrorManager()->systemError(msg);}
1161 const char *msg = 0)
1162 { getLockedErrorManager()->commonError(what, msg);}
1164 const char *msg = 0)
1165 { getLockedErrorManager()->commonWarning(what, msg);}
1240 const char *group_type_parm = NULL,
1241 int input_index = 0,
1243 const char *assoc_groups = NULL,
1244 GroupSelectAsOrdered ordered =
1246 const char *use_name_attr=
nullptr,
1247 const char *select_script=
nullptr);
1251 const char *group_type_parm = NULL,
1252 int input_index = 0,
1254 const char *assoc_groups = NULL,
1255 GroupSelectAsOrdered ordered =
1257 const char *use_name_attr=
nullptr,
1258 const char *select_script=
nullptr);
1267 void pickPrimitivesUsingPathAttribute(
1270 const char *stringparm,
1272 const char *path_attrib=
"path",
1273 bool use_packed_names=
true);
1276 void pickPrimitivesUsingPathAttribute(
1277 const char *stringparm,
1280 const char *path_attrib=
"path",
1281 bool use_packed_names=
true);
1285 static GA_Range getPickedRangeUsingPathAttribute(
1288 const char *pickedstring,
1289 const char *path_attrib=
"path",
1290 bool use_packed_names=
true);
1294 int parseGroups(
const char *pattern,
1298 bool strict =
false);
1301 int parseGroupsCopy(
const char *pattern,
1307 bool strict =
false,
1321 int fillAttribNameMenu(
PRM_Name *menu_entries,
1326 void *approve_data = NULL);
1329 static void removeMenuDuplicates(
PRM_Name *menuEntries,
int size);
1334 void getVectorAttribs(
const char * attrib_names,
1338 static void getVectorAttribs(
GU_Detail *gdp,
1339 const char * attrib_names,
1346 const char * attrib_string,
1355 const char *
l)
override;
1363 int forEachGroupMatchingMask(
1364 const char *pattern,
1365 GroupOperation operation,
1369 bool maintainorder=
false);
1371 static int invokeForEachGroupMatchingMask(
1373 const char *pattern,
1375 const std::function<
void(
const GA_Group *)> &operation,
1376 bool maintainorder);
1383 static void invokeForSubdivisionOfPrimitiveGroup(
1384 const std::function<
void(
const GA_Group *)> &operation,
1387 int opstep,
const char *oplabel,
1391 void subdividePrimitiveGroup(
1392 GroupOperation operation,
1394 void *
data,
int optype,
1395 int opstep,
const char *oplabel,
1397 void subdivideMixPrimitiveGroup(
1398 GroupOperation operation,
1400 void *
data,
int optype,
1401 int opstep,
const char *oplabel,
1403 void subdividePointGroup(
1404 GroupOperation operation,
1406 void *
data,
int optype,
1407 int opstep,
const char *oplabel,
1414 const char *
p=
"adhoc")
1415 {
return myGroupParse.createPrimitiveGroup(geo,
p); }
1417 const char *
p=
"adhoc")
1418 {
return myGroupParse.createPointGroup(geo,
p); }
1420 const char *
p=
"adhoc")
1421 {
return myGroupParse.createEdgeGroup(geo,
p); }
1423 const char *
p=
"adhoc")
1424 {
return myGroupParse.createVertexGroup(geo,
p); }
1428 myGroupParse.appendAdhocGroup(
group,
true);
1434 myGroupParse.appendAdhocGroup(
group,
true);
1440 myGroupParse.appendAdhocGroup(
group,
true);
1446 myGroupParse.appendAdhocGroup(
group,
true);
1451 return myGroupParse.createBreakpointGroup(geo);
1461 void clearInstance(
int duplicate = 0);
1463 bool hasInstances();
1465 int countInstances();
1467 void clearAllInstances();
1486 return duplicateSource(index, context, gdp,
true);
1503 bool wattrib =
true,
1507 return duplicatePointSource(index, ctx, gdp, 1,
1514 bool copyPointPosFromSource(
1520 int *changed = 0,
bool force=
false);
1529 void resetChangedSourceFlags();
1530 void resetChangedSourceFlags(
int which_input);
1550 return myInputChangeHelper.useInput(
1551 *
this, idx, changed, force);
1554 void deleteCookedData()
override;
1555 int deleteNodeData(
void *)
override;
1567 "_sop_used_pasted_");
1588 void convertPivotAboutGroupCentroid(
1592 void convertPivotAboutGroupCentroid(
1594 const char *pivot_parm_name,
1609 const char *pathPrefix,
1614 const char *
path=0)
override;
1641 OP_ERROR saveIntrinsic(std::ostream &os,
1645 short class_id,
short sig,
1646 const char *
path=0)
override;
1647 bool loadPacket(
UT_IStream &is,
const char *token,
1648 const char *
path=0)
override;
1650 void clearAndDestroy()
override;
1652 int saveCookedData(
const char *,
1654 int saveCookedData(std::ostream &os,
1656 int binary = 0)
override;
1658 const char *
path=0)
override;
1665 const char *getFileExtension(
int binary)
const override;
1667 bool softLockable(
const GU_Detail &unmodelled_gdp,
1674 SOP_SoftLockData *old_slockdata=0);
1677 void *myVisualizeCallbackData;
1686 virtual void unloadDataHack();
1688 bool unloadData()
override;
1692 int64 getMemoryUsage(
bool inclusive)
const override;
1697 virtual int64 getLoadedMemoryUsage()
const;
1700 bool isLoaded()
const override;
1703 bool shouldUnload()
const;
1719 static void markDetailDirty(
GU_Detail *dirtygdp,
1720 bool bumpalldataid);
1742 friend class SOP_CacheData;
1743 friend class sop_AttributeEvaluator;
1748 SOP_SoftLockData *mySoftLockData;
1750 bool myHasCookedSelection;
1756 static bool theGlobalCaptOverride;
1766 { myUsesSOPLocalVar =
true; }
1769 const char *
name)
override;
1770 void getAttributeEvaluatorNames(
1774 bool hasTransformTracks()
const override;
1814 int myCurBuiltPtBox[2];
1816 int myCurBuiltPrimBox[2];
1829 int myAttribCacheOffsetGdpId[2];
1830 int myAttribCacheOffsetMetaCacheCount[2];
1831 unsigned int myAttribCacheTotalDictSize[2];
1841 friend class sop_NodeInputs;
static PRM_ChoiceList primGroupMenu
GA_VertexGroup * parseVertexGroupsCopy(const char *pattern)
GA_PointGroup * newDetachedPointGroup() const
virtual void setVisualization(bool)
GT_API const UT_StringHolder selection
int curVertexNum(int index) const
Definition of a geometry attribute.
static PRM_ChoiceList pointAttribReplaceMenu
GA_VertexGroup * createAdhocVertexGroup(GU_Detail &geo, const char *p="adhoc")
GA_PrimitiveGroup * getPastedSurfaces()
static PRM_ChoiceList allGroupMenu
GLenum GLenum GLenum input
static PRM_ChoiceList vertexTextureCoordMenu
static PRM_SpareData theFourthInput
virtual const SOP_NodeVerb * cookVerb() const
#define SYS_DEPRECATED(__V__)
GLuint const GLchar * name
GA_StorageClass myStorageClass
GA_ROAttributeRef myOffset
const GA_Group * parseAllGroups(const char *pattern)
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
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
int updatePastedDisplacements()
GLuint const GLfloat * val
virtual OP_OpTypeId getOpTypeID() const =0
virtual GuideType getGuideType(int guide_idx)
#define SYS_DEPRECATED_HDK_REPLACE(__V__, __R__)
void destroyAdhocGroups(const GU_Detail *g)
void updatePastedDisplacement(GA_Offset ptoff, const GA_PrimitiveGroup *all, GA_PrimitiveGroup *used)
static PRM_ChoiceList breakpointGroupMenu
GLenum GLsizei GLenum GLenum const void * table
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
int removeAdhocGroup(const GA_Group *group)
void addSystemError(const char *msg=0)
static PRM_ChoiceList pointAttribMenu
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)
void updatePastedDisplacement(GA_Offset ptoff, const GA_PrimitiveGroup *all, GA_PrimitiveGroup *used)
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
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)
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__)
SYS_VISIBILITY_EXPORT void newSopOperator(OP_OperatorTable *table)
const GU_DetailHandle & curGdh(int index) const
static PRM_SpareData theFirstInput
virtual const char * getOpType() const =0
OIIO_API std::string extension(const std::string &filepath, bool include_dot=true)
static PRM_ChoiceList edgePointGroupMenu
static PRM_ChoiceList vertexNamedGroupMenu
int myLocalVarOrderCache
Cached values so we can tell if we have to rebuild.
static PRM_ChoiceList namedVolumesMenu
int updatePastedDependents(GA_PrimitiveGroup *all, GA_PrimitiveGroup *used)
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
GLint GLenum GLsizei GLint GLsizei const void * data
static bool getCaptureOverrideFlag()
const GLuint GLenum const void * binary
GA_PrimitiveGroup * newDetachedPrimitiveGroup() const
UT_ValArray< sopVarInfo * > myLocalVarArray
void opChanged(OP_EventType reason, void *data=0) override
GA_EdgeGroup * createAdhocEdgeGroup(GU_Detail &geo, const char *p="adhoc")
virtual GOP_GuideListType getGuideListType() const
virtual bool addOrMoveVisualizerToOutput(int outputidx)
GLuint const GLuint * names
static PRM_ChoiceList primAttribReplaceMenu
UT_BoundingBox curPointBBox(int index)
sopVarInfo * mySecondaryVariable
int updatePastedDisplacements()
GA_EdgeGroup * newDetachedEdgeGroup() const
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
GA_PointGroup * parsePointGroupsCopy(const char *pattern)
int isCookingRender() const override
*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
GA_PrimitiveGroup * getPastedSurfaces(GA_PrimitiveGroup *&used)
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)
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
virtual bool getGroupCentroid(OP_Context &, UT_Vector3 &)
GLuint GLuint GLsizei GLenum type
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)
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()
GLsizei const GLchar *const * path
const GU_Detail * curGdp(int index) const
static PRM_ChoiceList vertexAttribReplaceMenu
static PRM_ChoiceList vertexAttribMenu
AttribTupleIndexArg(int index)
const SOP_NodeFlags & getFlags() const
virtual const char * getChildType() const
void addFatal(SOP_ErrorCodes code, const char *msg=0)
virtual bool shouldResetGeoToEmpty() const
GA_VertexGroup * newDetachedVertexGroup() const
Parameters for OP_Node::fillInfoTree()/OP_Node::fillInfoTreeNodeSpecific()
static PRM_ChoiceList primAttribMenu
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)
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_PrimitiveGroup * getPastedSurfaces(const char *n="__gu_all_pasted__")
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)
GLuint GLdouble GLdouble GLint GLint const GLdouble * points
SOP_NodeParms * myNodeVerbParms
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
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)
getOption("OpenEXR.storage") storage
virtual int isCookingRender() const
static PRM_SpareData theSecondInput
virtual int getNumGuides()
UT_BoundingBox curPrimBBox(int index)
const GA_EdgeGroup * parseEdgeGroups(const char *pattern)
static PRM_ChoiceList allAttribReplaceMenu
bool all(const vbool4 &v)
GLsizei const GLfloat * value
GA_BreakpointGroup * createAdhocBreakpointGroup(const GEO_Detail &geo)
OP_ERROR duplicateSource(unsigned index, OP_Context &context)
static PRM_ChoiceList allTextureCoordMenu
GA_EdgeGroup * createAdhocEdgeGroup(const GEO_Detail &geo)
int updatePastedDependents(GA_PrimitiveGroup *all, GA_PrimitiveGroup *used)
virtual void clearCache()
static const char * theChildTableName