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)
{
}
}
-// 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();
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,
}
-
-
-
-
-
HYDROGUI_BathymetryPointOwner::HYDROGUI_BathymetryPointOwner
( const Handle(HYDROGUI_BathymetryPrs)& theBathymetry, int theIndex )
: SelectMgr_EntityOwner( Handle(SelectMgr_SelectableObject)::DownCast( theBathymetry ), 0 ),