mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028714: Dimension of TDataStd_Real is not serialized to document
Added a comments and Standard_DEPRECATED macros to obsolete methods that these methods will be removed and that the corresponding field myDimension is not stored in the document.
This commit is contained in:
@@ -68,10 +68,12 @@ void DDataStd::DumpConstraint (const Handle(TDataXtd_Constraint)& CTR, Standard_
|
||||
anOS << " V (";
|
||||
TDF_Tool::Entry(CTR->GetValue()->Label(),S);
|
||||
anOS << S << ") ";
|
||||
TDataStd_RealEnum t = CTR->GetValue()->GetDimension();
|
||||
Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
TDataStd_RealEnum t = CTR->GetValue()->GetDimension();
|
||||
TDataStd::Print(t,anOS);
|
||||
Standard_Real val = CTR->GetValue()->Get();
|
||||
if (t == TDataStd_ANGULAR) val = (180.*val)/M_PI;
|
||||
Standard_ENABLE_DEPRECATION_WARNINGS
|
||||
anOS << " ";
|
||||
anOS << val;
|
||||
}
|
||||
|
@@ -339,7 +339,9 @@ Handle(Draw_Drawable3D) DDataStd_DrawDriver::DrawableConstraint (const Handle(TD
|
||||
if (!D.IsNull()) {
|
||||
if (!A->GetValue().IsNull()) {
|
||||
Standard_Real val = A->GetValue()->Get();
|
||||
if (A->GetValue()->GetDimension() == TDataStd_ANGULAR) val = (180.*val)/M_PI;
|
||||
Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
if (A->GetValue()->GetDimension() == TDataStd_ANGULAR) val = (180. * val) / M_PI;
|
||||
Standard_ENABLE_DEPRECATION_WARNINGS
|
||||
D->SetValue(val);
|
||||
}
|
||||
// unverified constraints are red (default is white)
|
||||
|
Reference in New Issue
Block a user