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

RenderMatrix, visualization of a matrix of values. More...

#include <RenderMatrix.hpp>

Inherits Render.

Public Types

typedef rw::core::Ptr< RenderMatrixPtr
 smart pointer type to this class
 
- 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

 RenderMatrix (const std::string &id, size_t cols, size_t rows, float width, float height)
 Constructs a RenderMatrix. More...
 
virtual ~RenderMatrix ()
 
void setValue (size_t col, size_t row, float val)
 sets the value of the texel at (col,row)
 
void setMaxDepth (float maxlen)
 sets the max depth of the 3d boxed graph
 
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.
 

Detailed Description

RenderMatrix, visualization of a matrix of values.

Constructor & Destructor Documentation

◆ RenderMatrix()

RenderMatrix ( const std::string &  id,
size_t  cols,
size_t  rows,
float  width,
float  height 
)

Constructs a RenderMatrix.

Parameters
id[in] String identifier
cols[in] Number of columns
rows[in] Number of rows
width[in] Width of matrix in meters
height[in] Height of matrix in meters

◆ ~RenderMatrix()

virtual ~RenderMatrix ( )
inlinevirtual

Destroys RenderMatrix

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.


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