VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
43
#ifndef vtkLightWidget_h
44
#define vtkLightWidget_h
45
46
#include "
vtkAbstractWidget.h
"
47
#include "vtkInteractionWidgetsModule.h"
// For export macro
48
49
class
vtkHandleWidget
;
50
class
vtkLightRepresentation
;
51
52
class
VTKINTERACTIONWIDGETS_EXPORT
vtkLightWidget
:
public
vtkAbstractWidget
53
{
54
public
:
55
static
vtkLightWidget
*
New
();
56
vtkTypeMacro(
vtkLightWidget
,
vtkAbstractWidget
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
64
void
SetRepresentation
(
vtkLightRepresentation
* r);
65
69
vtkLightRepresentation
*
GetLightRepresentation
();
70
74
void
CreateDefaultRepresentation
()
override
;
75
76
protected
:
77
vtkLightWidget
();
78
~vtkLightWidget
()
override
=
default
;
79
80
bool
WidgetActive =
false
;
81
82
// These methods handle events
83
static
void
SelectAction
(
vtkAbstractWidget
*);
84
static
void
EndSelectAction
(
vtkAbstractWidget
*);
85
static
void
MoveAction
(
vtkAbstractWidget
*);
86
static
void
ScaleAction
(
vtkAbstractWidget
*);
87
88
private
:
89
vtkLightWidget
(
const
vtkLightWidget
&) =
delete
;
90
void
operator=(
const
vtkLightWidget
&) =
delete
;
91
};
92
93
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkHandleWidget
a general widget for moving handles
Definition:
vtkHandleWidget.h:73
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkLightRepresentation
represent a vtkLight
Definition:
vtkLightRepresentation.h:46
vtkLightWidget
3D widget for showing a LightRepresentation
Definition:
vtkLightWidget.h:53
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 25 2023 08:59:35 for VTK by
1.9.4