VTK
9.2.6
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
=========================================================================*/
38
#ifndef vtkScalarBarWidget_h
39
#define vtkScalarBarWidget_h
40
41
#include "
vtkBorderWidget.h
"
42
#include "vtkInteractionWidgetsModule.h"
// For export macro
43
44
class
vtkScalarBarActor
;
45
class
vtkScalarBarRepresentation
;
46
47
class
VTKINTERACTIONWIDGETS_EXPORT
vtkScalarBarWidget
:
public
vtkBorderWidget
48
{
49
public
:
50
static
vtkScalarBarWidget
*
New
();
51
vtkTypeMacro(
vtkScalarBarWidget
,
vtkBorderWidget
);
52
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
53
59
virtual
void
SetRepresentation
(
vtkScalarBarRepresentation
* rep);
60
64
vtkScalarBarRepresentation
*
GetScalarBarRepresentation
()
65
{
66
return
reinterpret_cast<
vtkScalarBarRepresentation
*
>
(this->
GetRepresentation
());
67
}
68
70
73
virtual
void
SetScalarBarActor(
vtkScalarBarActor
* actor);
74
virtual
vtkScalarBarActor
* GetScalarBarActor();
76
78
84
vtkSetMacro(Repositionable,
vtkTypeBool
);
85
vtkGetMacro(Repositionable,
vtkTypeBool
);
86
vtkBooleanMacro(Repositionable,
vtkTypeBool
);
88
92
void
CreateDefaultRepresentation
()
override
;
93
98
vtkTypeBool
GetProcessEvents
()
override
;
99
100
protected
:
101
vtkScalarBarWidget
();
102
~
vtkScalarBarWidget
()
override
;
103
104
vtkTypeBool
Repositionable
;
105
106
// Handle the case of Repositionable == 0
107
static
void
MoveAction
(
vtkAbstractWidget
*);
108
109
// set the cursor to the correct shape based on State argument
110
void
SetCursor
(
int
State)
override
;
111
112
private
:
113
vtkScalarBarWidget
(
const
vtkScalarBarWidget
&) =
delete
;
114
void
operator=(
const
vtkScalarBarWidget
&) =
delete
;
115
};
116
117
#endif
vtkScalarBarWidget::Repositionable
vtkTypeBool Repositionable
Definition:
vtkScalarBarWidget.h:104
vtkBorderWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkBorderWidget
place a border around a 2D rectangular region
Definition:
vtkBorderWidget.h:88
vtkBorderWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkBorderWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
vtkBorderWidget::New
static vtkBorderWidget * New()
Method to instantiate class.
vtkScalarBarActor
Create a scalar bar with labels.
Definition:
vtkScalarBarActor.h:81
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkBorderWidget.h
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition:
vtkScalarBarRepresentation.h:54
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkBorderWidget::GetProcessEvents
vtkTypeBool GetProcessEvents() override
Reimplement ProcessEvents to disable it when using relative location with windowLocation.
vtkBorderWidget::SetCursor
void SetCursor(int State) override
vtkBorderWidget::SetRepresentation
void SetRepresentation(vtkBorderRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
Definition:
vtkBorderWidget.h:132
vtkAbstractWidget::GetRepresentation
vtkWidgetRepresentation * GetRepresentation()
Return an instance of vtkWidgetRepresentation used to represent this widget in the scene...
Definition:
vtkAbstractWidget.h:140
vtkScalarBarWidget::GetScalarBarRepresentation
vtkScalarBarRepresentation * GetScalarBarRepresentation()
Return the representation as a vtkScalarBarRepresentation.
Definition:
vtkScalarBarWidget.h:64
vtkScalarBarWidget
2D widget for manipulating a scalar bar
Definition:
vtkScalarBarWidget.h:47
Generated on Mon Oct 16 2023 11:19:41 for VTK by
1.8.10