// ==========================================================================
// Copyright 2015 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.
// ==========================================================================
#include <maya/MPxManipulatorNode.h>
#include <maya/MTypeId.h>
class pointManip : public MPxManipulatorNode
virtual ~pointManip();
virtual void postConstructor();
static void* creator();
static MStatus initialize();
virtual MStatus doPress( M3dView& view );
virtual MStatus doDrag( M3dView& view );
virtual MStatus doRelease( M3dView& view );
virtual void preDrawUI( const M3dView &view );
virtual void drawUI( MHWRender::MUIDrawManager& drawManager,
const MHWRender::MFrameContext& frameContext ) const;
static MTypeId id;
// GL component name for drawing and picking
MGLuint fPointHandle;
int fPortWidth;
int fPortHeight;
float* fDepthMap;
bool fIsMouseDragging;
short fMousePositionX;
short fMousePositionY;
MPoint fWorldPosition;
short fMainColorIndex;