12 #ifndef __LOP_Network_h__
13 #define __LOP_Network_h__
27 #define LOP_EXPANSION_DATA_BLOCK_TYPE "expansion"
28 #define LOP_OVERRIDES_DATA_BLOCK_TYPE "overrides"
29 #define LOP_LOADMASKS_DATA_BLOCK_TYPE "loadmasks"
30 #define LOP_POSTLAYERS_DATA_BLOCK_TYPE "postlayers"
31 #define LOP_ONLOAD_DATA_BLOCK_PREFIX "__onload__."
54 resolverstrings)
override;
55 bool getVariantSelectionFallbacks(
60 void *
data = 0)
override;
69 {
return myOverrides; }
71 void resetOverrides();
74 {
return myPostLayers; }
76 void resetPostLayers();
79 {
return myExpansionState; }
81 {
return myExpansionState; }
84 {
return myLoadMasks; }
87 bool setStateFromDataBlock(
89 const char *blocktype =
nullptr);
90 bool saveExpansionState(
104 {
return mySelection; }
106 {
return mySelectionCurrentPrim; }
108 {
return mySelectionWithInstanceIds; }
113 paths_with_instance_ids,
119 {
return mySelectionVersionId; }
122 void clearSelectionRules();
123 void removeSelectionRule(
125 void addSelectionRule(
129 void saveSelectionRules(std::ostream &os)
const;
132 void getPinnedPrimitives(
134 void setPinnedPrimitives(
144 void saveNetworkForSnapshot(std::ostream &os);
147 bool saveRenderGalleryToDisk();
162 const char *pathPrefix,
166 const char *
path=0)
override;
170 static void forceRecookAllChildren(
LOP_Node *root,
bool firstcall);
180 int mySelectionVersionId;
virtual bool getResolverContextAssetPath(UT_String &assetpath)
const HUSD_InstanceSelection & selectionWithInstanceIds() const
void childFlagChange(OP_Node *nodeptr) override
virtual int isSubNetwork(bool includemanagementops) const
GLsizei const GLchar *const * path
void onCreated() override
Overriden in VOPs.
const HUSD_ExpansionState & expansionState() const
static const char * theChildTableName
void saveOverrides(std::ostream &os)
const HUSD_PathSet & selection() const
int getSelectionVersionId() const
HUSD_ConstOverridesPtr overrides() const
const HUSD_LoadMasks & loadMasks() const
virtual bool getResolverContextStrings(UT_StringMap< UT_StringHolder > &resolverstrings)
virtual void loadFinished()
GLuint const GLchar * name
static const UT_StringHolder EXTRA_DATA_FORMAT
OP_Node * getDisplayNodePtr() override
virtual OP_ERROR cookMyLop(OP_Context &context)=0
void clearAndDestroy() override
void opChanged(OP_EventType reason, void *data=0) override
static const UT_StringHolder LAST_PICKED_NODE
static const UT_StringHolder PICKED_NODES
HUSD_ExpansionState & editableExpansionState()
virtual LOP_Node * getViewerLop()
HUSD_ConstPostLayersPtr postLayers() const
bool load(UT_IStream &is, const char *ext="", const char *path=0) override
virtual OP_ERROR save(std::ostream &os, const OP_SaveFlags &flags, const char *path_prefix="", const UT_String &name_override=UT_String())
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept
const UT_StringHolder & selectionCurrentPrim() const