VTK
9.4.20250102
Main Page
Related Pages
Modules
Namespaces
Classes
Files
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
37
#ifndef vtkLightWidget_h
38
#define vtkLightWidget_h
39
40
#include "
vtkAbstractWidget.h
"
41
#include "vtkInteractionWidgetsModule.h"
// For export macro
42
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
43
44
VTK_ABI_NAMESPACE_BEGIN
45
class
vtkHandleWidget
;
46
class
vtkLightRepresentation
;
47
48
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkLightWidget
:
public
vtkAbstractWidget
49
{
50
public
:
51
static
vtkLightWidget
*
New
();
52
vtkTypeMacro(
vtkLightWidget
,
vtkAbstractWidget
);
53
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
54
60
void
SetRepresentation
(
vtkLightRepresentation
* r);
61
65
vtkLightRepresentation
*
GetLightRepresentation
();
66
70
void
CreateDefaultRepresentation
()
override
;
71
72
protected
:
73
vtkLightWidget
();
74
~vtkLightWidget
()
override
=
default
;
75
76
bool
WidgetActive =
false
;
77
78
// These methods handle events
79
static
void
SelectAction
(
vtkAbstractWidget
*);
80
static
void
EndSelectAction
(
vtkAbstractWidget
*);
81
static
void
MoveAction
(
vtkAbstractWidget
*);
82
static
void
ScaleAction
(
vtkAbstractWidget
*);
83
84
private
:
85
vtkLightWidget
(
const
vtkLightWidget
&) =
delete
;
86
void
operator=(
const
vtkLightWidget
&) =
delete
;
87
};
88
89
VTK_ABI_NAMESPACE_END
90
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:69
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkLightRepresentation
represent a vtkLight
Definition
vtkLightRepresentation.h:40
vtkLightWidget
3D widget for showing a LightRepresentation
Definition
vtkLightWidget.h:49
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::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:50
Generated on Thu Jan 2 2025 09:04:00 for VTK by
1.9.7