Go to the documentation of this file.
39 #ifndef vtkCornerAnnotation_h
40 #define vtkCornerAnnotation_h
42 #include "vtkRenderingAnnotationModule.h"
83 vtkGetMacro(MaximumLineHeight,
double);
92 vtkGetMacro(MinimumFontSize,
int);
94 vtkGetMacro(MaximumFontSize,
int);
108 vtkGetMacro( LinearFontScaleFactor,
double );
110 vtkGetMacro( NonlinearFontScaleFactor,
double );
136 static const int NumTextPositions = 8;
172 vtkGetMacro(LevelShift,
double);
180 vtkGetMacro(LevelScale,
double);
197 vtkGetMacro(ShowSliceAndImage,
int);
214 char *CornerText[NumTextPositions];
@ LeftEdge
Uses the left edge center.
int RenderOpaqueGeometry(vtkViewport *viewport)
Draw the scalar bar and annotation text to the screen.
vtkTextProperty * TextProperty
record modification and/or execution time
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property of all corners.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
vtkImageActor * ImageActor
window superclass for vtkRenderWindow
@ UpperRight
Uses the upper right corner.
vtkImageActor * LastImageActor
@ LowerRight
Uses the lower right corner.
void SetText(int i, const char *text)
Set/Get the text to be displayed for each corner.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
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.
@ LowerEdge
Uses the lower edge center.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
map the input image through a lookup table and window / level it
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
int RenderOverlay(vtkViewport *viewport)
Support the standard render methods.
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
double NonlinearFontScaleFactor
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void TextReplace(vtkImageActor *ia, vtkImageMapToWindowLevelColors *wl)
Search for replacable tokens and replace.
virtual int HasTranslucentPolygonalGeometry()
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.
void SetWindowLevel(vtkImageMapToWindowLevelColors *)
Set an instance of vtkImageMapToWindowLevelColors to use for looking at window level changes.