Go to the documentation of this file.
39 #ifndef vtkCornerAnnotation_h
40 #define vtkCornerAnnotation_h
42 #include "vtkRenderingAnnotationModule.h"
82 vtkSetMacro(MaximumLineHeight,
double);
83 vtkGetMacro(MaximumLineHeight,
double);
91 vtkSetMacro(MinimumFontSize,
int);
92 vtkGetMacro(MinimumFontSize,
int);
93 vtkSetMacro(MaximumFontSize,
int);
94 vtkGetMacro(MaximumFontSize,
int);
107 vtkSetMacro( LinearFontScaleFactor,
double );
108 vtkGetMacro( LinearFontScaleFactor,
double );
109 vtkSetMacro( NonlinearFontScaleFactor,
double );
110 vtkGetMacro( NonlinearFontScaleFactor,
double );
136 static const int NumTextPositions = 8;
171 vtkSetMacro(LevelShift,
double);
172 vtkGetMacro(LevelShift,
double);
179 vtkSetMacro(LevelScale,
double);
180 vtkGetMacro(LevelScale,
double);
214 char *CornerText[NumTextPositions];
@ LeftEdge
Uses the left edge center.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextProperty * TextProperty
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
record modification and/or execution time
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property of all corners.
vtkImageActor * ImageActor
vtkTypeBool ShowSliceAndImage
window superclass for vtkRenderWindow
@ UpperRight
Uses the upper right corner.
vtkImageActor * LastImageActor
@ LowerRight
Uses the lower right corner.
int RenderOverlay(vtkViewport *viewport) override
void SetText(int i, const char *text)
Set/Get the text to be displayed for each corner.
virtual void SetTextActorsPosition(int vsize[2])
Set text actor positions given a viewport size and justification.
const char * GetText(int i)
@ RightEdge
Uses the right edge center.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the scalar bar and annotation text to the screen.
@ LowerEdge
Uses the lower edge center.
Map an image through a lookup table and/or a window/level.
text annotation in four corners
a simple class to control print indentation
@ UpperLeft
Uses the upper left corner.
virtual void SetTextActorsJustification()
abstract specification for Viewports
represent text properties.
double NonlinearFontScaleFactor
virtual void TextReplace(vtkImageActor *ia, vtkImageMapToWindowLevelColors *wl)
Search for replaceable tokens and replace.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
a actor that draws 2D data
TextPosition
Position used to get or set the corner annotation text.
static vtkCornerAnnotation * New()
Instantiate object with a rectangle in normaled view coordinates of (0.2,0.85, 0.8,...
vtkImageMapToWindowLevelColors * WindowLevel
draw an image in a rendered 3D scene
double LinearFontScaleFactor
void CopyAllTextsFrom(vtkCornerAnnotation *ca)
void SetImageActor(vtkImageActor *)
Set an image actor to look at for slice information.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
void SetWindowLevel(vtkImageMapToWindowLevelColors *)
Set an instance of vtkImageMapToWindowLevelColors to use for looking at window level changes.
~vtkCornerAnnotation() override