59 myCallback = callback;
67 void (*myCallback)(
void*);
91 bool setOutputNode(COP_Block* output);
95 bool buildFromNode(COP_Block* output,
const OP_Context& context,
99 void saveToGeometry(
GU_Detail* gdp)
const;
101 bool loadFromGeometry(
const GU_Detail* gdp);
104 bool saveToFile(
const char*
filename)
const;
106 bool loadFromFile(
const char*
filename);
130 return myProgramInputs;
137 return myProgramOutputs;
164 myGraphDep.enableCallback(enable);
165 myResultsDep.enableCallback(enable);
175 myGraphDep.setCallback(callback, data);
176 myResultsDep.setCallback(callback, data);
177 myErroredMonitor.setCallback(callback, data);
182 SlapcompBuildStatus rebuildIfNeeded(
const OP_Context& context,
190 return myExpectInputCameras;
194 COP_Block *getOutputNode()
const;
196 bool isOutputNodeSlapComp()
const;
215 int myOutputNodeId = -1;
224 bool myExpectInputCameras =
true;
const UT_StringMap< std::pair< COP_Type, bool > > & getProgramInputs() const
GT_API const UT_StringHolder filename
virtual void becameDirty(DEP_MicroNode &src, const DEP_PropagateData &propdata)
void enableCallback(bool enable)
void setCallback(void(*callback)(void *), void *data)
UT_StringMap< std::pair< COP_Type, bool > > myUnusedInputs
const UT_StringMap< std::pair< COP_Type, UT_StringHolder > > & getProgramOutputs() const
bool expectsLayerCameras() const
COP_MicroNodeWithCallback myErroredMonitor
COP_MicroNodeWithCallback()
GLenum GLuint GLint GLint layer
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
UT_SharedPtr< const IMX_Layer > IMX_LayerConstPtr
UT_StringMap< std::pair< COP_Type, bool > > myProgramInputs
Map of all inputs used by the program.
bool callbackEnabled() const
Returns true if the callback is enabled (even if not set).
COP_MicroNodeWithCallback myGraphDep
GLuint const GLchar * name
COP_MicroNodeWithCallback myResultsDep
DEP_TimedMicroNode & getGraphDep()
Returns the micronode that captures all dependencies for the program.
UT_StringMap< COP_PortData > myPassthroughOutputs
UT_UniquePtr< apex::APEX_Graph > myGraph
void enableCallback(bool enable)
Controls whether or not the callback runs when the micronode is dirtied.
A global error manager scope.
Propagation info for a dep micro node.
void setCallback(void(*callback)(void *), void *data)
UT_StringMap< std::pair< COP_Type, UT_StringHolder > > myProgramOutputs
DEP_TimedMicroNode & getResultsDep()
UT_SharedPtr< IMX_Layer > IMX_LayerPtr
PcpNodeRef_ChildrenIterator begin(const PcpNodeRef::child_const_range &r)
Support for range-based for loops for PcpNodeRef children ranges.