![]() |
VR-Forces 4.6 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.
| makVrv::DtPropsLogic::~DtPropsLogic | ( | ) |
DTOR.
|
protected |
Fills the gui with props and prop types.
|
protected |
Called when the prop type manager creates a new prop type.
|
protected |
Called when the prop type manager removes a prop type.
|
protected |
Called when a new prop is created.
|
protected |
Called when a new prop is destoyed.
|
protected |
Called when a user changes selection of props.
|
protected |
Update the GUI the selected prop settings.
|
protected |
Update the prop position fields and unit label.
|
protected |
Update the prop orientation fields and unit label.
|
protected |
Called when the user has clicked the remove props button.
|
protected |
Called when the user has changed the opacity.
|
protected |
Called when the user has changed the visibility.
|
protected |
Called when the user has changed the prop type.
|
protected |
Called when the user has changed the Model Definition.
|
protected |
Called when selection changes in the selection manager.
|
protected |
Called when the user changes the position of a prop.
|
protected |
Called when the user changes the orientation of a prop.
|
protected |
|
protected |
Return the opacity for the selected prop ids. Returns 0 if the values isn't the same for all selected ids.
|
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.
|
protected |
Returns the propType for the selected ids or the empty string if the values isn't the same for all selected ids.
|
protected |
Returns the model definition for the selected ids or the empty string if the values isn't the same for all selected ids.
|
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.
|
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |