Salome HOME
cleaning some comments
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_BathymetryPrs.cxx
index 41adb0685223608a10c16bafdd6ec47869b60207..b73f60c36221e3a6132c48237075a100310ec7e2 100644 (file)
@@ -99,48 +99,6 @@ void HYDROGUI_BathymetryPrs::Compute( const Handle(PrsMgr_PresentationManager3d)
   if( theMode== BATH_HIGHLIGHT_MODE ) // highlight ==> draw bounding box
   {
     AIS_PointCloud::Compute( thePresentationManager, thePresentation, AIS_PointCloud::DM_BndBox );
-//    if( myBound.IsVoid() )
-//      UpdateBound();
-//
-//    if( myBound.IsVoid() ||
-//        myBound.IsOpenXmin() || myBound.IsOpenXmax() ||
-//        myBound.IsOpenYmin() || myBound.IsOpenYmax() ||
-//        myBound.IsOpenZmin() || myBound.IsOpenZmax() )
-//      return;
-//
-//    Standard_Real xmin, xmax, ymin, ymax, zmin, zmax;
-//    myBound.Get( xmin, ymin, zmin, xmax, ymax, zmax );
-//
-//    Handle(Prs3d_LineAspect) aWireAspect = new Prs3d_LineAspect( Quantity_NOC_RED, Aspect_TOL_DASH, 4.0 );
-//    aGroup->SetPrimitivesAspect( aWireAspect->Aspect() ); // use Aspect_TOL_DASH to find the group by the aspect style
-//
-//    Handle(Graphic3d_ArrayOfPolylines) aLines = new Graphic3d_ArrayOfPolylines( 18, 6 );
-//
-//    aLines->AddBound( 5 );
-//    aLines->AddVertex( xmin, ymin, zmin );
-//    aLines->AddVertex( xmax, ymin, zmin );
-//    aLines->AddVertex( xmax, ymax, zmin );
-//    aLines->AddVertex( xmin, ymax, zmin );
-//    aLines->AddVertex( xmin, ymin, zmin );
-//    aLines->AddBound( 5 );
-//    aLines->AddVertex( xmin, ymin, zmax );
-//    aLines->AddVertex( xmax, ymin, zmax );
-//    aLines->AddVertex( xmax, ymax, zmax );
-//    aLines->AddVertex( xmin, ymax, zmax );
-//    aLines->AddVertex( xmin, ymin, zmax );
-//    aLines->AddBound( 2 );
-//    aLines->AddVertex( xmin, ymin, zmin );
-//    aLines->AddVertex( xmin, ymin, zmax );
-//    aLines->AddBound( 2 );
-//    aLines->AddVertex( xmax, ymin, zmin );
-//    aLines->AddVertex( xmax, ymin, zmax );
-//    aLines->AddBound( 2 );
-//    aLines->AddVertex( xmax, ymax, zmin );
-//    aLines->AddVertex( xmax, ymax, zmax );
-//    aLines->AddBound( 2 );
-//    aLines->AddVertex( xmin, ymax, zmin );
-//    aLines->AddVertex( xmin, ymax, zmax );
-//    aGroup->AddPrimitiveArray( aLines );
   }
   else if (theMode == 0)
   {
@@ -220,21 +178,6 @@ void HYDROGUI_BathymetryPrs::ComputeSelection( const Handle(SelectMgr_Selection)
     }
   }
 
-//  if( theMode == 0 )
-//  {
-//    if( myBound.IsVoid() )
-//      UpdateBound();
-//
-//    if( myBound.IsVoid() ||
-//        myBound.IsOpenXmin() || myBound.IsOpenXmax() ||
-//        myBound.IsOpenYmin() || myBound.IsOpenYmax() ||
-//        myBound.IsOpenZmin() || myBound.IsOpenZmax() )
-//      return;
-//
-//    Handle(SelectMgr_EntityOwner) anOwner = new SelectMgr_EntityOwner( this );
-//    Handle(Select3D_SensitiveBox) aSensitiveBox = new Select3D_SensitiveBox( anOwner, myBound );
-//    theSelection->Add( aSensitiveBox );
-//  }
   if( theMode == 1 )
   {
     Handle(Graphic3d_ArrayOfPoints) points = GetPoints();
@@ -287,20 +230,6 @@ void HYDROGUI_BathymetryPrs::HilightOwnerWithColor( const Handle(PrsMgr_Presenta
   if (anOwner.IsNull())
     return;
   DEBTRACE("---"); // jamais appelĂ© : on n'a pas de AIS_PointCloudOwner
-
-//  Handle(Prs3d_Presentation) aHilightPrs = GetHilightPresentation( thePM );
-//  aHilightPrs->SetZLayer( Graphic3d_ZLayerId_Topmost );
-//  aHilightPrs->Clear();
-//  Handle(Graphic3d_ArrayOfPoints) points = new Graphic3d_ArrayOfPoints( 1 );
-//  AddPoint( points, theOwner );
-//
-//  Handle(Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup( aHilightPrs );
-//  Handle(Graphic3d_AspectMarker3d) anAspect = new Graphic3d_AspectMarker3d( Aspect_TOM_X, Quantity_NOC_WHITE, 1.0 );
-//  aGroup->SetGroupPrimitivesAspect( anAspect );
-//  aGroup->AddPrimitiveArray( points );
-//
-//  if( thePM->IsImmediateModeOn() )
-//    thePM->AddToImmediateList( aHilightPrs );
 }
 
 void HYDROGUI_BathymetryPrs::HilightSelected( const Handle(PrsMgr_PresentationManager3d)& thePM,
@@ -363,11 +292,6 @@ void HYDROGUI_BathymetryPrs::SetTextLabels( const QVector<int>& theTextIndices )
 }
 
 
-
-
-
-
-
 HYDROGUI_BathymetryPointOwner::HYDROGUI_BathymetryPointOwner
   ( const Handle(HYDROGUI_BathymetryPrs)& theBathymetry, int theIndex )
   : SelectMgr_EntityOwner( Handle(SelectMgr_SelectableObject)::DownCast( theBathymetry ), 0 ),