Package org.robwork.sdurw_simulation
Class FrameGrabber
- java.lang.Object
- 
- org.robwork.sdurw_simulation.FrameGrabber
 
- 
- Direct Known Subclasses:
- GLFrameGrabber
 
 public class FrameGrabber extends java.lang.ObjectThe FrameGrabber abstract interface, can be used to grab images from a
 specialized source.
- 
- 
Constructor SummaryConstructors Constructor Description FrameGrabber(long cPtr, boolean cMemoryOwn)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(FrameGrabber obj)intgetHeight()returns the height of the imageImagegetImage()returns the imageintgetWidth()returns the width of the imagevoidgrab(FramePtr frame, State state)this function grabs a image from the specialized source and
 copies it to the FrameGrabber image.voidresize(int width, int height)resizes the image that this frameGrabber use.voidresize(int width, int height, Image.ColorCode colorCode)resizes the image that this frameGrabber use.
 
- 
- 
- 
Method Detail- 
getCPtrpublic static long getCPtr(FrameGrabber obj) 
 - 
deletepublic void delete() 
 - 
getWidthpublic int getWidth() returns the width of the image- Returns:
- the width of the image
 
 - 
getHeightpublic int getHeight() returns the height of the image- Returns:
- the height of the image
 
 - 
resizepublic void resize(int width, int height)resizes the image that this frameGrabber use. The colorcode will
 default to the one that FrameGrabber was initialized with.- Parameters:
- width- [in] width of image
- height- [in] height of image
 
 - 
resizepublic void resize(int width, int height, Image.ColorCode colorCode)resizes the image that this frameGrabber use.- Parameters:
- width- [in] width of image.
- height- [in] height of image.
- colorCode- [in] Color encoding of the image.
 
 - 
getImagepublic Image getImage() returns the image- Returns:
- the image
 
 
- 
 
-