|
This class provides a property browser which displays all properties of a scene object or prior knowledge object class. More...
#include <MemoryX/gui-plugins/SceneEditor/gui/PropertyBrowserWidget.h>
Public Member Functions | |
PropertyBrowserWidget (const controller::ControllerPtr &control, QWidget *parent=0) | |
Constructor. More... | |
void | setProperties (const memoryx::ObjectClassPtr &objectClass, std::string collection) |
Fill property browser with class attributes of the given objectclass. More... | |
void | setProperties (scene3D::SceneObjectPtr sceneObject) |
Fill property browser with instance and class attributes of the given scene object. More... | |
void | updateSceneObject (std::string objectID) |
Updates the instance properties of the selected object in the scene given by its ID. More... | |
Public Member Functions inherited from QtTreePropertyBrowser | |
bool | alternatingRowColors () const |
QColor | backgroundColor (QtBrowserItem *item) const |
QColor | calculatedBackgroundColor (QtBrowserItem *item) const |
void | editItem (QtBrowserItem *item) |
int | indentation () const |
bool | isExpanded (QtBrowserItem *item) const |
bool | isHeaderVisible () const |
bool | isItemVisible (QtBrowserItem *item) const |
bool | propertiesWithoutValueMarked () const |
QtTreePropertyBrowser (QWidget *parent=0) | |
ResizeMode | resizeMode () const |
bool | rootIsDecorated () const |
void | setAlternatingRowColors (bool enable) |
void | setBackgroundColor (QtBrowserItem *item, const QColor &color) |
void | setExpanded (QtBrowserItem *item, bool expanded) |
void | setHeaderVisible (bool visible) |
void | setIndentation (int i) |
void | setItemVisible (QtBrowserItem *item, bool visible) |
void | setPropertiesWithoutValueMarked (bool mark) |
void | setResizeMode (ResizeMode mode) |
void | setRootIsDecorated (bool show) |
void | setSplitterPosition (int position) |
int | splitterPosition () const |
~QtTreePropertyBrowser () override | |
Public Member Functions inherited from QtAbstractPropertyBrowser | |
void | clear () |
QtBrowserItem * | currentItem () const |
QList< QtBrowserItem * > | items (QtProperty *property) const |
QList< QtProperty * > | properties () const |
QtAbstractPropertyBrowser (QWidget *parent=0) | |
void | setCurrentItem (QtBrowserItem *) |
template<class PropertyManager > | |
void | setFactoryForManager (PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory) |
QtBrowserItem * | topLevelItem (QtProperty *property) const |
QList< QtBrowserItem * > | topLevelItems () const |
void | unsetFactoryForManager (QtAbstractPropertyManager *manager) |
~QtAbstractPropertyBrowser () override | |
Additional Inherited Members | |
Public Types inherited from QtTreePropertyBrowser | |
enum | ResizeMode { Interactive, Stretch, Fixed, ResizeToContents } |
Public Slots inherited from QtAbstractPropertyBrowser | |
QtBrowserItem * | addProperty (QtProperty *property) |
QtBrowserItem * | insertProperty (QtProperty *property, QtProperty *afterProperty) |
void | removeProperty (QtProperty *property) |
Signals inherited from QtTreePropertyBrowser | |
void | collapsed (QtBrowserItem *item) |
void | expanded (QtBrowserItem *item) |
Signals inherited from QtAbstractPropertyBrowser | |
void | currentItemChanged (QtBrowserItem *) |
Protected Member Functions inherited from QtTreePropertyBrowser | |
void | itemChanged (QtBrowserItem *item) override |
void | itemInserted (QtBrowserItem *item, QtBrowserItem *afterItem) override |
void | itemRemoved (QtBrowserItem *item) override |
Protected Member Functions inherited from QtAbstractPropertyBrowser | |
virtual QWidget * | createEditor (QtProperty *property, QWidget *parent) |
Properties inherited from QtTreePropertyBrowser | |
bool | alternatingRowColors |
whether to draw the background using alternating colors. By default this property is set to true. More... | |
bool | headerVisible |
whether to show the header. More... | |
int | indentation |
indentation of the items in the tree view. More... | |
bool | propertiesWithoutValueMarked |
whether to enable or disable marking properties without value. More... | |
ResizeMode | resizeMode |
the resize mode of setions in the header. More... | |
bool | rootIsDecorated |
whether to show controls for expanding and collapsing root items. More... | |
int | splitterPosition |
the position of the splitter between the colunms. More... | |
This class provides a property browser which displays all properties of a scene object or prior knowledge object class.
The property browser is derived from the QtTreePropertyBrowser which is part of the QtPropertyBrowser library.
Definition at line 45 of file PropertyBrowserWidget.h.
|
explicit |
Constructor.
Creates an instance of the property browser widget.
control | shared pointer to the controller::Controller |
Definition at line 40 of file PropertyBrowserWidget.cpp.
void setProperties | ( | const memoryx::ObjectClassPtr & | objectClass, |
std::string | collection | ||
) |
Fill property browser with class attributes of the given objectclass.
objectClass | shared pointer to a ObjectClass |
collection | name of the collection to which the object class belongs |
Definition at line 54 of file PropertyBrowserWidget.cpp.
void setProperties | ( | scene3D::SceneObjectPtr | sceneObject | ) |
Fill property browser with instance and class attributes of the given scene object.
sceneObject | pointer to a scene3D::SceneObject |
Definition at line 66 of file PropertyBrowserWidget.cpp.
void updateSceneObject | ( | std::string | objectID | ) |
Updates the instance properties of the selected object in the scene given by its ID.
objectID | string representing the object instance ID |
Definition at line 286 of file PropertyBrowserWidget.cpp.