VTK  9.0.1
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 =========================================================================*/
46 #ifndef vtkLightWidget_h
47 #define vtkLightWidget_h
48 
49 #include "vtkAbstractWidget.h"
50 #include "vtkInteractionWidgetsModule.h" // For export macro
51 
52 class vtkHandleWidget;
54 
55 class VTKINTERACTIONWIDGETS_EXPORT vtkLightWidget : public vtkAbstractWidget
56 {
57 public:
58  static vtkLightWidget* New();
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
67  void SetRepresentation(vtkLightRepresentation* r);
68 
72  vtkLightRepresentation* GetLightRepresentation();
73 
77  void CreateDefaultRepresentation() override;
78 
79 protected:
81  ~vtkLightWidget() override = default;
82 
83  bool WidgetActive = false;
84 
85  // These methods handle events
86  static void SelectAction(vtkAbstractWidget*);
87  static void EndSelectAction(vtkAbstractWidget*);
88  static void MoveAction(vtkAbstractWidget*);
89  static void ScaleAction(vtkAbstractWidget*);
90 
91 private:
92  vtkLightWidget(const vtkLightWidget&) = delete;
93  void operator=(const vtkLightWidget&) = delete;
94 };
95 
96 #endif
represent a vtkLight
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
a general widget for moving handles
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
a simple class to control print indentation
Definition: vtkIndent.h:33
define the API for widget / widget representation
3D widget for showing a LightRepresentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...