hwPhongShaderBehavior.h
#include <maya/MPxDragAndDropBehavior.h>
class hwPhongShaderBehavior : public MPxDragAndDropBehavior
{
public:
hwPhongShaderBehavior();
virtual ~hwPhongShaderBehavior();
virtual bool shouldBeUsedFor(MObject &sourceNode, MObject &destinationNode,
MPlug &sourcePlug, MPlug &destinationPlug);
virtual MStatus connectNodeToNode(MObject &sourceNode,
MObject &destinationNode, bool force );
virtual MStatus connectNodeToAttr(MObject &sourceNode,
MPlug &destinationPlug, bool force );
virtual MStatus connectAttrToNode(MPlug &sourceNode,
MObject &destinationNode, bool force );
virtual MStatus connectAttrToAttr(MPlug &sourceNode,
MPlug &destinationPlug, bool force );
static void *creator();
protected:
MObject findShadingEngine(MObject &node);
private:
};