BowlerKernel
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
com.neuronrobotics.imageprovider.AbstractImageProvider Class Referenceabstract
Inheritance diagram for com.neuronrobotics.imageprovider.AbstractImageProvider:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.imageprovider.AbstractImageProvider:
Collaboration graph
[legend]

Public Member Functions

abstract BufferedImage captureNewImage ()
 
void onAsyncResponse (BowlerDatagram data)
 
boolean connect ()
 
boolean isAvailable () throws InvalidConnectionException
 
BufferedImage getLatestImage (BufferedImage inputImage, BufferedImage displayImage)
 
BufferedImage getLatestImage ()
 
javafx.scene.image.Image getLatestJfxImage ()
 
void setGlobalPositionListener (javafx.scene.transform.Affine globalPos)
 
javafx.scene.transform.Affine getGlobalPos ()
 
void setGlobalPos (javafx.scene.transform.Affine globalPos)
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.NonBowlerDevice
abstract void disconnectDeviceImp ()
 
abstract boolean connectDeviceImp ()
 
abstract ArrayList< String > getNamespacesImp ()
 
void disconnect ()
 
ArrayList< String > getNamespaces ()
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void addConnectionEventListener (final IDeviceConnectionEventListener l)
 
void removeConnectionEventListener (IDeviceConnectionEventListener l)
 
void setConnection (BowlerAbstractConnection connection)
 
BowlerAbstractConnection getConnection ()
 
void setAddress (MACAddress address)
 
MACAddress getAddress ()
 
BowlerDatagram send (BowlerAbstractCommand command) throws NoConnectionAvailableException, InvalidResponseException
 
BowlerDatagram send (BowlerAbstractCommand command, int retry) throws NoConnectionAvailableException, InvalidResponseException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException
 
Object[] send (String namespace, BowlerMethod method, String rpcString, Object[] arguments) throws DeviceConnectionException
 
boolean ping ()
 
boolean ping (boolean switchParser)
 
ArrayList< ByteListgetRevisions ()
 
boolean hasNamespace (String string)
 
void startHeartBeat ()
 
void startHeartBeat (long msHeartBeatTime)
 
void stopHeartBeat ()
 
void setThreadedUpstreamPackets (boolean up)
 
ArrayList< RpcEncapsulationgetRpcList (String namespace)
 
void loadRpcList ()
 
void onAllResponse (BowlerDatagram data)
 
boolean isKeepAlive ()
 
void setKeepAlive (boolean keepAlive)
 
long getLastPacketTime ()
 
void setLastPacketTime (long lastPacketTime)
 
String getScriptingName ()
 
void setScriptingName (String scriptingName)
 
ArrayList< IDeviceConnectionEventListenergetDisconnectListeners ()
 

Static Public Member Functions

static void deepCopy (BufferedImage src, BufferedImage dest)
 
static BufferedImage newBufferImage (int w, int h)
 
static BufferedImage toGrayScale (BufferedImage in, int w, int h)
 
static BufferedImage toGrayScale (BufferedImage in, double scale)
 
static javafx.scene.image.Image getJfxImage (BufferedImage bf)
 

Protected Member Functions

abstract boolean captureNewImage (BufferedImage imageData)
 
- Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void fireDisconnectEvent ()
 
void fireConnectEvent ()
 

Private Attributes

BufferedImage image = null
 
javafx.scene.transform.Affine globalPos
 

Detailed Description

This is a class is used as an interface to create cameras for the Bowler system.

Author
hephaestus

Definition at line 26 of file AbstractImageProvider.java.

Member Function Documentation

◆ captureNewImage() [1/2]

abstract BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.captureNewImage ( )
abstract

◆ captureNewImage() [2/2]

abstract boolean com.neuronrobotics.imageprovider.AbstractImageProvider.captureNewImage ( BufferedImage  imageData)
abstractprotected

This method should capture a new image and load it into the Mat datatype

Parameters
imageData
Returns

Reimplemented in com.neuronrobotics.imageprovider.URLImageProvider, and com.neuronrobotics.imageprovider.StaticFileProvider.

◆ connect()

boolean com.neuronrobotics.imageprovider.AbstractImageProvider.connect ( )

This method tells the connection object to start and connects the up and down streams pipes. Once this method is called and returns without exception, the device is ready to communicate with

Returns
true, if successful
Exceptions
InvalidConnectionExceptionthe invalid connection exception

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 49 of file AbstractImageProvider.java.

◆ deepCopy()

static void com.neuronrobotics.imageprovider.AbstractImageProvider.deepCopy ( BufferedImage  src,
BufferedImage  dest 
)
static

◆ getGlobalPos()

javafx.scene.transform.Affine com.neuronrobotics.imageprovider.AbstractImageProvider.getGlobalPos ( )
Returns
global positioning of the image

Definition at line 165 of file AbstractImageProvider.java.

References com.neuronrobotics.imageprovider.AbstractImageProvider.globalPos.

◆ getJfxImage()

static javafx.scene.image.Image com.neuronrobotics.imageprovider.AbstractImageProvider.getJfxImage ( BufferedImage  bf)
static
Parameters
bf
Returns
conversion to javafx i mage

Definition at line 137 of file AbstractImageProvider.java.

Referenced by com.neuronrobotics.imageprovider.AbstractImageProvider.getLatestJfxImage().

◆ getLatestImage() [1/2]

BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.getLatestImage ( )

◆ getLatestImage() [2/2]

BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.getLatestImage ( BufferedImage  inputImage,
BufferedImage  displayImage 
)

◆ getLatestJfxImage()

javafx.scene.image.Image com.neuronrobotics.imageprovider.AbstractImageProvider.getLatestJfxImage ( )
Returns
image as Javafx

Definition at line 151 of file AbstractImageProvider.java.

References com.neuronrobotics.imageprovider.AbstractImageProvider.getJfxImage(), and com.neuronrobotics.imageprovider.AbstractImageProvider.getLatestImage().

Here is the call graph for this function:

◆ isAvailable()

boolean com.neuronrobotics.imageprovider.AbstractImageProvider.isAvailable ( ) throws InvalidConnectionException

Determines if the device is available.

Returns
true if the device is avaiable, false if it is not
Exceptions
InvalidConnectionExceptionthe invalid connection exception

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 60 of file AbstractImageProvider.java.

◆ newBufferImage()

static BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.newBufferImage ( int  w,
int  h 
)
static
Parameters
w
h
Returns
new blnak sized image

Definition at line 103 of file AbstractImageProvider.java.

◆ onAsyncResponse()

void com.neuronrobotics.imageprovider.AbstractImageProvider.onAsyncResponse ( BowlerDatagram  data)

On async response.

Parameters
datathe data

Reimplemented from com.neuronrobotics.sdk.common.NonBowlerDevice.

Definition at line 43 of file AbstractImageProvider.java.

◆ setGlobalPos()

void com.neuronrobotics.imageprovider.AbstractImageProvider.setGlobalPos ( javafx.scene.transform.Affine  globalPos)

◆ setGlobalPositionListener()

void com.neuronrobotics.imageprovider.AbstractImageProvider.setGlobalPositionListener ( javafx.scene.transform.Affine  globalPos)
Parameters
globalPos

Definition at line 158 of file AbstractImageProvider.java.

References com.neuronrobotics.imageprovider.AbstractImageProvider.globalPos, and com.neuronrobotics.imageprovider.AbstractImageProvider.setGlobalPos().

Here is the call graph for this function:

◆ toGrayScale() [1/2]

static BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.toGrayScale ( BufferedImage  in,
double  scale 
)
static
Parameters
in
scale
Returns
toGrayScale

Definition at line 128 of file AbstractImageProvider.java.

References com.neuronrobotics.imageprovider.AbstractImageProvider.toGrayScale().

Here is the call graph for this function:

◆ toGrayScale() [2/2]

static BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.toGrayScale ( BufferedImage  in,
int  w,
int  h 
)
static
Parameters
in
w
h
Returns
grayed image

Definition at line 116 of file AbstractImageProvider.java.

Referenced by com.neuronrobotics.imageprovider.AbstractImageProvider.toGrayScale().

Member Data Documentation

◆ globalPos

javafx.scene.transform.Affine com.neuronrobotics.imageprovider.AbstractImageProvider.globalPos
private

◆ image

BufferedImage com.neuronrobotics.imageprovider.AbstractImageProvider.image = null
private

The documentation for this class was generated from the following file: