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__."
64 resolverstrings)
override;
65 bool getVariantSelectionFallbacks(
69 int getLargeLayerModifiedPrimCount();
72 void *
data = 0)
override;
81 {
return myOverrides; }
84 void resetOverrides();
87 {
return myPostLayers; }
89 void resetPostLayers();
92 {
return myExpansionState; }
94 bool pinned,
bool expanded);
100 expanded_subpaths =
nullptr,
101 bool use_pinned_subpaths =
false,
102 bool preserve_descendant_expansion =
false);
103 void undoExpansionLockState(
107 swap_locked_expanded_paths);
108 void updateOverridesWithExpansionState(
113 {
return myLoadMasks; }
116 bool setStateFromDataBlock(
118 const char *blocktype =
nullptr);
119 bool saveExpansionState(
133 {
return mySelection; }
135 {
return mySelectionCurrentPrim; }
137 {
return mySelectionWithInstanceIds; }
142 paths_with_instance_ids,
149 void clearSelectionRules();
150 void removeSelectionRule(
152 void addSelectionRule(
156 void saveSelectionRules(std::ostream &os)
const;
159 void getPinnedPrimitives(
161 void setPinnedPrimitives(
171 void saveNetworkForSnapshot(std::ostream &os);
174 bool saveRenderGalleryToDisk();
189 const char *pathPrefix,
193 const char *
path=0)
override;
197 static void forceRecookAllChildren(
LOP_Node *root,
bool firstcall);
207 int mySelectionVersionId;
208 int myExpansionStateVersionId;
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
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 save(std::ostream &os, const OP_SaveFlags &flags, const char *path_prefix="", const UT_StringHolder &name_override=UT_StringHolder())
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
virtual LOP_Node * getViewerLop()
HUSD_ConstPostLayersPtr postLayers() const
bool load(UT_IStream &is, const char *ext="", const char *path=nullptr) override
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept
const UT_StringHolder & selectionCurrentPrim() const