VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Rendering
Core
vtkRenderWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
5
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef vtkRenderWidget_h
15
#define vtkRenderWidget_h
16
17
#include "
vtkNew.h
"
// For member variables.
18
#include "
vtkObject.h
"
19
#include "vtkRenderingCoreModule.h"
// For export macro
20
#include "
vtkVector.h
"
// For member variables.
21
#include <string>
// For member variables.
22
23
class
vtkAbstractInteractionDevice
;
24
class
vtkAbstractRenderDevice
;
25
26
class
VTKRENDERINGCORE_EXPORT
vtkRenderWidget
:
public
vtkObject
27
{
28
public
:
29
vtkTypeMacro(
vtkRenderWidget
,
vtkObject
);
30
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
31
static
vtkRenderWidget
*
New
();
32
37
void
SetPosition
(
const
vtkVector2i
& pos);
38
43
vtkVector2i
GetPosition
()
const
{
return
this->
Position
; }
44
49
void
SetSize
(
const
vtkVector2i
&
size
);
50
56
vtkVector2i
GetSize
()
const
{
return
this->Size; }
57
62
void
SetName
(
const
std::string
&
name
);
63
68
std::string
GetName
()
const
{
return
this->Name; }
69
73
virtual
void
Render
();
74
80
virtual
void
MakeCurrent
();
81
82
void
Initialize
();
83
void
Start
();
84
85
protected
:
86
vtkRenderWidget
();
87
~vtkRenderWidget
()
override
;
88
89
vtkVector2i
Position
;
// Position of the widget in screen coordinates.
90
vtkVector2i
Size
;
// Position of the widget in screen coordinates.
91
std::string
Name
;
// The name of the widget.
92
93
vtkNew<vtkAbstractInteractionDevice>
InteractionDevice
;
// Interaction device.
94
vtkNew<vtkAbstractRenderDevice>
RenderDevice
;
// Render device target.
95
96
private
:
97
vtkRenderWidget
(
const
vtkRenderWidget
&) =
delete
;
98
void
operator=(
const
vtkRenderWidget
&) =
delete
;
99
};
100
101
#endif
vtkAbstractInteractionDevice
Definition:
vtkAbstractInteractionDevice.h:24
vtkAbstractRenderDevice
Definition:
vtkAbstractRenderDevice.h:24
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkNew< vtkAbstractInteractionDevice >
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:73
vtkRenderWidget
Definition:
vtkRenderWidget.h:27
vtkRenderWidget::Start
void Start()
vtkRenderWidget::Initialize
void Initialize()
vtkRenderWidget::GetSize
vtkVector2i GetSize() const
Get the widget size in screen coordinates.
Definition:
vtkRenderWidget.h:56
vtkRenderWidget::Size
vtkVector2i Size
Definition:
vtkRenderWidget.h:90
vtkRenderWidget::New
static vtkRenderWidget * New()
vtkRenderWidget::SetPosition
void SetPosition(const vtkVector2i &pos)
Set the widget position in screen coordinates.
vtkRenderWidget::SetName
void SetName(const std::string &name)
Set the name of the widget.
vtkRenderWidget::SetSize
void SetSize(const vtkVector2i &size)
Set the widget size in screen coordinates.
vtkRenderWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWidget::GetName
std::string GetName() const
Get the name of the widget.
Definition:
vtkRenderWidget.h:68
vtkRenderWidget::MakeCurrent
virtual void MakeCurrent()
Make the widget's context current, this will defer to the OS specific methods, and calls should be ke...
vtkRenderWidget::Render
virtual void Render()
Render everything in the current widget.
vtkRenderWidget::Position
vtkVector2i Position
Definition:
vtkRenderWidget.h:89
vtkRenderWidget::vtkRenderWidget
vtkRenderWidget()
vtkRenderWidget::Name
std::string Name
Definition:
vtkRenderWidget.h:91
vtkRenderWidget::GetPosition
vtkVector2i GetPosition() const
Get the widget position in screen coordinates.
Definition:
vtkRenderWidget.h:43
vtkRenderWidget::~vtkRenderWidget
~vtkRenderWidget() override
vtkRenderWidget::InteractionDevice
vtkNew< vtkAbstractInteractionDevice > InteractionDevice
Definition:
vtkRenderWidget.h:93
vtkRenderWidget::RenderDevice
vtkNew< vtkAbstractRenderDevice > RenderDevice
Definition:
vtkRenderWidget.h:94
vtkVector2i
Some derived classes for the different vectors commonly used.
Definition:
vtkVector.h:478
vtkParticleTracerBaseNamespace::Position
Position_t Position
Definition:
vtkParticleTracerBase.h:63
vtkX3D::name
@ name
Definition:
vtkX3D.h:225
vtkX3D::size
@ size
Definition:
vtkX3D.h:259
vtkX3D::string
@ string
Definition:
vtkX3D.h:496
vtkNew.h
vtkObject.h
vtkVector.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4