57 myCallback = callback;
65 void (*myCallback)(
void*);
89 bool setOutputNode(COP_Block* output);
93 bool buildFromNode(COP_Block* output,
const OP_Context& context,
97 void saveToGeometry(
GU_Detail* gdp)
const;
99 bool loadFromGeometry(
const GU_Detail* gdp);
102 bool saveToFile(
const char*
filename)
const;
104 bool loadFromFile(
const char*
filename);
123 return myProgramInputs;
130 return myProgramOutputs;
157 myGraphDep.enableCallback(enable);
158 myResultsDep.enableCallback(enable);
168 myGraphDep.setCallback(callback, data);
169 myResultsDep.setCallback(callback, data);
170 myErroredMonitor.setCallback(callback, data);
175 SlapcompBuildStatus rebuildIfNeeded(
const OP_Context& context,
183 return myExpectInputCameras;
187 COP_Block *getOutputNode()
const;
189 bool isOutputNodeSlapComp()
const;
208 int myOutputNodeId = -1;
217 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)
UT_StringMap< IMX_LayerPtr > myPassthroughOutputs
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_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.