RobWorkProject
23.9.11-
|
RenderImage renders a image in a plane defined by [-w/2;h/2][w/2;-h/2]. The image need to be scaled into metric units. This can be done using a scaling parameter. More...
#include <RenderImage.hpp>
Inherits Render.
Public Types | |
typedef rw::core::Ptr< RenderImage > | Ptr |
smart pointer type to this class | |
Public Types inherited from Render | |
typedef rw::core::Ptr< Render > | Ptr |
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 | |
RenderImage (float scale=1.0/1000.0) | |
constructor More... | |
RenderImage (const rw::sensor::Image &img, float scale=1.0/1000.0) | |
Constructs. More... | |
virtual | ~RenderImage () |
Destructor. | |
void | setImage (const rw::sensor::Image &img) |
set the image that is to be rendered. 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. | |
RenderImage renders a image in a plane defined by [-w/2;h/2][w/2;-h/2]. The image need to be scaled into metric units. This can be done using a scaling parameter.
RenderImage | ( | float | scale = 1.0/1000.0 | ) |
constructor
scale | [in] scale from image coordinates to meters. |
RenderImage | ( | const rw::sensor::Image & | img, |
float | scale = 1.0/1000.0 |
||
) |
Constructs.
img | [in} the image that is to be rendered |
scale | [in] scale from image coordinates to meters. |
|
virtual |
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.
void setImage | ( | const rw::sensor::Image & | img | ) |
set the image that is to be rendered.
img | [in] image to render |