VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkScalarBarRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkScalarBarRepresentation.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
=========================================================================*/
15
16
/*
17
* Copyright 2008 Sandia Corporation.
18
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19
* license for use of this work by or on behalf of the
20
* U.S. Government. Redistribution and use in source and binary forms, with
21
* or without modification, are permitted provided that this Notice and any
22
* statement of authorship are reproduced on all copies.
23
*/
24
42
#ifndef __vtkScalarBarRepresentation_h
43
#define __vtkScalarBarRepresentation_h
44
45
#include "vtkInteractionWidgetsModule.h"
// For export macro
46
#include "
vtkBorderRepresentation.h
"
47
48
class
vtkScalarBarActor
;
49
50
class
VTKINTERACTIONWIDGETS_EXPORT
vtkScalarBarRepresentation
:
public
vtkBorderRepresentation
51
{
52
public
:
53
vtkTypeMacro(
vtkScalarBarRepresentation
,
vtkBorderRepresentation
);
54
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
55
static
vtkScalarBarRepresentation
*
New
();
56
58
59
vtkGetObjectMacro(ScalarBarActor,
vtkScalarBarActor
);
60
virtual
void
SetScalarBarActor(
vtkScalarBarActor
*);
62
64
65
virtual
void
BuildRepresentation
();
66
virtual
void
WidgetInteraction
(
double
eventPos[2]);
67
virtual
void
GetSize
(
double
size
[2])
68
{size[0]=2.0; size[1]=2.0;}
70
72
74
virtual
void
GetActors2D
(
vtkPropCollection
*collection);
75
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
76
virtual
int
RenderOverlay
(
vtkViewport
*);
77
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
78
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
79
virtual
int
HasTranslucentPolygonalGeometry
();
81
83
84
void
SetOrientation(
int
orient);
85
int
GetOrientation();
87
88
protected
:
89
vtkScalarBarRepresentation
();
90
~
vtkScalarBarRepresentation
();
91
92
vtkScalarBarActor
*
ScalarBarActor
;
93
private
:
94
vtkScalarBarRepresentation
(
const
vtkScalarBarRepresentation
&);
// Not implemented
95
void
operator=(
const
vtkScalarBarRepresentation
&);
// Not implemented
96
};
97
98
#endif //__vtkScalarBarRepresentation_h
Generated on Thu May 24 2012 22:22:28 for VTK by
1.8.1