Package org.robwork.sdurw_simulation
Class GLFrameGrabber25DPtr
- java.lang.Object
-
- org.robwork.sdurw_simulation.GLFrameGrabber25DPtr
-
public class GLFrameGrabber25DPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description GLFrameGrabber25DPtr()
Default constructor yielding a NULL-pointer.GLFrameGrabber25DPtr(long cPtr, boolean cMemoryOwn)
GLFrameGrabber25DPtr(GLFrameGrabber25D 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 GLFrameGrabber25D
__ref__()
Dereferencing operator.GLFrameGrabber25DCPtr
cptr()
void
delete()
GLFrameGrabber25D
deref()
The pointer stored in the object.boolean
equals(GLFrameGrabber25D p)
static long
getCPtr(GLFrameGrabber25DPtr obj)
GLFrameGrabber25D
getDeref()
Member access operator.double
getFieldOfViewY()
long
getHeight()
returns the height of the imagePointCloud
getImage()
returns the imagedouble
getMaxDepth()
double
getMinDepth()
long
getWidth()
returns the width of the imagevoid
grab(FramePtr frame, State state)
boolean
init(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneViewer_t drawer)
initialize the grabber with a scene viewer.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
resize(long width, long height)
resizes the image that this frameGrabber use.void
setMaxDepth(double depth)
set the maximum depth that is percieved by this frame grabber.
If min and max depth are too far apart the resolution of the depth
perception will become bad.void
setMinDepth(double depth)
set the minimum depth that is percieved by this frame grabber.
If min and max depth are too far apart the resolution of the depth
perception will become bad.
-
-
-
Constructor Detail
-
GLFrameGrabber25DPtr
public GLFrameGrabber25DPtr(long cPtr, boolean cMemoryOwn)
-
GLFrameGrabber25DPtr
public GLFrameGrabber25DPtr()
Default constructor yielding a NULL-pointer.
-
GLFrameGrabber25DPtr
public GLFrameGrabber25DPtr(GLFrameGrabber25D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GLFrameGrabber25DPtr obj)
-
delete
public void delete()
-
deref
public GLFrameGrabber25D deref()
The pointer stored in the object.
-
__ref__
public GLFrameGrabber25D __ref__()
Dereferencing operator.
-
getDeref
public GLFrameGrabber25D getDeref()
Member access operator.
-
equals
public boolean equals(GLFrameGrabber25D 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
-
cptr
public GLFrameGrabber25DCPtr cptr()
-
init
public boolean init(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneViewer_t drawer)
initialize the grabber with a scene viewer. This registers the grabber
as a camera in the scene and enables rendering.- Parameters:
drawer
- [in] the scene viewer- Returns:
- true if initialization succeeded, false otherwise (depends on the capabilities of
the SceneViewer).
-
setMaxDepth
public void setMaxDepth(double depth)
set the maximum depth that is percieved by this frame grabber.
If min and max depth are too far apart the resolution of the depth
perception will become bad. Hence keep the range realistic.- Parameters:
depth
- [in] max depth
-
setMinDepth
public void setMinDepth(double depth)
set the minimum depth that is percieved by this frame grabber.
If min and max depth are too far apart the resolution of the depth
perception will become bad. Hence keep the range realistic.- Parameters:
depth
- [in] min depth
-
getMaxDepth
public double getMaxDepth()
-
getMinDepth
public double getMinDepth()
-
getFieldOfViewY
public double getFieldOfViewY()
-
getWidth
public long getWidth()
returns the width of the image- Returns:
- the height of the image
-
getHeight
public long getHeight()
returns the height of the image- Returns:
- the height of the image
-
resize
public void resize(long width, long height)
resizes the image that this frameGrabber use. The colorcode will
default to the one that FrameGrabber25D was initialized with.- Parameters:
width
- [in] width of imageheight
- [in] height of image
-
getImage
public PointCloud getImage()
returns the image- Returns:
- the image
-
-