VTK  9.2.6
vtkParallelopipedWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkParallelopipedWidget.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
47#ifndef vtkParallelopipedWidget_h
48#define vtkParallelopipedWidget_h
49
50#include "vtkAbstractWidget.h"
51#include "vtkInteractionWidgetsModule.h" // For export macro
52
54class vtkHandleWidget;
55class vtkWidgetSet;
56
57class VTKINTERACTIONWIDGETS_EXPORT vtkParallelopipedWidget : public vtkAbstractWidget
58{
59
60 friend class vtkWidgetSet;
61
62public:
67
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
76 void SetEnabled(int) override;
77
87
95
97
105
110
116
117protected:
120
127
128 // Control whether chairs can be created
130
135
136 // helper methods for cursor management
137 void SetCursor(int state) override;
138
139 // To break reference count loops
140 void ReportReferences(vtkGarbageCollector* collector) override;
141
142 // The positioning handle widgets
144
154
156
157private:
159 void operator=(const vtkParallelopipedWidget&) = delete;
160};
161
162#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:40
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:69