0029940: The method TPrsStd_AISPresentation::SetSelectionMode() seems useless for...
authorvro <vro@opencascade.com>
Tue, 10 Jul 2018 11:58:08 +0000 (14:58 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 1 Aug 2018 13:39:24 +0000 (16:39 +0300)
commit31e8d3c1852b4873d4be98dfe056d4c23cb0fd51
treebc5a93a2aacdd600daf945aeaf3d3be957b0dd71
parent6487fb1c9cda7871b401975aac5cd0594f06a742
0029940: The method TPrsStd_AISPresentation::SetSelectionMode() seems useless for transactions

A boolean parameter is added with a default value to the method TPrsStd_AISPresentation::SetSelectionMode().
By default, behavior of the method is not changed. But if the parameter's value is changed to FALSE, change of selection mode for the object will not influence the transaction. In other words, the attribute will not set modified and will not put into transaction delta. This behavior suits the usual notion of the object in an application: the object has color, material, transparency, but selection mode is not a property of the object. It is a property of an operation involving the object. Therefore, it has sense to remove the method SetSelectionMode() from TPrsStd_AISPresentation. For a while, it is marked as obsolete.
src/TDataXtd/TDataXtd_Presentation.cxx
src/TDataXtd/TDataXtd_Presentation.hxx
src/TPrsStd/TPrsStd_AISPresentation.cxx
src/TPrsStd/TPrsStd_AISPresentation.hxx