]> OCCT Git - occt.git/commitdiff
0029855: Data Exchange, XCAF GD&T - PMI objects copy constructors ignore presentation
authorskl <skl@opencascade.com>
Wed, 11 Nov 2020 10:27:33 +0000 (13:27 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sat, 21 Nov 2020 09:19:46 +0000 (12:19 +0300)
Add all missing values.

src/XCAFDimTolObjects/XCAFDimTolObjects_DatumObject.cxx
src/XCAFDimTolObjects/XCAFDimTolObjects_DatumObject.hxx
src/XCAFDimTolObjects/XCAFDimTolObjects_DimensionObject.cxx
src/XCAFDimTolObjects/XCAFDimTolObjects_GeomToleranceObject.cxx

index 56728584d8597638e0dab08321481354a1a11bb1..676201969bd89881ec836f880093643b3561674b 100644 (file)
@@ -42,17 +42,23 @@ XCAFDimTolObjects_DatumObject::XCAFDimTolObjects_DatumObject(const Handle(XCAFDi
   myModifierWithValue = theObj->myModifierWithValue;
   myValueOfModifier = theObj->myValueOfModifier;
   myDatumTarget = theObj->myDatumTarget;
+  myPosition = theObj->myPosition;
   myIsDTarget = theObj->myIsDTarget;
   myIsValidDT = theObj->myIsValidDT;
-  myAxis = theObj->myAxis;
   myDTargetType = theObj->myDTargetType;
+  myLength = theObj->myLength;
+  myWidth = theObj->myWidth;
+  myDatumTargetNumber = theObj->myDatumTargetNumber;
+  myAxis = theObj->myAxis;
   myPlane = theObj->myPlane;
   myPnt= theObj->myPnt;
   myPntText= theObj->myPntText;
   myHasPlane = theObj->myHasPlane;
   myHasPnt = theObj->myHasPnt;
   myHasPntText = theObj->myHasPntText;
+  myPresentation = theObj->myPresentation;
   mySemanticName = theObj->mySemanticName;
+  myPresentationName = theObj->myPresentationName;
 }
 
 //=======================================================================
index b1eb5343ef1f728fe752d505028c5cbf412a2566..c0e6dfc41f1d918d7acfda5c0d87a92e4195810f 100644 (file)
@@ -203,7 +203,7 @@ public:
 
   DEFINE_STANDARD_RTTIEXT(XCAFDimTolObjects_DatumObject,Standard_Transient)
 
-private: 
+private:
 
   Handle(TCollection_HAsciiString) myName;
   XCAFDimTolObjects_DatumModifiersSequence myModifiers;
@@ -214,10 +214,10 @@ private:
   Standard_Boolean myIsDTarget;
   Standard_Boolean myIsValidDT;
   XCAFDimTolObjects_DatumTargetType myDTargetType;
-  gp_Ax2 myAxis;
   Standard_Real myLength;
   Standard_Real myWidth;
   Standard_Integer myDatumTargetNumber;
+  gp_Ax2 myAxis;
   gp_Ax2 myPlane;
   gp_Pnt myPnt;
   gp_Pnt myPntText;
index f810bf99400968b25d639c6f4e133d9ae691760f..2720ad7140ab0b2c93fd205925fad7ed1b003842 100644 (file)
@@ -58,6 +58,16 @@ XCAFDimTolObjects_DimensionObject::XCAFDimTolObjects_DimensionObject(const Handl
   myPlane = theObj->myPlane;
   myHasPntText = theObj->myHasPntText;
   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));
+  }
 }
 
 //=======================================================================
index 88bd42fdccf9dd5a3e09273f6ba5e1e3a5bfe391..0537a64b883d3900318eb9056643b53ca389f68f 100644 (file)
@@ -55,6 +55,8 @@ XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject(con
   mySemanticName = theObj->mySemanticName;
   myAffectedPlaneType = theObj->myAffectedPlaneType;
   myAffectedPlane = theObj->myAffectedPlane;
+  myPresentation = theObj->myPresentation;
+  myPresentationName = theObj->myPresentationName;
 }
 
 //=======================================================================