// $Revision: 1.4 $ // Copyright (c) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_SETPOINTINTERACTOR #define TaligentSamples_SETPOINTINTERACTOR #ifndef TaligentSamples_GRAPHICVIEW #include "GraphicView.h" #endif #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_VIEWHANDLE #include #endif class TSetPointInteractor : public TInteractor, public MMouseEventHandler { public: VersionDeclarationsMacro(TSetPointInteractor); TSetPointInteractor(TGraphicView*); virtual ~TSetPointInteractor(); virtual bool MouseButtonDown(TMouseDownEvent&, short); virtual bool MouseButtonUp(TMouseUpEvent&, short); virtual bool MouseMoved(TMouseMovedEvent&); protected: virtual void SetPoint(const TGPoint&); private: TViewHandle fViewHandle; }; #endif // TaligentSamples_SETPOINTINTERACTOR