VTK
|
text annotation in four corners More...
#include <vtkCornerAnnotation.h>
Public Types | |
typedef vtkActor2D | Superclass |
Public Types inherited from vtkActor2D | |
typedef vtkProp | Superclass |
Public Types inherited from vtkProp | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkCornerAnnotation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
int | RenderOverlay (vtkViewport *viewport) |
virtual void | SetMaximumLineHeight (double) |
virtual double | GetMaximumLineHeight () |
virtual void | SetMinimumFontSize (int) |
virtual int | GetMinimumFontSize () |
virtual void | SetMaximumFontSize (int) |
virtual int | GetMaximumFontSize () |
virtual void | SetLinearFontScaleFactor (double) |
virtual double | GetLinearFontScaleFactor () |
virtual void | SetNonlinearFontScaleFactor (double) |
virtual double | GetNonlinearFontScaleFactor () |
void | SetText (int i, const char *text) |
const char * | GetText (int i) |
void | ClearAllTexts () |
void | CopyAllTextsFrom (vtkCornerAnnotation *ca) |
void | SetImageActor (vtkImageActor *) |
virtual vtkImageActor * | GetImageActor () |
void | SetWindowLevel (vtkImageMapToWindowLevelColors *) |
virtual vtkImageMapToWindowLevelColors * | GetWindowLevel () |
virtual void | SetLevelShift (double) |
virtual double | GetLevelShift () |
virtual void | SetLevelScale (double) |
virtual double | GetLevelScale () |
virtual void | SetTextProperty (vtkTextProperty *p) |
virtual vtkTextProperty * | GetTextProperty () |
virtual void | ShowSliceAndImageOn () |
virtual void | ShowSliceAndImageOff () |
virtual void | SetShowSliceAndImage (int) |
virtual int | GetShowSliceAndImage () |
Public Member Functions inherited from vtkActor2D | |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkActor2D * | NewInstance () const |
vtkProperty2D * | GetProperty () |
virtual void | SetProperty (vtkProperty2D *) |
void | SetDisplayPosition (int, int) |
virtual unsigned long | GetMTime () |
virtual void | GetActors2D (vtkPropCollection *pc) |
virtual void | ShallowCopy (vtkProp *prop) |
virtual void | SetMapper (vtkMapper2D *mapper) |
virtual vtkMapper2D * | GetMapper () |
virtual void | SetLayerNumber (int) |
virtual int | GetLayerNumber () |
virtual vtkCoordinate * | GetPositionCoordinate () |
virtual void | SetPosition (float x[2]) |
virtual void | SetPosition (float x, float y) |
virtual float * | GetPosition () |
virtual vtkCoordinate * | GetPosition2Coordinate () |
virtual void | SetPosition2 (float x[2]) |
virtual void | SetPosition2 (float x, float y) |
virtual float * | GetPosition2 () |
void | SetWidth (double w) |
double | GetWidth () |
void | SetHeight (double h) |
double | GetHeight () |
virtual vtkCoordinate * | GetActualPositionCoordinate (void) |
virtual vtkCoordinate * | GetActualPosition2Coordinate (void) |
Public Member Functions inherited from vtkProp | |
vtkProp * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Pick () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual void | SetVisibility (int) |
virtual int | GetVisibility () |
virtual void | VisibilityOn () |
virtual void | VisibilityOff () |
virtual void | SetPickable (int) |
virtual int | GetPickable () |
virtual void | PickableOn () |
virtual void | PickableOff () |
virtual void | SetDragable (int) |
virtual int | GetDragable () |
virtual void | DragableOn () |
virtual void | DragableOff () |
virtual unsigned long | GetRedrawMTime () |
virtual void | SetUseBounds (bool) |
virtual bool | GetUseBounds () |
virtual void | UseBoundsOn () |
virtual void | UseBoundsOff () |
virtual double * | GetBounds () |
virtual void | InitPathTraversal () |
virtual vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkMatrix4x4 * | GetMatrix () |
virtual vtkInformation * | GetPropertyKeys () |
virtual void | SetPropertyKeys (vtkInformation *keys) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
virtual void | RestoreEstimatedRenderTime () |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
virtual double | GetAllocatedRenderTime () |
void | SetRenderTimeMultiplier (double t) |
virtual double | GetRenderTimeMultiplier () |
virtual bool | GetSupportsSelection () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkObject *c) |
void | RemoveConsumer (vtkObject *c) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkCornerAnnotation * | SafeDownCast (vtkObjectBase *o) |
static vtkCornerAnnotation * | New () |
Static Public Member Functions inherited from vtkActor2D | |
static int | IsTypeOf (const char *type) |
static vtkActor2D * | SafeDownCast (vtkObjectBase *o) |
static vtkActor2D * | New () |
Static Public Member Functions inherited from vtkProp | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCornerAnnotation () | |
~vtkCornerAnnotation () | |
virtual void | TextReplace (vtkImageActor *ia, vtkImageMapToWindowLevelColors *wl) |
virtual void | SetTextActorsPosition (int vsize[2]) |
virtual void | SetTextActorsJustification () |
Protected Member Functions inherited from vtkActor2D | |
vtkActor2D () | |
~vtkActor2D () | |
Protected Member Functions inherited from vtkProp | |
vtkProp () | |
~vtkProp () | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
text annotation in four corners
This is an annotation object that manages four text actors / mappers to provide annotation in the four corners of a viewport
Definition at line 49 of file vtkCornerAnnotation.h.
Definition at line 52 of file vtkCornerAnnotation.h.
Position used to get or set the corner annotation text.
Definition at line 106 of file vtkCornerAnnotation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkActor2D.
|
static |
|
protectedvirtual |
Reimplemented from vtkActor2D.
vtkCornerAnnotation* vtkCornerAnnotation::NewInstance | ( | ) | const |
|
virtual |
|
static |
Instantiate object with a rectangle in normaled view coordinates of (0.2,0.85, 0.8, 0.95).
|
virtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
|
inlinevirtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
Definition at line 62 of file vtkCornerAnnotation.h.
|
virtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
|
virtual |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkActor2D.
|
virtual |
Set/Get the maximum height of a line of text as a percentage of the vertical area allocated to this scaled text actor. Defaults to 1.0
|
virtual |
Set/Get the maximum height of a line of text as a percentage of the vertical area allocated to this scaled text actor. Defaults to 1.0
|
virtual |
Set/Get the minimum/maximum size font that will be shown. If the font drops below the minimum size it will not be rendered.
|
virtual |
Set/Get the minimum/maximum size font that will be shown. If the font drops below the minimum size it will not be rendered.
|
virtual |
Set/Get the minimum/maximum size font that will be shown. If the font drops below the minimum size it will not be rendered.
|
virtual |
Set/Get the minimum/maximum size font that will be shown. If the font drops below the minimum size it will not be rendered.
|
virtual |
Set/Get font scaling factors The font size, f, is calculated as the largest possible value such that the annotations for the given viewport do not overlap. This font size is scaled non-linearly with the viewport size, to maintain an acceptable readable size at larger viewport sizes, without being too big. f' = linearScale * pow(f,nonlinearScale)
|
virtual |
Set/Get font scaling factors The font size, f, is calculated as the largest possible value such that the annotations for the given viewport do not overlap. This font size is scaled non-linearly with the viewport size, to maintain an acceptable readable size at larger viewport sizes, without being too big. f' = linearScale * pow(f,nonlinearScale)
|
virtual |
Set/Get font scaling factors The font size, f, is calculated as the largest possible value such that the annotations for the given viewport do not overlap. This font size is scaled non-linearly with the viewport size, to maintain an acceptable readable size at larger viewport sizes, without being too big. f' = linearScale * pow(f,nonlinearScale)
|
virtual |
Set/Get font scaling factors The font size, f, is calculated as the largest possible value such that the annotations for the given viewport do not overlap. This font size is scaled non-linearly with the viewport size, to maintain an acceptable readable size at larger viewport sizes, without being too big. f' = linearScale * pow(f,nonlinearScale)
|
virtual |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkActor2D.
void vtkCornerAnnotation::SetText | ( | int | i, |
const char * | text | ||
) |
Set/Get the text to be displayed for each corner
const char* vtkCornerAnnotation::GetText | ( | int | i | ) |
Set/Get the text to be displayed for each corner
void vtkCornerAnnotation::ClearAllTexts | ( | ) |
Set/Get the text to be displayed for each corner
void vtkCornerAnnotation::CopyAllTextsFrom | ( | vtkCornerAnnotation * | ca | ) |
Set/Get the text to be displayed for each corner
void vtkCornerAnnotation::SetImageActor | ( | vtkImageActor * | ) |
Set an image actor to look at for slice information
|
virtual |
Set an image actor to look at for slice information
void vtkCornerAnnotation::SetWindowLevel | ( | vtkImageMapToWindowLevelColors * | ) |
Set an instance of vtkImageMapToWindowLevelColors to use for looking at window level changes
|
virtual |
Set an instance of vtkImageMapToWindowLevelColors to use for looking at window level changes
|
virtual |
Set the value to shift the level by.
|
virtual |
Set the value to shift the level by.
|
virtual |
Set the value to scale the level by.
|
virtual |
Set the value to scale the level by.
|
virtual |
Set/Get the text property of all corners.
|
virtual |
Set/Get the text property of all corners.
|
virtual |
Even if there is an image actor, should `slice' and `image' be displayed?
|
virtual |
Even if there is an image actor, should `slice' and `image' be displayed?
|
virtual |
Even if there is an image actor, should `slice' and `image' be displayed?
|
virtual |
Even if there is an image actor, should `slice' and `image' be displayed?
|
protectedvirtual |
Search for replacable tokens and replace
|
protectedvirtual |
Set text actor positions given a viewport size and justification
|
protectedvirtual |
Set text actor positions given a viewport size and justification
|
static |
Position used to get or set the corner annotation text.
Definition at line 117 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 171 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 173 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 175 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 176 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 177 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 178 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 179 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 181 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 183 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 184 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 185 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 186 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 187 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 189 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 190 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 192 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 193 of file vtkCornerAnnotation.h.
|
protected |
Definition at line 195 of file vtkCornerAnnotation.h.