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

Public Member Functions

 StaticFileProvider (File file)
 
void disconnectDeviceImp ()
 
boolean connectDeviceImp ()
 
ArrayList< String > getNamespacesImp ()
 
BufferedImage captureNewImage ()
 
- Public Member Functions inherited from com.neuronrobotics.imageprovider.AbstractImageProvider
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
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 ()
 

Protected Member Functions

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

Private Attributes

File file
 

Additional Inherited Members

- Static Public Member Functions inherited from com.neuronrobotics.imageprovider.AbstractImageProvider
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)
 

Detailed Description

Definition at line 14 of file StaticFileProvider.java.

Constructor & Destructor Documentation

◆ StaticFileProvider()

com.neuronrobotics.imageprovider.StaticFileProvider.StaticFileProvider ( File  file)

Member Function Documentation

◆ captureNewImage() [1/2]

BufferedImage com.neuronrobotics.imageprovider.StaticFileProvider.captureNewImage ( )

This method should capture a new image and return it

Returns

Reimplemented from com.neuronrobotics.imageprovider.AbstractImageProvider.

Definition at line 47 of file StaticFileProvider.java.

References com.neuronrobotics.imageprovider.StaticFileProvider.file.

Referenced by com.neuronrobotics.imageprovider.StaticFileProvider.captureNewImage().

◆ captureNewImage() [2/2]

boolean com.neuronrobotics.imageprovider.StaticFileProvider.captureNewImage ( BufferedImage  imageData)
protected

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

Parameters
imageData
Returns

Reimplemented from com.neuronrobotics.imageprovider.AbstractImageProvider.

Definition at line 23 of file StaticFileProvider.java.

References com.neuronrobotics.imageprovider.StaticFileProvider.captureNewImage(), and com.neuronrobotics.imageprovider.AbstractImageProvider.deepCopy().

Here is the call graph for this function:

◆ connectDeviceImp()

boolean com.neuronrobotics.imageprovider.StaticFileProvider.connectDeviceImp ( )

Connect device imp.

Returns
true, if successful

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

Definition at line 35 of file StaticFileProvider.java.

◆ disconnectDeviceImp()

void com.neuronrobotics.imageprovider.StaticFileProvider.disconnectDeviceImp ( )

This method tells the connection object to disconnect its pipes and close out the connection. Once this is called, it is safe to remove your device.

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

Definition at line 29 of file StaticFileProvider.java.

◆ getNamespacesImp()

ArrayList<String> com.neuronrobotics.imageprovider.StaticFileProvider.getNamespacesImp ( )

Gets the namespaces imp.

Returns
the namespaces imp

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

Definition at line 41 of file StaticFileProvider.java.

Member Data Documentation

◆ file

File com.neuronrobotics.imageprovider.StaticFileProvider.file
private

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