VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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 "
vtkBorderRepresentation.h
"
46
47
class
vtkScalarBarActor
;
48
49
class
VTK_WIDGETS_EXPORT
vtkScalarBarRepresentation
:
public
vtkBorderRepresentation
50
{
51
public
:
52
vtkTypeMacro(
vtkScalarBarRepresentation
,
vtkBorderRepresentation
);
53
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
54
static
vtkScalarBarRepresentation
*
New
();
55
57
58
vtkGetObjectMacro(ScalarBarActor,
vtkScalarBarActor
);
59
virtual
void
SetScalarBarActor(
vtkScalarBarActor
*);
61
63
64
virtual
void
BuildRepresentation
();
65
virtual
void
WidgetInteraction
(
double
eventPos[2]);
66
virtual
void
GetSize
(
double
size
[2])
67
{size[0]=2.0; size[1]=2.0;}
69
71
73
virtual
void
GetActors2D
(
vtkPropCollection
*collection);
74
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
75
virtual
int
RenderOverlay
(
vtkViewport
*);
76
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
77
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
78
virtual
int
HasTranslucentPolygonalGeometry
();
80
82
83
void
SetOrientation(
int
orient);
84
int
GetOrientation();
86
87
protected
:
88
vtkScalarBarRepresentation
();
89
~
vtkScalarBarRepresentation
();
90
91
vtkScalarBarActor
*
ScalarBarActor
;
92
private
:
93
vtkScalarBarRepresentation
(
const
vtkScalarBarRepresentation
&);
// Not implemented
94
void
operator=(
const
vtkScalarBarRepresentation
&);
// Not implemented
95
};
96
97
#endif //__vtkScalarBarRepresentation_h
Generated on Wed Nov 21 2012 21:34:08 for VTK by
1.8.2