37 #ifndef MOVEIT_ROS_MOVEIT_SETUP_ASSISTANT_WIDGETS_COLLISION_MATRIX_MODEL_ 38 #define MOVEIT_ROS_MOVEIT_SETUP_ASSISTANT_WIDGETS_COLLISION_MATRIX_MODEL_ 40 #include <QAbstractTableModel> 53 QObject* parent =
NULL);
54 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
55 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
56 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const;
57 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
61 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
62 bool setData(
const QModelIndex&,
const QVariant&
value,
int role);
63 void setEnabled(
const QItemSelection& selection,
bool value);
64 void setEnabled(
const QModelIndexList& indexes,
bool value);
70 moveit_setup_assistant::LinkPairMap::iterator
item(
const QModelIndex& index);
71 moveit_setup_assistant::LinkPairMap::const_iterator
item(
const QModelIndex& index)
const 83 #endif // MOVEIT_ROS_MOVEIT_SETUP_ASSISTANT_WIDGETS_COLLISION_MATRIX_MODEL_ moveit_setup_assistant::LinkPairMap & pairs
moveit_setup_assistant::LinkPairMap::const_iterator item(const QModelIndex &index) const
CollisionMatrixModel(moveit_setup_assistant::LinkPairMap &pairs, const std::vector< std::string > &names, QObject *parent=NULL)
bool setData(const QModelIndex &, const QVariant &value, int role)
Qt::ItemFlags flags(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QList< int > visual_to_index
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
DisabledReason
Reasons for disabling link pairs. Append "in collision" for understanding. NOT_DISABLED means the lin...
const std::vector< std::string > std_names
int columnCount(const QModelIndex &parent=QModelIndex()) const
void setFilterRegExp(const QString &filter)
moveit_setup_assistant::LinkPairMap::iterator item(const QModelIndex &index)
void setEnabled(const QItemSelection &selection, bool value)
std::map< std::pair< std::string, std::string >, LinkPairData > LinkPairMap
LinkPairMap is an adjacency list structure containing links in string-based form. Used for disabled l...
moveit_setup_assistant::DisabledReason reason(const QModelIndex &index) const