X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_MultipleConnectedInteractive.cxx;h=0aa8061564e3c4fcdd7406f988d2c3c64a8d2e9c;hb=1f7f5a900f88772fffa7675d53f0a51512e0e99a;hpb=778cd667866a3dfd3163316424864e05ef8dff93 diff --git a/src/AIS/AIS_MultipleConnectedInteractive.cxx b/src/AIS/AIS_MultipleConnectedInteractive.cxx index 087b82460d..0aa8061564 100644 --- a/src/AIS/AIS_MultipleConnectedInteractive.cxx +++ b/src/AIS/AIS_MultipleConnectedInteractive.cxx @@ -14,23 +14,16 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. +#include #include #include #include -#include -#include -#include -#include -#include -#include #include #include -#include #include #include #include -#include #include IMPLEMENT_STANDARD_RTTIEXT(AIS_MultipleConnectedInteractive,AIS_InteractiveObject) @@ -190,11 +183,11 @@ Standard_Integer AIS_MultipleConnectedInteractive::Signature() const } //======================================================================= -//function : Connect +//function : connect //purpose : //======================================================================= -Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const Handle(AIS_InteractiveObject)& theAnotherObj, - const gp_Trsf& theTransformation, +Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::connect (const Handle(AIS_InteractiveObject)& theAnotherObj, + const Handle(Geom_Transformation)& theTrsf, const Handle(Graphic3d_TransformPers)& theTrsfPers) { if (myAssemblyOwner.IsNull()) @@ -207,7 +200,7 @@ Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const H { Handle(AIS_MultipleConnectedInteractive) aNewMultiConnected = new AIS_MultipleConnectedInteractive(); aNewMultiConnected->myAssemblyOwner = myAssemblyOwner; - aNewMultiConnected->SetLocalTransformation (aMultiConnected->LocalTransformation()); + aNewMultiConnected->SetLocalTransformation (aMultiConnected->LocalTransformationGeom()); // Perform deep copy of instance tree for (PrsMgr_ListOfPresentableObjectsIter anIter (aMultiConnected->Children()); anIter.More(); anIter.Next()) @@ -226,13 +219,12 @@ Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const H else { Handle(AIS_ConnectedInteractive) aNewConnected = new AIS_ConnectedInteractive(); - aNewConnected->Connect (theAnotherObj); - aNewConnected->SetLocalTransformation (theAnotherObj->LocalTransformation()); + aNewConnected->Connect (theAnotherObj, theAnotherObj->LocalTransformationGeom()); anObjectToAdd = aNewConnected; } - anObjectToAdd->SetLocalTransformation (theTransformation); + anObjectToAdd->SetLocalTransformation (theTrsf); if (!theTrsfPers.IsNull()) { anObjectToAdd->SetTransformPersistence (theTrsfPers); @@ -241,25 +233,6 @@ Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const H return anObjectToAdd; } -//======================================================================= -//function : Connect -//purpose : -//======================================================================= -Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const Handle(AIS_InteractiveObject)& theAnotherObj) -{ - return Connect (theAnotherObj, theAnotherObj->LocalTransformation(), theAnotherObj->TransformPersistence()); -} - -//======================================================================= -//function : Connect -//purpose : -//======================================================================= -Handle(AIS_InteractiveObject) AIS_MultipleConnectedInteractive::Connect (const Handle(AIS_InteractiveObject)& theAnotherObj, - const gp_Trsf& theTransformation) -{ - return Connect (theAnotherObj, theTransformation, theAnotherObj->TransformPersistence()); -} - //======================================================================= //function : HasConnection //purpose :