VTK
9.2.6
Interaction
Widgets
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
=========================================================================*/
43
44
#ifndef vtkParallelopipedWidget_h
45
#define vtkParallelopipedWidget_h
46
47
#include "
vtkAbstractWidget.h
"
48
#include "vtkInteractionWidgetsModule.h"
// For export macro
49
50
class
vtkParallelopipedRepresentation
;
51
class
vtkHandleWidget
;
52
class
vtkWidgetSet
;
53
54
class
VTKINTERACTIONWIDGETS_EXPORT
vtkParallelopipedWidget
:
public
vtkAbstractWidget
55
{
56
57
friend
class
vtkWidgetSet
;
58
59
public
:
63
static
vtkParallelopipedWidget
*
New
();
64
65
vtkTypeMacro(
vtkParallelopipedWidget
,
vtkAbstractWidget
);
66
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
67
73
void
SetEnabled
(
int
)
override
;
74
80
void
SetRepresentation
(
vtkParallelopipedRepresentation
* r)
81
{
82
this->
Superclass::SetWidgetRepresentation
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
83
}
84
88
vtkParallelopipedRepresentation
*
GetParallelopipedRepresentation
()
89
{
90
return
reinterpret_cast<
vtkParallelopipedRepresentation
*
>
(this->
WidgetRep
);
91
}
92
94
98
vtkSetMacro(
EnableChairCreation
,
vtkTypeBool
);
99
vtkGetMacro(
EnableChairCreation
,
vtkTypeBool
);
100
vtkBooleanMacro(
EnableChairCreation
,
vtkTypeBool
);
102
106
void
CreateDefaultRepresentation
()
override
;
107
112
void
SetProcessEvents
(
vtkTypeBool
)
override
;
113
114
protected
:
115
vtkParallelopipedWidget
();
116
~vtkParallelopipedWidget
()
override
;
117
118
static
void
RequestResizeCallback
(
vtkAbstractWidget
*);
119
static
void
RequestResizeAlongAnAxisCallback
(
vtkAbstractWidget
*);
120
static
void
RequestChairModeCallback
(
vtkAbstractWidget
*);
121
static
void
TranslateCallback
(
vtkAbstractWidget
*);
122
static
void
OnMouseMoveCallback
(
vtkAbstractWidget
*);
123
static
void
OnLeftButtonUpCallback
(
vtkAbstractWidget
*);
124
125
// Control whether chairs can be created
126
vtkTypeBool
EnableChairCreation
;
127
129
void
BeginTranslateAction
(
vtkParallelopipedWidget
* dispatcher);
130
void
TranslateAction
(
vtkParallelopipedWidget
* dispatcher);
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
140
vtkHandleWidget
**
HandleWidgets
;
141
145
enum
WidgetEventIds
146
{
147
RequestResizeEvent
= 10000,
148
RequestResizeAlongAnAxisEvent
,
149
RequestChairModeEvent
150
};
151
152
vtkWidgetSet
*
WidgetSet
;
153
154
private
:
155
vtkParallelopipedWidget
(
const
vtkParallelopipedWidget
&) =
delete
;
156
void
operator=(
const
vtkParallelopipedWidget
&) =
delete
;
157
};
158
159
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:180
vtkGarbageCollector
Detect and break reference loops.
Definition
vtkGarbageCollector.h:88
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:77
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:34
vtkParallelopipedRepresentation
Default representation for vtkParallelopipedWidget.
Definition
vtkParallelopipedRepresentation.h:52
vtkParallelopipedWidget::HandleWidgets
vtkHandleWidget ** HandleWidgets
Definition
vtkParallelopipedWidget.h:140
vtkParallelopipedWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkParallelopipedWidget::SetRepresentation
void SetRepresentation(vtkParallelopipedRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkParallelopipedWidget.h:80
vtkParallelopipedWidget::New
static vtkParallelopipedWidget * New()
Instantiate the object.
vtkParallelopipedWidget::ReportReferences
void ReportReferences(vtkGarbageCollector *collector) override
vtkParallelopipedWidget::vtkParallelopipedWidget
vtkParallelopipedWidget()
vtkParallelopipedWidget::GetParallelopipedRepresentation
vtkParallelopipedRepresentation * GetParallelopipedRepresentation()
Return the representation as a vtkParallelopipedRepresentation.
Definition
vtkParallelopipedWidget.h:88
vtkParallelopipedWidget::BeginTranslateAction
void BeginTranslateAction(vtkParallelopipedWidget *dispatcher)
vtkParallelopipedWidget::SetProcessEvents
void SetProcessEvents(vtkTypeBool) override
Methods to change the whether the widget responds to interaction.
vtkParallelopipedWidget::TranslateAction
void TranslateAction(vtkParallelopipedWidget *dispatcher)
vtkParallelopipedWidget::RequestResizeCallback
static void RequestResizeCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::OnLeftButtonUpCallback
static void OnLeftButtonUpCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::WidgetSet
vtkWidgetSet * WidgetSet
Definition
vtkParallelopipedWidget.h:152
vtkParallelopipedWidget::WidgetEventIds
WidgetEventIds
Events invoked by this widget.
Definition
vtkParallelopipedWidget.h:146
vtkParallelopipedWidget::RequestResizeEvent
@ RequestResizeEvent
Definition
vtkParallelopipedWidget.h:147
vtkParallelopipedWidget::RequestResizeAlongAnAxisEvent
@ RequestResizeAlongAnAxisEvent
Definition
vtkParallelopipedWidget.h:148
vtkParallelopipedWidget::RequestChairModeEvent
@ RequestChairModeEvent
Definition
vtkParallelopipedWidget.h:149
vtkParallelopipedWidget::RequestResizeAlongAnAxisCallback
static void RequestResizeAlongAnAxisCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
vtkParallelopipedWidget::SetCursor
void SetCursor(int state) override
vtkParallelopipedWidget::TranslateCallback
static void TranslateCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::OnMouseMoveCallback
static void OnMouseMoveCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::EnableChairCreation
vtkTypeBool EnableChairCreation
Definition
vtkParallelopipedWidget.h:126
vtkParallelopipedWidget::RequestChairModeCallback
static void RequestChairModeCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::SetEnabled
void SetEnabled(int) override
Override the superclass method.
vtkParallelopipedWidget::~vtkParallelopipedWidget
~vtkParallelopipedWidget() override
vtkParallelopipedWidget::vtkWidgetSet
friend class vtkWidgetSet
Definition
vtkParallelopipedWidget.h:57
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:60
vtkWidgetSet
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch...
Definition
vtkWidgetSet.h:114
vtkTypeBool
int vtkTypeBool
Definition
vtkABI.h:69
vtkAbstractWidget.h
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2