VTK  9.6.20260221
vtkWin32HardwareWindow.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10
11#ifndef vtkWin32HardwareWindow_h
12#define vtkWin32HardwareWindow_h
13
14#include "vtkHardwareWindow.h"
15#include "vtkRenderingUIModule.h" // For export macro
16#include "vtkWindows.h" // For windows API
17#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18
19VTK_ABI_NAMESPACE_BEGIN
20class VTKRENDERINGUI_EXPORT VTK_MARSHALAUTO vtkWin32HardwareWindow : public vtkHardwareWindow
21{
22public:
25 void PrintSelf(ostream& os, vtkIndent indent) override;
26
28
30
31 void Create() override;
32 void Destroy() override;
33
35
39 void SetDisplayId(void*) override;
40 void SetWindowId(void*) override;
41 void SetParentId(void*) override;
42 void* GetGenericDisplayId() override;
43 void* GetGenericWindowId() override;
44 void* GetGenericParentId() override;
46
48
51 void SetSize(int, int) override;
54
56
59 void SetPosition(int, int) override;
62
64
70 void HideCursor() override;
71 void ShowCursor() override;
72 void SetCursorPosition(int x, int y) override;
74
78 void SetCurrentCursor(int) override;
79
80protected:
83
87
88 // message handler
89 virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
90
91 static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
92
94
95private:
97 void operator=(const vtkWin32HardwareWindow&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
a simple class to control print indentation
Definition vtkIndent.h:108
HINSTANCE GetApplicationInstance()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Create() override
void * GetGenericDisplayId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void SetPosition(int, int) override
Set the position of the window.
void ShowCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void HideCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void SetDisplayId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void SetSize(int, int) override
Set the size of the window in pixels.
static vtkWin32HardwareWindow * New()
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetWindowId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetParentId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void * GetGenericWindowId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
~vtkWin32HardwareWindow() override
void * GetGenericParentId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void SetCursorPosition(int x, int y) override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void SetCurrentCursor(int) override
Change the shape of the cursor.
void Destroy() override
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
#define VTK_MARSHALAUTO