|
| enum | ENTITY_FILTER {
EF_ANY = 0x0F
, EF_FACE = 0x01
, EF_EDGE = 0x02
, EF_HALFEDGE = 0x04
,
EF_VERTEX = 0x08
} |
| |
|
| | PropertyNameListModel (QObject *parent=0) |
| |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| |
| template<typename MeshT > |
| void | refresh (MeshT *mesh, ENTITY_FILTER entityFilterMask, std::type_info *typeIdFilter) |
| |
| bool | tryInsertionsDeletions (std::vector< PROP_INFO > &propList) |
| |
| template<typename MeshT , typename OUTPUT_ITERATOR > |
| void | gatherProperties (MeshT *mesh, typename MeshT::prop_iterator props_first, typename MeshT::prop_iterator props_last, std::type_info *typeIdFilter, OUTPUT_ITERATOR oit, ENTITY_FILTER entity) |
| |
| const PROP_INFO & | operator[] (size_t index) |
| |
|
| static const char * | entity2str (ENTITY_FILTER entity) |
| |
Definition at line 54 of file PropertyNameListModel.hh.
◆ TYPE_INFO_SET
◆ ENTITY_FILTER
| enum PropertyNameListModel::ENTITY_FILTER |
◆ PropertyNameListModel()
| PropertyNameListModel::PropertyNameListModel |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~PropertyNameListModel()
| PropertyNameListModel::~PropertyNameListModel |
( |
| ) |
|
|
virtual |
◆ data()
| QVariant PropertyNameListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
◆ entity2str()
| const char * PropertyNameListModel::entity2str |
( |
ENTITY_FILTER |
entity | ) |
|
|
static |
◆ gatherProperties()
template<typename
MeshT , typename OUTPUT_ITERATOR >
| void PropertyNameListModel::gatherProperties |
( |
MeshT * |
mesh, |
|
|
typename MeshT::prop_iterator |
props_first, |
|
|
typename MeshT::prop_iterator |
props_last, |
|
|
std::type_info * |
typeIdFilter, |
|
|
OUTPUT_ITERATOR |
oit, |
|
|
ENTITY_FILTER |
entity |
|
) |
| |
|
inline |
◆ headerData()
| QVariant PropertyNameListModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
◆ operator[]()
| const PROP_INFO & PropertyNameListModel::operator[] |
( |
size_t |
index | ) |
|
|
inline |
◆ refresh()
template<typename
MeshT >
| void PropertyNameListModel::refresh |
( |
MeshT * |
mesh, |
|
|
ENTITY_FILTER |
entityFilterMask, |
|
|
std::type_info * |
typeIdFilter |
|
) |
| |
|
inline |
- Parameters
-
| mesh | The mesh to work on |
| entityFilterMask | Filter mask |
| typeIdFilter | If NULL, do not filter by type. |
Definition at line 148 of file PropertyNameListModel.hh.
◆ rowCount()
| int PropertyNameListModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
◆ tryInsertionsDeletions()
| bool PropertyNameListModel::tryInsertionsDeletions |
( |
std::vector< PROP_INFO > & |
propList | ) |
|
Implements an unsophisticated heuristic to translate the difference between propList and propList_ into a series of insertions and deletions.
- Returns
- True if such a sequence was found, false otherwise.
Definition at line 157 of file PropertyNameListModel.cc.
◆ prop_types
Initial value:= {
proptype_bool,
proptype_int,
proptype_uint,
proptype_double,
proptype_Vec3d,
proptype_Vec3f,
proptype_Vec2d,
proptype_Vec2f,
}
Definition at line 81 of file PropertyNameListModel.hh.
◆ propList_
| std::vector<PROP_INFO> PropertyNameListModel::propList_ |
|
protected |
◆ proptype_bool
◆ proptype_double
◆ proptype_int
◆ proptype_Matrix3x3d
◆ proptype_SkinWeights
◆ proptype_uint
◆ proptype_Vec2d
◆ proptype_Vec2f
◆ proptype_Vec3d
◆ proptype_Vec3f
◆ sane_prop_types
| const PropertyNameListModel::TYPE_INFO_SET PropertyNameListModel::sane_prop_types |
|
staticprivate |
The documentation for this class was generated from the following files: