6 #ifndef HPP_GUI_JOINTTREEITEM_HH 7 #define HPP_GUI_JOINTTREEITEM_HH 9 #include <QItemDelegate> 11 #include <QStandardItem> 14 #include <gepetto/gui/fwd.hh> 15 #include <gepetto/viewer/node.h> 48 const hpp::floatSeq& q,
49 const hpp::floatSeq& b,
51 const NodesPtr_t& node);
55 virtual QStandardItem*
clone ()
const;
58 return QStandardItem::UserType+3;
61 const std::string&
name ()
const {
65 hpp::floatSeq
config ()
const;
67 hpp::floatSeq
bounds ()
const;
87 const QList<QAction*>&
actions ()
const;
90 typedef QList<QStandardItem*> StandardItemList;
93 ULong idxQ_, idxV_, nq_, nv_;
95 QVector<StandardItemList> value_;
96 QList<QAction*> actions_;
105 gepetto::gui::MainWindow *main,
JointTreeItem const* item,
int index);
108 void timerEvent(QTimerEvent *);
112 void updateIntegrator (
int value);
117 gepetto::gui::MainWindow* main_;
122 const double maxVelocity_;
123 hpp::floatSeq q_, dq_;
133 gepetto::gui::MainWindow *main,
JointTreeItem const* item,
int index);
141 gepetto::gui::MainWindow* main_;
158 QWidget* createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
159 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
160 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
161 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
164 gepetto::gui::MainWindow* main_;
166 QPushButton* forceIntegrator_;
171 #endif // HPP_GUI_JOINTTREEITEM_HH Definition: joint-tree-item.hh:42
Definition: joint-tree-item.hh:99
std::vector< NodePtr_t > NodesPtr_t
Definition: joint-tree-item.hh:30
virtual int type()
Definition: joint-tree-item.hh:57
ULong numberDof() const
Definition: joint-tree-item.hh:75
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: joint-tree-item.hh:149
gepetto::viewer::NodePtr_t NodePtr_t
Definition: joint-tree-item.hh:29
virtual QStandardItem * clone() const
Definition: joint-tree-item.hh:38
const std::string & name() const
Definition: joint-tree-item.hh:61
void updateConfig(const hpp::floatSeq &c)
ItemType
Definition: joint-tree-item.hh:37
CORBA::ULong ULong
Definition: joint-tree-item.hh:28
ULong rankInVelocity() const
Definition: joint-tree-item.hh:71
Definition: joint-tree-item.hh:39
void updateBounds(const hpp::floatSeq &b)
Definition: joint-tree-item.hh:25
hpp::floatSeq bounds() const
Definition: joint-tree-item.hh:40
void setupActions(HppWidgetsPlugin *plugin)
JointTreeItem(const char *name, const ULong &idxQ, const ULong &idxV, const hpp::floatSeq &q, const hpp::floatSeq &b, const ULong &nbDof, const NodesPtr_t &node)
Definition: joint-tree-item.hh:127
static const int IndexRole
Definition: joint-tree-item.hh:32
ULong configSize() const
Definition: joint-tree-item.hh:73
static const int TypeRole
Definition: joint-tree-item.hh:35
void updateFromRobotConfig(const hpp::floatSeq &c)
ULong rankInConfig() const
Definition: joint-tree-item.hh:69
hpp::floatSeq config() const
Definition: joint-tree-item.hh:41
static const int LowerBoundRole
Definition: joint-tree-item.hh:33
static const int UpperBoundRole
Definition: joint-tree-item.hh:34
const QList< QAction * > & actions() const