33 AllocationFunction allocator);
40 AllocationFunction myAlloc;
46 static int getFactoryIndex(
int target_node_id);
87 return myManager->getVersion();
93 return myManager->hasStateChanged();
112 int myCurrentType = -1;
GLuint GLsizei const GLchar * message
virtual void setWarningCallback(void(*cb)(void *, const char *), void *data)=0
Sets a callback that gets called when reporting slapcomp warnings.
Abstract interface for managing slapcomp.
virtual void reportWarning(const char *message)=0
Reports a warning (through the callback if possible).
virtual COP_CableStructure getOutputStructure() const =0
Should return the outputs that this slapcomp produces.
ImageBuf OIIO_API checker(int width, int height, int depth, cspan< float > color1, cspan< float > color2, int xoffset, int yoffset, int zoffset, ROI roi, int nthreads=0)
virtual IMX_LayerPtr getOutputLayer(const UT_StringHolder &name) const =0
Returns a particular output by name.
virtual bool isSlapCompAOV(const UT_StringHolder &name) const =0
virtual void setErrorCallback(void(*cb)(void *, const char *), void *data)=0
Sets a callback that gets called when reporting slapcomp errors.
virtual bool hasErrors() const =0
Returns true if the last run of slapcomp had errors.
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
virtual bool hasStageFilters() const =0
Returns whether the viewport slapcomp is enabled.
virtual void updateEnableState()=0
Called when slapcomp is enabled disabled.
bool(*)(const OP_Node *) CheckFunction
Should return true for nodes that are supported by the slapcomp type.
void setVersion(int version) override
virtual void setStage(const UT_Span< const int > &target_nodes, const OP_Context &)=0
Set the image filters defined on the USD Stage.
virtual void setRunCallback(void(*cb)(void *), void *data)=0
Sets a callback that gets called when slapcomp is run.
virtual void runSlapCompImpl(COP_SlapCompInputFetcher &input_fetcher, const OP_Context &context)=0
Should run slapcomp with the specified inputs and context.
virtual UT_Array< int > getStageTargetNodes() const =0
int getVersion() const override
GLuint const GLchar * name
bool hasStateChanged() const override
virtual void setViewport(const OP_Node *node, const OP_Context &ctx)=0
COP_SlapCompManager & operator=(const COP_SlapCompManager &)=delete
GT_API const UT_StringHolder version
virtual void reportError(const char *message)=0
Reports an error (through the callback if possible).
UT_UniquePtr< COP_SlapCompManager > myManager
virtual bool buildForInputs(const COP_CableStructure &inputs, const OP_Context &context)=0
Prepares for applying slapcomp for inputs of the given types.
virtual int getViewportTargetNode() const =0
Return the viewport target node.
virtual bool hasViewportFilters() const =0
Returns whether the viewport slapcomp is enabled.
virtual void setUpdateCallback(void(*cb)(void *), void *data)=0
Sets a callback that gets called when slapcomp changes.
UT_SharedPtr< IMX_Layer > IMX_LayerPtr