The Robot Application Programming Interface Delegate Project
RAPID Logo

ImageSensorView Class Reference

Inheritance diagram for ImageSensorView:
Collaboration diagram for ImageSensorView:

List of all members.

Public Member Functions

 ImageSensorView ()
void createPartControl (Composite parent)
void reshowImage ()
void dispose ()
void setFocus ()
boolean mimeTypeIsViewable (String mimeType)
void populateCameraCombo ()
 Query the CameraManager for the current list of camera names.
boolean imageAcquired (final RapidImageSensorSample image)
 store thumbnail in m_image (for disposal reasons)
void rapidEventReceived (Agent agent, MessageType type, final IRapidMessage msg)
void changeAgent (final Agent agent)

Public Attributes

final String DEFAULT_CAMERA = "Default"

Static Public Attributes

static String ID = ImageSensorView.class.getName()

Protected Member Functions

void loadInitialImage (String initialImage)
 load up a default image
void hookActions ()
void createActions ()
 Create Actions.
void setInfoLabel (String msg)
 throw a message up on the info label
void setCameraCombo (int index)
Combo setupRoverCombo (Composite parent)
 set up the rover combo box and associated action
Combo setupCameraCombo (Composite parent)
Combo setupImageManipulation (Composite parent)

Protected Attributes

Image m_image = null
ImageData m_imageData = null
Integer m_imageLock = new Integer(0)
Label m_imageLabel = null
Label m_infoLabel = null
int m_numErrors = 0
int m_imageCount = 0
boolean m_autoScale = true
ImageSensorViewSize m_viewAreaSize = new ImageSensorViewSize()
String m_initialImage = "images/CameraIconGrey256.png"
Map< Agent, String[]> m_cameraNamesMap = new HashMap<Agent, String[]>()
MessageType m_subscribedType = null
Integer m_subLock = new Integer(0)
Button m_startButton = null
Button m_stopButton = null
Agent m_agent = null
Combo m_agentCombo = null
Combo m_cameraCombo = null
Combo m_imageManipulationCombo = null
boolean m_roverOverridden = false
Action m_pinRoverAction
Action m_startAction
Action m_stopAction
Action m_imageFullAction
Action m_imageScaleAction

Static Protected Attributes

static final Logger logger = Logger.getLogger(ImageSensorView.class)
static final int COMBO_TYPE = SWT.READ_ONLY

Package Functions

void setCameraComboRunnable (final String camera)
Button setupStartButton (Composite parent)
Button setupStopButton (Composite parent)

Detailed Description

Author:
mallan

Constructor & Destructor Documentation

Here is the call graph for this function:


Member Function Documentation

void changeAgent ( final Agent  agent)

Here is the call graph for this function:

void createActions ( ) [protected]

Here is the call graph for this function:

void createPartControl ( Composite  parent)

Here is the call graph for this function:

void dispose ( )
void hookActions ( ) [protected]
boolean imageAcquired ( final RapidImageSensorSample  image)
Returns:
true on success

Here is the call graph for this function:

void loadInitialImage ( String  initialImage) [protected]

Here is the call graph for this function:

boolean mimeTypeIsViewable ( String  mimeType)
Parameters:
mimeType
Returns:
void populateCameraCombo ( )
Returns:

Here is the call graph for this function:

void rapidEventReceived ( Agent  agent,
MessageType  type,
final IRapidMessage  msg 
)

Here is the call graph for this function:

void reshowImage ( )
void setCameraCombo ( int  index) [protected]
Parameters:
index
void setCameraComboRunnable ( final String  camera) [package]
Parameters:
camera

Here is the call graph for this function:

void setFocus ( )
void setInfoLabel ( String  msg) [protected]
Parameters:
msg
Combo setupCameraCombo ( Composite  parent) [protected]
Parameters:
parent
Returns:
Combo setupImageManipulation ( Composite  parent) [protected]
Combo setupRoverCombo ( Composite  parent) [protected]
Parameters:
parent

Here is the call graph for this function:

Button setupStartButton ( Composite  parent) [package]
Parameters:
parent
Button setupStopButton ( Composite  parent) [package]
Parameters:
parent

Member Data Documentation

final int COMBO_TYPE = SWT.READ_ONLY [static, protected]
final String DEFAULT_CAMERA = "Default"
String ID = ImageSensorView.class.getName() [static]
final Logger logger = Logger.getLogger(ImageSensorView.class) [static, protected]
Agent m_agent = null [protected]
Combo m_agentCombo = null [protected]
boolean m_autoScale = true [protected]
Combo m_cameraCombo = null [protected]
Map<Agent, String[]> m_cameraNamesMap = new HashMap<Agent, String[]>() [protected]
Image m_image = null [protected]
int m_imageCount = 0 [protected]
ImageData m_imageData = null [protected]
Action m_imageFullAction [protected]
Label m_imageLabel = null [protected]
Integer m_imageLock = new Integer(0) [protected]
Combo m_imageManipulationCombo = null [protected]
Action m_imageScaleAction [protected]
Label m_infoLabel = null [protected]
String m_initialImage = "images/CameraIconGrey256.png" [protected]
int m_numErrors = 0 [protected]
Action m_pinRoverAction [protected]
boolean m_roverOverridden = false [protected]
Action m_startAction [protected]
Button m_startButton = null [protected]
Action m_stopAction [protected]
Button m_stopButton = null [protected]
Integer m_subLock = new Integer(0) [protected]
MessageType m_subscribedType = null [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines