occt: master 31e8d3c1

Author Committer Branch Timestamp Parent
vro bugmaster master 2018-07-10 11:58:08 master 6487fb1c
Changeset 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.
mod - src/TDataXtd/TDataXtd_Presentation.cxx Diff File
mod - src/TDataXtd/TDataXtd_Presentation.hxx Diff File
mod - src/TPrsStd/TPrsStd_AISPresentation.cxx Diff File
mod - src/TPrsStd/TPrsStd_AISPresentation.hxx Diff File