20 #ifndef VTKVIEWER_FRAMEDTEXTACTOR_H
21 #define VTKVIEWER_FRAMEDTEXTACTOR_H
25 #include <vtkActor2D.h>
28 class vtkPolyDataMapper2D;
32 class vtkTextProperty;
40 enum ModePosition { BelowPoint = 0, TopLeft, TopRight, BottomLeft, BottomRight };
47 virtual int RenderOpaqueGeometry(vtkViewport*);
49 virtual int RenderOverlay(vtkViewport*);
50 virtual void ReleaseGraphicsResources(vtkWindow*);
52 virtual void SetVisibility(
int);
53 virtual int GetVisibility();
54 virtual void SetPickable(
int);
55 virtual int GetPickable();
57 virtual void GetSize(vtkRenderer* vport,
double theSize[2])
const;
59 void SetText(
const char* theText);
62 void SetModePosition(
const int theMode);
63 int GetModePosition()
const;
65 void SetLayoutType(
const int theType);
66 int GetLayoutType()
const;
68 void SetWorldPoint(
const double theWorldPoint[4]);
69 const double* GetWorldPoint()
const;
71 void SetDistance(
const double theDistance);
72 double GetDistance()
const;
74 void SetMoveFrameFlag(
const int flag);
75 int GetMoveFrameFlag()
const;
77 void SetForegroundColor(
const double r,
80 void GetForegroundColor(
double& r,
84 void SetBackgroundColor(
const double r,
87 void GetBackgroundColor(
double& r,
91 void SetTransparency(
const double theTransparency);
92 double GetTransparency()
const;
94 void SetTextMargin(
const int theMargin);
95 int GetTextMargin()
const;
97 void SetOffset(
const double theOffset[2]);
117 double myWorldPoint[4];
@ Vertical
Vertical orientation.
Definition: SalomePyQt.h:139
@ Horizontal
Horizontal orientation.
Definition: SalomePyQt.h:138
#define VTKVIEWER_EXPORT
Definition: VTKViewer.h:33
vtkTextActor
Definition: VTKViewer_Trihedron.cxx:110
Definition: VTKViewer_FramedTextActor.h:38
int myMoveFrameFlag
Definition: VTKViewer_FramedTextActor.h:115
int myLayoutType
Definition: VTKViewer_FramedTextActor.h:114
int myTextMargin
Definition: VTKViewer_FramedTextActor.h:121
virtual int RenderTranslucentGeometry(vtkViewport *)
Definition: VTKViewer_FramedTextActor.h:48
vtkPolyData * myBar
Definition: VTKViewer_FramedTextActor.h:104
double myTransparency
Definition: VTKViewer_FramedTextActor.h:119
void operator=(const VTKViewer_FramedTextActor &)
vtkActor2D * myBarActor
Definition: VTKViewer_FramedTextActor.h:106
int myHorizontalOffset
Definition: VTKViewer_FramedTextActor.h:123
LayoutType
Definition: VTKViewer_FramedTextActor.h:41
double myDistance
Definition: VTKViewer_FramedTextActor.h:118
vtkTypeMacro(VTKViewer_FramedTextActor, vtkActor2D) static VTKViewer_FramedTextActor *New()
vtkTextActor * myTextActor
Definition: VTKViewer_FramedTextActor.h:109
vtkPolyDataMapper2D * myBarMapper
Definition: VTKViewer_FramedTextActor.h:105
VTKViewer_FramedTextActor()
int myModePosition
Definition: VTKViewer_FramedTextActor.h:113
int myVerticalOffset
Definition: VTKViewer_FramedTextActor.h:124
vtkTextProperty * myTextProperty
Definition: VTKViewer_FramedTextActor.h:108
ModePosition
Definition: VTKViewer_FramedTextActor.h:40
VTKViewer_FramedTextActor(const VTKViewer_FramedTextActor &)
vtkTimeStamp myBuildTime
Definition: VTKViewer_FramedTextActor.h:111