#include <GeomOpMixIns.h>
Classes | |
class | SubEngine |
Public Member Functions | |
int | materialInput () const |
Returns the node input to use for the material binding. | |
const char * | materialInputLabel () const |
Returns the label to be used for the material input. | |
bool | testMaterialInput (Op *op) const |
void | appendMaterialGeomState (GeomOp *op, DD::Image::Hash &opHash) |
Implements the behaviour of binding a material to prims. GeomOp plugins that wish to have this behaviour should inherit from this class and call its methods in the appropriate places to use its functionality.
bool MaterialBindingOpI::testMaterialInput | ( | Op * | op | ) | const |
Test wether op can be used as a material Call this method from the plugin's test_input method.
References DD::Image::Op::iop().
Referenced by DD::Image::SourceGeomOp::test_input().
void MaterialBindingOpI::appendMaterialGeomState | ( | GeomOp * | op, |
DD::Image::Hash & | opHash | ||
) |
Computes the Geom State based on the material input and appends to opHash. Call this method from the plugin's appendGeomState method.
References DD::Image::ProxyContext::appendProxy(), DD::Image::GeomOp::appendToTarget(), DD::Image::Op::editState(), DD::Image::Op::input(), DD::Image::Op::nodeTopologyHash(), and DD::Image::Op::outputContext().
©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |