![]() |
VR-Forces 4.0.4 Class Documentation
|
The DtPropsLogic controls the state of props via a dialog page. More...
Public Member Functions | |
| DtPropsLogic (DtDe &de, DtPropsInterface &iFace) | |
| CTOR. | |
| ~DtPropsLogic () | |
| DTOR. | |
Protected Member Functions | |
| void | populate () |
| Fills the gui with props and prop types. | |
| void | slot_propTypeAdded (const std::string &propType) |
| Called when the prop type manager creates a new prop type. | |
| void | slot_propTypeRemoved (const std::string &propType) |
| Called when the prop type manager removes a prop type. | |
| void | slot_propCreated (DtProp &prop) |
| Called when a new prop is created. | |
| void | slot_propDestroyed (const DtProp &prop) |
| Called when a new prop is destoyed. | |
| void | slot_selectionChanged (const DtPropsInterface::UniqueIdSet &idSet) |
| Called when a user changes selection of props. | |
| void | updateGuiWithSelectedProp () |
| Update the GUI the selected prop settings. | |
| void | updatePositionAndUnits () |
| Update the prop position fields and unit label. | |
| void | updateOrientationAndUnits () |
| Update the prop orientation fields and unit label. | |
| void | slot_removePropsBtnClicked () |
| Called when the user has clicked the remove props button. | |
| void | slot_opacityChanged (int opacity) |
| Called when the user has changed the opacity. | |
| void | slot_visibilityChanged (int visibility) |
| Called when the user has changed the visibility. | |
| void | slot_propTypeChanged (const std::string &propType) |
| Called when the user has changed the prop type. | |
| void | slot_modelDefinitionChanged (const std::string &modelDef) |
| Called when the user has changed the Model Definition. | |
| void | slot_externalSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
| Called when selection changes in the selection manager. | |
| void | slot_positionChanged (const double x, const double y, const double z) |
| Called when the user changes the position of a prop. | |
| void | slot_orientationChanged (const double yaw, const double pitch, const double roll) |
| Called when the user changes the orientation of a prop. | |
| void | slot_displayUnitChanged (int type, int unit) |
| void | slot_displayUnitDecimalsChanged (int type, int unit, int decimals) |
| int | selectedOpacity () |
| Return the opacity for the selected prop ids. Returns 0 if the values isn't the same for all selected ids. | |
| int | selectedVisibility () |
| Return the visibility for the selected prop ids. | |
| std::string | selectedPropType () |
| Returns the propType for the selected ids or the empty string if the values isn't the same for all selected ids. | |
| std::string | selectedModelDefinition () |
| Returns the model definition for the selected ids or the empty string if the values isn't the same for all selected ids. | |
| bool | getSelectedOrientation (double &xOut, double &yOut, double &zOut) |
| Returns true if the orientation for selected id's is the same and returns those values in x, y, z. | |
| bool | getSelectedPosition (double &xOut, double &yOut, double &zOut) |
| Returns true if the orientation for selected id's is the same and returns those values in x, y, z. | |
Protected Attributes | |
| DtDe & | myDe |
| DtPropsInterface & | myGui |
| DtSignalConnectionManager | mySignals |
| DtPropsInterface::UniqueIdSet | mySelectedPropIds |
| bool | myUpdatingSelectionManager |
The DtPropsLogic controls the state of props via a dialog page.
| makVrv::DtPropsLogic::DtPropsLogic | ( | DtDe & | de, |
| DtPropsInterface & | iFace | ||
| ) |
CTOR.
DTOR.
| void makVrv::DtPropsLogic::populate | ( | ) | [protected] |
Fills the gui with props and prop types.
| void makVrv::DtPropsLogic::slot_propTypeAdded | ( | const std::string & | propType | ) | [protected] |
Called when the prop type manager creates a new prop type.
| void makVrv::DtPropsLogic::slot_propTypeRemoved | ( | const std::string & | propType | ) | [protected] |
Called when the prop type manager removes a prop type.
| void makVrv::DtPropsLogic::slot_propCreated | ( | DtProp & | prop | ) | [protected] |
Called when a new prop is created.
| void makVrv::DtPropsLogic::slot_propDestroyed | ( | const DtProp & | prop | ) | [protected] |
Called when a new prop is destoyed.
| void makVrv::DtPropsLogic::slot_selectionChanged | ( | const DtPropsInterface::UniqueIdSet & | idSet | ) | [protected] |
Called when a user changes selection of props.
| void makVrv::DtPropsLogic::updateGuiWithSelectedProp | ( | ) | [protected] |
Update the GUI the selected prop settings.
| void makVrv::DtPropsLogic::updatePositionAndUnits | ( | ) | [protected] |
Update the prop position fields and unit label.
| void makVrv::DtPropsLogic::updateOrientationAndUnits | ( | ) | [protected] |
Update the prop orientation fields and unit label.
| void makVrv::DtPropsLogic::slot_removePropsBtnClicked | ( | ) | [protected] |
Called when the user has clicked the remove props button.
| void makVrv::DtPropsLogic::slot_opacityChanged | ( | int | opacity | ) | [protected] |
Called when the user has changed the opacity.
| void makVrv::DtPropsLogic::slot_visibilityChanged | ( | int | visibility | ) | [protected] |
Called when the user has changed the visibility.
| void makVrv::DtPropsLogic::slot_propTypeChanged | ( | const std::string & | propType | ) | [protected] |
Called when the user has changed the prop type.
| void makVrv::DtPropsLogic::slot_modelDefinitionChanged | ( | const std::string & | modelDef | ) | [protected] |
Called when the user has changed the Model Definition.
| void makVrv::DtPropsLogic::slot_externalSelectionChanged | ( | const DtSelectionManager::IdSet & | selected, |
| const DtSelectionManager::IdSet & | deselected | ||
| ) | [protected] |
Called when selection changes in the selection manager.
| void makVrv::DtPropsLogic::slot_positionChanged | ( | const double | x, |
| const double | y, | ||
| const double | z | ||
| ) | [protected] |
Called when the user changes the position of a prop.
| void makVrv::DtPropsLogic::slot_orientationChanged | ( | const double | yaw, |
| const double | pitch, | ||
| const double | roll | ||
| ) | [protected] |
Called when the user changes the orientation of a prop.
| void makVrv::DtPropsLogic::slot_displayUnitChanged | ( | int | type, |
| int | unit | ||
| ) | [protected] |
| void makVrv::DtPropsLogic::slot_displayUnitDecimalsChanged | ( | int | type, |
| int | unit, | ||
| int | decimals | ||
| ) | [protected] |
| int makVrv::DtPropsLogic::selectedOpacity | ( | ) | [protected] |
Return the opacity for the selected prop ids. Returns 0 if the values isn't the same for all selected ids.
| int makVrv::DtPropsLogic::selectedVisibility | ( | ) | [protected] |
Return the visibility for the selected prop ids.
Returns 0 if the no selected id's are visible. Returns 1 if the some selected id's are visible. Returns 2 if the all selected id's are visible.
| std::string makVrv::DtPropsLogic::selectedPropType | ( | ) | [protected] |
Returns the propType for the selected ids or the empty string if the values isn't the same for all selected ids.
| std::string makVrv::DtPropsLogic::selectedModelDefinition | ( | ) | [protected] |
Returns the model definition for the selected ids or the empty string if the values isn't the same for all selected ids.
| bool makVrv::DtPropsLogic::getSelectedOrientation | ( | double & | xOut, |
| double & | yOut, | ||
| double & | zOut | ||
| ) | [protected] |
Returns true if the orientation for selected id's is the same and returns those values in x, y, z.
False otherwise and returns zero's. Values are returned in degrees.
| bool makVrv::DtPropsLogic::getSelectedPosition | ( | double & | xOut, |
| double & | yOut, | ||
| double & | zOut | ||
| ) | [protected] |
Returns true if the orientation for selected id's is the same and returns those values in x, y, z.
False otherwise and returns zero's.
DtDe& makVrv::DtPropsLogic::myDe [protected] |
DtPropsInterface& makVrv::DtPropsLogic::myGui [protected] |
bool makVrv::DtPropsLogic::myUpdatingSelectionManager [protected] |