##

ImageView Class Reference

`#include <ImageView.hh>`

Inherits TopicView.

## Public Member Functions

| ImageView (QWidget *_parent=NULL)
| Constructor. More...
virtual | ~ImageView ()
| Destructor. More...
void | OnImage (ConstImageStampedPtr &_msg)
| Receives incoming image messages. More...
virtual void | SetTopic (const std::string &_topicName)
| Set the name of the topic to get data from. More...

## Protected Member Functions

virtual void | closeEvent (QCloseEvent *_event)
| Qt close event callback. More...
void | OnMsg (const common::Time &_dataTime, int _size)
| Used by child class to indicate when a message has been received. More...

## Protected Attributes

QFrame * | frame
| This is the frame that each child class should populate. More...
std::string | msgTypeName
| Typename of the messages that can be displayed. More...
transport::NodePtr | node
| Pointer to the node for communication. More...
transport::SubscriberPtr | sub
| Pointer to the topic subscriber that receives display data. More...

## Constructor & Destructor Documentation

## ImageView()

ImageView | ( | QWidget * | _parent = `NULL` | ) |

explicit

Constructor.

Parameters

  [in] | _parent | Pointer to the parent widget.

## ~ImageView()

virtual ~ImageView | ( |  | ) |

virtual

Destructor.

## Member Function Documentation

## closeEvent()

virtual void closeEvent | ( | QCloseEvent * | _event | ) |

protected virtual inherited

Qt close event callback.

Parameters

  [in] | _event | The close event info.

## OnImage()

void OnImage | ( | ConstImageStampedPtr & | _msg | ) |

Receives incoming image messages.

Parameters

  [in] | _msg | New image message.

## OnMsg()

void OnMsg | ( | const common::Time & | _dataTime,
|  | int | _size
| ) |  |

protected inherited

Used by child class to indicate when a message has been received.

Parameters

  [in] | _dataTime | Time the data was created. This time should be the timestamp when data was generated on the server.
  [in] | _size | Size of the message in bytes.

## SetTopic()

virtual void SetTopic | ( | const std::string & | _topicName | ) |

virtual

Set the name of the topic to get data from.

Parameters

  [in] | _topicName | Name of the topic to use.

Reimplemented from TopicView.

## Member Data Documentation

## frame

QFrame* frame

protected inherited

This is the frame that each child class should populate.

## msgTypeName

std::string msgTypeName

protected inherited

Typename of the messages that can be displayed.

## node

transport::NodePtr node

protected inherited

Pointer to the node for communication.

## sub

transport::SubscriberPtr sub

protected inherited

Pointer to the topic subscriber that receives display data.

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

- ImageView.hh