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

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.

Parameters
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
virtual

Parameters
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)
inline

Change the drawable object.

Parameters
drawable

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