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];
a actor that draws 2D data
text annotation in four corners
static vtkCornerAnnotation * New()
Instantiate object with a rectangle in normaled view coordinates of (0.2,0.85, 0.8,...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetTextActorsJustification()
TextPosition
Position used to get or set the corner annotation text.
@ LowerEdge
Uses the lower edge center.
@ UpperLeft
Uses the upper left corner.
@ LeftEdge
Uses the left edge center.
@ UpperRight
Uses the upper right corner.
@ RightEdge
Uses the right edge center.
@ LowerRight
Uses the lower right corner.
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property of all corners.
vtkImageActor * ImageActor
vtkImageMapToWindowLevelColors * WindowLevel
void SetWindowLevel(vtkImageMapToWindowLevelColors *)
Set an instance of vtkImageMapToWindowLevelColors to use for looking at window level changes.
double LinearFontScaleFactor
void SetText(int i, const char *text)
Set/Get the text to be displayed for each corner.
virtual void TextReplace(vtkImageActor *ia, vtkImageMapToWindowLevelColors *wl)
Search for replacable tokens and replace.
virtual void SetTextActorsPosition(int vsize[2])
Set text actor positions given a viewport size and justification.
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
double NonlinearFontScaleFactor
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
int RenderOpaqueGeometry(vtkViewport *viewport)
Draw the scalar bar and annotation text to the screen.
void SetImageActor(vtkImageActor *)
Set an image actor to look at for slice information.
int RenderOverlay(vtkViewport *viewport)
Support the standard render methods.
const char * GetText(int i)
vtkTextProperty * TextProperty
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkImageActor * LastImageActor
void CopyAllTextsFrom(vtkCornerAnnotation *ca)
draw an image in a rendered 3D scene
map the input image through a lookup table and window / level it
a simple class to control print indentation
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.