![]() |
VR-Forces 5.0.1 Developer's Guide
|
A widget for editing props.

Public Member Functions | |
| DtPropsWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0) | |
| virtual | ~DtPropsWidget () |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | addPropType (std::string propType) |
| virtual void | removePropType (const std::string &propType) |
| virtual void | addProp (const std::string &propName, const std::string &propType, DtUniqueID id) |
| virtual void | removeProp (const std::string &propName, const std::string &propType, DtUniqueID id) |
| virtual void | setOpacity (int opacity) |
| virtual void | setVisibility (int visibility) |
| virtual void | setPropType (const std::string &propType) |
| virtual void | setModelDefinition (const std::string &modelDef) |
| virtual void | setPropSelected (DtUniqueID id, bool selected) |
| virtual void | setPropsSelected (const DtPropsInterface::UniqueIdSet &ids) |
| virtual void | setPropsDeselected (const DtPropsInterface::UniqueIdSet &ids) |
| virtual void | setValidSchemas (const std::vector< std::string > &schemaNames) |
| virtual void | setPosition (double x, double y, double z) |
| virtual void | setPositionUnits (const DtUnicode &units) |
| virtual void | setPositionPrecisions (int distDecimals, int altDecimals) |
| virtual void | setOrientation (const double yaw, const double pitch, const double roll) |
| virtual void | setOrientationUnits (const DtUnicode &units) |
| virtual void | setOrientationPrecision (int decimals) |
| void | clear () |
Public Member Functions inherited from makVrv::DtPropsInterface | |
| virtual | ~DtPropsInterface () |
Protected Types | |
| typedef boost::unordered_map < DtUniqueID, QTreeWidgetItem * > | UniqueItemMap |
| typedef boost::unordered_map < std::string, QTreeWidgetItem * > | ItemMap |
Protected Slots | |
User input slots. | |
Receives notification that the user has changed a widget's value. | |
| void | onSelectionChanged () |
| void | onRemovePropsBtnClicked () |
| void | onOpacityChanged (int opacity) |
| void | onVisibilityChanged (int visibilty) |
| void | onPropTypeComboChanged (int index) |
| void | onModelDefComboChanged (int index) |
| void | onPositionChanged () |
| void | onOrientationChanged () |
| void | onRightClicked (QTreeWidgetItem *, QMouseEvent *, int col) |
Protected Member Functions | |
| void | setupGui () |
| void | connectToSignals () |
| QTreeWidgetItem * | findPropTypeItem (const std::string &propType) |
| QTreeWidgetItem * | findPropItem (DtUniqueID name) |
| void | setItemName (QTreeWidgetItem *item, const std::string &name) |
| QString | itemName (const QTreeWidgetItem *item) |
| void | setItemPropType (QTreeWidgetItem *item, const std::string &propType) |
| QString | itemPropType (const QTreeWidgetItem *item) |
| void | setItemUniqueID (QTreeWidgetItem *item, DtUniqueID id) |
| DtUniqueID | itemUniqueID (const QTreeWidgetItem *item) |
| bool | isItemProp (QTreeWidgetItem *item) |
| void | setStateStuffEnabled (bool bEnable) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtPropsInterface | |
| typedef std::set< DtUniqueID > | UniqueIdSet |
Public Attributes inherited from makVrv::DtPropsInterface | |
| boost::signalslib::signal < void(const UniqueIdSet &)> | signal_selectionChanged |
| boost::signalslib::signal< void()> | signal_removePropsBtnClicked |
| boost::signalslib::signal < void(int)> | signal_opacityChanged |
| boost::signalslib::signal < void(int)> | signal_visibilityChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_propTypeChanged |
| boost::signalslib::signal < void(const std::string &)> | signal_modelDefinitionChanged |
| boost::signalslib::signal < void(double, double, double)> | signal_orientationChanged |
| boost::signalslib::signal < void(double, double, double)> | signal_positionChanged |
|
protected |
|
protected |
| makVrv::DtPropsWidget::DtPropsWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Add a prop type to the gui propType must be unique.
Implements makVrv::DtPropsInterface.
|
virtual |
Remove a prop type from the guiz propType must be unique.
Implements makVrv::DtPropsInterface.
|
virtual |
Add a prop to the gui The pair (propName, propType) must be unique.
Implements makVrv::DtPropsInterface.
|
virtual |
Remove a prop from the gui The pair (propName, propType) must be unique.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the opacity in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the visibility in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the prop type in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the model definition in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set a prop item to be selected or unselected.
Implements makVrv::DtPropsInterface.
|
virtual |
Set several prop items to be selected.
Implements makVrv::DtPropsInterface.
|
virtual |
Set several prop item to be unselected.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the names of the valid schemas for prop model defs.
Implements makVrv::DtPropsInterface.
Set the position in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the position units in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the position precision in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the orientation in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the orientation units in the gui.
Implements makVrv::DtPropsInterface.
|
virtual |
Set the orientation precision in the gui.
Implements makVrv::DtPropsInterface.
| void makVrv::DtPropsWidget::clear | ( | ) |
Clears widget.
|
protectedslot |
Called when the prop tree selection is changed.
|
protectedslot |
Called when the remove props button is clicked.
|
protectedslot |
Called when the opacity slider is changed.
|
protectedslot |
Called when the visibility checkbox is toggled.
|
protectedslot |
Called when the prop type combo box is changed.
|
protectedslot |
Called when the model definition combo box is changed.
|
protectedslot |
Called when the orientation of the prop is changed.
|
protectedslot |
Called when the orientation of the prop is changed.
|
protectedslot |
Determines the item that was clicked on and displays a context menu.
|
protected |
Sets up the widget's fields. Non-virtual (Called from CTOR).
|
protected |
Connects widget signals to slots. Non-virtual (Called from CTOR).
|
protected |
Return the QTreeWidgetItem* for propType; null otherwise.
|
protected |
Return the QTreeWidgetItem* for prop; null otherwise.
|
protected |
Set the name field in a tree widget item.
|
protected |
Get the name field in a tree widget item.
|
protected |
Set the prop type field in a tree widget item.
|
protected |
Get the prop type field in a tree widgget item.
|
protected |
Set the unique id field of the tree item.
|
protected |
Get the unique id field of the tree item.
|
protected |
Check whether a tree item is a prop type or a prop.
|
protected |
Enabled/ disable state gui stuff.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |