Package org.robwork.sdurw_opengl
Class RenderImage
- java.lang.Object
-
- org.robwork.sdurw_opengl.RenderImage
-
public class RenderImage extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description RenderImage()
constructorRenderImage(float scale)
constructorRenderImage(long cPtr, boolean cMemoryOwn)
RenderImage(Image img)
ConstructsRenderImage(Image img, float scale)
Constructs
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
void
draw(SWIGTYPE_p_rw__graphics__DrawableNode__RenderInfo info, SWIGTYPE_p_rw__graphics__DrawableNode__DrawType type, double alpha)
DrawableNode::RenderInfo& info, DrawableNode::DrawType type, double alpha) conststatic long
getCPtr(RenderImage obj)
void
setImage(Image img)
set the image that is to be rendered.
-
-
-
Constructor Detail
-
RenderImage
public RenderImage(long cPtr, boolean cMemoryOwn)
-
RenderImage
public RenderImage(float scale)
constructor- Parameters:
scale
- [in] scale from image coordinates to meters.
-
RenderImage
public RenderImage()
constructor
-
RenderImage
public RenderImage(Image img, float scale)
Constructs- Parameters:
img
- [in} the image that is to be renderedscale
- [in] scale from image coordinates to meters.
-
RenderImage
public RenderImage(Image img)
Constructs- Parameters:
img
- [in} the image that is to be rendered
-
-
Method Detail
-
getCPtr
public static long getCPtr(RenderImage obj)
-
delete
public void delete()
-
setImage
public void setImage(Image img)
set the image that is to be rendered.- Parameters:
img
- [in] image to render
-
draw
public void draw(SWIGTYPE_p_rw__graphics__DrawableNode__RenderInfo info, SWIGTYPE_p_rw__graphics__DrawableNode__DrawType type, double alpha)
DrawableNode::RenderInfo& info, DrawableNode::DrawType type, double alpha) const
-
-