LaserView Class Reference

#include <LaserView.hh>

Inherits TopicView.

Public Member Functions

 LaserView (QWidget *_parent=NULL)
 Constructor.
 
virtual ~LaserView ()
 Destructor.
 
virtual void SetTopic (const std::string &_topicName)
 Set the name of the topic to get data from.
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *_event)
 Qt close event callback.
 
void OnMsg (const common::Time &_dataTime, int _size)
 Used by child class to indicate when a message has been received.
 
virtual void resizeEvent (QResizeEvent *_event)
 QT event, called when view is resized.
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ LaserView()

LaserView ( QWidget * _parent = NULL)
explicit

Constructor.

Parameters
[in]_parentPointer to the parent widget.

◆ ~LaserView()

virtual ~LaserView ( )
virtual

Destructor.

Member Function Documentation

◆ closeEvent()

virtual void closeEvent ( QCloseEvent * _event)
protectedvirtualinherited

Qt close event callback.

Parameters
[in]_eventThe close event info.

◆ OnMsg()

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

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

Parameters
[in]_dataTimeTime the data was created. This time should be the timestamp when data was generated on the server.
[in]_sizeSize of the message in bytes.

◆ resizeEvent()

virtual void resizeEvent ( QResizeEvent * _event)
protectedvirtual

QT event, called when view is resized.

Parameters
[in]_eventPointer to the resize event info.

◆ SetTopic()

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

Set the name of the topic to get data from.

Parameters
[in]_topicNameName of the topic to use.

Reimplemented from TopicView.

Member Data Documentation

◆ frame

QFrame* frame
protectedinherited

This is the frame that each child class should populate.

◆ msgTypeName

std::string msgTypeName
protectedinherited

Typename of the messages that can be displayed.

◆ node

transport::NodePtr node
protectedinherited

Pointer to the node for communication.

◆ sub

transport::SubscriberPtr sub
protectedinherited

Pointer to the topic subscriber that receives display data.


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