VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
37
#ifndef __vtkScalarBarWidget_h
38
#define __vtkScalarBarWidget_h
39
40
#include "
vtkBorderWidget.h
"
41
42
class
vtkScalarBarActor
;
43
class
vtkScalarBarRepresentation
;
44
45
class
VTK_WIDGETS_EXPORT
vtkScalarBarWidget
:
public
vtkBorderWidget
46
{
47
public
:
48
static
vtkScalarBarWidget
*
New
();
49
vtkTypeMacro(
vtkScalarBarWidget
,
vtkBorderWidget
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
55
virtual
void
SetRepresentation
(
vtkScalarBarRepresentation
*rep);
56
58
59
vtkScalarBarRepresentation
*GetScalarBarRepresentation()
60
{
return
reinterpret_cast<
vtkScalarBarRepresentation
*
>
(this->
GetRepresentation
()); }
62
64
65
virtual
void
SetScalarBarActor(
vtkScalarBarActor
*actor);
66
virtual
vtkScalarBarActor
*GetScalarBarActor();
68
70
73
vtkSetMacro(Repositionable,
int
);
74
vtkGetMacro(Repositionable,
int
);
75
vtkBooleanMacro(Repositionable,
int
);
77
79
virtual
void
CreateDefaultRepresentation
();
80
81
protected
:
82
vtkScalarBarWidget
();
83
~
vtkScalarBarWidget
();
84
85
int
Repositionable
;
86
87
// Handle the case of Repositionable == 0
88
static
void
MoveAction
(
vtkAbstractWidget
*);
89
90
// set the cursor to the correct shape based on State argument
91
virtual
void
SetCursor
(
int
State);
92
93
private
:
94
vtkScalarBarWidget
(
const
vtkScalarBarWidget
&);
//Not implemented
95
void
operator=(
const
vtkScalarBarWidget
&);
//Not implemented
96
};
97
98
#endif
Generated on Thu Mar 13 2014 08:10:41 for VTK by
1.8.1.2