VTK  9.2.20230527
vtkWin32HardwareWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHardwareWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
20 #ifndef vtkWin32HardwareWindow_h
21 #define vtkWin32HardwareWindow_h
22 
23 #include "vtkHardwareWindow.h"
24 #include "vtkRenderingUIModule.h" // For export macro
25 #include "vtkWindows.h" // For windows API
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKRENDERINGUI_EXPORT vtkWin32HardwareWindow : public vtkHardwareWindow
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
37  HWND GetWindowId();
38 
39  void Create() override;
40  void Destroy() override;
41 
43 
47  void SetDisplayId(void*) override;
48  void SetWindowId(void*) override;
49  void SetParentId(void*) override;
50  void* GetGenericDisplayId() override;
51  void* GetGenericWindowId() override;
52  void* GetGenericParentId() override;
54 
56 
59  void SetSize(int, int) override;
62 
64 
67  void SetPosition(int, int) override;
70 
71 protected:
74 
75  HWND ParentId;
76  HWND WindowId;
78 
79 private:
81  void operator=(const vtkWin32HardwareWindow&) = delete;
82 };
83 
84 VTK_ABI_NAMESPACE_END
85 #endif
create a window for renderers to draw into
a simple class to control print indentation
Definition: vtkIndent.h:120
represents a window in a windows GUI
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 SetPosition(int, int) override
Set the position of the window.
void * GetGenericDisplayId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
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.
void SetWindowId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void SetParentId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
static vtkWin32HardwareWindow * New()
void * GetGenericParentId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
~vtkWin32HardwareWindow() override
void * GetGenericWindowId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
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).