VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
37
#ifndef __vtkScalarBarWidget_h
38
#define __vtkScalarBarWidget_h
39
40
#include "vtkInteractionWidgetsModule.h"
// For export macro
41
#include "
vtkBorderWidget.h
"
42
43
class
vtkScalarBarActor
;
44
class
vtkScalarBarRepresentation
;
45
46
class
VTKINTERACTIONWIDGETS_EXPORT
vtkScalarBarWidget
:
public
vtkBorderWidget
47
{
48
public
:
49
static
vtkScalarBarWidget
*
New
();
50
vtkTypeMacro(
vtkScalarBarWidget
,
vtkBorderWidget
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
56
virtual
void
SetRepresentation
(
vtkScalarBarRepresentation
*rep);
57
59
60
vtkScalarBarRepresentation
*GetScalarBarRepresentation()
61
{
return
reinterpret_cast<
vtkScalarBarRepresentation
*
>
(this->
GetRepresentation
()); }
63
65
66
virtual
void
SetScalarBarActor(
vtkScalarBarActor
*actor);
67
virtual
vtkScalarBarActor
*GetScalarBarActor();
69
71
74
vtkSetMacro(Repositionable,
int
);
75
vtkGetMacro(Repositionable,
int
);
76
vtkBooleanMacro(Repositionable,
int
);
78
80
virtual
void
CreateDefaultRepresentation
();
81
82
protected
:
83
vtkScalarBarWidget
();
84
~
vtkScalarBarWidget
();
85
86
int
Repositionable
;
87
88
// Handle the case of Repositionable == 0
89
static
void
MoveAction
(
vtkAbstractWidget
*);
90
91
// set the cursor to the correct shape based on State argument
92
virtual
void
SetCursor
(
int
State);
93
94
private
:
95
vtkScalarBarWidget
(
const
vtkScalarBarWidget
&);
//Not implemented
96
void
operator=(
const
vtkScalarBarWidget
&);
//Not implemented
97
};
98
99
#endif
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1