VTK  9.5.2
vtkParallelopipedWidget.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
31
32#ifndef vtkParallelopipedWidget_h
33#define vtkParallelopipedWidget_h
34
35#include "vtkAbstractWidget.h"
36#include "vtkInteractionWidgetsModule.h" // For export macro
37#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
38
39VTK_ABI_NAMESPACE_BEGIN
41class vtkHandleWidget;
42class vtkWidgetSet;
43
44class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkParallelopipedWidget
45 : public vtkAbstractWidget
46{
47
48 friend class vtkWidgetSet;
49
50public:
55
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
64 void SetEnabled(int) override;
65
75
83
85
93
98
104
105protected:
108
115
116 // Control whether chairs can be created
118
123
124 // helper methods for cursor management
125 void SetCursor(int state) override;
126
127 // To break reference count loops
128 void ReportReferences(vtkGarbageCollector* collector) override;
129
130 // The positioning handle widgets
132
142
144
145private:
147 void operator=(const vtkParallelopipedWidget&) = delete;
148};
149
150VTK_ABI_NAMESPACE_END
151#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
Detect and break reference loops.
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:29
Default representation for vtkParallelopipedWidget.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
void SetRepresentation(vtkParallelopipedRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static vtkParallelopipedWidget * New()
Instantiate the object.
void ReportReferences(vtkGarbageCollector *collector) override
vtkParallelopipedRepresentation * GetParallelopipedRepresentation()
Return the representation as a vtkParallelopipedRepresentation.
void BeginTranslateAction(vtkParallelopipedWidget *dispatcher)
void SetProcessEvents(vtkTypeBool) override
Methods to change the whether the widget responds to interaction.
void TranslateAction(vtkParallelopipedWidget *dispatcher)
static void RequestResizeCallback(vtkAbstractWidget *)
static void OnLeftButtonUpCallback(vtkAbstractWidget *)
WidgetEventIds
Events invoked by this widget.
static void RequestResizeAlongAnAxisCallback(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
void SetCursor(int state) override
static void TranslateCallback(vtkAbstractWidget *)
static void OnMouseMoveCallback(vtkAbstractWidget *)
static void RequestChairModeCallback(vtkAbstractWidget *)
void SetEnabled(int) override
Override the superclass method.
~vtkParallelopipedWidget() override
abstract class defines interface between the widget and widget representation classes
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch...
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO