Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TextDisplay Class Reference

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 ()
 

Detailed Description

Helper for drawing text in 2D.

Definition at line 125 of file cxVtkHelperClasses.h.

Constructor & Destructor Documentation

cx::TextDisplay::TextDisplay ( const QString &  text,
const QColor &  color,
int  fontsize 
)

Definition at line 320 of file cxVtkHelperClasses.cpp.

cx::TextDisplay::~TextDisplay ( )

Definition at line 379 of file cxVtkHelperClasses.cpp.

Member Function Documentation

void cx::TextDisplay::forceUseVtkTextMapper ( )
static

Definition at line 335 of file cxVtkHelperClasses.cpp.

vtkActor2DPtr cx::TextDisplay::getActor ( )

Definition at line 448 of file cxVtkHelperClasses.cpp.

vtkTextMapperPtr cx::TextDisplay::getMapper ( )
inline

Definition at line 141 of file cxVtkHelperClasses.h.

int cx::TextDisplay::getMaxWidth ( )

Definition at line 410 of file cxVtkHelperClasses.cpp.

int cx::TextDisplay::getWidth ( vtkViewport *  vp)

Definition at line 415 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setCentered ( )

Definition at line 453 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setColor ( QColor  color)

Definition at line 365 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setMaxWidth ( int  width,
vtkViewport *  vp 
)

Definition at line 384 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setPosition ( float  x,
float  y 
)

Definition at line 425 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setPosition ( const Vector3D pos)

Definition at line 420 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::setRenderer ( vtkRendererPtr  renderer)

Definition at line 370 of file cxVtkHelperClasses.cpp.

vtkTextProperty * cx::TextDisplay::textProperty ( )

Definition at line 443 of file cxVtkHelperClasses.cpp.

void cx::TextDisplay::updateText ( const QString &  text)

Definition at line 430 of file cxVtkHelperClasses.cpp.


The documentation for this class was generated from the following files: