NorMIT-nav  22.09
An IGT application
cx::FollowerText3D Class Reference

Helper for rendering 3D text that faces the camera and has a constant viewed size. More...

#include <cxGraphicalPrimitives.h>

Public Member Functions

 FollowerText3D (vtkRendererPtr renderer=vtkRendererPtr())
 
void setRenderer (vtkRendererPtr renderer=vtkRendererPtr())
 
 ~FollowerText3D ()
 
void setColor (QColor color)
 
void setText (QString text)
 
void setPosition (Vector3D pos)
 
void setSize (double val)
 
void setSizeInNormalizedViewport (bool on, double size)
 
vtkFollowerPtr getActor ()
 
void scaleText ()
 internal method More...
 

Detailed Description

Helper for rendering 3D text that faces the camera and has a constant viewed size.

Definition at line 228 of file cxGraphicalPrimitives.h.

Constructor & Destructor Documentation

◆ FollowerText3D()

cx::FollowerText3D::FollowerText3D ( vtkRendererPtr  renderer = vtkRendererPtr())

Definition at line 574 of file cxGraphicalPrimitives.cpp.

◆ ~FollowerText3D()

cx::FollowerText3D::~FollowerText3D ( )

Definition at line 607 of file cxGraphicalPrimitives.cpp.

Member Function Documentation

◆ getActor()

vtkFollowerPtr cx::FollowerText3D::getActor ( )

Definition at line 652 of file cxGraphicalPrimitives.cpp.

◆ scaleText()

void cx::FollowerText3D::scaleText ( )

internal method

Note: Internal method!

Scale the text to be a constant fraction of the viewport height Called from a vtk camera observer

Definition at line 663 of file cxGraphicalPrimitives.cpp.

◆ setColor()

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

Definition at line 637 of file cxGraphicalPrimitives.cpp.

◆ setPosition()

void cx::FollowerText3D::setPosition ( Vector3D  pos)

Definition at line 647 of file cxGraphicalPrimitives.cpp.

◆ setRenderer()

void cx::FollowerText3D::setRenderer ( vtkRendererPtr  renderer = vtkRendererPtr())

Definition at line 588 of file cxGraphicalPrimitives.cpp.

◆ setSize()

void cx::FollowerText3D::setSize ( double  val)

Definition at line 613 of file cxGraphicalPrimitives.cpp.

◆ setSizeInNormalizedViewport()

void cx::FollowerText3D::setSizeInNormalizedViewport ( bool  on,
double  size 
)

Definition at line 619 of file cxGraphicalPrimitives.cpp.

◆ setText()

void cx::FollowerText3D::setText ( QString  text)

Definition at line 642 of file cxGraphicalPrimitives.cpp.


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