slopeShaderBehavior.h

//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies this software in either electronic
// or hard copy form.
// ==========================================================================
//+

#ifndef _SLOPESHADERBEHAVIOR_H_
#define _SLOPESHADERBEHAVIOR_H_

#include <maya/MPxDragAndDropBehavior.h>

class slopeShaderBehavior : public MPxDragAndDropBehavior
{

public:

        slopeShaderBehavior();
        virtual ~slopeShaderBehavior();

        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 );

        static void *creator();

protected:

        MObject findShadingEngine(MObject &node);

private:

};

#endif //_SLOPESHADERBEHAVIOR_H_


Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6