58 #ifndef vtkScalarBarActor_h
59 #define vtkScalarBarActor_h
76 #define VTK_ORIENT_HORIZONTAL 0
77 #define VTK_ORIENT_VERTICAL 1
108 virtual void GetScalarBarRect(
int rect[4],
vtkViewport* viewport);
125 vtkSetMacro( UseOpacity,
int );
126 vtkGetMacro( UseOpacity,
int );
127 vtkBooleanMacro( UseOpacity,
int );
134 vtkSetClampMacro(MaximumNumberOfColors,
int, 2,
VTK_INT_MAX);
135 vtkGetMacro(MaximumNumberOfColors,
int);
140 vtkSetClampMacro(NumberOfLabels,
int, 0, 64);
141 vtkGetMacro(NumberOfLabels,
int);
147 vtkGetMacro(Orientation,
int);
167 vtkSetStringMacro(LabelFormat);
168 vtkGetStringMacro(LabelFormat);
173 vtkSetStringMacro(Title);
174 vtkGetStringMacro(Title);
179 vtkSetStringMacro(ComponentTitle);
180 vtkGetStringMacro(ComponentTitle);
189 vtkSetMacro( TextureGridWidth,
double );
190 vtkGetMacro( TextureGridWidth,
double );
199 enum { PrecedeScalarBar = 0, SucceedScalarBar };
209 vtkSetClampMacro( TextPosition,
int, PrecedeScalarBar, SucceedScalarBar);
210 vtkGetMacro( TextPosition,
int );
223 vtkSetMacro( MaximumWidthInPixels,
int );
224 vtkGetMacro( MaximumWidthInPixels,
int );
225 vtkSetMacro( MaximumHeightInPixels,
int );
226 vtkGetMacro( MaximumHeightInPixels,
int );
232 vtkSetMacro(AnnotationLeaderPadding,
double);
233 vtkGetMacro(AnnotationLeaderPadding,
double);
240 vtkSetMacro(DrawAnnotations,
int);
241 vtkGetMacro(DrawAnnotations,
int);
242 vtkBooleanMacro(DrawAnnotations,
int);
249 vtkSetMacro(DrawNanAnnotation,
int);
250 vtkGetMacro(DrawNanAnnotation,
int);
251 vtkBooleanMacro(DrawNanAnnotation,
int);
260 vtkSetMacro(FixedAnnotationLeaderLineColor,
int);
261 vtkGetMacro(FixedAnnotationLeaderLineColor,
int);
262 vtkBooleanMacro(FixedAnnotationLeaderLineColor,
int);
267 vtkSetStringMacro(NanAnnotation);
268 vtkGetStringMacro(NanAnnotation);
277 vtkSetMacro(AnnotationTextScaling,
int);
278 vtkGetMacro(AnnotationTextScaling,
int);
284 vtkSetMacro(DrawBackground,
int);
285 vtkGetMacro(DrawBackground,
int);
286 vtkBooleanMacro(DrawBackground,
int);
292 vtkSetMacro(DrawFrame,
int);
293 vtkGetMacro(DrawFrame,
int);
294 vtkBooleanMacro(DrawFrame,
int);
300 vtkSetMacro(DrawColorBar,
int);
301 vtkGetMacro(DrawColorBar,
int);
302 vtkBooleanMacro(DrawColorBar,
int);
307 vtkSetMacro(DrawTickLabels,
int);
308 vtkGetMacro(DrawTickLabels,
int);
309 vtkBooleanMacro(DrawTickLabels,
int);
327 vtkGetMacro(TextPad,
int);
328 vtkSetMacro(TextPad,
int);
334 vtkGetMacro(VerticalTitleSeparation,
int);
335 vtkSetMacro(VerticalTitleSeparation,
int);
341 vtkGetMacro(BarRatio,
double);
342 vtkSetClampMacro(BarRatio,
double,0.,1.);
350 vtkGetMacro(TitleRatio,
double);
351 vtkSetClampMacro(TitleRatio,
double,0.,1.);
377 virtual void FreeLayoutStorage();
384 virtual void ComputeFrame();
391 virtual void ComputeScalarBarThickness();
396 virtual void LayoutNanSwatch();
399 virtual void PrepareTitleText();
407 virtual void LayoutTitle();
414 virtual void ComputeScalarBarLength();
421 virtual void LayoutTicks();
426 virtual void LayoutAnnotations();
429 virtual void ConfigureAnnotations();
433 virtual void ConfigureFrame();
436 virtual void DrawBoxes();
440 virtual void ConfigureScalarBar();
443 virtual void ConfigureTitle();
446 virtual void ConfigureTicks();
451 virtual void ConfigureNanSwatch();
464 virtual void SizeTitle(
double* titleSize,
int*
size,
vtkViewport* viewport);
469 int MapAnnotationLabels(
476 int PlaceAnnotationsVertically(
477 double barX,
double barY,
double barWidth,
double barHeight,
478 double delta,
double pad);
483 int PlaceAnnotationsHorizontally(
484 double barX,
double barY,
double barWidth,
double barHeight,
485 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.
actor that draws 2D data with texture support
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
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.
vtkTexturedActor2D * TextureActor
Actor for TexturePolyData.