Fraxinus
2023.01.05-dev+develop.0da12
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 111 of file cxVtkHelperClasses.h.
cx::TextDisplay::TextDisplay | ( | const QString & | text, |
const QColor & | color, | ||
int | fontsize | ||
) |
Definition at line 293 of file cxVtkHelperClasses.cpp.
cx::TextDisplay::~TextDisplay | ( | ) |
Definition at line 352 of file cxVtkHelperClasses.cpp.
|
static |
Definition at line 308 of file cxVtkHelperClasses.cpp.
vtkActor2DPtr cx::TextDisplay::getActor | ( | ) |
Definition at line 423 of file cxVtkHelperClasses.cpp.
|
inline |
Definition at line 127 of file cxVtkHelperClasses.h.
int cx::TextDisplay::getMaxWidth | ( | ) |
Definition at line 383 of file cxVtkHelperClasses.cpp.
int cx::TextDisplay::getWidth | ( | vtkViewport * | vp | ) |
Definition at line 388 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setCentered | ( | ) |
Definition at line 428 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setColor | ( | QColor | color | ) |
Definition at line 338 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setMaxWidth | ( | int | width, |
vtkViewport * | vp | ||
) |
Definition at line 357 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setPosition | ( | float | x, |
float | y | ||
) |
Definition at line 398 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setPosition | ( | const Vector3D & | pos | ) |
Definition at line 393 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::setRenderer | ( | vtkRendererPtr | renderer | ) |
Definition at line 343 of file cxVtkHelperClasses.cpp.
vtkTextProperty * cx::TextDisplay::textProperty | ( | ) |
Definition at line 418 of file cxVtkHelperClasses.cpp.
void cx::TextDisplay::updateText | ( | const QString & | text | ) |
Definition at line 403 of file cxVtkHelperClasses.cpp.