]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Porting on the new SALOME version. BR_RIVER
authormzn <mzn@opencascade.com>
Wed, 15 Apr 2015 07:25:04 +0000 (10:25 +0300)
committermzn <mzn@opencascade.com>
Wed, 15 Apr 2015 07:25:04 +0000 (10:25 +0300)
src/HYDROGUI/HYDROGUI_AISTrihedron.cxx
src/HYDROGUI/HYDROGUI_Shape.cxx
src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx

index 6d9702480bbc1b8ef9dd8c353c015643e00816a0..bcf0ff8e995cd6f06f051d406317565ba2b20d0b 100644 (file)
@@ -26,7 +26,7 @@
 #include <Prs3d_DatumAspect.hxx>
 #include <Prs3d_LineAspect.hxx>
 #include <Prs3d_Presentation.hxx>
-#include <AIS_Drawer.hxx>
+#include <Prs3d_Drawer.hxx>
 #include <DsgPrs_XYZAxisPresentation.hxx>
 #include <gp_Ax2.hxx>
 
@@ -46,13 +46,14 @@ Handle(AIS_Trihedron) HYDROGUI_AISTrihedron::createTrihedron( double theSize )
   aTrihedron->SetArrowColor( aCol.Name() );
   aTrihedron->SetSize( theSize );
 
-  Handle(AIS_Drawer) aDrawer = aTrihedron->Attributes();
-  if ( aDrawer->HasDatumAspect() ) {
+  Handle(Prs3d_Drawer) aDrawer = aTrihedron->Attributes();
+  if ( aDrawer->HasOwnDatumAspect() ) {
     Handle(Prs3d_DatumAspect) aDaspect = aDrawer->DatumAspect();
     aDaspect->FirstAxisAspect()->SetColor( Quantity_Color( 1.0, 0.0, 0.0, Quantity_TOC_RGB ) );
     aDaspect->SecondAxisAspect()->SetColor( Quantity_Color( 0.0, 1.0, 0.0, Quantity_TOC_RGB ) );
     aDaspect->ThirdAxisAspect()->SetColor( Quantity_Color( 0.0, 0.0, 1.0, Quantity_TOC_RGB ) );
   }
+  
   aTrihedron->SetAxis2Placement();
   return aTrihedron;
 }
index c54bb9e099c9d9a58b6a8da27dfd985f86e05da9..0cd5d09f91c6465a00c9c9751815dd27907972d0 100644 (file)
@@ -523,7 +523,7 @@ void HYDROGUI_Shape::buildShape()
   myShape->SetDisplayMode( (AIS_DisplayMode)myDisplayMode );
 
     // Init default params for shape
-  const Handle(AIS_Drawer)& anAttributes = myShape->Attributes();
+  const Handle(Prs3d_Drawer)& anAttributes = myShape->Attributes();
   if ( !anAttributes.IsNull() )
   {
     Handle(Prs3d_IsoAspect) anIsoAspect = anAttributes->UIsoAspect();
@@ -564,7 +564,7 @@ void HYDROGUI_Shape::updateShape( const bool theToDisplay,
   if ( myShape.IsNull() )
     return;
 
-  const Handle(AIS_Drawer)& anAttributes = myShape->Attributes();
+  const Handle(Prs3d_Drawer)& anAttributes = myShape->Attributes();
   if ( !anAttributes.IsNull() )
   {
     if ( myDisplayMode == AIS_Shaded )
@@ -621,7 +621,7 @@ void HYDROGUI_Shape::colorShapeBorder( const QColor& theColor )
   if ( myShape.IsNull() )
     return;
 
-  const Handle(AIS_Drawer)& anAttributes = myShape->Attributes();
+  const Handle(Prs3d_Drawer)& anAttributes = myShape->Attributes();
   if ( anAttributes.IsNull() )
     return;
 
index 2e43a726d42c5b0f361e4da842600ecbdfacf830..e4eb333a10d9cae4ab5e36c4cdb41c300a73943a 100644 (file)
@@ -26,7 +26,6 @@
 #include <HYDROData_Bathymetry.h>
 
 #include <AIS_InteractiveContext.hxx>
-#include <AIS_Drawer.hxx>
 #include <Aspect_ColorScale.hxx>
 #include <Prs3d_PointAspect.hxx>