//
// This file is part of Open CASCADE Technology software library.
//
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
#include <Precision.hxx>
#include <AIS_Selection.hxx>
#include <AIS_DataMapIteratorOfDataMapOfIOStatus.hxx>
-#include <AIS_ConnectedShape.hxx>
-#include <AIS_MultipleConnectedShape.hxx>
+#include <AIS_ConnectedInteractive.hxx>
+#include <AIS_MultipleConnectedInteractive.hxx>
#include <AIS_DataMapIteratorOfDataMapOfILC.hxx>
#include <AIS_GlobalStatus.hxx>
#include <AIS_MapIteratorOfMapOfInteractive.hxx>
myMainPM(new PrsMgr_PresentationManager3d(MainViewer->Viewer())),
myMainVwr(MainViewer),
myMainSel(new StdSelect_ViewerSelector3d()),
-myToHilightSelected( Standard_False ),
+myToHilightSelected( Standard_True ),
myFilters(new SelectMgr_OrFilter()),
myDefaultDrawer(new Prs3d_Drawer()),
myDefaultColor(Quantity_NOC_GOLDENROD),
if(anIObj.IsNull()) return;
- if(anIObj->HasLocation() && aLoc.IsIdentity()){
- anIObj->ResetLocation();
+ if(anIObj->HasTransformation() && aLoc.IsIdentity()){
+ anIObj->ResetTransformation();
mgrSelector->Update(anIObj,Standard_False);
return;
}
if(aLoc.IsIdentity()) return ;
// first reset the previous location to properly clean everything...
- if(anIObj->HasLocation())
- anIObj->ResetLocation();
+ if(anIObj->HasTransformation())
+ anIObj->ResetTransformation();
- anIObj->SetLocation(aLoc);
+ anIObj->SetLocalTransformation (aLoc.Transformation());
if(!HasOpenedContext())
mgrSelector->Update(anIObj,Standard_False);
{
if(anIObj.IsNull()) return;
- anIObj->ResetLocation();
+ anIObj->ResetTransformation();
mgrSelector->Update(anIObj,Standard_False);
}
{
if(anIObj.IsNull()) return Standard_False;
- return anIObj->HasLocation();
+ return anIObj->HasTransformation();
}
-const TopLoc_Location& AIS_InteractiveContext::
+TopLoc_Location AIS_InteractiveContext::
Location(const Handle(AIS_InteractiveObject)& anIObj) const
{
- return anIObj->Location();
+ return anIObj->Transformation();
}
//=======================================================================
Handle(AIS_InteractiveObject) anObj = It.Key();
// ENDCLE
Standard_Boolean Processed = (anObj->IsKind(STANDARD_TYPE(AIS_Shape)) ||
- anObj->IsKind(STANDARD_TYPE(AIS_ConnectedShape)) ||
- anObj->IsKind(STANDARD_TYPE(AIS_MultipleConnectedShape)) );
+ anObj->IsKind(STANDARD_TYPE(AIS_ConnectedInteractive)) ||
+ anObj->IsKind(STANDARD_TYPE(AIS_MultipleConnectedInteractive)) );
if ((!anObj->HasDisplayMode()) && Processed)
{
//purpose :
//=======================================================================
-void AIS_InteractiveContext::SetSelectionMode(const Handle_AIS_InteractiveObject&, const Standard_Integer )
+void AIS_InteractiveContext::SetSelectionMode(const Handle(AIS_InteractiveObject)&, const Standard_Integer )
{
}
//purpose :
//=======================================================================
-void AIS_InteractiveContext::UnsetSelectionMode(const Handle_AIS_InteractiveObject&)
+void AIS_InteractiveContext::UnsetSelectionMode(const Handle(AIS_InteractiveObject)&)
{
}
//purpose :
//=======================================================================
-Standard_Boolean AIS_InteractiveContext::IsInLocal(const Handle_AIS_InteractiveObject& anIObj,
+Standard_Boolean AIS_InteractiveContext::IsInLocal(const Handle(AIS_InteractiveObject)& anIObj,
Standard_Integer& TheIndex) const
{
if(anIObj.IsNull()) return Standard_False;