VTK  9.3.1
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
8 #ifndef vtkWin32HardwareWindow_h
9 #define vtkWin32HardwareWindow_h
10 
11 #include "vtkHardwareWindow.h"
12 #include "vtkRenderingUIModule.h" // For export macro
13 #include "vtkWindows.h" // For windows API
14 
15 VTK_ABI_NAMESPACE_BEGIN
16 class VTKRENDERINGUI_EXPORT vtkWin32HardwareWindow : public vtkHardwareWindow
17 {
18 public:
19  static vtkWin32HardwareWindow* New();
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
23  HINSTANCE GetApplicationInstance();
24 
25  HWND GetWindowId();
26 
27  void Create() override;
28  void Destroy() override;
29 
31 
35  void SetDisplayId(void*) override;
36  void SetWindowId(void*) override;
37  void SetParentId(void*) override;
38  void* GetGenericDisplayId() override;
39  void* GetGenericWindowId() override;
40  void* GetGenericParentId() override;
42 
44 
47  void SetSize(int, int) override;
50 
52 
55  void SetPosition(int, int) override;
58 
59 protected:
61  ~vtkWin32HardwareWindow() override;
62 
63  HWND ParentId;
64  HWND WindowId;
66 
67 private:
69  void operator=(const vtkWin32HardwareWindow&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
create a window for renderers to draw into
virtual void SetDisplayId(void *)
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:38
static vtkHardwareWindow * New()
virtual void * GetGenericParentId()
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:43
virtual void Create()
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void SetParentId(void *)
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:40
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void Destroy()
represents a window in a windows GUI
virtual void * GetGenericWindowId()
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:42
virtual void * GetGenericDisplayId()
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:41
virtual void SetWindowId(void *)
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:39