-
Notifications
You must be signed in to change notification settings - Fork 2
/
OsgPropertyTable.h
52 lines (42 loc) · 1.36 KB
/
OsgPropertyTable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef OSGPROPERTYTABLE_H
#define OSGPROPERTYTABLE_H
#include <QTableWidget>
#include <osg/Object>
namespace osg {
class Object;
class Node;
class Group;
class Geode;
class Drawable;
class Geometry;
class StateSet;
class Material;
class MatrixTransform;
}
class OsgPropertyTable : public QTableWidget
{
Q_OBJECT
public:
OsgPropertyTable(QWidget * parent = 0);
signals:
public slots:
void displayObject(osg::ref_ptr<osg::Object> object);
void hideAllRows();
private slots:
void itemWasClicked(QTableWidgetItem *item);
private:
void setTableValuesForObject(osg::ref_ptr<osg::Object> object);
void setTableValuesForNode(osg::Node * node);
void setTableValuesForTransform(osg::MatrixTransform *xform);
void setTableValuesForGroup(osg::Group *group);
void setTableValuesForGeode(osg::Geode *geode);
void setTableValuesForDrawable(osg::Drawable *drawable);
void setTableValuesForGeometry(osg::Geometry *geometry);
void setTableValuesForStateSet(osg::StateSet *ss);
void setTableValuesForMaterial(osg::Material *m);
QTableWidgetItem *getOrCreateWidgetItem(QTableWidget *tw, int row, int col);
QTableWidgetItem *itemForKey(const QString key);
QTableWidgetItem *setKeyChecked(const QString key, const bool value);
void setTextForKey(const QString key, const QString value = QString(""));
};
#endif // OSGPROPERTYTABLE_H