58 #ifndef __vtkScalarBarActor_h
59 #define __vtkScalarBarActor_h
75 #define VTK_ORIENT_HORIZONTAL 0
76 #define VTK_ORIENT_VERTICAL 1
107 virtual void GetScalarBarRect(
int rect[4],
vtkViewport* viewport);
124 vtkSetMacro( UseOpacity,
int );
125 vtkGetMacro( UseOpacity,
int );
126 vtkBooleanMacro( UseOpacity,
int );
133 vtkSetClampMacro(MaximumNumberOfColors,
int, 2,
VTK_INT_MAX);
134 vtkGetMacro(MaximumNumberOfColors,
int);
139 vtkSetClampMacro(NumberOfLabels,
int, 0, 64);
140 vtkGetMacro(NumberOfLabels,
int);
146 vtkGetMacro(Orientation,
int);
166 vtkSetStringMacro(LabelFormat);
167 vtkGetStringMacro(LabelFormat);
172 vtkSetStringMacro(Title);
173 vtkGetStringMacro(Title);
178 vtkSetStringMacro(ComponentTitle);
179 vtkGetStringMacro(ComponentTitle);
188 vtkSetMacro( TextureGridWidth,
double );
189 vtkGetMacro( TextureGridWidth,
double );
194 vtkGetObjectMacro( TextureActor,
vtkActor2D );
198 enum { PrecedeScalarBar = 0, SucceedScalarBar };
208 vtkSetClampMacro( TextPosition,
int, PrecedeScalarBar, SucceedScalarBar);
209 vtkGetMacro( TextPosition,
int );
222 vtkSetMacro( MaximumWidthInPixels,
int );
223 vtkGetMacro( MaximumWidthInPixels,
int );
224 vtkSetMacro( MaximumHeightInPixels,
int );
225 vtkGetMacro( MaximumHeightInPixels,
int );
231 vtkSetMacro(AnnotationLeaderPadding,
double);
232 vtkGetMacro(AnnotationLeaderPadding,
double);
239 vtkSetMacro(DrawAnnotations,
int);
240 vtkGetMacro(DrawAnnotations,
int);
241 vtkBooleanMacro(DrawAnnotations,
int);
248 vtkSetMacro(DrawNanAnnotation,
int);
249 vtkGetMacro(DrawNanAnnotation,
int);
250 vtkBooleanMacro(DrawNanAnnotation,
int);
259 vtkSetMacro(FixedAnnotationLeaderLineColor,
int);
260 vtkGetMacro(FixedAnnotationLeaderLineColor,
int);
261 vtkBooleanMacro(FixedAnnotationLeaderLineColor,
int);
266 vtkSetStringMacro(NanAnnotation);
267 vtkGetStringMacro(NanAnnotation);
276 vtkSetMacro(AnnotationTextScaling,
int);
277 vtkGetMacro(AnnotationTextScaling,
int);
283 vtkSetMacro(DrawBackground,
int);
284 vtkGetMacro(DrawBackground,
int);
285 vtkBooleanMacro(DrawBackground,
int);
291 vtkSetMacro(DrawFrame,
int);
292 vtkGetMacro(DrawFrame,
int);
293 vtkBooleanMacro(DrawFrame,
int);
299 vtkSetMacro(DrawColorBar,
int);
300 vtkGetMacro(DrawColorBar,
int);
301 vtkBooleanMacro(DrawColorBar,
int);
306 vtkSetMacro(DrawTickLabels,
int);
307 vtkGetMacro(DrawTickLabels,
int);
308 vtkBooleanMacro(DrawTickLabels,
int);
326 vtkGetMacro(TextPad,
int);
327 vtkSetMacro(TextPad,
int);
333 vtkGetMacro(VerticalTitleSeparation,
int);
334 vtkSetMacro(VerticalTitleSeparation,
int);
340 vtkGetMacro(BarRatio,
double);
341 vtkSetClampMacro(BarRatio,
double,0.,1.);
349 vtkGetMacro(TitleRatio,
double);
350 vtkSetClampMacro(TitleRatio,
double,0.,1.);
376 virtual void FreeLayoutStorage();
383 virtual void ComputeFrame();
390 virtual void ComputeScalarBarThickness();
395 virtual void LayoutNanSwatch();
398 virtual void PrepareTitleText();
406 virtual void LayoutTitle();
413 virtual void ComputeScalarBarLength();
420 virtual void LayoutTicks();
425 virtual void LayoutAnnotations();
428 virtual void ConfigureAnnotations();
432 virtual void ConfigureFrame();
435 virtual void DrawBoxes();
439 virtual void ConfigureScalarBar();
442 virtual void ConfigureTitle();
445 virtual void ConfigureTicks();
450 virtual void ConfigureNanSwatch();
463 virtual void SizeTitle(
double* titleSize,
int*
size,
vtkViewport* viewport);
468 int MapAnnotationLabels(
475 int PlaceAnnotationsVertically(
476 double barX,
double barY,
double barWidth,
double barHeight,
477 double delta,
double pad);
482 int PlaceAnnotationsHorizontally(
483 double barX,
double barY,
double barWidth,
double barHeight,
484 double delta,
double pad);
abstract superclass for all actors, volumes and annotations
int TextPad
User-changeable settings.
int DrawNanAnnotation
User-changeable settings.
int MaximumWidthInPixels
User-changeable settings.
int DrawTickLabels
User-changeable settings.
virtual void EditAnnotations()
double TitleRatio
User-changeable settings.
vtkPolyDataMapper2D * ScalarBarMapper
Mapper for ScalarBar.
int DrawFrame
User-changeable settings.
virtual void ReleaseGraphicsResources(vtkWindow *)
abstract specification for Viewports
virtual void SetTextPositionToPrecedeScalarBar()
vtkScalarsToColors * LookupTable
The object this actor illustrates.
vtkPolyDataMapper2D * BackgroundMapper
Mapper for Background.
a actor that draws 2D data
record modification and/or execution time
Internal state for the scalar bar actor shared with subclasses.
int NumberOfLabelsBuilt
User-changeable settings.
vtkActor2D * FrameActor
Actor for Frame.
Create a scalar bar with labels.
int UseOpacity
User-changeable settings.
int VerticalTitleSeparation
User-changeable settings.
int DrawColorBar
User-changeable settings.
int AnnotationTextScaling
User-changeable settings.
concrete dataset represents vertices, lines, polygons, and triangle strips
double TextureGridWidth
User-changeable settings.
vtkTexture * Texture
Color data for TexturePolyData.
int FixedAnnotationLeaderLineColor
User-changeable settings.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
#define VTKRENDERINGANNOTATION_EXPORT
char * ComponentTitle
User-changeable settings.
#define VTK_ORIENT_VERTICAL
int MaximumHeightInPixels
User-changeable settings.
char * Title
User-changeable settings.
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow
vtkActor2D * BackgroundActor
Actor for Background.
An actor that displays text. Scaled or unscaled.
#define VTK_ORIENT_HORIZONTAL
virtual int HasTranslucentPolygonalGeometry()
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
a simple class to control print indentation
char * LabelFormat
User-changeable settings.
void PrintSelf(ostream &os, vtkIndent indent)
vtkScalarBarActorInternal * P
Containers shared with subclasses.
int NumberOfLabels
User-changeable settings.
static vtkActor2D * New()
double AnnotationLeaderPadding
User-changeable settings.
handles properties associated with a texture map
vtkActor2D * TextureActor
Actor for TexturePolyData.
int Orientation
User-changeable settings.
int TextPosition
User-changeable settings.
vtkPolyData * ScalarBar
Polygon(s) colored by LookupTable.
vtkProperty2D * BackgroundProperty
User-changeable settings.
vtkActor2D * ScalarBarActor
Actor for ScalarBar.
represent text properties.
vtkPolyData * Background
Polygon used to fill the background.
vtkTextProperty * LabelTextProperty
Font for tick+annotation labels.
vtkTimeStamp BuildTime
Internal state used for rendering.
vtkTextProperty * TitleTextProperty
Font for the legend title.
int MaximumNumberOfColors
User-changeable settings.
char * NanAnnotation
User-changeable settings.
virtual void ShallowCopy(vtkProp *prop)
double BarRatio
User-changeable settings.
vtkTextActor * TitleActor
The legend title text renderer.
vtkPolyDataMapper2D * FrameMapper
Mapper for Frame.
virtual int RenderOverlay(vtkViewport *viewport)
represent surface properties of a 2D image
virtual void SetTextPositionToSucceedScalarBar()
void SetOrientationToVertical()
int DrawBackground
User-changeable settings.
void SetOrientationToHorizontal()
vtkProperty2D * FrameProperty
User-changeable settings.
int DrawAnnotations
User-changeable settings.
vtkPolyData * Frame
Polyline used to highlight frame.
draw vtkPolyData onto the image plane
vtkPolyData * TexturePolyData
Polygon colored when UseOpacity is true.