Class GLFrameGrabberPtr

  • public class GLFrameGrabberPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • GLFrameGrabberPtr

        public GLFrameGrabberPtr​(long cPtr,
                                 boolean cMemoryOwn)
      • GLFrameGrabberPtr

        public GLFrameGrabberPtr()
        Default constructor yielding a NULL-pointer.
      • GLFrameGrabberPtr

        public GLFrameGrabberPtr​(GLFrameGrabber ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public GLFrameGrabber deref()
        The pointer stored in the object.
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns true if the pointer is null
      • resize

        public void resize​(int width,
                           int height)
      • resize

        public void resize​(int width,
                           int height,
                           Image.ColorCode colorCode)
      • 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.
        drawer - [in] the scene viewer
        true if initialization succeeded, false otherwise (depends on the capabilities of
        the SceneViewer).
      • getWidth

        public int getWidth()
        returns the width of the image
        the width of the image
      • getHeight

        public int getHeight()
        returns the height of the image
        the height of the image
      • getImage

        public Image getImage()
        returns the image
        the image