VTK
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 "vtkInteractionWidgetsModule.h" // For export macro
48 #include "vtkAbstractWidget.h"
49 
51 class vtkHandleWidget;
52 class vtkWidgetSet;
53 
54 class VTKINTERACTIONWIDGETS_EXPORT vtkParallelopipedWidget : public vtkAbstractWidget
55 {
56 
57  friend class vtkWidgetSet;
58 
59 public:
64 
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
73  virtual void SetEnabled(int);
74 
81  {
82  this->Superclass::SetWidgetRepresentation(
83  reinterpret_cast<vtkWidgetRepresentation*>(r));
84  }
85 
90  {return reinterpret_cast<vtkParallelopipedRepresentation*>(this->WidgetRep);}
91 
93 
97  vtkSetMacro(EnableChairCreation,int);
98  vtkGetMacro(EnableChairCreation,int);
99  vtkBooleanMacro(EnableChairCreation,int);
101 
106 
111  virtual void SetProcessEvents(int);
112 
113 protected:
116 
123 
124  // Control whether chairs can be created
126 
131 
132  // helper methods for cursor management
133  void SetCursor(int state);
134 
135  // To break reference count loops
136  void ReportReferences(vtkGarbageCollector* collector) VTK_OVERRIDE;
137 
138  // The positioning handle widgets
140 
145  {
146  RequestResizeEvent = 10000,
148  RequestChairModeEvent
149  };
150 
152 
153 private:
154  vtkParallelopipedWidget(const vtkParallelopipedWidget&) VTK_DELETE_FUNCTION;
155  void operator=(const vtkParallelopipedWidget&) VTK_DELETE_FUNCTION;
156 };
157 
158 #endif
vtkParallelopipedWidget::EnableChairCreation
int EnableChairCreation
Definition: vtkParallelopipedWidget.h:125
vtkParallelopipedWidget::ReportReferences
void ReportReferences(vtkGarbageCollector *collector) override
vtkParallelopipedWidget::RequestResizeCallback
static void RequestResizeCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::New
static vtkParallelopipedWidget * New()
Instantiate the object.
vtkParallelopipedWidget::BeginTranslateAction
void BeginTranslateAction(vtkParallelopipedWidget *dispatcher)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:77
vtkParallelopipedWidget::RequestResizeAlongAnAxisCallback
static void RequestResizeAlongAnAxisCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::SetEnabled
virtual void SetEnabled(int)
Override the superclass method.
vtkAbstractWidget.h
vtkParallelopipedWidget::SetProcessEvents
virtual void SetProcessEvents(int)
Methods to change the whether the widget responds to interaction.
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:55
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:174
vtkParallelopipedWidget::WidgetEventIds
WidgetEventIds
Events invoked by this widget.
Definition: vtkParallelopipedWidget.h:145
vtkParallelopipedWidget::vtkParallelopipedWidget
vtkParallelopipedWidget()
vtkParallelopipedWidget::TranslateCallback
static void TranslateCallback(vtkAbstractWidget *)
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkParallelopipedWidget
a widget to manipulate 3D parallelopipeds
Definition: vtkParallelopipedWidget.h:55
vtkParallelopipedWidget::RequestChairModeCallback
static void RequestChairModeCallback(vtkAbstractWidget *)
vtkWidgetSet
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch...
Definition: vtkWidgetSet.h:112
vtkParallelopipedWidget::OnMouseMoveCallback
static void OnMouseMoveCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::GetParallelopipedRepresentation
vtkParallelopipedRepresentation * GetParallelopipedRepresentation()
Return the representation as a vtkParallelopipedRepresentation.
Definition: vtkParallelopipedWidget.h:89
vtkParallelopipedWidget::~vtkParallelopipedWidget
~vtkParallelopipedWidget()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkParallelopipedWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkParallelopipedWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkParallelopipedWidget::SetCursor
void SetCursor(int state)
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkParallelopipedWidget::HandleWidgets
vtkHandleWidget ** HandleWidgets
Definition: vtkParallelopipedWidget.h:139
vtkParallelopipedWidget::SetRepresentation
void SetRepresentation(vtkParallelopipedRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkParallelopipedWidget.h:80
vtkParallelopipedWidget::RequestResizeAlongAnAxisEvent
@ RequestResizeAlongAnAxisEvent
Definition: vtkParallelopipedWidget.h:147
vtkParallelopipedWidget::TranslateAction
void TranslateAction(vtkParallelopipedWidget *dispatcher)
vtkParallelopipedRepresentation
Default representation for vtkParallelopipedWidget.
Definition: vtkParallelopipedRepresentation.h:55
vtkParallelopipedWidget::WidgetSet
vtkWidgetSet * WidgetSet
Definition: vtkParallelopipedWidget.h:151
vtkParallelopipedWidget::OnLeftButtonUpCallback
static void OnLeftButtonUpCallback(vtkAbstractWidget *)