58 #ifndef __vtkScalarBarActor_h
59 #define __vtkScalarBarActor_h
70 #define VTK_ORIENT_HORIZONTAL 0
71 #define VTK_ORIENT_VERTICAL 1
113 vtkSetMacro( UseOpacity,
int );
114 vtkGetMacro( UseOpacity,
int );
115 vtkBooleanMacro( UseOpacity,
int );
123 vtkGetMacro(MaximumNumberOfColors,
int);
128 vtkSetClampMacro(NumberOfLabels,
int, 0, 64);
129 vtkGetMacro(NumberOfLabels,
int);
135 vtkGetMacro(Orientation,
int);
155 vtkSetStringMacro(LabelFormat);
156 vtkGetStringMacro(LabelFormat);
161 vtkSetStringMacro(Title);
162 vtkGetStringMacro(Title);
167 vtkSetStringMacro(ComponentTitle);
168 vtkGetStringMacro(ComponentTitle);
177 vtkSetMacro( TextureGridWidth,
double );
178 vtkGetMacro( TextureGridWidth,
double );
183 vtkGetObjectMacro( TextureActor,
vtkActor2D );
187 enum { PrecedeScalarBar = 0, SucceedScalarBar };
195 vtkSetClampMacro( TextPosition,
int, PrecedeScalarBar, SucceedScalarBar);
196 vtkGetMacro( TextPosition,
int );
209 vtkSetMacro( MaximumWidthInPixels,
int );
210 vtkGetMacro( MaximumWidthInPixels,
int );
211 vtkSetMacro( MaximumHeightInPixels,
int );
212 vtkGetMacro( MaximumHeightInPixels,
int );
236 virtual void AllocateAndSizeLabels(
int *labelSize,
int *
size,
241 virtual void SizeTitle(
int *titleSize,
int *
size,
vtkViewport *viewport);
abstract superclass for all actors, volumes and annotations
vtkTextMapper * TitleMapper
vtkPolyDataMapper2D * ScalarBarMapper
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for Viewports
virtual void SetTextPositionToPrecedeScalarBar()
vtkScalarsToColors * LookupTable
a actor that draws 2D data
record modification and/or execution time
Create a scalar bar with labels.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
#define VTK_ORIENT_VERTICAL
int MaximumHeightInPixels
Superclass for mapping scalar values into colors.
window superclass for vtkRenderWindow
#define VTK_ORIENT_HORIZONTAL
virtual int HasTranslucentPolygonalGeometry()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
static vtkActor2D * New()
handles properties associated with a texture map
vtkActor2D * TextureActor
vtkActor2D * ScalarBarActor
represent text properties.
vtkTextProperty * LabelTextProperty
vtkTextProperty * TitleTextProperty
int MaximumNumberOfColors
virtual void ShallowCopy(vtkProp *prop)
vtkTextMapper ** TextMappers
virtual int RenderOverlay(vtkViewport *viewport)
virtual void SetTextPositionToSucceedScalarBar()
void SetOrientationToVertical()
#define VTK_LARGE_INTEGER
void SetOrientationToHorizontal()
draw vtkPolyData onto the image plane
vtkPolyData * TexturePolyData