FreeCAD: master 45fd865f
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
realthunder | wwmayer | master | 2019-09-17 12:42:39 | master a0adbd5e |
Changeset | Gui: refactor bounding box selection style Previously, box style selection is rendered using customized SoBoxSelectionRenderAction, which does not support selection context, i.e. it does not work with Link. This patch implements context aware bound box rendering inside SoFCSelectionRoot, SoFCSelection and SoFCPathAnnotation (for always on top rendering). The box rendering in SoBoxSelectionRenderAction is disabled on construction. Box style selection can be enabled for individual object through property SelectionStyle (moved from ViewProviderGeometryObject to ViewProviderDocumentObject), or globally through Parameter BaseApp/Preferences/View/ShowSelectionBoundingBox. In addition, the parameter BaseApp/Preferences/View/UseNewSelection is used to override selection model reported from ViewProvider::useNewSelectionModel(). The reason being that, the same parameter is already used to toggle selection model inside SoFCSelection. This avoids inconsistency of selection model choice between view provider and the SoFCSelection node inside. Note that if the parameter 'UseNewSelection' is set to false, those view providers that choose old selection model will not work with Link. |
|||
mod - src/Gui/SoFCSelection.cpp | Diff File | |||
mod - src/Gui/SoFCSelection.h | Diff File | |||
mod - src/Gui/SoFCSelectionAction.cpp | Diff File | |||
mod - src/Gui/SoFCUnifiedSelection.cpp | Diff File | |||
mod - src/Gui/SoFCUnifiedSelection.h | Diff File | |||
mod - src/Gui/View3DInventorViewer.cpp | Diff File | |||
mod - src/Gui/ViewParams.h | Diff File | |||
mod - src/Gui/ViewProvider.cpp | Diff File | |||
mod - src/Gui/ViewProviderDocumentObject.cpp | Diff File | |||
mod - src/Gui/ViewProviderDocumentObject.h | Diff File | |||
mod - src/Gui/ViewProviderGeometryObject.cpp | Diff File | |||
mod - src/Gui/ViewProviderLink.cpp | Diff File | |||
mod - src/Mod/Mesh/Gui/ViewProvider.cpp | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepEdgeSet.cpp | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepEdgeSet.h | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepFaceSet.cpp | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepFaceSet.h | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepPointSet.cpp | Diff File | |||
mod - src/Mod/Part/Gui/SoBrepPointSet.h | Diff File | |||
mod - src/Mod/Part/Gui/ViewProviderExt.cpp | Diff File |