RobWorkProject  24.5.15-
Public Types | Public Member Functions | List of all members
RenderText Class Reference

Inherits Render.

Public Types

using Ptr = rw::core::Ptr< RenderText >
- Public Types inherited from Render
typedef rw::core::Ptr< RenderPtr
 smart pointer type to this class
typedef DrawableNode::DrawType DrawType
 when calling render on the draw mode or type can be specified. See DrawableNode::DrawType

Public Member Functions

 RenderText (std::string text, rw::core::Ptr< rw::kinematics::Frame > frame, Drawable *drawable)
 Constructs a RenderText. More...
void setDrawable (Drawable *drawable)
 Change the drawable object. More...
void draw (const rw::graphics::DrawableNode::RenderInfo &info, rw::graphics::DrawableNode::DrawType type, double alpha) const
- Public Member Functions inherited from Render
virtual ~Render ()

Additional Inherited Members

- Protected Member Functions inherited from Render
 Render ()
 Only instances of classes inheriting Render is allowed.

Constructor & Destructor Documentation

◆ RenderText()

RenderText ( std::string  text,
rw::core::Ptr< rw::kinematics::Frame frame,
Drawable drawable 

Constructs a RenderText.

text[in] the text to be rendered
frame[in] frame to render text in.

Member Function Documentation

◆ draw()

void draw ( const rw::graphics::DrawableNode::RenderInfo info,
rw::graphics::DrawableNode::DrawType  type,
double  alpha 
) const

info[in] state and rendering specific info
type[in] the drawtype which is being used
alpha[in] the alpha value to render with

Implements Render.

◆ setDrawable()

void setDrawable ( Drawable drawable)

Change the drawable object.


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