RobWorkProject  23.9.11-
Signals | Public Member Functions | List of all members
MovableFrameTab Class Reference

Widget for a adjusting a MovableFrame. More...

#include <SliderTab.hpp>

Inherits QWidget, and QWidget.

Signals

void stateChanged (const rw::kinematics::State &state)
 Emitted when the transform is changed. More...
 
void stateChanged (const rw::kinematics::State &state)
 

Public Member Functions

 MovableFrameTab (const std::pair< rw::math::Q, rw::math::Q > &bounds, rw::kinematics::MovableFrame *frame, rw::models::WorkCell *workcell, const rw::kinematics::State &state)
 Construct a new tab for adjusting a MovableFrame. More...
 
void setUnits (const std::vector< double > &converters, const std::vector< std::string > &descriptions)
 Set the units. More...
 
void updateValues (const rw::kinematics::State &state)
 Change the transform. More...
 
 MovableFrameTab (const std::pair< rw::math::Q, rw::math::Q > &bounds, rw::kinematics::MovableFrame *frame, rw::models::WorkCell *workcell, const rw::kinematics::State &state)
 
void setUnits (const std::vector< double > &converters, const std::vector< std::string > &descriptions)
 
void updateValues (const rw::kinematics::State &state)
 

Detailed Description

Widget for a adjusting a MovableFrame.

Constructor & Destructor Documentation

◆ MovableFrameTab()

MovableFrameTab ( const std::pair< rw::math::Q, rw::math::Q > &  bounds,
rw::kinematics::MovableFrame frame,
rw::models::WorkCell workcell,
const rw::kinematics::State state 
)

Construct a new tab for adjusting a MovableFrame.

Parameters
bounds[in] the lower and upper bounds - 6 elements of each corresponding to x,y,z,R,P and Y.
frame[in] the MovableFrame to adjust.
workcell[in] the workcell, allowing choice of different reference frames.
state[in] the current state.

Member Function Documentation

◆ setUnits()

void setUnits ( const std::vector< double > &  converters,
const std::vector< std::string > &  descriptions 
)

Set the units.

Parameters
converters[in] the factor used to convert to units.
descriptions[in] a description of the chosen units.

◆ stateChanged

void stateChanged ( const rw::kinematics::State state)
signal

Emitted when the transform is changed.

Parameters
state[in] the new state.

◆ updateValues()

void updateValues ( const rw::kinematics::State state)

Change the transform.

Parameters
state[in] the state with the new configuration.

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