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);
198 enum { PrecedeScalarBar = 0, SucceedScalarBar };
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.
#define vtkGetMacro(name, type)
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.
#define vtkSetClampMacro(name, type, min, max)
int AnnotationTextScaling
User-changeable settings.
concrete dataset represents vertices, lines, polygons, and triangle strips
double TextureGridWidth
User-changeable settings.
#define vtkSetStringMacro(name)
vtkTexture * Texture
Color data for TexturePolyData.
int FixedAnnotationLeaderLineColor
User-changeable settings.
#define vtkTypeMacro(thisClass, superclass)
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.
#define vtkGetStringMacro(name)
vtkProperty2D * BackgroundProperty
User-changeable settings.
vtkActor2D * ScalarBarActor
Actor for ScalarBar.
represent text properties.
#define vtkGetObjectMacro(name, type)
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)
#define vtkBooleanMacro(name, type)
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.
#define vtkSetMacro(name, type)