Go to the documentation of this file.
30 #ifndef vtkWin32RenderWindowInteractor_h
31 #define vtkWin32RenderWindowInteractor_h
33 #include "vtkRenderingOpenGL2Module.h"
35 #include "vtkWindows.h"
37 #include "vtkTDxConfigure.h"
80 vtkGetMacro(InstallMessageProc,
int);
91 friend VTKRENDERINGOPENGL2_EXPORT LRESULT CALLBACK
vtkHandleMessage(HWND hwnd,UINT uMsg, WPARAM w, LPARAM l);
101 virtual int OnRButtonDown(HWND wnd, UINT nFlags,
int X,
int Y,
int repeat = 0);
103 virtual int OnMButtonDown(HWND wnd, UINT nFlags,
int X,
int Y,
int repeat = 0);
105 virtual int OnLButtonDown(HWND wnd, UINT nFlags,
int X,
int Y,
int repeat = 0);
107 virtual int OnSize(HWND wnd, UINT nType,
int X,
int Y);
109 virtual int OnKeyDown(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags);
110 virtual int OnKeyUp(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags);
111 virtual int OnChar(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags);
116 virtual int OnTouch(HWND wnd, UINT wParam, UINT lParam);
142 int InstallMessageProc;
144 int StartedMessageLoop;
152 static void (*ClassExitMethod)(
void *);
153 static void (*ClassExitMethodArgDelete)(
void *);
154 static void *ClassExitMethodArg;
virtual void StartEventLoop()
This will start up the event loop and never return.
virtual int OnSize(HWND wnd, UINT nType, int X, int Y)
friend VTKRENDERINGOPENGL2_EXPORT LRESULT CALLBACK vtkHandleMessage2(HWND hwnd, UINT uMsg, WPARAM w, LPARAM l, vtkWin32RenderWindowInteractor *me)
friend VTKRENDERINGOPENGL2_EXPORT LRESULT CALLBACK vtkHandleMessage(HWND hwnd, UINT uMsg, WPARAM w, LPARAM l)
~vtkWin32RenderWindowInteractor()
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration)
Win32-specific internal timer methods.
Implementation of vtkTDxDevice on Windows.
vtkWin32RenderWindowInteractor()
virtual int OnKillFocus(HWND wnd, UINT nFlags)
virtual void Initialize()
Initialize the event handler.
implements Win32 specific functions required by vtkRenderWindowInteractor.
virtual int OnNCMouseMove(HWND wnd, UINT nFlags, int X, int Y)
virtual int OnTimer(HWND wnd, UINT nIDEvent)
void TerminateApp(void)
Win32 specific application terminate, calls ClassExitMethod then calls PostQuitMessage(0) to terminat...
virtual int OnChar(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags)
virtual int OnMouseMove(HWND wnd, UINT nFlags, int X, int Y)
Various methods that a Win32 window can redirect to this class to be handled.
static void SetClassExitMethod(void(*f)(void *), void *arg)
Methods to set the default exit method for the class.
virtual int OnKeyUp(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags)
virtual int OnMButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat=0)
a simple class to control print indentation
virtual int InternalDestroyTimer(int platformTimerId)
virtual int OnLButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat=0)
static void SetClassExitMethodArgDelete(void(*f)(void *))
platform-independent render window interaction including picking and frame rate control.
virtual int OnKeyDown(HWND wnd, UINT nChar, UINT nRepCnt, UINT nFlags)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual int OnFocus(HWND wnd, UINT nFlags)
virtual int OnMouseWheelBackward(HWND wnd, UINT nFlags, int X, int Y)
virtual int OnMouseWheelForward(HWND wnd, UINT nFlags, int X, int Y)
virtual int OnRButtonUp(HWND wnd, UINT nFlags, int X, int Y)
virtual void ExitCallback()
These methods correspond to the the Exit, User and Pick callbacks.
virtual int OnMButtonUp(HWND wnd, UINT nFlags, int X, int Y)
virtual int OnRButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat=0)
virtual void Enable()
Enable/Disable interactions.
virtual int OnLButtonUp(HWND wnd, UINT nFlags, int X, int Y)
static vtkWin32RenderWindowInteractor * New()
Construct object so that light follows camera motion.
virtual int OnTouch(HWND wnd, UINT wParam, UINT lParam)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.