Package org.robwork.sdurw_opengl
Class RenderImagePtr
- java.lang.Object
-
- org.robwork.sdurw_opengl.RenderImagePtr
-
public class RenderImagePtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description RenderImagePtr()
Default constructor yielding a NULL-pointer.RenderImagePtr(long cPtr, boolean cMemoryOwn)
RenderImagePtr(RenderImage ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderImage
__ref__()
Dereferencing operator.void
delete()
RenderImage
deref()
The pointer stored in the object.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) constboolean
equals(RenderImage p)
static long
getCPtr(RenderImagePtr obj)
RenderImage
getDeref()
Member access operator.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setImage(Image img)
set the image that is to be rendered.
-
-
-
Constructor Detail
-
RenderImagePtr
public RenderImagePtr(long cPtr, boolean cMemoryOwn)
-
RenderImagePtr
public RenderImagePtr()
Default constructor yielding a NULL-pointer.
-
RenderImagePtr
public RenderImagePtr(RenderImage ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(RenderImagePtr obj)
-
delete
public void delete()
-
deref
public RenderImage deref()
The pointer stored in the object.
-
__ref__
public RenderImage __ref__()
Dereferencing operator.
-
getDeref
public RenderImage getDeref()
Member access operator.
-
equals
public boolean equals(RenderImage p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
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
-
-