VTK
9.2.6
Interaction
Widgets
vtkLightWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLightWidget.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
=========================================================================*/
48
49
#ifndef vtkLightWidget_h
50
#define vtkLightWidget_h
51
52
#include "
vtkAbstractWidget.h
"
53
#include "vtkInteractionWidgetsModule.h"
// For export macro
54
55
class
vtkHandleWidget
;
56
class
vtkLightRepresentation
;
57
58
class
VTKINTERACTIONWIDGETS_EXPORT
vtkLightWidget
:
public
vtkAbstractWidget
59
{
60
public
:
61
static
vtkLightWidget
*
New
();
62
vtkTypeMacro(
vtkLightWidget
,
vtkAbstractWidget
);
63
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
64
70
void
SetRepresentation
(
vtkLightRepresentation
* r);
71
75
vtkLightRepresentation
*
GetLightRepresentation
();
76
80
void
CreateDefaultRepresentation
()
override
;
81
82
protected
:
83
vtkLightWidget
();
84
~vtkLightWidget
()
override
=
default
;
85
86
bool
WidgetActive
=
false
;
87
88
// These methods handle events
89
static
void
SelectAction
(
vtkAbstractWidget
*);
90
static
void
EndSelectAction
(
vtkAbstractWidget
*);
91
static
void
MoveAction
(
vtkAbstractWidget
*);
92
static
void
ScaleAction
(
vtkAbstractWidget
*);
93
94
private
:
95
vtkLightWidget
(
const
vtkLightWidget
&) =
delete
;
96
void
operator=(
const
vtkLightWidget
&) =
delete
;
97
};
98
99
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:80
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkLightRepresentation
represent a vtkLight
Definition
vtkLightRepresentation.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::WidgetActive
bool WidgetActive
Definition
vtkLightWidget.h:86
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 Thu Feb 13 2025 00:00:00 for VTK by
1.13.2