ANYdrive SDK
The SDK for interfacing ANYdrive.
anydrive_monitor::AnydriveMonitorWidget Class Reference

#include <AnydriveMonitorWidget.h>

Inheritance diagram for anydrive_monitor::AnydriveMonitorWidget:
Inheritance graph

Public Member Functions

 AnydriveMonitorWidget (QWidget *parent=0)
 
 ~AnydriveMonitorWidget ()
 
void pushBackAnydriveInterface (AnydriveInterface *anydriveInterface)
 
void addSpacer ()
 
bool getFeedbackSectionState ()
 
void setFeedbackSectionState (bool state)
 
bool getParametersSectionState ()
 
void setParametersSectionState (bool state)
 
bool getCommandSectionState ()
 
void setCommandSectionState (bool state)
 

Protected Slots

void onCheckBoxFeedbackStateChanged (int state)
 
void onCheckBoxParametersStateChanged (int state)
 
void onCheckBoxCommandStateChanged (int state)
 

Private Member Functions

void setFixedWidth ()
 
void setMinWidth ()
 
void updateFeedbackVisibility ()
 
void updateParametersVisibility ()
 
void updateCommandVisibility ()
 

Private Attributes

const int WIDTH_NAME = 70
 
const int WIDTH_MIN_STATE = 80
 
const int WIDTH_CONTROLWORD = 100
 
const int WIDTH_MIN_MODE = 160
 
const int WIDTH_STATUS = 50
 
const int WIDTH_POSITION = 110
 
const int WIDTH_VELOCITY = 110
 
const int WIDTH_TORQUE = 110
 
const int WIDTH_CURRENT = 110
 
const int WIDTH_VOLTAGE = 80
 
const int WIDTH_TEMPERATURE = 80
 
const int WIDTH_PARAM = 100
 
const int WIDTH_COMMAND_1 = 100
 
const int WIDTH_COMMAND_2 = 100
 
const int WIDTH_EXPAND = 18
 
Ui::AnydriveMonitorWidget * ui_
 
std::vector< AnydriveInterface * > anydriveWidgets_
 
bool isFeedbackVisible_ = true
 
bool isParametersVisible_ = false
 
bool isCommandVisible_ = true
 

Constructor & Destructor Documentation

◆ AnydriveMonitorWidget()

anydrive_monitor::AnydriveMonitorWidget::AnydriveMonitorWidget ( QWidget *  parent = 0)
explicit

◆ ~AnydriveMonitorWidget()

anydrive_monitor::AnydriveMonitorWidget::~AnydriveMonitorWidget ( )

Member Function Documentation

◆ addSpacer()

void anydrive_monitor::AnydriveMonitorWidget::addSpacer ( )

◆ getCommandSectionState()

bool anydrive_monitor::AnydriveMonitorWidget::getCommandSectionState ( )

◆ getFeedbackSectionState()

bool anydrive_monitor::AnydriveMonitorWidget::getFeedbackSectionState ( )

◆ getParametersSectionState()

bool anydrive_monitor::AnydriveMonitorWidget::getParametersSectionState ( )

◆ onCheckBoxCommandStateChanged

void anydrive_monitor::AnydriveMonitorWidget::onCheckBoxCommandStateChanged ( int  state)
protectedslot

◆ onCheckBoxFeedbackStateChanged

void anydrive_monitor::AnydriveMonitorWidget::onCheckBoxFeedbackStateChanged ( int  state)
protectedslot

◆ onCheckBoxParametersStateChanged

void anydrive_monitor::AnydriveMonitorWidget::onCheckBoxParametersStateChanged ( int  state)
protectedslot

◆ pushBackAnydriveInterface()

void anydrive_monitor::AnydriveMonitorWidget::pushBackAnydriveInterface ( AnydriveInterface anydriveInterface)

◆ setCommandSectionState()

void anydrive_monitor::AnydriveMonitorWidget::setCommandSectionState ( bool  state)

◆ setFeedbackSectionState()

void anydrive_monitor::AnydriveMonitorWidget::setFeedbackSectionState ( bool  state)

◆ setFixedWidth()

void anydrive_monitor::AnydriveMonitorWidget::setFixedWidth ( )
private

◆ setMinWidth()

void anydrive_monitor::AnydriveMonitorWidget::setMinWidth ( )
private

◆ setParametersSectionState()

void anydrive_monitor::AnydriveMonitorWidget::setParametersSectionState ( bool  state)

◆ updateCommandVisibility()

void anydrive_monitor::AnydriveMonitorWidget::updateCommandVisibility ( )
private

◆ updateFeedbackVisibility()

void anydrive_monitor::AnydriveMonitorWidget::updateFeedbackVisibility ( )
private

◆ updateParametersVisibility()

void anydrive_monitor::AnydriveMonitorWidget::updateParametersVisibility ( )
private

Member Data Documentation

◆ anydriveWidgets_

std::vector<AnydriveInterface*> anydrive_monitor::AnydriveMonitorWidget::anydriveWidgets_
private

◆ isCommandVisible_

bool anydrive_monitor::AnydriveMonitorWidget::isCommandVisible_ = true
private

◆ isFeedbackVisible_

bool anydrive_monitor::AnydriveMonitorWidget::isFeedbackVisible_ = true
private

◆ isParametersVisible_

bool anydrive_monitor::AnydriveMonitorWidget::isParametersVisible_ = false
private

◆ ui_

Ui::AnydriveMonitorWidget* anydrive_monitor::AnydriveMonitorWidget::ui_
private

◆ WIDTH_COMMAND_1

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_COMMAND_1 = 100
private

◆ WIDTH_COMMAND_2

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_COMMAND_2 = 100
private

◆ WIDTH_CONTROLWORD

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_CONTROLWORD = 100
private

◆ WIDTH_CURRENT

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_CURRENT = 110
private

◆ WIDTH_EXPAND

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_EXPAND = 18
private

◆ WIDTH_MIN_MODE

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_MIN_MODE = 160
private

◆ WIDTH_MIN_STATE

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_MIN_STATE = 80
private

◆ WIDTH_NAME

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_NAME = 70
private

◆ WIDTH_PARAM

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_PARAM = 100
private

◆ WIDTH_POSITION

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_POSITION = 110
private

◆ WIDTH_STATUS

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_STATUS = 50
private

◆ WIDTH_TEMPERATURE

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_TEMPERATURE = 80
private

◆ WIDTH_TORQUE

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_TORQUE = 110
private

◆ WIDTH_VELOCITY

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_VELOCITY = 110
private

◆ WIDTH_VOLTAGE

const int anydrive_monitor::AnydriveMonitorWidget::WIDTH_VOLTAGE = 80
private

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