Class GLFrameGrabber25DPtr


  • public class GLFrameGrabber25DPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • 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

      • delete

        public void delete()
      • 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
      • 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 image
        height - [in] height of image
      • getImage

        public PointCloud getImage()
        returns the image
        Returns:
        the image