VTK  9.0.1
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 class VTKRENDERINGUI_EXPORT vtkWin32HardwareWindow : public vtkHardwareWindow
28 {
29 public:
30  static vtkWin32HardwareWindow* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  HINSTANCE GetApplicationInstance();
35 
36  HWND GetWindowId();
37 
38  void Create() override;
39  void Destroy() override;
40 
42 
46  void SetDisplayId(void*) override;
47  void SetWindowId(void*) override;
48  void SetParentId(void*) override;
49  void* GetGenericDisplayId() override;
50  void* GetGenericWindowId() override;
51  void* GetGenericParentId() override;
53 
54 protected:
56  ~vtkWin32HardwareWindow() override;
57 
58  HWND ParentId;
59  HWND WindowId;
61 
62 private:
64  void operator=(const vtkWin32HardwareWindow&) = delete;
65 };
66 
67 #endif
vtkHardwareWindow::Create
virtual void Create()
Definition: vtkHardwareWindow.h:43
vtkWin32HardwareWindow::ApplicationInstance
HINSTANCE ApplicationInstance
Definition: vtkWin32HardwareWindow.h:60
vtkWin32HardwareWindow::ParentId
HWND ParentId
Definition: vtkWin32HardwareWindow.h:58
vtkWindow::GetGenericDisplayId
virtual void * GetGenericDisplayId()
Definition: vtkWindow.h:51
vtkHardwareWindow.h
vtkWin32HardwareWindow
represents a window in a windows GUI
Definition: vtkWin32HardwareWindow.h:27
vtkWindow::GetGenericParentId
virtual void * GetGenericParentId()
Definition: vtkWindow.h:53
vtkWindow::SetParentId
virtual void SetParentId(void *)
Definition: vtkWindow.h:50
vtkHardwareWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkWindow::SetDisplayId
virtual void SetDisplayId(void *)
These are window system independent methods that are used to help interface vtkWindow to native windo...
Definition: vtkWindow.h:48
vtkWin32HardwareWindow::WindowId
HWND WindowId
Definition: vtkWin32HardwareWindow.h:59
vtkWindow::GetGenericWindowId
virtual void * GetGenericWindowId()
Definition: vtkWindow.h:52
vtkHardwareWindow::New
static vtkHardwareWindow * New()
vtkWindow::SetWindowId
virtual void SetWindowId(void *)
Definition: vtkWindow.h:49
vtkHardwareWindow::Destroy
virtual void Destroy()
Definition: vtkHardwareWindow.h:46
vtkHardwareWindow
create a window for renderers to draw into
Definition: vtkHardwareWindow.h:35