#include <maya/MPxSurfaceShapeUI.h>
#include <apiSimpleShape.h>
class apiSimpleShapeUI : public MPxSurfaceShapeUI
{
public:
apiSimpleShapeUI();
virtual ~apiSimpleShapeUI();
virtual void getDrawRequests( const MDrawInfo & info,
bool objectAndActiveOnly,
MDrawRequestQueue & requests );
virtual void draw( const MDrawRequest & request,
M3dView & view ) const;
virtual bool select( MSelectInfo &selectInfo,
MSelectionList &selectionList,
MPointArray &worldSpaceSelectPts ) const;
void drawVertices( const MDrawRequest & request, M3dView & view ) const;
bool selectVertices( MSelectInfo &selectInfo,
MSelectionList &selectionList,
MPointArray &worldSpaceSelectPts ) const;
static void * creator();
private:
enum {
kDrawVertices,
kDrawWireframe,
kDrawWireframeOnShaded,
kDrawSmoothShaded,
kDrawFlatShaded,
kLastToken
};
};