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=========================================================================*/
44#ifndef vtkParallelopipedWidget_h
45#define vtkParallelopipedWidget_h
46
47#include "vtkAbstractWidget.h"
48#include "vtkInteractionWidgetsModule.h" // For export macro
49
51class vtkHandleWidget;
52class vtkWidgetSet;
53
54class VTKINTERACTIONWIDGETS_EXPORT vtkParallelopipedWidget : public vtkAbstractWidget
55{
56
57 friend class vtkWidgetSet;
58
59public:
64
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
73 void SetEnabled(int) override;
74
81 {
82 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
83 }
84
89 {
90 return reinterpret_cast<vtkParallelopipedRepresentation*>(this->WidgetRep);
91 }
92
94
98 vtkSetMacro(EnableChairCreation, vtkTypeBool);
99 vtkGetMacro(EnableChairCreation, vtkTypeBool);
100 vtkBooleanMacro(EnableChairCreation, vtkTypeBool);
102
107
113
114protected:
117
124
125 // Control whether chairs can be created
127
132
133 // helper methods for cursor management
134 void SetCursor(int state) override;
135
136 // To break reference count loops
137 void ReportReferences(vtkGarbageCollector* collector) override;
138
139 // The positioning handle widgets
141
146 {
147 RequestResizeEvent = 10000,
149 RequestChairModeEvent
150 };
151
153
154private:
156 void operator=(const vtkParallelopipedWidget&) = delete;
157};
158
159#endif
define the API for widget / widget representation
vtkWidgetRepresentation * WidgetRep
Detect and break reference loops.
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:34
Default representation for vtkParallelopipedWidget.
a widget to manipulate 3D parallelopipeds
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