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 =========================================================================*/
46 #ifndef vtkParallelopipedWidget_h
47 #define vtkParallelopipedWidget_h
48 
49 #include "vtkInteractionWidgetsModule.h" // For export macro
50 #include "vtkAbstractWidget.h"
51 
53 class vtkHandleWidget;
54 class vtkWidgetSet;
55 
57 {
58  //BTX
59  friend class vtkWidgetSet;
60  //ETX
61 public:
64 
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
72  virtual void SetEnabled(int);
73 
75 
79  {
80  this->Superclass::SetWidgetRepresentation(
81  reinterpret_cast<vtkWidgetRepresentation*>(r));
82  }
84 
86 
88  {return reinterpret_cast<vtkParallelopipedRepresentation*>(this->WidgetRep);}
90 
92 
94  vtkSetMacro(EnableChairCreation,int);
95  vtkGetMacro(EnableChairCreation,int);
96  vtkBooleanMacro(EnableChairCreation,int);
98 
101 
104  virtual void SetProcessEvents(int);
105 
106 protected:
109 
116 
117  // Control whether chairs can be created
119 
124 
125  // helper methods for cursor management
126  void SetCursor(int state);
127 
128  // To break reference count loops
129  virtual void ReportReferences(vtkGarbageCollector* collector);
130 
131  // The positioning handle widgets
133 
134  //BTX
136 
138  {
139  RequestResizeEvent = 10000,
141  RequestChairModeEvent
142  };
143  //ETX
145 
147 
148 private:
149  vtkParallelopipedWidget(const vtkParallelopipedWidget&); //Not implemented
150  void operator=(const vtkParallelopipedWidget&); //Not implemented
151 };
152 
153 #endif
vtkParallelopipedWidget::EnableChairCreation
int EnableChairCreation
Definition: vtkParallelopipedWidget.h:118
vtkParallelopipedWidget::RequestResizeCallback
static void RequestResizeCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::New
static vtkParallelopipedWidget * New()
vtkParallelopipedWidget::BeginTranslateAction
void BeginTranslateAction(vtkParallelopipedWidget *dispatcher)
vtkHandleWidget
a general widget for moving handles
Definition: vtkHandleWidget.h:79
vtkParallelopipedWidget::RequestResizeAlongAnAxisCallback
static void RequestResizeAlongAnAxisCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::SetEnabled
virtual void SetEnabled(int)
vtkAbstractWidget.h
vtkParallelopipedWidget::SetProcessEvents
virtual void SetProcessEvents(int)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:54
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition: vtkAbstractWidget.h:159
vtkParallelopipedWidget::WidgetEventIds
WidgetEventIds
Definition: vtkParallelopipedWidget.h:138
vtkInteractionWidgetsModule.h
vtkParallelopipedWidget::vtkParallelopipedWidget
vtkParallelopipedWidget()
vtkParallelopipedWidget::TranslateCallback
static void TranslateCallback(vtkAbstractWidget *)
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkParallelopipedWidget
a widget to manipulate 3D parallelopipeds
Definition: vtkParallelopipedWidget.h:57
vtkParallelopipedWidget::RequestChairModeCallback
static void RequestChairModeCallback(vtkAbstractWidget *)
vtkWidgetSet
Synchronize a collection on vtkWidgets drawn on different renderwindows using the Callback - Dispatch...
Definition: vtkWidgetSet.h:113
vtkParallelopipedWidget::OnMouseMoveCallback
static void OnMouseMoveCallback(vtkAbstractWidget *)
vtkParallelopipedWidget::GetParallelopipedRepresentation
vtkParallelopipedRepresentation * GetParallelopipedRepresentation()
Definition: vtkParallelopipedWidget.h:87
vtkParallelopipedWidget::~vtkParallelopipedWidget
~vtkParallelopipedWidget()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkParallelopipedWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkParallelopipedWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkParallelopipedWidget::SetCursor
void SetCursor(int state)
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkParallelopipedWidget::HandleWidgets
vtkHandleWidget ** HandleWidgets
Definition: vtkParallelopipedWidget.h:132
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkParallelopipedWidget::SetRepresentation
void SetRepresentation(vtkParallelopipedRepresentation *r)
Definition: vtkParallelopipedWidget.h:78
vtkParallelopipedWidget::RequestResizeAlongAnAxisEvent
@ RequestResizeAlongAnAxisEvent
Definition: vtkParallelopipedWidget.h:140
vtkParallelopipedWidget::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *collector)
vtkParallelopipedWidget::TranslateAction
void TranslateAction(vtkParallelopipedWidget *dispatcher)
vtkParallelopipedRepresentation
Default representation for vtkParallelopipedWidget.
Definition: vtkParallelopipedRepresentation.h:54
vtkParallelopipedWidget::WidgetSet
vtkWidgetSet * WidgetSet
Definition: vtkParallelopipedWidget.h:146
vtkParallelopipedWidget::OnLeftButtonUpCallback
static void OnLeftButtonUpCallback(vtkAbstractWidget *)