VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Interaction
Widgets
vtkLightWidget.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
33
34
#ifndef vtkLightWidget_h
35
#define vtkLightWidget_h
36
37
#include "
vtkAbstractWidget.h
"
38
#include "vtkInteractionWidgetsModule.h"
// For export macro
39
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
40
41
VTK_ABI_NAMESPACE_BEGIN
42
class
vtkHandleWidget
;
43
class
vtkLightRepresentation
;
44
45
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkLightWidget
:
public
vtkAbstractWidget
46
{
47
public
:
48
static
vtkLightWidget
*
New
();
49
vtkTypeMacro(
vtkLightWidget
,
vtkAbstractWidget
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
51
57
void
SetRepresentation
(
vtkLightRepresentation
* r);
58
62
vtkLightRepresentation
*
GetLightRepresentation
();
63
67
void
CreateDefaultRepresentation
()
override
;
68
69
protected
:
70
vtkLightWidget
();
71
~vtkLightWidget
()
override
=
default
;
72
73
bool
WidgetActive
=
false
;
74
75
// These methods handle events
76
static
void
SelectAction
(
vtkAbstractWidget
*);
77
static
void
EndSelectAction
(
vtkAbstractWidget
*);
78
static
void
MoveAction
(
vtkAbstractWidget
*);
79
static
void
ScaleAction
(
vtkAbstractWidget
*);
80
81
private
:
82
vtkLightWidget
(
const
vtkLightWidget
&) =
delete
;
83
void
operator=(
const
vtkLightWidget
&) =
delete
;
84
};
85
86
VTK_ABI_NAMESPACE_END
87
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:66
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkLightRepresentation
represent a vtkLight
Definition
vtkLightRepresentation.h:40
vtkLightWidget::vtkLightWidget
vtkLightWidget()
vtkLightWidget::GetLightRepresentation
vtkLightRepresentation * GetLightRepresentation()
Return the representation as a vtkLightRepresentation.
vtkLightWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkLightWidget::SetRepresentation
void SetRepresentation(vtkLightRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkLightWidget::~vtkLightWidget
~vtkLightWidget() override=default
vtkLightWidget::WidgetActive
bool WidgetActive
Definition
vtkLightWidget.h:73
vtkLightWidget::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkLightWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkLightWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkLightWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
vtkLightWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkLightWidget::New
static vtkLightWidget * New()
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0