VTK
9.3.0
Main Page
Related Pages
Topics
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
34
#ifndef vtkLightWidget_h
35
#define vtkLightWidget_h
36
37
#include "
vtkAbstractWidget.h
"
38
#include "vtkInteractionWidgetsModule.h"
// For export macro
39
40
VTK_ABI_NAMESPACE_BEGIN
41
class
vtkHandleWidget
;
42
class
vtkLightRepresentation
;
43
44
class
VTKINTERACTIONWIDGETS_EXPORT
vtkLightWidget
:
public
vtkAbstractWidget
45
{
46
public
:
47
static
vtkLightWidget
*
New
();
48
vtkTypeMacro(
vtkLightWidget
,
vtkAbstractWidget
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
56
void
SetRepresentation
(
vtkLightRepresentation
* r);
57
61
vtkLightRepresentation
*
GetLightRepresentation
();
62
66
void
CreateDefaultRepresentation
()
override
;
67
68
protected
:
69
vtkLightWidget
();
70
~vtkLightWidget
()
override
=
default
;
71
72
bool
WidgetActive =
false
;
73
74
// These methods handle events
75
static
void
SelectAction
(
vtkAbstractWidget
*);
76
static
void
EndSelectAction
(
vtkAbstractWidget
*);
77
static
void
MoveAction
(
vtkAbstractWidget
*);
78
static
void
ScaleAction
(
vtkAbstractWidget
*);
79
80
private
:
81
vtkLightWidget
(
const
vtkLightWidget
&) =
delete
;
82
void
operator=(
const
vtkLightWidget
&) =
delete
;
83
};
84
85
VTK_ABI_NAMESPACE_END
86
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:52
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:67
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkLightRepresentation
represent a vtkLight
Definition
vtkLightRepresentation.h:38
vtkLightWidget
3D widget for showing a LightRepresentation
Definition
vtkLightWidget.h:45
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
Generated on Sat Feb 15 2025 13:13:19 for VTK by
1.9.8