se2ez
se2ez::gui::ScenePanel Class Reference

#include <scenepanel.h>

Inheritance diagram for se2ez::gui::ScenePanel:
[legend]

Public Slots

void updateScene ()
 
void generateGoals ()
 

Signals

void stateChanged ()
 

Public Member Functions

 ScenePanel (ScenePtr scene, std::string name, QWidget *parent=0)
 
 ~ScenePanel ()
 
void draw (QPainter &painter, RenderArea *canvas) override
 
void update (boost::posix_time::ptime last, boost::posix_time::ptime current) override
 
- Public Member Functions inherited from se2ez::gui::Panel
 Panel (const Panel &)=delete
 
Paneloperator= (const Panel &)=delete
 
 Panel (std::string panel_name, QWidget *parent=0)
 Constructor. More...
 
virtual ~Panel ()=default
 Destructor. More...
 
virtual bool click (QMouseEvent *, double, double, int, int)
 
virtual void initialize (MainWindow::PanelMapPtr p)
 

Private Member Functions

const RobotPtr getRobot (const QString &s)
 
const StatePtr getState (const QString &s)
 
const std::string getEE (const QString &s)
 

Private Attributes

Ui::ScenePanel * ui_
 
ScenePtr scene_ {nullptr}
 
StatePtr sstate_ {nullptr}
 
std::set< std::stringpanelnames_
 names of all panels More...
 
std::set< std::stringanames_
 names of jpanels of active robots More...
 
std::set< std::stringpnames_
 names of jpanels of passive robots More...
 
CollisionManagerPtr cm_ {nullptr}
 
std::set< std::stringcolliding_
 
std::mutex mutex_
 

Additional Inherited Members

- Public Attributes inherited from se2ez::gui::Panel
QString name
 
MainWindow::PanelMapPtr panels
 
std::recursive_mutex mutex_
 

Detailed Description

Definition at line 32 of file scenepanel.h.

Constructor & Destructor Documentation

◆ ScenePanel()

gui::ScenePanel::ScenePanel ( ScenePtr  scene,
std::string  name,
QWidget *  parent = 0 
)

Definition at line 20 of file scenepanel.cpp.

◆ ~ScenePanel()

gui::ScenePanel::~ScenePanel ( )

Definition at line 174 of file scenepanel.cpp.

Member Function Documentation

◆ draw()

void gui::ScenePanel::draw ( QPainter &  painter,
gui::RenderArea canvas 
)
overridevirtual

Implements se2ez::gui::Panel.

Definition at line 110 of file scenepanel.cpp.

◆ generateGoals

void gui::ScenePanel::generateGoals ( )
slot

Definition at line 100 of file scenepanel.cpp.

◆ getEE()

const std::string gui::ScenePanel::getEE ( const QString &  s)
private

Definition at line 143 of file scenepanel.cpp.

◆ getRobot()

const RobotPtr gui::ScenePanel::getRobot ( const QString &  s)
private

Definition at line 159 of file scenepanel.cpp.

◆ getState()

const StatePtr gui::ScenePanel::getState ( const QString &  s)
private

Definition at line 127 of file scenepanel.cpp.

◆ stateChanged

void se2ez::gui::ScenePanel::stateChanged ( )
signal

◆ update()

void gui::ScenePanel::update ( boost::posix_time::ptime  last,
boost::posix_time::ptime  current 
)
overridevirtual

Implements se2ez::gui::Panel.

Definition at line 36 of file scenepanel.cpp.

◆ updateScene

void gui::ScenePanel::updateScene ( )
slot

Definition at line 73 of file scenepanel.cpp.

Member Data Documentation

◆ anames_

std::set<std::string> se2ez::gui::ScenePanel::anames_
private

names of jpanels of active robots

Definition at line 62 of file scenepanel.h.

◆ cm_

CollisionManagerPtr se2ez::gui::ScenePanel::cm_ {nullptr}
private

Definition at line 65 of file scenepanel.h.

◆ colliding_

std::set<std::string> se2ez::gui::ScenePanel::colliding_
private

Definition at line 66 of file scenepanel.h.

◆ mutex_

std::mutex se2ez::gui::ScenePanel::mutex_
private

Definition at line 68 of file scenepanel.h.

◆ panelnames_

std::set<std::string> se2ez::gui::ScenePanel::panelnames_
private

names of all panels

Definition at line 60 of file scenepanel.h.

◆ pnames_

std::set<std::string> se2ez::gui::ScenePanel::pnames_
private

names of jpanels of passive robots

Definition at line 63 of file scenepanel.h.

◆ scene_

ScenePtr se2ez::gui::ScenePanel::scene_ {nullptr}
private

Definition at line 57 of file scenepanel.h.

◆ sstate_

StatePtr se2ez::gui::ScenePanel::sstate_ {nullptr}
private

Definition at line 58 of file scenepanel.h.

◆ ui_

Ui::ScenePanel* se2ez::gui::ScenePanel::ui_
private

Definition at line 55 of file scenepanel.h.


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