Privacy
An open-source, flexible 3D physical simulation framework
mars::gui::Dialog_Motor_Control Class Reference

Dialog_Motor_Control is a widget that creates MotorSet widgets for each available motor to change its values. More...

#include <Dialog_Motor_Control.h>

Signals

void closeSignal (void *)
 
- Signals inherited from mars::main_gui::BaseWidget
void hideSignal (void)
 
void closeSignal (void)
 

Public Member Functions

 Dialog_Motor_Control (interfaces::ControlCenter *c)
 creates the dialog More...
 
 ~Dialog_Motor_Control ()
 
- Public Member Functions inherited from mars::main_gui::BaseWidget
 BaseWidget (QWidget *parent, cfg_manager::CFGManagerInterface *_cfg, std::string _widgetName)
 
 ~BaseWidget ()
 
virtual void cfgUpdateProperty (cfg_manager::cfgPropertyStruct _property)
 
void setHiddenCloseState (bool v)
 
bool getHiddenCloseState ()
 
void show ()
 
void hide ()
 
bool isHidden ()
 
void saveState ()
 
const std::string & getName ()
 
- Public Member Functions inherited from mars::cfg_manager::CFGClient
 CFGClient ()
 
virtual ~CFGClient ()
 
virtual void cfgParamCreated (cfgParamId _id)
 
virtual void cfgParamRemoved (cfgParamId _id)
 

Private Slots

void zerobuttonclicked ()
 
void sliderValueChanged (int)
 
void radspinboxValueChanged (double)
 
void degspinboxValueChanged (double)
 

Private Member Functions

void closeEvent (QCloseEvent *event)
 

Private Attributes

std::vector< interfaces::core_objects_exchangemotors
 
std::vector< QDoubleSpinBox * > radspinboxes
 
std::vector< QDoubleSpinBox * > degspinboxes
 
std::vector< QSlider * > sliders
 
double scale
 
bool slideractive
 
bool radboxactive
 
bool degboxactive
 
QGridLayout * grLayout
 
QVBoxLayout * mainLayout
 
interfaces::ControlCentercontrol
 

Additional Inherited Members

- Protected Member Functions inherited from mars::main_gui::BaseWidget
void changeEvent (QEvent *ev)
 
void cfgWindow (void)
 
void applyGeometry ()
 
void hideEvent (QHideEvent *event)
 
void closeEvent (QCloseEvent *event)
 
- Protected Attributes inherited from mars::main_gui::BaseWidget
cfg_manager::CFGManagerInterfacecfg
 
bool setWindowProp
 
bool hiddenState
 

Detailed Description

Dialog_Motor_Control is a widget that creates MotorSet widgets for each available motor to change its values.

Definition at line 45 of file Dialog_Motor_Control.h.

Constructor & Destructor Documentation

◆ Dialog_Motor_Control()

mars::gui::Dialog_Motor_Control::Dialog_Motor_Control ( interfaces::ControlCenter c)

creates the dialog

Definition at line 39 of file Dialog_Motor_Control.cpp.

◆ ~Dialog_Motor_Control()

mars::gui::Dialog_Motor_Control::~Dialog_Motor_Control ( )

Definition at line 130 of file Dialog_Motor_Control.cpp.

Member Function Documentation

◆ closeEvent()

void mars::gui::Dialog_Motor_Control::closeEvent ( QCloseEvent *  event)
private

Definition at line 193 of file Dialog_Motor_Control.cpp.

◆ closeSignal

void mars::gui::Dialog_Motor_Control::closeSignal ( void *  )
signal

◆ degspinboxValueChanged

void mars::gui::Dialog_Motor_Control::degspinboxValueChanged ( double  value)
privateslot

Definition at line 169 of file Dialog_Motor_Control.cpp.

◆ radspinboxValueChanged

void mars::gui::Dialog_Motor_Control::radspinboxValueChanged ( double  value)
privateslot

Definition at line 153 of file Dialog_Motor_Control.cpp.

◆ sliderValueChanged

void mars::gui::Dialog_Motor_Control::sliderValueChanged ( int  value)
privateslot

Definition at line 136 of file Dialog_Motor_Control.cpp.

◆ zerobuttonclicked

void mars::gui::Dialog_Motor_Control::zerobuttonclicked ( )
privateslot

Definition at line 185 of file Dialog_Motor_Control.cpp.

Member Data Documentation

◆ control

interfaces::ControlCenter* mars::gui::Dialog_Motor_Control::control
private

Definition at line 67 of file Dialog_Motor_Control.h.

◆ degboxactive

bool mars::gui::Dialog_Motor_Control::degboxactive
private

Definition at line 63 of file Dialog_Motor_Control.h.

◆ degspinboxes

std::vector<QDoubleSpinBox*> mars::gui::Dialog_Motor_Control::degspinboxes
private

Definition at line 57 of file Dialog_Motor_Control.h.

◆ grLayout

QGridLayout* mars::gui::Dialog_Motor_Control::grLayout
private

Definition at line 65 of file Dialog_Motor_Control.h.

◆ mainLayout

QVBoxLayout* mars::gui::Dialog_Motor_Control::mainLayout
private

Definition at line 66 of file Dialog_Motor_Control.h.

◆ motors

std::vector<interfaces::core_objects_exchange> mars::gui::Dialog_Motor_Control::motors
private

Definition at line 55 of file Dialog_Motor_Control.h.

◆ radboxactive

bool mars::gui::Dialog_Motor_Control::radboxactive
private

Definition at line 62 of file Dialog_Motor_Control.h.

◆ radspinboxes

std::vector<QDoubleSpinBox*> mars::gui::Dialog_Motor_Control::radspinboxes
private

Definition at line 56 of file Dialog_Motor_Control.h.

◆ scale

double mars::gui::Dialog_Motor_Control::scale
private

Definition at line 59 of file Dialog_Motor_Control.h.

◆ slideractive

bool mars::gui::Dialog_Motor_Control::slideractive
private

Definition at line 61 of file Dialog_Motor_Control.h.

◆ sliders

std::vector<QSlider*> mars::gui::Dialog_Motor_Control::sliders
private

Definition at line 58 of file Dialog_Motor_Control.h.


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