VTK
vtkScalarBarWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkScalarBarWidget.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 =========================================================================*/
38 #ifndef vtkScalarBarWidget_h
39 #define vtkScalarBarWidget_h
40 
41 #include "vtkInteractionWidgetsModule.h" // For export macro
42 #include "vtkBorderWidget.h"
43 
44 class vtkScalarBarActor;
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkScalarBarWidget : public vtkBorderWidget
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
60 
65  { return reinterpret_cast<vtkScalarBarRepresentation *>(this->GetRepresentation()); }
66 
68 
71  virtual void SetScalarBarActor(vtkScalarBarActor *actor);
74 
76 
82  vtkSetMacro(Repositionable, int);
83  vtkGetMacro(Repositionable, int);
84  vtkBooleanMacro(Repositionable, int);
86 
91 
92 protected:
95 
97 
98  // Handle the case of Repositionable == 0
100 
101  // set the cursor to the correct shape based on State argument
102  virtual void SetCursor(int State);
103 
104 private:
105  vtkScalarBarWidget(const vtkScalarBarWidget&) VTK_DELETE_FUNCTION;
106  void operator=(const vtkScalarBarWidget&) VTK_DELETE_FUNCTION;
107 };
108 
109 #endif
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition: vtkScalarBarWidget.h:48
vtkAbstractWidget::GetRepresentation
vtkWidgetRepresentation * GetRepresentation()
Return an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkAbstractWidget.h:134
vtkScalarBarWidget::GetScalarBarActor
virtual vtkScalarBarActor * GetScalarBarActor()
vtkScalarBarWidget::GetScalarBarRepresentation
vtkScalarBarRepresentation * GetScalarBarRepresentation()
Return the representation as a vtkScalarBarRepresentation.
Definition: vtkScalarBarWidget.h:64
vtkBorderWidget
place a border around a 2D rectangular region
Definition: vtkBorderWidget.h:86
vtkScalarBarWidget::New
static vtkScalarBarWidget * New()
vtkScalarBarWidget::vtkScalarBarWidget
vtkScalarBarWidget()
vtkBorderWidget.h
vtkScalarBarWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkScalarBarWidget::CreateDefaultRepresentation
virtual void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:64
vtkScalarBarWidget::SetCursor
virtual void SetCursor(int State)
vtkScalarBarWidget::Repositionable
int Repositionable
Definition: vtkScalarBarWidget.h:96
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkScalarBarWidget::SetRepresentation
virtual void SetRepresentation(vtkScalarBarRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkScalarBarWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkScalarBarWidget::SetScalarBarActor
virtual void SetScalarBarActor(vtkScalarBarActor *actor)
Get the ScalarBar used by this Widget.
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition: vtkScalarBarRepresentation.h:55
vtkScalarBarActor
Create a scalar bar with labels.
Definition: vtkScalarBarActor.h:81
vtkScalarBarWidget::~vtkScalarBarWidget
~vtkScalarBarWidget()