PropertyBrowserWidget Class Reference

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>

+ Inheritance diagram for PropertyBrowserWidget:

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 ()
 
QtBrowserItemcurrentItem () 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)
 
QtBrowserItemtopLevelItem (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
QtBrowserItemaddProperty (QtProperty *property)
 
QtBrowserIteminsertProperty (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...
 

Detailed Description

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.

See also
QtPropertyBrowser::QtTreePropertyBrowser

Definition at line 45 of file PropertyBrowserWidget.h.

Constructor & Destructor Documentation

◆ PropertyBrowserWidget()

PropertyBrowserWidget ( const controller::ControllerPtr control,
QWidget *  parent = 0 
)
explicit

Constructor.

Creates an instance of the property browser widget.

Parameters
controlshared pointer to the controller::Controller

Definition at line 40 of file PropertyBrowserWidget.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ setProperties() [1/2]

void setProperties ( const memoryx::ObjectClassPtr objectClass,
std::string  collection 
)

Fill property browser with class attributes of the given objectclass.

Parameters
objectClassshared pointer to a ObjectClass
collectionname of the collection to which the object class belongs

Definition at line 54 of file PropertyBrowserWidget.cpp.

◆ setProperties() [2/2]

void setProperties ( scene3D::SceneObjectPtr  sceneObject)

Fill property browser with instance and class attributes of the given scene object.

Parameters
sceneObjectpointer to a scene3D::SceneObject

Definition at line 66 of file PropertyBrowserWidget.cpp.

◆ updateSceneObject()

void updateSceneObject ( std::string  objectID)

Updates the instance properties of the selected object in the scene given by its ID.

Parameters
objectIDstring representing the object instance ID

Definition at line 286 of file PropertyBrowserWidget.cpp.


The documentation for this class was generated from the following files: