mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0029855: Data Exchange, XCAF GD&T - PMI objects copy constructors ignore presentation
Add all missing values.
This commit is contained in:
parent
c5b42a1afe
commit
ad2ef2599a
@ -42,17 +42,23 @@ XCAFDimTolObjects_DatumObject::XCAFDimTolObjects_DatumObject(const Handle(XCAFDi
|
|||||||
myModifierWithValue = theObj->myModifierWithValue;
|
myModifierWithValue = theObj->myModifierWithValue;
|
||||||
myValueOfModifier = theObj->myValueOfModifier;
|
myValueOfModifier = theObj->myValueOfModifier;
|
||||||
myDatumTarget = theObj->myDatumTarget;
|
myDatumTarget = theObj->myDatumTarget;
|
||||||
|
myPosition = theObj->myPosition;
|
||||||
myIsDTarget = theObj->myIsDTarget;
|
myIsDTarget = theObj->myIsDTarget;
|
||||||
myIsValidDT = theObj->myIsValidDT;
|
myIsValidDT = theObj->myIsValidDT;
|
||||||
myAxis = theObj->myAxis;
|
|
||||||
myDTargetType = theObj->myDTargetType;
|
myDTargetType = theObj->myDTargetType;
|
||||||
|
myLength = theObj->myLength;
|
||||||
|
myWidth = theObj->myWidth;
|
||||||
|
myDatumTargetNumber = theObj->myDatumTargetNumber;
|
||||||
|
myAxis = theObj->myAxis;
|
||||||
myPlane = theObj->myPlane;
|
myPlane = theObj->myPlane;
|
||||||
myPnt= theObj->myPnt;
|
myPnt= theObj->myPnt;
|
||||||
myPntText= theObj->myPntText;
|
myPntText= theObj->myPntText;
|
||||||
myHasPlane = theObj->myHasPlane;
|
myHasPlane = theObj->myHasPlane;
|
||||||
myHasPnt = theObj->myHasPnt;
|
myHasPnt = theObj->myHasPnt;
|
||||||
myHasPntText = theObj->myHasPntText;
|
myHasPntText = theObj->myHasPntText;
|
||||||
|
myPresentation = theObj->myPresentation;
|
||||||
mySemanticName = theObj->mySemanticName;
|
mySemanticName = theObj->mySemanticName;
|
||||||
|
myPresentationName = theObj->myPresentationName;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -214,10 +214,10 @@ private:
|
|||||||
Standard_Boolean myIsDTarget;
|
Standard_Boolean myIsDTarget;
|
||||||
Standard_Boolean myIsValidDT;
|
Standard_Boolean myIsValidDT;
|
||||||
XCAFDimTolObjects_DatumTargetType myDTargetType;
|
XCAFDimTolObjects_DatumTargetType myDTargetType;
|
||||||
gp_Ax2 myAxis;
|
|
||||||
Standard_Real myLength;
|
Standard_Real myLength;
|
||||||
Standard_Real myWidth;
|
Standard_Real myWidth;
|
||||||
Standard_Integer myDatumTargetNumber;
|
Standard_Integer myDatumTargetNumber;
|
||||||
|
gp_Ax2 myAxis;
|
||||||
gp_Ax2 myPlane;
|
gp_Ax2 myPlane;
|
||||||
gp_Pnt myPnt;
|
gp_Pnt myPnt;
|
||||||
gp_Pnt myPntText;
|
gp_Pnt myPntText;
|
||||||
|
@ -58,6 +58,16 @@ XCAFDimTolObjects_DimensionObject::XCAFDimTolObjects_DimensionObject(const Handl
|
|||||||
myPlane = theObj->myPlane;
|
myPlane = theObj->myPlane;
|
||||||
myHasPntText = theObj->myHasPntText;
|
myHasPntText = theObj->myHasPntText;
|
||||||
mySemanticName = theObj->mySemanticName;
|
mySemanticName = theObj->mySemanticName;
|
||||||
|
myPresentation = theObj->myPresentation;
|
||||||
|
myPresentationName = theObj->myPresentationName;
|
||||||
|
for (int i = 0; i < theObj->myDescriptions.Length(); i++)
|
||||||
|
{
|
||||||
|
myDescriptions.Append(theObj->myDescriptions(i));
|
||||||
|
}
|
||||||
|
for (int i = 0; i < theObj->myDescriptionNames.Length(); i++)
|
||||||
|
{
|
||||||
|
myDescriptionNames.Append(theObj->myDescriptionNames(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -55,6 +55,8 @@ XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject(con
|
|||||||
mySemanticName = theObj->mySemanticName;
|
mySemanticName = theObj->mySemanticName;
|
||||||
myAffectedPlaneType = theObj->myAffectedPlaneType;
|
myAffectedPlaneType = theObj->myAffectedPlaneType;
|
||||||
myAffectedPlane = theObj->myAffectedPlane;
|
myAffectedPlane = theObj->myAffectedPlane;
|
||||||
|
myPresentation = theObj->myPresentation;
|
||||||
|
myPresentationName = theObj->myPresentationName;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user