VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
54
#ifndef vtkScalarBarWidget_h
55
#define vtkScalarBarWidget_h
56
57
#include "
vtkBorderWidget.h
"
58
#include "vtkInteractionWidgetsModule.h"
// For export macro
59
60
class
vtkScalarBarActor
;
61
class
vtkScalarBarRepresentation
;
62
63
class
VTKINTERACTIONWIDGETS_EXPORT
vtkScalarBarWidget
:
public
vtkBorderWidget
64
{
65
public
:
66
static
vtkScalarBarWidget
*
New
();
67
vtkTypeMacro(
vtkScalarBarWidget
,
vtkBorderWidget
);
68
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
69
75
virtual
void
SetRepresentation
(
vtkScalarBarRepresentation
* rep);
76
80
vtkScalarBarRepresentation
*
GetScalarBarRepresentation
()
81
{
82
return
reinterpret_cast<
vtkScalarBarRepresentation
*
>
(this->
GetRepresentation
());
83
}
84
86
89
virtual
void
SetScalarBarActor
(
vtkScalarBarActor
* actor);
90
virtual
vtkScalarBarActor
*
GetScalarBarActor
();
92
94
100
vtkSetMacro(Repositionable,
vtkTypeBool
);
101
vtkGetMacro(Repositionable,
vtkTypeBool
);
102
vtkBooleanMacro(Repositionable,
vtkTypeBool
);
104
108
void
CreateDefaultRepresentation
()
override
;
109
110
protected
:
111
vtkScalarBarWidget
();
112
~vtkScalarBarWidget
()
override
;
113
114
vtkTypeBool
Repositionable
;
115
116
// Handle the case of Repositionable == 0
117
static
void
MoveAction
(
vtkAbstractWidget
*);
118
119
// set the cursor to the correct shape based on State argument
120
void
SetCursor
(
int
State)
override
;
121
122
private
:
123
vtkScalarBarWidget
(
const
vtkScalarBarWidget
&) =
delete
;
124
void
operator=(
const
vtkScalarBarWidget
&) =
delete
;
125
};
126
127
#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:141
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkScalarBarActor
Create a scalar bar with labels.
Definition:
vtkScalarBarActor.h:188
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition:
vtkScalarBarRepresentation.h:52
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition:
vtkScalarBarWidget.h:64
vtkScalarBarWidget::Repositionable
vtkTypeBool Repositionable
Definition:
vtkScalarBarWidget.h:114
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::GetScalarBarActor
virtual vtkScalarBarActor * GetScalarBarActor()
Get the ScalarBar used by this Widget.
vtkScalarBarWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkScalarBarWidget::GetScalarBarRepresentation
vtkScalarBarRepresentation * GetScalarBarRepresentation()
Return the representation as a vtkScalarBarRepresentation.
Definition:
vtkScalarBarWidget.h:80
vtkScalarBarWidget::~vtkScalarBarWidget
~vtkScalarBarWidget() override
vtkScalarBarWidget::SetCursor
void SetCursor(int State) override
vtkScalarBarWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
vtkScalarBarWidget::New
static vtkScalarBarWidget * New()
vtkScalarBarWidget::SetScalarBarActor
virtual void SetScalarBarActor(vtkScalarBarActor *actor)
Get the ScalarBar used by this Widget.
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkBorderWidget.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4