Fraxinus
17.12-rc2
An IGT application
|
Helper for drawing text in 2D. More...
#include <cxVtkHelperClasses.h>
Public Member Functions | |
TextDisplay (const QString &text, const QColor &color, int fontsize) | |
~TextDisplay () | |
void | setRenderer (vtkRendererPtr renderer) |
void | setPosition (float x, float y) |
void | setPosition (const Vector3D &pos) |
void | setCentered () |
void | updateText (const QString &text) |
void | setColor (QColor color) |
vtkTextProperty * | textProperty () |
vtkActor2DPtr | getActor () |
void | setMaxWidth (int width, vtkViewport *vp) |
int | getMaxWidth () |
int | getWidth (vtkViewport *vp) |
vtkTextMapperPtr | getMapper () |
Static Public Member Functions | |
static void | forceUseVtkTextMapper () |
Helper for drawing text in 2D.
Definition at line 132 of file cxVtkHelperClasses.h.
cx::TextDisplay::TextDisplay | ( | const QString & | text, |
const QColor & | color, | ||
int | fontsize | ||
) |
Definition at line 314 of file cxVtkHelperClasses.cpp.
cx::TextDisplay::~TextDisplay | ( | ) |
Definition at line 373 of file cxVtkHelperClasses.cpp.
|
static |
Definition at line 329 of file cxVtkHelperClasses.cpp.
vtkActor2DPtr cx::TextDisplay::getActor | ( | ) |
Definition at line 444 of file cxVtkHelperClasses.cpp.
|
inline |
Definition at line 148 of file cxVtkHelperClasses.h.
int cx::TextDisplay::getMaxWidth | ( | ) |
Definition at line 404 of file cxVtkHelperClasses.cpp.
int cx::TextDisplay::getWidth | ( | vtkViewport * | vp | ) |
Definition at line 409 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setCentered | ( | ) |
Definition at line 449 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setColor | ( | QColor | color | ) |
Definition at line 359 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setMaxWidth | ( | int | width, |
vtkViewport * | vp | ||
) |
Definition at line 378 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setPosition | ( | float | x, |
float | y | ||
) |
Definition at line 419 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setPosition | ( | const Vector3D & | pos | ) |
Definition at line 414 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setRenderer | ( | vtkRendererPtr | renderer | ) |
Definition at line 364 of file cxVtkHelperClasses.cpp.
vtkTextProperty * cx::TextDisplay::textProperty | ( | ) |
Definition at line 439 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::updateText | ( | const QString & | text | ) |
Definition at line 424 of file cxVtkHelperClasses.cpp.