VTK
9.0.1
Interaction
Widgets
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
=========================================================================*/
35
#ifndef vtkScalarBarWidget_h
36
#define vtkScalarBarWidget_h
37
38
#include "
vtkBorderWidget.h
"
39
#include "vtkInteractionWidgetsModule.h"
// For export macro
40
41
class
vtkScalarBarActor
;
42
class
vtkScalarBarRepresentation
;
43
44
class
VTKINTERACTIONWIDGETS_EXPORT
vtkScalarBarWidget
:
public
vtkBorderWidget
45
{
46
public
:
47
static
vtkScalarBarWidget
*
New
();
48
vtkTypeMacro(
vtkScalarBarWidget
,
vtkBorderWidget
);
49
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
56
virtual
void
SetRepresentation
(
vtkScalarBarRepresentation
* rep);
57
61
vtkScalarBarRepresentation
*
GetScalarBarRepresentation
()
62
{
63
return
reinterpret_cast<
vtkScalarBarRepresentation
*
>
(this->
GetRepresentation
());
64
}
65
67
70
virtual
void
SetScalarBarActor
(
vtkScalarBarActor
* actor);
71
virtual
vtkScalarBarActor
*
GetScalarBarActor
();
73
75
81
vtkSetMacro(Repositionable,
vtkTypeBool
);
82
vtkGetMacro(Repositionable,
vtkTypeBool
);
83
vtkBooleanMacro(Repositionable,
vtkTypeBool
);
85
89
void
CreateDefaultRepresentation
()
override
;
90
91
protected
:
92
vtkScalarBarWidget
();
93
~vtkScalarBarWidget
()
override
;
94
95
vtkTypeBool
Repositionable
;
96
97
// Handle the case of Repositionable == 0
98
static
void
MoveAction
(
vtkAbstractWidget
*);
99
100
// set the cursor to the correct shape based on State argument
101
void
SetCursor
(
int
State)
override
;
102
103
private
:
104
vtkScalarBarWidget
(
const
vtkScalarBarWidget
&) =
delete
;
105
void
operator=(
const
vtkScalarBarWidget
&) =
delete
;
106
};
107
108
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::GetRepresentation
vtkWidgetRepresentation * GetRepresentation()
Return an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkAbstractWidget.h:132
vtkBorderWidget
place a border around a 2D rectangular region
Definition:
vtkBorderWidget.h:82
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkScalarBarActor
Create a scalar bar with labels.
Definition:
vtkScalarBarActor.h:78
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition:
vtkScalarBarRepresentation.h:52
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition:
vtkScalarBarWidget.h:45
vtkScalarBarWidget::GetScalarBarRepresentation
vtkScalarBarRepresentation * GetScalarBarRepresentation()
Return the representation as a vtkScalarBarRepresentation.
Definition:
vtkScalarBarWidget.h:61
vtkScalarBarWidget::Repositionable
vtkTypeBool Repositionable
Definition:
vtkScalarBarWidget.h:95
vtkScalarBarWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkScalarBarWidget::SetRepresentation
virtual void SetRepresentation(vtkScalarBarRepresentation *rep)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkScalarBarWidget::vtkScalarBarWidget
vtkScalarBarWidget()
vtkScalarBarWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkScalarBarWidget::~vtkScalarBarWidget
~vtkScalarBarWidget() override
vtkScalarBarWidget::SetCursor
void SetCursor(int State) override
vtkScalarBarWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkScalarBarWidget::New
static vtkScalarBarWidget * New()
vtkScalarBarWidget::SetScalarBarActor
virtual void SetScalarBarActor(vtkScalarBarActor *actor)
Get the ScalarBar used by this Widget.
vtkScalarBarWidget::GetScalarBarActor
virtual vtkScalarBarActor * GetScalarBarActor()
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkBorderWidget.h
Generated on Sun Nov 28 2021 22:34:47 for VTK by
1.9.1