Salome HOME
Initial merge of branch 'BR_HYDRO_IMPS_2016' into BR_PORTING_OCCT_7
authormzn <mzn@opencascade.com>
Tue, 6 Dec 2016 08:48:25 +0000 (11:48 +0300)
committermzn <mzn@opencascade.com>
Tue, 6 Dec 2016 08:48:25 +0000 (11:48 +0300)
174 files changed:
CMakeLists.txt
src/HYDROData/HYDROData_AltitudeObject.cxx
src/HYDROData/HYDROData_AltitudeObject.h
src/HYDROData/HYDROData_Application.cxx
src/HYDROData/HYDROData_Application.h
src/HYDROData/HYDROData_ArtificialObject.cxx
src/HYDROData/HYDROData_ArtificialObject.h
src/HYDROData/HYDROData_Bathymetry.cxx
src/HYDROData/HYDROData_Bathymetry.h
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_CalculationCase.h
src/HYDROData/HYDROData_Channel.cxx
src/HYDROData/HYDROData_Channel.h
src/HYDROData/HYDROData_ChannelAltitude.cxx
src/HYDROData/HYDROData_ChannelAltitude.h
src/HYDROData/HYDROData_Confluence.cxx
src/HYDROData/HYDROData_Confluence.h
src/HYDROData/HYDROData_DTM.cxx
src/HYDROData/HYDROData_DTM.h
src/HYDROData/HYDROData_Digue.cxx
src/HYDROData/HYDROData_Digue.h
src/HYDROData/HYDROData_Document.cxx
src/HYDROData/HYDROData_Document.h
src/HYDROData/HYDROData_DummyObject3D.cxx
src/HYDROData/HYDROData_DummyObject3D.h
src/HYDROData/HYDROData_Entity.cxx
src/HYDROData/HYDROData_Entity.h
src/HYDROData/HYDROData_IAltitudeObject.cxx
src/HYDROData/HYDROData_IAltitudeObject.h
src/HYDROData/HYDROData_IPolyline.cxx
src/HYDROData/HYDROData_IPolyline.h
src/HYDROData/HYDROData_Image.cxx
src/HYDROData/HYDROData_Image.h
src/HYDROData/HYDROData_ImmersibleZone.cxx
src/HYDROData/HYDROData_ImmersibleZone.h
src/HYDROData/HYDROData_LandCover.cxx
src/HYDROData/HYDROData_LandCoverMap.cxx
src/HYDROData/HYDROData_LandCoverMap.h
src/HYDROData/HYDROData_NaturalObject.cxx
src/HYDROData/HYDROData_NaturalObject.h
src/HYDROData/HYDROData_Object.cxx
src/HYDROData/HYDROData_Object.h
src/HYDROData/HYDROData_Obstacle.cxx
src/HYDROData/HYDROData_Obstacle.h
src/HYDROData/HYDROData_ObstacleAltitude.cxx
src/HYDROData/HYDROData_ObstacleAltitude.h
src/HYDROData/HYDROData_OperationsFactory.h
src/HYDROData/HYDROData_Polyline3D.cxx
src/HYDROData/HYDROData_Polyline3D.h
src/HYDROData/HYDROData_PolylineOperator.h
src/HYDROData/HYDROData_PolylineXY.cxx
src/HYDROData/HYDROData_PolylineXY.h
src/HYDROData/HYDROData_PriorityQueue.h
src/HYDROData/HYDROData_Profile.cxx
src/HYDROData/HYDROData_Profile.h
src/HYDROData/HYDROData_ProfileUZ.cxx
src/HYDROData/HYDROData_ProfileUZ.h
src/HYDROData/HYDROData_Projection.cxx
src/HYDROData/HYDROData_Projection.h
src/HYDROData/HYDROData_Region.cxx
src/HYDROData/HYDROData_Region.h
src/HYDROData/HYDROData_River.cxx
src/HYDROData/HYDROData_River.h
src/HYDROData/HYDROData_ShapeFile.cxx
src/HYDROData/HYDROData_ShapeFile.h
src/HYDROData/HYDROData_ShapesGroup.cxx
src/HYDROData/HYDROData_ShapesGroup.h
src/HYDROData/HYDROData_ShapesTool.h
src/HYDROData/HYDROData_SinusX.cxx
src/HYDROData/HYDROData_SinusX.h
src/HYDROData/HYDROData_SplitShapesGroup.cxx
src/HYDROData/HYDROData_SplitShapesGroup.h
src/HYDROData/HYDROData_SplitToZonesTool.h
src/HYDROData/HYDROData_Stream.cxx
src/HYDROData/HYDROData_Stream.h
src/HYDROData/HYDROData_StreamAltitude.cxx
src/HYDROData/HYDROData_StreamAltitude.h
src/HYDROData/HYDROData_StricklerTable.cxx
src/HYDROData/HYDROData_StricklerTable.h
src/HYDROData/HYDROData_Tool.h
src/HYDROData/HYDROData_TopoCurve.h
src/HYDROData/HYDROData_VisualState.cxx
src/HYDROData/HYDROData_VisualState.h
src/HYDROData/HYDROData_Zone.cxx
src/HYDROData/HYDROData_Zone.h
src/HYDROGUI/CMakeLists.txt
src/HYDROGUI/HYDROGUI_AISShape.cxx
src/HYDROGUI/HYDROGUI_AISShape.h
src/HYDROGUI/HYDROGUI_AISTrihedron.cxx
src/HYDROGUI/HYDROGUI_AISTrihedron.h
src/HYDROGUI/HYDROGUI_BathymetryBoundsOp.cxx
src/HYDROGUI/HYDROGUI_CalculationDlg.cxx
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_DataBrowser.cxx
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/HYDROGUI_DataObject.cxx
src/HYDROGUI/HYDROGUI_ExportFileOp.cxx
src/HYDROGUI/HYDROGUI_ExportFileOp.h
src/HYDROGUI/HYDROGUI_GeomObjectDlg.cxx
src/HYDROGUI/HYDROGUI_ImagePrs.cxx
src/HYDROGUI/HYDROGUI_ImagePrs.h
src/HYDROGUI/HYDROGUI_ImportLandCoverMapDlg.cxx
src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
src/HYDROGUI/HYDROGUI_ImportObstacleFromFileOp.cxx
src/HYDROGUI/HYDROGUI_ImportPolylineOp.cxx
src/HYDROGUI/HYDROGUI_ImportPolylineOp.h
src/HYDROGUI/HYDROGUI_ImportProfilesOp.cxx
src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx
src/HYDROGUI/HYDROGUI_ImportSinusXOp.h
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.cxx
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.h
src/HYDROGUI/HYDROGUI_ListModel.cxx
src/HYDROGUI/HYDROGUI_ListModel.h
src/HYDROGUI/HYDROGUI_Module.h
src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx
src/HYDROGUI/HYDROGUI_OCCDisplayer.h
src/HYDROGUI/HYDROGUI_OCCSelector.h
src/HYDROGUI/HYDROGUI_Operation.cxx
src/HYDROGUI/HYDROGUI_Operation.h
src/HYDROGUI/HYDROGUI_Polyline.cxx
src/HYDROGUI/HYDROGUI_Polyline.h
src/HYDROGUI/HYDROGUI_PriorityTableModel.cxx
src/HYDROGUI/HYDROGUI_PriorityWidget.cxx
src/HYDROGUI/HYDROGUI_Shape.cxx
src/HYDROGUI/HYDROGUI_Shape.h
src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx
src/HYDROGUI/HYDROGUI_ShapeBathymetry.h
src/HYDROGUI/HYDROGUI_ShapeImage.cxx
src/HYDROGUI/HYDROGUI_ShapeImage.h
src/HYDROGUI/HYDROGUI_ShapeLandCoverMap.cxx
src/HYDROGUI/HYDROGUI_ShapeLandCoverMap.h
src/HYDROGUI/HYDROGUI_StricklerTableDlg.cxx
src/HYDROGUI/HYDROGUI_StricklerTableDlg.h
src/HYDROGUI/HYDROGUI_StricklerTypeComboBox.cxx
src/HYDROGUI/HYDROGUI_Tool.cxx
src/HYDROGUI/HYDROGUI_Tool.h
src/HYDROGUI/HYDROGUI_Tool2.cxx
src/HYDROGUI/HYDROGUI_Tool2.h
src/HYDROGUI/HYDROGUI_UpdateObjectOp.h
src/HYDROGUI/HYDROGUI_VTKPrs.cxx
src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx
src/HYDROGUI/HYDROGUI_ZLayers.cxx
src/HYDROGUI/HYDROGUI_ZLayers.h
src/HYDROGUI/HYDROGUI_ZLayers2.cxx
src/HYDROGUI/HYDROGUI_Zone.cxx
src/HYDROPy/CMakeLists.txt
src/HYDROPy/HYDROData_CalculationCase.sip
src/HYDROPy/HYDROData_Channel.sip
src/HYDROPy/HYDROData_Document.sip
src/HYDROPy/HYDROData_Entity.sip
src/HYDROPy/HYDROData_IInterpolator.sip
src/HYDROPy/HYDROData_Image.sip
src/HYDROPy/HYDROData_ImmersibleZone.sip
src/HYDROPy/HYDROData_LandCoverMap.sip
src/HYDROPy/HYDROData_Object.sip
src/HYDROPy/HYDROData_Polyline3D.sip
src/HYDROPy/HYDROData_Profile.sip
src/HYDROPy/HYDROData_Region.sip
src/HYDROPy/HYDROData_SequenceOfObjects.sip
src/HYDROPy/HYDROData_Stream.sip
src/HYDROPy/HYDROData_Zone.sip
src/HYDRO_tests/CMakeLists.txt
src/HYDRO_tests/ExternalFiles.cmake
src/HYDRO_tests/TestViewer.cxx
src/HYDRO_tests/TestViewer.h
src/HYDRO_tests/test_HYDROData_Bathymetry.h
src/HYDRO_tests/test_HYDROData_CalcCase.cxx
src/HYDRO_tests/test_HYDROData_DTM.cxx
src/HYDRO_tests/test_HYDROData_LandCoverMap.cxx
src/HYDRO_tests/test_HYDROData_Main.cxx
src/HYDRO_tests/test_HYDROData_Profile.h
src/HYDRO_tests/test_HYDROData_Stream.cxx
src/HYDRO_tests/test_HYDROGUI_ListModel.cxx
src/HYDRO_tests/test_HYDROGUI_Shape.cxx

index 8196042c099e542ea53c882d7a260ebad043b398..12e36c5a5dd44d55ac092a8b8b50734b398b22e5 100644 (file)
@@ -22,6 +22,17 @@ IF(WIN32)
   ADD_DEFINITIONS(-DWNT)
 ENDIF(WIN32)
 
+
+# Common CMake macros
+# ===================
+SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
+IF(EXISTS ${CONFIGURATION_ROOT_DIR})
+  LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
+  INCLUDE(SalomeMacros)
+ELSE()
+  MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
+ENDIF()
+
 # Find KERNEL
 # ==============
 SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
index 0286c1e3d558fe02d3989aa47737406389185b73..6a28d989b97b5b81635a045b2acb7383273d5cfd 100644 (file)
@@ -24,7 +24,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_AltitudeObject, HYDROData_IAltitudeObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_AltitudeObject, HYDROData_IAltitudeObject)
 
 HYDROData_AltitudeObject::HYDROData_AltitudeObject()
index 5770be48504fe109211d6ed8cccc9cb1074ddac3..554b982c880a437e18b49e5f6dfa0aeafd34d1f2 100644 (file)
@@ -23,8 +23,6 @@
 #include "HYDROData_IAltitudeObject.h"
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_AltitudeObject, HYDROData_IAltitudeObject)
-
 
 /**\class HYDROData_AltitudeObject
  * \brief Class that stores/retreives information about the Altitude.
@@ -33,7 +31,6 @@ DEFINE_STANDARD_HANDLE(HYDROData_AltitudeObject, HYDROData_IAltitudeObject)
 class HYDROData_AltitudeObject : public HYDROData_IAltitudeObject
 {
 protected:
-
   /**
    * Enumeration of tags corresponding to the persistent object parameters.
    */
@@ -43,8 +40,7 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_AltitudeObject);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_AltitudeObject, HYDROData_IAltitudeObject);
 
   /**
    * Returns the kind of this object. 
index 1a93490f44b623521e4b3fd3af925797004e1c83..04a0e18b9c85ca06c86a8a33d71e4acc2f9d1ba2 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <TColStd_SequenceOfExtendedString.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Application,TDocStd_Application)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Application,TDocStd_Application)
 
 static HYDROData_Application* TheApplication = new HYDROData_Application;
index f15642436412370dce422d698e5a2c53068043e9..37eb02c23ee18ea136ee2c21f277404b83cd6702 100644 (file)
@@ -52,7 +52,7 @@ public: // Redefined OCAF methods
   HYDRODATA_EXPORT HYDROData_Application();
 
   // CASCADE RTTI
-  DEFINE_STANDARD_RTTI(HYDROData_Application)
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Application, TDocStd_Application)
 
 private:
   //! Returns document by its study ID, if document doesn't exists return null
@@ -74,7 +74,4 @@ private:
   friend class HYDROData_Document; // to manipulate documents of application
 };
 
-// Define handle class 
-DEFINE_STANDARD_HANDLE(HYDROData_Application,TDocStd_Application)
-
 #endif
index 80a476546c2b87cd88cf9b087c1aff58a3012d64..23565d5a9a57b2ad71a29bcdc30135f30b31ea19 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "HYDROData_ArtificialObject.h"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ArtificialObject,HYDROData_Object)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ArtificialObject,HYDROData_Object)
 
 HYDROData_ArtificialObject::HYDROData_ArtificialObject( Geometry theGeometry )
index dc91253b3a924093632b0bb1d8777c0dc24858f3..459a2b7b3f881db002bdeb23d9c1b06a695264b5 100644 (file)
@@ -21,9 +21,6 @@
 
 #include <HYDROData_Object.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_ArtificialObject, HYDROData_Object)
-
-
 /**\class HYDROData_ArtificialObject
  * \brief The artificial objects are objects created or planned for creation by human.
  *
@@ -40,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_ArtificialObject);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ArtificialObject, HYDROData_Object);
 
 protected:
 
index f0a871a30983d5e36769ddea4ba8a80eaac19ac9..3ed80c06ba75f12cfc2e5ac2414f6fd7e7bf33a6 100644 (file)
@@ -60,7 +60,6 @@
 
 const int BLOCK_SIZE = 1000;
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
 
 //HYDROData_QuadtreeNode* HYDROData_Bathymetry::myQuadtree = 0;
@@ -610,7 +609,7 @@ bool HYDROData_Bathymetry::ImportFromFiles( const QStringList& theFileNames )
   }
 
   // Convert from global to local CS
-  Handle_HYDROData_Document aDoc = HYDROData_Document::Document( myLab );
+  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( myLab );
   HYDROData_Bathymetry::AltitudePoints::iterator anIter = AllPoints.begin(), aLast = AllPoints.end();
   for ( ; anIter!=aLast; ++anIter )
   {
@@ -786,11 +785,11 @@ bool HYDROData_Bathymetry::importFromASCFile( QFile&          theFile,
 }
 
 
-Handle_HYDROData_PolylineXY HYDROData_Bathymetry::CreateBoundaryPolyline() const
+Handle(HYDROData_PolylineXY) HYDROData_Bathymetry::CreateBoundaryPolyline() const
 {
   Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
-  Handle_HYDROData_PolylineXY aResult = 
-    Handle_HYDROData_PolylineXY::DownCast( aDocument->CreateObject( KIND_POLYLINEXY ) );
+  Handle(HYDROData_PolylineXY) aResult = 
+    Handle(HYDROData_PolylineXY)::DownCast( aDocument->CreateObject( KIND_POLYLINEXY ) );
 
   if( aResult.IsNull() )
     return aResult;
index 8a0d8504aa2b07546d355556f0bd56ef973d7522..6056847393667550a834b4af895d853ff0501cd1 100644 (file)
 class QFile;
 class gp_XYZ;
 class gp_XY;
-class Handle_HYDROData_PolylineXY;
+class HYDROData_PolylineXY;
 class HYDROData_QuadtreeNode;
 class vtkPolyData;
 class vtkIdList;
 
-DEFINE_STANDARD_HANDLE(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
-
 
 /**\class HYDROData_Bathymetry
  * \brief Class that stores/retreives information about the Bathymetry.
@@ -67,8 +65,7 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Bathymetry);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Bathymetry, HYDROData_IAltitudeObject);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
@@ -157,7 +154,7 @@ public:
 
   HYDRODATA_EXPORT virtual bool             ImportFromFile( const QString& theFileName );
 
-  HYDRODATA_EXPORT Handle_HYDROData_PolylineXY CreateBoundaryPolyline() const;
+  HYDRODATA_EXPORT Handle(HYDROData_PolylineXY) CreateBoundaryPolyline() const;
 
   HYDRODATA_EXPORT virtual void UpdateLocalCS( double theDx, double theDy );
 
index ebfd1803afdbaa9bed23409cbe04798429ca7f06..f1b7a564105e49b32db3b81f6ee22fb0ee3b2282 100644 (file)
@@ -85,7 +85,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_CalculationCase, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_CalculationCase, HYDROData_Entity)
 
 HYDROData_CalculationCase::HYDROData_CalculationCase()
index b88a108ea4b7bdd4f63ef35784acfd20972718c7..4ee079d6f47be5e7a016eaf22c5ba7d290ef91fb 100644 (file)
@@ -44,20 +44,16 @@ class gp_XY;
 
 class TopoDS_Shape;
 class TopoDS_Shell;
-class TopTools_ListOfShape;
-
-class Handle(HYDROData_Object);
-class Handle(HYDROData_Region);
-class Handle(HYDROData_Zone);
-class Handle(HYDROData_PolylineXY);
-class Handle(HYDROData_ShapesGroup);
-class Handle(HYDROData_SplitShapesGroup);
-class Handle(HYDROData_Document);
-class Handle(HYDROData_StricklerTable);
-class Handle(HYDROData_LandCoverMap);
-
-DEFINE_STANDARD_HANDLE(HYDROData_CalculationCase, HYDROData_Entity)
 
+class HYDROData_Object;
+class HYDROData_Region;
+class HYDROData_Zone;
+class HYDROData_PolylineXY;
+class HYDROData_ShapesGroup;
+class HYDROData_SplitShapesGroup;
+class HYDROData_Document;
+class HYDROData_StricklerTable;
+class HYDROData_LandCoverMap;
 
 /**\class HYDROData_CalculationCase
  * \brief Calculation case is defined by selection of Geometry objects with or without ï¿½Zone of water�.
@@ -109,8 +105,7 @@ public:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_CalculationCase);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_CalculationCase, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 09ba1c648d875557d293ebf4c927ec17431314ae..526589c534ddbc005c9bf3c861e65cd29b350adf 100644 (file)
@@ -54,6 +54,7 @@
 #include <TColStd_Array1OfReal.hxx>
 
 #include <TopTools_HArray1OfShape.hxx>
+#include <TopTools_SequenceOfShape.hxx>
 
 #include <TopoDS.hxx>
 #include <TopoDS_Wire.hxx>
@@ -70,7 +71,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Channel,HYDROData_ArtificialObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Channel,HYDROData_ArtificialObject)
 
 
index 3e069097a2aab3e2dd6a101eaab2e4205f2a9f48..163601c0d718be20b2d5ead90c5ad0febacdce2f 100644 (file)
 #include <TopoDS_Face.hxx>
 #include <TopoDS_Wire.hxx>
 
-class Handle(HYDROData_Polyline3D);
-class Handle(HYDROData_Profile);
-class TopTools_SequenceOfShape;
-class TopTools_ListOfShape;
-
-DEFINE_STANDARD_HANDLE(HYDROData_Channel, HYDROData_ArtificialObject)
+class HYDROData_Polyline3D;
+class HYDROData_Profile;
 
 /**\class HYDROData_Channel
  * \brief 
@@ -62,8 +58,7 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Channel);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Channel, HYDROData_ArtificialObject);
 
 public:
 
index 92d4d2fe7c9597ef543d069124532067126d0e66..ba2c7587b651231abc8b0c6742c4b1b1a56ebbcd 100644 (file)
@@ -53,7 +53,6 @@
 #include <gp_Pnt.hxx>
 #include <gp_Vec.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ChannelAltitude, HYDROData_IAltitudeObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ChannelAltitude, HYDROData_IAltitudeObject)
 
 HYDROData_ChannelAltitude::HYDROData_ChannelAltitude()
index 480e14fc3fea7ecd83492a012fa158e7b6d5afb1..d65582e5f4d0976c20fecaca9a70ccd6506bf902 100644 (file)
@@ -23,8 +23,6 @@
 #include "HYDROData_IAltitudeObject.h"
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_ChannelAltitude, HYDROData_IAltitudeObject)
-
 
 /**\class HYDROData_ChannelAltitude
  * \brief Class that stores/retrieves information about the Channel altitude.
@@ -44,7 +42,7 @@ protected:
 
 public:
 
-  DEFINE_STANDARD_RTTI(HYDROData_ChannelAltitude);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ChannelAltitude, HYDROData_IAltitudeObject);
 
   /**
    * Returns the kind of this object. 
index d40c9a17770a3126c7560b9dcf9fbc39a5e0875c..da02c9354d79ac6fb4e2731a4e8cfa87112f7cb4 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Confluence,HYDROData_NaturalObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Confluence,HYDROData_NaturalObject)
 
 
index e96a6a9a9cec416d5b6e4336df8a0faa75281c84..13fdee491334dc4a82ef3c0aa59756f07fcac021 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "HYDROData_NaturalObject.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_Confluence, HYDROData_NaturalObject)
-
 /**\class HYDROData_Confluence
  * \brief 
  *
@@ -39,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Confluence);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Confluence, HYDROData_NaturalObject);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index df831b619a110a4ba5dd9b61549e7c3be98774fd..76962d9bd570d56347ecbf77618f2f8eb20c49ad 100644 (file)
 #include <BRep_Builder.hxx>
 #include <GeomProjLib.hxx>
 #include <Geom_TrimmedCurve.hxx>
-#include <Geom_Plane.hxx>
 #include <BRepTools_WireExplorer.hxx>
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <BRepBuilderAPI_MakeFace.hxx>
 #include <TopExp.hxx>
-#include <TopTools_IndexedMapOfOrientedShape.hxx>
 
 #include <BRepLib_MakeEdge.hxx>
 #include <BRepLib_MakeWire.hxx>
 
 #include <TopTools_IndexedDataMapOfShapeShape.hxx>
 #include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <TopTools_SequenceOfShape.hxx>
 
-IMPLEMENT_STANDARD_HANDLE( HYDROData_DTM, HYDROData_Bathymetry )
-IMPLEMENT_STANDARD_RTTIEXT( HYDROData_DTM, HYDROData_Bathymetry )
+//@MZN zzz IMPLEMENT_STANDARD_HANDLE( HYDROData_DTM, HYDROData_Bathymetry )
+//@MZN zzz IMPLEMENT_STANDARD_RTTIEXT( HYDROData_DTM, HYDROData_Bathymetry )
 
 HYDROData_DTM::CurveUZ::CurveUZ( double theXCurv, const gp_Vec2d& theProfileDir, double theDeltaZ )
   : myXcurv( theXCurv ), myProfileDir( theProfileDir ), myDeltaZ( theDeltaZ )
@@ -273,7 +270,7 @@ void HYDROData_DTM::CreateProfilesFromDTM (const HYDROData_SequenceOfObjects& In
   int aLower = InpProfiles.Lower(), anUpper = InpProfiles.Upper();
   size_t n = anUpper - aLower + 1;
 
-  std::vector<Handle_HYDROData_Profile> profiles;
+  std::vector<Handle(HYDROData_Profile)> profiles;
   profiles.reserve( n ); 
   for( int i=aLower; i<=anUpper; i++ )
   {
@@ -298,7 +295,7 @@ void HYDROData_DTM::CreateProfilesFromDTM (const HYDROData_SequenceOfObjects& In
     Out3dPres, Out2dPres, OutLeftB, OutRightB, OutInlet, OutOutlet, Create3dPres, Create2dPres, InvInd, WireIntersections );
 }
 
-void HYDROData_DTM::ProjWireOnPlane(const TopoDS_Shape& inpWire, const Handle_Geom_Plane& RefPlane, 
+void HYDROData_DTM::ProjWireOnPlane(const TopoDS_Shape& inpWire, const Handle(Geom_Plane)& RefPlane, 
   TopTools_DataMapOfShapeListOfShape* E2PE)
 {
   BRep_Builder BB;
@@ -375,7 +372,7 @@ bool HYDROData_DTM::Get2dFaceFrom3dPres(const TopoDS_Compound& cmp, TopoDS_Face&
   //in compound cmp. 
   //if Boundr is not null => this method will return sequence of boundary wires (inlet, outlet...)
 
-  Handle_Geom_Plane refpl = new Geom_Plane(gp_Pnt(0,0,0), gp_Dir(0,0,1));
+  Handle(Geom_Plane) refpl = new Geom_Plane(gp_Pnt(0,0,0), gp_Dir(0,0,1));
   TopTools_DataMapOfShapeListOfShape E2PE;
   ProjWireOnPlane(cmp, refpl, &E2PE);
   TopTools_ListOfShape ELL;
@@ -473,7 +470,7 @@ bool HYDROData_DTM::Get2dFaceFrom3dPres(const TopoDS_Compound& cmp, TopoDS_Face&
   }*/
 }
 
-void HYDROData_DTM::CreateProfiles(const std::vector<Handle_HYDROData_Profile>& theProfiles,
+void HYDROData_DTM::CreateProfiles(const std::vector<Handle(HYDROData_Profile)>& theProfiles,
                                    double theDDZ,
                                    double theSpatialStep,
                                    AltitudePoints& theOutLeft,
@@ -527,7 +524,7 @@ void HYDROData_DTM::CreateProfiles(const std::vector<Handle_HYDROData_Profile>&
 
 
 
-void HYDROData_DTM::GetProperties( const Handle_HYDROData_Profile& theProfile,
+void HYDROData_DTM::GetProperties( const Handle(HYDROData_Profile)& theProfile,
                     gp_Pnt& theLowestPoint, gp_Vec2d& theDir,
                     bool isNormalDir,
                     double& theZMin, double& theZMax )
@@ -599,7 +596,7 @@ Handle(Geom2d_Curve) CurveTo2D( const Handle(Geom_Curve)& theCurve,
       aLast2d = To2D( aLastPnt, theTr, theUMin, theUMax );
 
     gp_Vec2d dir( aFirst2d, aLast2d );
-    Handle_Geom2d_Line aLine2d = new Geom2d_Line( aFirst2d, gp_Dir2d( dir.X(), dir.Y() ) );
+    Handle(Geom2d_Line) aLine2d = new Geom2d_Line( aFirst2d, gp_Dir2d( dir.X(), dir.Y() ) );
     return new Geom2d_TrimmedCurve( aLine2d, 0, aLast2d.Distance( aFirst2d ) );
   }
 
@@ -618,12 +615,12 @@ Handle(Geom2d_Curve) CurveTo2D( const Handle(Geom_Curve)& theCurve,
   return Handle(Geom2d_Curve)();
 }
 
-Handle_Geom2d_BSplineCurve HYDROData_DTM::CreateHydraulicAxis( 
-  const std::vector<Handle_HYDROData_Profile>& theProfiles,
+Handle(Geom2d_BSplineCurve) HYDROData_DTM::CreateHydraulicAxis( 
+  const std::vector<Handle(HYDROData_Profile)>& theProfiles,
   std::vector<double>& theDistances )
 {
   size_t n = theProfiles.size();
-  Handle_Geom2d_BSplineCurve aResult;
+  Handle(Geom2d_BSplineCurve) aResult;
 
   Handle(TColgp_HArray1OfPnt2d) points = new TColgp_HArray1OfPnt2d( 1, (int)n );
   TColgp_Array1OfVec2d tangents( 1, (int)n );
@@ -631,7 +628,7 @@ Handle_Geom2d_BSplineCurve HYDROData_DTM::CreateHydraulicAxis(
 
   for( size_t i = 1; i <= n; i++ )
   {
-    Handle_HYDROData_Profile aProfile = theProfiles[i-1];
+    Handle(HYDROData_Profile) aProfile = theProfiles[i-1];
     aProfile->Update();
 
     gp_Pnt aLowest;
@@ -670,11 +667,11 @@ Handle_Geom2d_BSplineCurve HYDROData_DTM::CreateHydraulicAxis(
   return aResult;
 }
 
-std::vector<Handle_Geom2d_Curve> HYDROData_DTM::ProfileToParametric( 
-  const Handle_HYDROData_Profile& theProfile,
+std::vector<Handle(Geom2d_Curve)> HYDROData_DTM::ProfileToParametric( 
+  const Handle(HYDROData_Profile)& theProfile,
   double& theUMin, double& theUMax, gp_Vec2d& theDir )
 {
-  std::vector<Handle_Geom2d_Curve> curves;
+  std::vector<Handle(Geom2d_Curve)> curves;
   
   // Transformation of the coordinate systems
   gp_Pnt aLowest;
@@ -732,7 +729,7 @@ bool CalcMidWidth( const std::set<double>& intersections, double& theMid, double
   return true;
 }
 
-void HYDROData_DTM::ProfileDiscretization( const Handle_HYDROData_Profile& theProfile, 
+void HYDROData_DTM::ProfileDiscretization( const Handle(HYDROData_Profile)& theProfile, 
                                            double theXCurv, double theMinZ, double theMaxZ, double theDDZ,
                                            CurveUZ& theMidPointCurve,
                                            CurveUZ& theWidthCurve,                                           
@@ -745,7 +742,7 @@ void HYDROData_DTM::ProfileDiscretization( const Handle_HYDROData_Profile& thePr
          aVMax = 1000000;
   
   gp_Vec2d aProfileDir;
-  std::vector<Handle_Geom2d_Curve> curves = ProfileToParametric( theProfile, aUMin, aUMax, aProfileDir );
+  std::vector<Handle(Geom2d_Curve)> curves = ProfileToParametric( theProfile, aUMin, aUMax, aProfileDir );
   size_t n = curves.size();
 
   if( n==0 )
@@ -778,7 +775,7 @@ void HYDROData_DTM::ProfileDiscretization( const Handle_HYDROData_Profile& thePr
     std::set<double> intersections;
     for( size_t i = 0; i < n; i++ )
     {
-      Handle_Geom2d_Curve aCurve = curves[i];
+      Handle(Geom2d_Curve) aCurve = curves[i];
       Geom2dAPI_InterCurveCurve anIntersect( aCurve, aLine, theTolerance );
       for( int k=1, m=anIntersect.NbPoints(); k<=m; k++ )
         intersections.insert( anIntersect.Point( k ).X() );
@@ -824,7 +821,7 @@ void HYDROData_DTM::Interpolate( const CurveUZ& theCurveA, const CurveUZ& theCur
     theInterpolation.push_back( theCurveB );
 }
 #include <BRepLib_MakeEdge2d.hxx>
-void HYDROData_DTM::CurveTo3D( const Handle_Geom2d_BSplineCurve& theHydraulicAxis,
+void HYDROData_DTM::CurveTo3D( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis,
                                const CurveUZ& theMidCurve, const CurveUZ& theWidthCurve,
                                AltitudePoints& thePoints )
 {
@@ -884,10 +881,10 @@ inline double min( double a, double b )
 #include <BRepLib_MakeWire.hxx>
 
 std::vector<HYDROData_Bathymetry::AltitudePoints> HYDROData_DTM::Interpolate
-  ( const Handle_Geom2d_BSplineCurve& theHydraulicAxis,
-    const Handle_HYDROData_Profile& theProfileA,
+  ( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis,
+    const Handle(HYDROData_Profile)& theProfileA,
     double theXCurvA,
-    const Handle_HYDROData_Profile& theProfileB,
+    const Handle(HYDROData_Profile)& theProfileB,
     double theXCurvB,
     double theDDZ, int theNbSteps, bool isAddSecond,
     int& inter_nb_1, int& inter_nb_2)
@@ -931,7 +928,7 @@ std::vector<HYDROData_Bathymetry::AltitudePoints> HYDROData_DTM::Interpolate
 }
 
 HYDROData_Bathymetry::AltitudePoints HYDROData_DTM::Interpolate
-  ( const std::vector<Handle_HYDROData_Profile>& theProfiles,
+  ( const std::vector<Handle(HYDROData_Profile)>& theProfiles,
     double theDDZ, double theSpatialStep,
     AltitudePoints& theLeft,
     AltitudePoints& theRight,
@@ -944,7 +941,7 @@ HYDROData_Bathymetry::AltitudePoints HYDROData_DTM::Interpolate
     return points;
 
   std::vector<double> distances;
-  Handle_Geom2d_BSplineCurve aHydraulicAxis = CreateHydraulicAxis( theProfiles, distances );
+  Handle(Geom2d_BSplineCurve) aHydraulicAxis = CreateHydraulicAxis( theProfiles, distances );
   if( aHydraulicAxis.IsNull() )
     return points;
 
@@ -999,7 +996,7 @@ HYDROData_Bathymetry::AltitudePoints HYDROData_DTM::Interpolate
   return points;
 }
 
-int HYDROData_DTM::EstimateNbPoints( const std::vector<Handle_HYDROData_Profile>& theProfiles,
+int HYDROData_DTM::EstimateNbPoints( const std::vector<Handle(HYDROData_Profile)>& theProfiles,
                                      double theDDZ, double theSpatialStep )
 {
   size_t n = theProfiles.size();
@@ -1009,7 +1006,7 @@ int HYDROData_DTM::EstimateNbPoints( const std::vector<Handle_HYDROData_Profile>
     return 1 << 20;
 
   std::vector<double> distances;
-  Handle_Geom2d_BSplineCurve aHydraulicAxis = CreateHydraulicAxis( theProfiles, distances );
+  Handle(Geom2d_BSplineCurve) aHydraulicAxis = CreateHydraulicAxis( theProfiles, distances );
   if( aHydraulicAxis.IsNull() )
     return 0;
 
index 0e4f746cf1286e297860640b9eae08a1fab8f326..844e4e8913156f18dc60e77e6503e54f3a779a54 100644 (file)
 #define HYDROData_DTM_HeaderFile
 
 #include "HYDROData_Bathymetry.h"
+#include "HYDROData_Profile.h"
+
+#include <gp_Pnt2d.hxx>
+
+#include<Geom2d_BSplineCurve.hxx>
+#include<Geom2d_Curve.hxx>
+#include<Geom_Plane.hxx>
+
+#include <TopTools_DataMapOfShapeListOfShape.hxx>
+#include <TopTools_IndexedMapOfOrientedShape.hxx>
+#include <TopTools_SequenceOfShape.hxx>
+
 #include <vector>
 #include <set>
-#include <gp_Pnt2d.hxx>
 
-class Handle_HYDROData_Profile;
-class Handle_Geom2d_BSplineCurve;
-class Handle_Geom2d_Curve;
 class gp_Pnt;
 class gp_Vec2d;
 class TopoDS_Edge;
 class TopoDS_Wire;
 class TopoDS_Face;
 class TopoDS_Compound;
-class Handle_Geom_Plane;
-class TopTools_IndexedMapOfOrientedShape;
-class TopTools_DataMapOfShapeListOfShape;
-class TopTools_SequenceOfShape;
 
-DEFINE_STANDARD_HANDLE( HYDROData_DTM, HYDROData_Bathymetry )
 
 /**\class HYDROData_DTM
  * \brief Class that represents the Digital Terrain Model
@@ -64,7 +67,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI( HYDROData_DTM );
+  DEFINE_STANDARD_RTTIEXT( HYDROData_DTM, HYDROData_Bathymetry );
 
   HYDRODATA_EXPORT HYDROData_SequenceOfObjects GetProfiles() const;
   HYDRODATA_EXPORT void SetProfiles( const HYDROData_SequenceOfObjects& );
@@ -111,27 +114,27 @@ protected:
   HYDRODATA_EXPORT HYDROData_DTM();
   virtual HYDRODATA_EXPORT ~HYDROData_DTM();
 
-  static Handle_Geom2d_BSplineCurve CreateHydraulicAxis( 
-    const std::vector<Handle_HYDROData_Profile>& theProfiles,
+  static Handle(Geom2d_BSplineCurve) CreateHydraulicAxis( 
+    const std::vector<Handle(HYDROData_Profile)>& theProfiles,
     std::vector<double>& theDistances );
 
-  static std::vector<Handle_Geom2d_Curve> ProfileToParametric( const Handle_HYDROData_Profile& theProfile,
-                                                               double& theUMin, double& theUMax,
-                                                               gp_Vec2d& theDir );
+  static std::vector<Handle(Geom2d_Curve)> ProfileToParametric( const Handle(HYDROData_Profile)& theProfile,
+                                                                double& theUMin, double& theUMax,
+                                                                gp_Vec2d& theDir );
 
-  static void GetProperties( const Handle_HYDROData_Profile& theProfile,
+  static void GetProperties( const Handle(HYDROData_Profile)& theProfile,
                              gp_Pnt& theLowestPoint, gp_Vec2d& theDir,
                              bool isNormalDir,
                              double& theZMin, double& theZMax );
 
-  static void ProfileDiscretization( const Handle_HYDROData_Profile& theProfile,
+  static void ProfileDiscretization( const Handle(HYDROData_Profile)& theProfile,
                                      double theXCurv, double theMinZ, double theMaxZ, double theDDZ,
                                      CurveUZ& theMidPointCurve,
                                      CurveUZ& theWidthCurve,
                                      int& intersection_nb,
                                      double theTolerance = 1E-6 );
 
-  static void CurveTo3D( const Handle_Geom2d_BSplineCurve& theHydraulicAxis,
+  static void CurveTo3D( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis,
                          const CurveUZ& theMidCurve, const CurveUZ& theWidthCurve,
                          AltitudePoints& thePoints );
   
@@ -140,15 +143,15 @@ protected:
                            bool isAddSecond );
 
   static std::vector<AltitudePoints> Interpolate
-    ( const Handle_Geom2d_BSplineCurve& theHydraulicAxis,
-      const Handle_HYDROData_Profile& theProfileA,
+    ( const Handle(Geom2d_BSplineCurve)& theHydraulicAxis,
+      const Handle(HYDROData_Profile)& theProfileA,
       double theXCurvA,
-      const Handle_HYDROData_Profile& theProfileB,
+      const Handle(HYDROData_Profile)& theProfileB,
       double theXCurvB,
       double theDDZ, int theNbSteps, bool isAddSecond,
       int& inter_nb_1, int& inter_nb_2 );
 
-  static AltitudePoints Interpolate( const std::vector<Handle_HYDROData_Profile>& theProfiles,
+  static AltitudePoints Interpolate( const std::vector<Handle(HYDROData_Profile)>& theProfiles,
                                      double theDDZ, double theSpatialStep,
                                      AltitudePoints& theLeft,
                                      AltitudePoints& theRight,
@@ -157,14 +160,14 @@ protected:
 
   static void PointToWire(const AltitudePoints& pnts, TopoDS_Wire& W );
 
-  static void ProjWireOnPlane(const TopoDS_Shape& inpWire, const Handle_Geom_Plane& RefPlane,
+  static void ProjWireOnPlane(const TopoDS_Shape& inpWire, const Handle(Geom_Plane)& RefPlane,
     TopTools_DataMapOfShapeListOfShape* E2PE);
 
   static TopTools_IndexedMapOfOrientedShape Create3DShape(const AltitudePoints& left,
                                                           const AltitudePoints& right,
                                                           const std::vector<AltitudePoints>& main_profiles);
 
-  static void CreateProfiles(const std::vector<Handle_HYDROData_Profile>& theProfiles,
+  static void CreateProfiles(const std::vector<Handle(HYDROData_Profile)>& theProfiles,
                              double theDDZ,
                              double theSpatialStep,
                              AltitudePoints& theOutLeft,
@@ -185,7 +188,7 @@ protected:
   static bool Get2dFaceFrom3dPres(const TopoDS_Compound& cmp, TopoDS_Face& outF, 
     TopTools_SequenceOfShape* Boundr = NULL, std::set<int> ind = std::set<int>() );
   
-  static int EstimateNbPoints( const std::vector<Handle_HYDROData_Profile>& theProfiles,
+  static int EstimateNbPoints( const std::vector<Handle(HYDROData_Profile)>& theProfiles,
                                double theDDZ, double theSpatialStep );
 
   void GetPresentationShapes( TopoDS_Shape& Out3dPres,
index 4ba967ac50dde779fedd9727f4132e9996dd61ab..a102026fd42b4a93500df4c79a0f4176f0bb91ac 100644 (file)
@@ -25,7 +25,6 @@
 #include <QColor>
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Digue,HYDROData_Channel)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Digue,HYDROData_Channel)
 
 
index c72abf39c9a72146e764232146b9744611661d20..f05e03fa9551277eb778b6b6212b8de2938815a1 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "HYDROData_Channel.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_Digue, HYDROData_Channel)
-
 /**\class HYDROData_Digue
  * \brief 
  *
@@ -39,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Digue);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Digue, HYDROData_Channel);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 5e38d577b6bb8093a71184ec00a93f38c3b3db9a..6a8f7376402874535a0698799b981a0a1c76ccc6 100644 (file)
@@ -37,7 +37,6 @@
 #include <QTextStream>
 #include <QColor>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Document,MMgt_TShared)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Document,MMgt_TShared)
 
 #define PYTHON_DOC_NAME "hydro_doc"
@@ -54,8 +53,8 @@ static const gp_Pnt2d DEFAULT_LOCAL_CS( 0, 0 );
 
 using namespace std;
 
-typedef QMap<Standard_Integer,Handle_HYDROData_Entity> MapOfOrdered;
-typedef QMap<QString,Handle_HYDROData_Entity> MapOfUnordered;
+typedef QMap<Standard_Integer, Handle(HYDROData_Entity)> MapOfOrdered;
+typedef QMap<QString, Handle(HYDROData_Entity)> MapOfUnordered;
 
 Handle(HYDROData_Document) HYDROData_Document::Document(const int theStudyID)
 {
@@ -483,7 +482,7 @@ void HYDROData_Document::SetObjectsLayerOrder( const HYDROData_SequenceOfObjects
   }
 }
 
-void HYDROData_Document::Show( const Handle_HYDROData_Entity& theObject )
+void HYDROData_Document::Show( const Handle(HYDROData_Entity)& theObject )
 {
   HYDROData_SequenceOfObjects anOrder;
   anOrder.Append( theObject );
index 6e164226183d804685bf44b6ff61ce2ceea3de71..c342ec3ba9413b5ab0596b992ea793ff12a2b77d 100644 (file)
@@ -24,8 +24,8 @@
 
 class HYDROData_InterpolatorsFactory;
 class HYDROData_IProfilesInterpolator;
-class Handle(HYDROData_StricklerTable);
-class Handle(HYDROData_LandCoverMap);
+class HYDROData_StricklerTable;
+class HYDROData_LandCoverMap;
 
 class QFile;
 class gp_Pnt2d;
@@ -46,8 +46,6 @@ enum Data_DocError {
   DocError_UnknownProblem ///< problem has unknown nature
 };
 
-DEFINE_STANDARD_HANDLE(HYDROData_Document, MMgt_TShared)
-
 /**\class HYDROData_Document
  *
  * \brief Document for internal data structure of any object storage. Corresponds to the SALOME study.
@@ -60,8 +58,7 @@ DEFINE_STANDARD_HANDLE(HYDROData_Document, MMgt_TShared)
 class HYDROData_Document : public MMgt_TShared
 {
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Document);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Document, MMgt_TShared);
 
   //! Returns the existing document or creates new if it is not exist
   HYDRODATA_EXPORT static Handle(HYDROData_Document) Document(const int theStudyID);
@@ -144,7 +141,7 @@ public:
 
   //! Show object at the top of other model objects. If the object
   //! already has the z-level parameter then nothing will be done.
-  HYDRODATA_EXPORT void Show( const Handle_HYDROData_Entity& theObject );
+  HYDRODATA_EXPORT void Show( const Handle(HYDROData_Entity)& theObject );
 
   //! Show sequence of objects at the top of other model objects.
   //! The objects from the sequence will be sorted alphabetically at first.
index fbc4851d3b7546b52f77c5afc64b0571934019a8..56a90fdce15d079f0b37e27b2c91b9dd2b449c35 100644 (file)
@@ -25,7 +25,6 @@
 #include <QString>
 #include <QColor>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_DummyObject3D,HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_DummyObject3D,HYDROData_Entity)
 
 HYDROData_DummyObject3D::HYDROData_DummyObject3D()
index a649e41e2e1d48778ec37592d4657d63ae6ad14c..c944fc010be89513b15da653fc1ce28e3f2eb47c 100644 (file)
@@ -21,9 +21,7 @@
 
 #include <HYDROData_Entity.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_DummyObject3D, HYDROData_Entity)
-
-class Handle(HYDROData_Object);
+class HYDROData_Object;
 class TopoDS_Shape;
 
 /**\class HYDROData_DummyObject3D
@@ -42,7 +40,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_DummyObject3D);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_DummyObject3D, HYDROData_Entity);
 
 public:
 
index 5a055f78e16909bbbd011e2e5e8a0a9c8f8ebb6c..e5baa747adbcae0b0b23c6200e7f8644d4bb6c39 100644 (file)
 #include "HYDRO_trace.hxx"
 
 HYDROData_SequenceOfObjects::HYDROData_SequenceOfObjects()
-  : NCollection_Sequence<Handle_HYDROData_Entity>()
+  : NCollection_Sequence<Handle(HYDROData_Entity)>()
 {
 }
 
 HYDROData_SequenceOfObjects::HYDROData_SequenceOfObjects( const HYDROData_SequenceOfObjects& theSequence )
-  : NCollection_Sequence<Handle_HYDROData_Entity>( theSequence )
+  : NCollection_Sequence<Handle(HYDROData_Entity)>( theSequence )
 {
 }
 
-HYDROData_SequenceOfObjects::HYDROData_SequenceOfObjects( const NCollection_Sequence<Handle_HYDROData_Entity>& theSequence )
-  : NCollection_Sequence<Handle_HYDROData_Entity>( theSequence )
+HYDROData_SequenceOfObjects::HYDROData_SequenceOfObjects( const NCollection_Sequence<Handle(HYDROData_Entity)>& theSequence )
+  : NCollection_Sequence<Handle(HYDROData_Entity)>( theSequence )
 {
 }
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Entity,MMgt_TShared)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Entity,MMgt_TShared)
 
 // is equal function for unique object mapping
-bool IsEqual(const Handle_HYDROData_Entity& theObj1, const Handle_HYDROData_Entity& theObj2)
+bool IsEqual(const Handle(HYDROData_Entity)& theObj1, const Handle(HYDROData_Entity)& theObj2)
 {
   if ( !theObj1.IsNull() && !theObj2.IsNull() )
     return theObj1->Label() == theObj2->Label();
@@ -303,7 +302,7 @@ HYDROData_SequenceOfObjects HYDROData_Entity::GetAllReferenceObjects() const
   return HYDROData_SequenceOfObjects();
 }
 
-Standard_Boolean HYDROData_Entity::GetZLevel( Standard_Integer& theLevel ) const
+bool HYDROData_Entity::GetZLevel( Standard_Integer& theLevel ) const
 {
   theLevel = -1;
 
@@ -314,11 +313,11 @@ Standard_Boolean HYDROData_Entity::GetZLevel( Standard_Integer& theLevel ) const
     if ( aLabel.FindAttribute( TDataStd_Integer::GetID(), anIntVal ) )
     {
       theLevel = anIntVal->Get();
-      return Standard_True;
+      return true;
     }
   }
 
-  return Standard_False;
+  return false;
 }
 
 void HYDROData_Entity::SetZLevel( const Standard_Integer& theLevel )
@@ -383,7 +382,7 @@ int HYDROData_Entity::NbReferenceObjects( const int theTag ) const
   return aRefs.IsNull() ? 0 : aRefs->Extent();
 }
 
-bool HYDROData_Entity::HasReference( const Handle_HYDROData_Entity& theObj,
+bool HYDROData_Entity::HasReference( const Handle(HYDROData_Entity)& theObj,
                                      const int                      theTag ) const
 {
   if ( theObj.IsNull() )
@@ -404,7 +403,7 @@ bool HYDROData_Entity::HasReference( const Handle_HYDROData_Entity& theObj,
   return false;
 }
 
-void HYDROData_Entity::AddReferenceObject( const Handle_HYDROData_Entity& theObj,
+void HYDROData_Entity::AddReferenceObject( const Handle(HYDROData_Entity)& theObj,
                                            const int                      theTag )
 {
   if ( theObj.IsNull() )
@@ -414,7 +413,7 @@ void HYDROData_Entity::AddReferenceObject( const Handle_HYDROData_Entity& theObj
   aRefs->Append( theObj->Label() );
 }
 
-void HYDROData_Entity::SetReferenceObject( const Handle_HYDROData_Entity& theObj,
+void HYDROData_Entity::SetReferenceObject( const Handle(HYDROData_Entity)& theObj,
                                            const int                      theTag,
                                            const int                      theIndex )
 {
@@ -448,7 +447,7 @@ void HYDROData_Entity::SetReferenceObject( const Handle_HYDROData_Entity& theObj
   }
 }
 
-void HYDROData_Entity::InsertReferenceObject( const Handle_HYDROData_Entity& theObj,
+void HYDROData_Entity::InsertReferenceObject( const Handle(HYDROData_Entity)& theObj,
                                               const int                      theTag,
                                               const int                      theBeforeIndex )
 {
index 37bdcc664111c8204c90200ed210224aae9b9858..d82b3d7b015ff69068a4ed005751b168ac47c105 100644 (file)
 #include <TDF_Label.hxx>
 #include <QMap>
 #include <QString>
+#include <Standard_Type.hxx>
 
 class QColor;
 class QVariant;
 class QStringList;
-class Handle(TDataStd_ReferenceList);
-class Handle_HYDROData_Entity;
+class TDataStd_ReferenceList;
+class HYDROData_Entity;
 class TopoDS_Shape;
 
 ///! Kind of an object in a document
@@ -68,22 +69,20 @@ const ObjectKind KIND_LAND_COVER_MAP      = 29;
 const ObjectKind KIND_DTM                 = 30;
 const ObjectKind KIND_LAST                = KIND_LAND_COVER_MAP;
 
-DEFINE_STANDARD_HANDLE(HYDROData_Entity, MMgt_TShared)
-
 class MapOfTreatedObjects : public QMap<QString,Handle(Standard_Transient)>
 {
 };
 
-class HYDRODATA_EXPORT HYDROData_SequenceOfObjects : public NCollection_Sequence<Handle_HYDROData_Entity>
+class HYDRODATA_EXPORT HYDROData_SequenceOfObjects : public NCollection_Sequence<Handle(HYDROData_Entity)>
 {
 public:
   HYDROData_SequenceOfObjects();
   HYDROData_SequenceOfObjects( const HYDROData_SequenceOfObjects& );
-  HYDROData_SequenceOfObjects( const NCollection_Sequence<Handle_HYDROData_Entity>& );
+  HYDROData_SequenceOfObjects( const NCollection_Sequence<Handle(HYDROData_Entity)>& );
 };
 
 ///! Is Equal for HYDROData_Entity mapping
-HYDRODATA_EXPORT bool IsEqual(const Handle_HYDROData_Entity& theObj1, const Handle_HYDROData_Entity& theObj2);
+HYDRODATA_EXPORT bool IsEqual(const Handle(HYDROData_Entity)& theObj1, const Handle(HYDROData_Entity)& theObj2);
 
 /**\class HYDROData_Entity
  * \brief Generic class of any object in the data model.
@@ -120,7 +119,7 @@ public:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Entity);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Entity, MMgt_TShared);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
@@ -243,7 +242,7 @@ public:
   /**
    * Returns the z-level for object presentation, -1 if no z-level.
    */
-  HYDRODATA_EXPORT virtual Standard_Boolean GetZLevel( Standard_Integer& theLevel ) const;
+  HYDRODATA_EXPORT virtual bool GetZLevel( Standard_Integer& theLevel ) const;
 
   /**
    * Set the z-level for object presentation.
@@ -335,7 +334,7 @@ protected:
    * \param theObj pointer to reference object
    * \param theTag tag of a label to store attribute (for 0 this is myLab)
    */
-  bool HasReference( const Handle_HYDROData_Entity& theObj,
+  bool HasReference( const Handle(HYDROData_Entity)& theObj,
                      const int                      theTag = 0 ) const;
 
   /**
@@ -343,7 +342,7 @@ protected:
    * \param theObj pointer to reference object
    * \param theTag tag of a label to store attribute (for 0 this is myLab)
    */
-  void AddReferenceObject( const Handle_HYDROData_Entity& theObj,
+  void AddReferenceObject( const Handle(HYDROData_Entity)& theObj,
                            const int                      theTag = 0 );
 
   /**
@@ -355,7 +354,7 @@ protected:
              - if less than zero then prepend to the list
              - indexing starts from 0
    */
-  void SetReferenceObject( const Handle_HYDROData_Entity& theObj,
+  void SetReferenceObject( const Handle(HYDROData_Entity)& theObj,
                            const int                      theTag = 0,
                            const int                      theIndex = 0 );
 
@@ -368,7 +367,7 @@ protected:
              - if less than zero then prepend to the list
              - indexing starts from 0
    */
-  void InsertReferenceObject( const Handle_HYDROData_Entity& theObj,
+  void InsertReferenceObject( const Handle(HYDROData_Entity)& theObj,
                               const int                      theTag = 0,
                               const int                      theBeforeIndex = 0 );
 
@@ -387,7 +386,7 @@ protected:
    *        - indexing starts from 0
    * \returns pointer to reference object or NULL if label is not set
    */
-  Handle_HYDROData_Entity GetReferenceObject( const int theTag   = 0,
+  Handle(HYDROData_Entity) GetReferenceObject( const int theTag   = 0,
                                               const int theIndex = 0 ) const;
 
   HYDROData_SequenceOfObjects GetReferenceObjects( const int theTag = 0 ) const;
index 86ecdf4fc08c1cadcec38cbb029e07ac89c7cc54..6bad46d3db190d8df884b45b3221476176496a24 100644 (file)
@@ -20,7 +20,6 @@
 
 #define INVALID_ALTITUDE_VALUE -9999.0
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_IAltitudeObject, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_IAltitudeObject, HYDROData_Entity)
 
 HYDROData_IAltitudeObject::HYDROData_IAltitudeObject()
index a6d3658922e955cb9830c6c5e226f4cb6bddb13e..638a1b783e67ea1650ac2fa64a5f974a3a6ba453 100644 (file)
@@ -23,8 +23,6 @@
 
 class gp_XY;
 
-DEFINE_STANDARD_HANDLE(HYDROData_IAltitudeObject, HYDROData_Entity)
-
 
 /**\class HYDROData_IAltitudeObject
  * \briefThe base class for all altitude objects in the HYDRO module.
@@ -43,15 +41,14 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_IAltitudeObject);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_IAltitudeObject, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
    */
   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const = 0;
 
-public:      
+public:
   // Public methods to work with altitudes.
 
   /**
index adc76d3b87fe47b3b677c041adabcca52240be77..42d68480fc866fe725c5141d7d50ae8a46b89429 100644 (file)
@@ -27,7 +27,6 @@
 #include <TopoDS_Shape.hxx>
 #include <QColor>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_IPolyline, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_IPolyline, HYDROData_Entity)
 
 HYDROData_IPolyline::HYDROData_IPolyline()
index 88f5478078fdef20373c74a49f6f8f6e3ef49a84..afb307cb0b68bee4d6fa29809f951b020903d698 100644 (file)
 
 #include "HYDROData_Entity.h"
 
-
-DEFINE_STANDARD_HANDLE(HYDROData_IPolyline, HYDROData_Entity)
-
 class gp_XY;
 class TopoDS_Shape;
-class Handle(TDataStd_RealList);
-class Handle(TDataStd_ExtStringList);
-class Handle(TDataStd_BooleanList);
-class Handle(TDataStd_IntegerList);
+class TDataStd_RealList;
+class TDataStd_ExtStringList;
+class TDataStd_BooleanList;
+class TDataStd_IntegerList;
 
 
 /**\class HYDROData_IPolyline
@@ -38,7 +35,6 @@ class Handle(TDataStd_IntegerList);
 class HYDROData_IPolyline : public HYDROData_Entity
 {
 public:
-
   enum SectionType{ SECTION_POLYLINE = 0, SECTION_SPLINE = 1 };
 
   typedef gp_XY                       Point;
@@ -58,7 +54,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_IPolyline);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_IPolyline, HYDROData_Entity);
 
 public:
 
index 9cabbc12d5b547358f66cc37ec2c8e09ae2d064c..74c278b4c3328957c03c1145e96e9a075b9f4791 100644 (file)
@@ -49,7 +49,6 @@ static const Standard_GUID GUID_SELF_SPLIT("997995aa-5c19-40bf-9a60-ab4b70ad04d8
 static const Standard_GUID GUID_HAS_LOCAL_POINTS("FD8841AA-FC44-42fa-B6A7-0F682CCC6F27");
 static const Standard_GUID GUID_HAS_GLOBAL_POINTS("330D0E81-742D-4ea3-92D4-484877CFA7C1");
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Image, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Image, HYDROData_Entity)
 
 HYDROData_Image::HYDROData_Image()
index 5a25af9ee633a20ce5e2f760476b7bd1aa2aa770..5be02deedd6b8dea9a93a0f8e6dd7eb42ce11a90 100644 (file)
@@ -32,8 +32,6 @@
   #pragma warning ( default: 4251 )
 #endif
 
-DEFINE_STANDARD_HANDLE(HYDROData_Image, HYDROData_Entity)
-
 /**\class HYDROData_Image
  * \brief Class that stores/retreives information about the image.
  *
@@ -68,7 +66,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Image);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Image, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 52e9a5acf6628c224cd46de582f22973ee4c18c8..75d6eb913c9a44079b3aff579ddbac6bd03583a4 100644 (file)
@@ -51,7 +51,6 @@
 
 //#define HYDRODATA_IMZONE_DEB 1
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ImmersibleZone,HYDROData_NaturalObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ImmersibleZone,HYDROData_NaturalObject)
 
 
index 3e4d6e8475afd48b860470f1378d5a079907b320..cae0e08b2cdcbdf14a660297bd36288cfa42625a 100644 (file)
@@ -21,9 +21,7 @@
 
 #include <HYDROData_NaturalObject.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_ImmersibleZone, HYDROData_NaturalObject)
-
-class Handle(HYDROData_PolylineXY);
+class HYDROData_PolylineXY;
 
 /**\class HYDROData_ImmersibleZone
  * \brief 
@@ -42,7 +40,7 @@ protected:
 };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_ImmersibleZone);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ImmersibleZone, HYDROData_NaturalObject);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index d17b52430ac43d87f6a1f3e5be0e33cbeab25e31..c9199eb32a41479079569b24d651b5ef5431b305 100644 (file)
@@ -42,7 +42,6 @@
 #include <QColor>
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE( HYDROData_LandCover, HYDROData_Entity )
 IMPLEMENT_STANDARD_RTTIEXT( HYDROData_LandCover, HYDROData_Entity )
 
 HYDROData_LandCover::HYDROData_LandCover()
index 1ecf2586848aa701f27cc82bfbe4946822b6095e..55e516564ebbf07884dca7f84d86dcd844fc0841 100644 (file)
@@ -55,9 +55,9 @@
 #include <BRepCheck_Shell.hxx>
 #include <BRepCheck_ListOfStatus.hxx>
 #include <TopTools_SequenceOfShape.hxx>
-#include <Handle_Geom_Curve.hxx>
-#include <Handle_Geom_Line.hxx>
-#include <Handle_Geom_TrimmedCurve.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <TopTools_DataMapOfShapeListOfShape.hxx>
 #include <NCollection_DoubleMap.hxx>
@@ -78,7 +78,6 @@ const char TELEMAC_FORMAT = 'f';
 const int TELEMAC_PRECISION = 3;
 
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_LandCoverMap, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_LandCoverMap, HYDROData_Entity)
 
 /**
@@ -1145,7 +1144,7 @@ void HYDROData_LandCoverMap::RemoveInternal(TopoDS_Shape& ShToRebuild, NCollecti
     //
     if (!anEdgesToRemove.IsEmpty())
     {
-      Handle_ShapeBuild_ReShape aReshape = new ShapeBuild_ReShape();
+      Handle(ShapeBuild_ReShape) aReshape = new ShapeBuild_ReShape();
       TopoDS_Shape OutF = aReshape->Apply(CurFace);
       TopTools_ListIteratorOfListOfShape aIt(anEdgesToRemove);
       for (; aIt.More(); aIt.Next()) 
@@ -1160,7 +1159,7 @@ void HYDROData_LandCoverMap::RemoveInternal(TopoDS_Shape& ShToRebuild, NCollecti
     }
   }
   //
-  Handle_ShapeBuild_ReShape anExtReshape = new ShapeBuild_ReShape();
+  Handle(ShapeBuild_ReShape) anExtReshape = new ShapeBuild_ReShape();
   for (int i = 1; i <= aF2FReplace->Extent(); i++)
   {
     TopoDS_Face aFK = aF2FReplace->FindKey(i);
@@ -1248,7 +1247,7 @@ bool HYDROData_LandCoverMap::CheckLinear()
   {
     TopoDS_Edge E = TopoDS::Edge(anEdgeEx.Current());
     double aFP, aLP;
-    Handle_Geom_Curve aCur = BRep_Tool::Curve(E, aFP, aLP);
+    Handle(Geom_Curve) aCur = BRep_Tool::Curve(E, aFP, aLP);
     Handle(Geom_Line) aLine = Handle(Geom_Line)::DownCast(aCur);
     if (aLine.IsNull())
     {
index f6e681b04bff09cdf79d04060799c3d498635004..e00eaebd9be20760f0dbfa058d8e1c6b3c77e3a0 100644 (file)
 #include <vector>
 #include <set>
 
-class Handle_HYDROData_StricklerTable;
+class HYDROData_StricklerTable;
 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
 
 typedef NCollection_IndexedDataMap<TopoDS_Face, QString> HYDROData_MapOfFaceToStricklerType;
 
-DEFINE_STANDARD_HANDLE( HYDROData_LandCoverMap, HYDROData_Entity )
-
 class TopoDS_Shape;
 class TopoDS_Wire;
 class TopoDS_Iterator;
-class TopTools_ListOfShape;
-class Handle( HYDROData_PolylineXY );
-class Handle( HYDROData_Object );
+class HYDROData_PolylineXY;
+class HYDROData_Object;
 class gp_XY;
 
 class HYDROData_LandCoverMap : public HYDROData_Entity
@@ -111,12 +108,13 @@ public:
 
   HYDRODATA_EXPORT bool ExportTelemac( const QString& theFileName,
                                        double theDeflection,
-                                       const Handle_HYDROData_StricklerTable& theTable,
+                                       const Handle(HYDROData_StricklerTable)& theTable,
                                        QString& statMessage) const;
 
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_Object )&, const QString& theType );
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_PolylineXY )&, const QString& theType );
 
+  using HYDROData_Entity::Remove;
   HYDRODATA_EXPORT bool Remove( const TopoDS_Face& );
   HYDRODATA_EXPORT bool Remove( const TopTools_ListOfShape& );
 
@@ -170,7 +168,7 @@ protected:
                                  double theTolerance = 1E-5 );
 
 public:
-  DEFINE_STANDARD_RTTI( HYDROData_LandCoverMap );
+  DEFINE_STANDARD_RTTIEXT( HYDROData_LandCoverMap, HYDROData_Entity );
 
 private:
   friend class Explorer;
index 001104383161c2d8a1ed8867425ac63637ce8b5c..ff4b330257a6d779ac9298d2d2daca55348e97be 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "HYDROData_NaturalObject.h"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_NaturalObject,HYDROData_Object)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_NaturalObject,HYDROData_Object)
 
 HYDROData_NaturalObject::HYDROData_NaturalObject( Geometry theGeometry )
index e002b9a7b2733aabfa486fe62297bec2d06c5134..ecc4736a5a8ddc4e5e4f9aa0d7e29bfd89004c51 100644 (file)
@@ -21,9 +21,6 @@
 
 #include <HYDROData_Object.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_NaturalObject, HYDROData_Object)
-
-
 /**\class HYDROData_NaturalObject
  * \brief The natural objects are objects of environment not created by human.
  *
@@ -40,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_NaturalObject);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_NaturalObject, HYDROData_Object);
 
 protected:
 
index 93499b742335d4787b5b438ab74b44875a3b7f80..bf73726b33343069ef44c36692ad7db956540d2f 100644 (file)
@@ -32,7 +32,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Object,HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Object,HYDROData_Entity)
 
 HYDROData_Object::HYDROData_Object( Geometry theGeometry )
index 0c217f274a6464e8e44d93c5271e4c7de578453b..e3646b21dc10311c3ca5548df119ef8a26e1944a 100644 (file)
 
 #include <HYDROData_Entity.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_Object, HYDROData_Entity)
-
 class TopoDS_Shape;
-class Handle(HYDROData_IAltitudeObject);
-class Handle(HYDROData_DummyObject3D);
-class Handle(HYDROData_ShapesGroup);
+class HYDROData_IAltitudeObject;
+class HYDROData_DummyObject3D;
+class HYDROData_ShapesGroup;
 
 /**\class HYDROData_Object
  * \brief The base class for all geometrical objects in the HYDRO module.
@@ -53,7 +51,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Object);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Object, HYDROData_Entity);
 
   /**
    * Updates the name of this object.
index 4bcc7aa942e40d27b483c5526df170715bf427c2..29b0a64c4a9e8505f6fe2acce5a707be77d6ee8e 100644 (file)
@@ -78,7 +78,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Obstacle,HYDROData_ArtificialObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Obstacle,HYDROData_ArtificialObject)
 
 
index bbf690a2259e77a775c52ead1e9429e06e2a7504..e2b0c392c87e92f4b07142d0b9a22de2f0b9738f 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "HYDROData_ArtificialObject.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_Obstacle, HYDROData_ArtificialObject)
-
 /**\class HYDROData_Obstacle
  * \brief 
  *
@@ -42,7 +40,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Obstacle);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Obstacle, HYDROData_ArtificialObject);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index cba53dfa7e090ba1b7a5e720dd1094505bd80272..7bc4ed00abad0325cbb0d38a1b02843733338ad0 100644 (file)
@@ -31,7 +31,6 @@
 #include <TopoDS_Shape.hxx>
 #include <BRepTools.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ObstacleAltitude, HYDROData_IAltitudeObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ObstacleAltitude, HYDROData_IAltitudeObject)
 
 HYDROData_ObstacleAltitude::HYDROData_ObstacleAltitude()
index 3dc1e2ceb8c11df381aced148e7d1c3f91847e4e..3fd489d153001399ac3087f856dc567498b3b6b8 100644 (file)
@@ -23,8 +23,6 @@
 #include "HYDROData_IAltitudeObject.h"
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_ObstacleAltitude, HYDROData_IAltitudeObject)
-
 
 /**\class HYDROData_ObstacleAltitude
  * \brief Class that stores/retreives information about the obstacle altitude.
@@ -44,7 +42,7 @@ protected:
 
 public:
 
-  DEFINE_STANDARD_RTTI(HYDROData_ObstacleAltitude);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ObstacleAltitude, HYDROData_IAltitudeObject);
 
   /**
    * Returns the kind of this object. 
index 2de9ca0ba6f43e3be5ef1f9ff08b85cb9741e60e..b9df8e7182afa6c9703c06346339021146eabba9 100644 (file)
@@ -24,7 +24,7 @@
 #include <QMap>
 
 class ImageComposer_Operator;
-class Handle_HYDROData_Document;
+class HYDROData_Document;
 
 /**\class HYDROData_OperationsFactory
  *
@@ -60,7 +60,7 @@ public:
    * \returns created object related to the data structure
    */
   HYDRODATA_EXPORT Handle(HYDROData_Image) CreateImage(
-    Handle_HYDROData_Document theDoc, const ImageComposer_Operator* theOperator);
+    Handle(HYDROData_Document) theDoc, const ImageComposer_Operator* theOperator);
 
   /**
    * Returns the operator, initialized by the properties of theImage
index 66cec7be744e31c58dbcdd6c26efba08a800c8e8..15959d971f698ca5499aa347c7d7f3dc604470af 100644 (file)
@@ -56,7 +56,6 @@
 #include <QColor>
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Polyline3D,HYDROData_Object)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Polyline3D,HYDROData_Object)
 
 
index e90b1cec8180916f9b00659a9207da21e74252de..9500afa5091ba8f0c43a189e3eadf4a442b3d7ac 100644 (file)
 
 #include "HYDROData_Object.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_Polyline3D, HYDROData_Object)
-
-class Handle(HYDROData_PolylineXY);
-class Handle(HYDROData_ProfileUZ);
+class HYDROData_PolylineXY;
+class HYDROData_ProfileUZ;
 class gp_XYZ;
 
 /**\class HYDROData_Polyline3D
@@ -51,7 +49,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Polyline3D);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Polyline3D, HYDROData_Object);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index a4c280b8c12eb0fd72911af03536b883581879af..6fea45128c56f22ef759fda3f9ccfaa00cd0d1d0 100644 (file)
@@ -24,9 +24,9 @@
 #include <gp_Pnt2d.hxx>
 #include <vector>
 
-class Handle( HYDROData_Document );
+class HYDROData_Document;
 class HYDROData_TopoCurve;
-class Handle(HYDROData_Object);
+class HYDROData_Object;
 
 class HYDRODATA_EXPORT HYDROData_PolylineOperator
 {
index 4b82850f80e1b0bda53f4f2cf2cd6517a7cfaea0..8c7db492153042803f8bfd6114e1d84bceb0ba83 100644 (file)
@@ -126,7 +126,6 @@ TCollection_AsciiString getUniqueSectionName( const Handle(TDataStd_ExtStringLis
   return getUniqueSectionName( aNamesSeq );
 }
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_PolylineXY, HYDROData_IPolyline)
 
 HYDROData_PolylineXY::HYDROData_PolylineXY()
index d67f0ad5ad781a3b0c0694742f8057927b769c68..8375616b912921c6e36b12f4aabca5daa9314387 100644 (file)
@@ -22,8 +22,6 @@
 #include "HYDROData_IPolyline.h"
 #include <TopTools_HSequenceOfShape.hxx>
 
-DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
-
 class QPainterPath;
 class QTransform;
 class TopoDS_Wire;
@@ -47,7 +45,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_PolylineXY);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_PolylineXY, HYDROData_IPolyline);
 
 
   /**
index 7983a1f783a0407a487d6f317dde205fbd5f92ab..ef5660ab06fa14251c2de59649e44317aab1add4 100644 (file)
@@ -48,7 +48,7 @@ public:
                            Standard_Integer aTag );
   ~HYDROData_PriorityQueue();
 
-  Handle_HYDROData_Entity GetMostPriorityObject( const QStringList& theZoneObjects,
+  Handle(HYDROData_Entity) GetMostPriorityObject( const QStringList& theZoneObjects,
                                                  HYDROData_Zone::MergeType& theMergeType ) const;
 
   bool IsMorePriority( const Handle(HYDROData_Entity)& theObj1,
index 10f9e237efa60c53d6e52bfb6bbcce0bf17c0fcd..99412519316018719820d4057e015a934117ba32 100644 (file)
@@ -53,7 +53,6 @@
 #include <QColor>
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Profile, HYDROData_Object)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Profile, HYDROData_Object)
 
 HYDROData_Profile::HYDROData_Profile()
index a15711509c2e902ca773dedd23221db17e053430..198cb2411208435553bdcb8ad047f72cc0ddcb9e 100644 (file)
 #include "HYDROData_Object.h"
 #include "HYDROData_ProfileUZ.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_Profile, HYDROData_Object)
-
 class gp_XYZ;
 class OSD_File;
-class Handle(HYDROData_Document);
+class HYDROData_Document;
 
 /**\class HYDROData_Profile
  * \brief Class that stores/retreives information about the profile.
@@ -52,7 +50,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Profile);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Profile, HYDROData_Object);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index bfe75e3b55092840f3f6701cdf2f9e74bb27cc5b..5dccf20cc35c1d2178b1ec76f9b6cbb6124806e8 100644 (file)
@@ -36,7 +36,6 @@
 #include <HYDROData_PolylineXY.h>
 
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline)
 
 HYDROData_ProfileUZ::HYDROData_ProfileUZ()
@@ -279,7 +278,7 @@ HYDROData_ProfileUZ::PointsList HYDROData_ProfileUZ::GetPoints( const int /*theS
   return aResList;
 }
 
-void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints, Handle_HYDROData_PolylineXY& thePolylineXY)
+void HYDROData_ProfileUZ::CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints, Handle(HYDROData_PolylineXY)& thePolylineXY)
 {
    // Fill 2D polyline
   for ( int i = 1; i <= theXYZPoints.Size(); i++ ) {
index aa9ebbc938b8c1886b26948b5d6ecc82c6463ea2..2fcb3899a9d1595eeac31b94abe5c4a967360077 100644 (file)
 
 #include "HYDROData_IPolyline.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline)
-
 class gp_XYZ;
-class Handle_HYDROData_PolylineXY;
+class HYDROData_PolylineXY;
 
 /**\class HYDROData_ProfileUZ
  * \brief Class that stores/retreives information about the 
@@ -42,7 +40,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_ProfileUZ);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ProfileUZ, HYDROData_IPolyline);
 
 
   /**
@@ -170,7 +168,8 @@ public:
    */
   HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1, bool IsConvertToGlobal = false ) const;
 
-  HYDRODATA_EXPORT virtual void CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints, Handle_HYDROData_PolylineXY& thePolylineXY);
+  HYDRODATA_EXPORT virtual void CalculateAndAddPoints(const NCollection_Sequence<gp_XYZ>& theXYZPoints,
+     Handle(HYDROData_PolylineXY)& thePolylineXY);
 
 protected:
 
index c88501ba8afcb58edbaf8b340c94254bc804610b..855ae1e7382887232e1b7b4bd5793876a46e5dbc 100644 (file)
@@ -42,7 +42,6 @@
 #include <TopExp.hxx>
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 #include <TopTools_MapOfShape.hxx>
-#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
 #include <TopTools_DataMapOfShapeReal.hxx>
 
 HYDROData_Make3dMesh::HYDROData_Make3dMesh( const TopoDS_Shape& aShape,
index dab681c6cd707fb901c6934ec6a79853d6d1568c..917949ca47d78b88fa61cfad060bd810f817a280 100644 (file)
 
 #include <Standard_Real.hxx>
 #include <IntCurvesFace_ShapeIntersector.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
 
 class TopoDS_Shape;
 class TopoDS_Edge;
 class TopoDS_Face;
 class TopoDS_Wire;
 class TopoDS_Vertex;
-class TopTools_ListOfShape;
-class TopTools_IndexedDataMapOfShapeListOfShape;
 class gp_Pnt;
 
 class HYDROData_Make3dMesh
index 226e0e46c550d8f5bdc9927b47d84aebdc7e01ab..0f47ed2a50be6d5535d179b5b4b8d11344d0b180 100644 (file)
 #include <QStringList>
 #include <QColor>
 
-#include "Handle_Geom_Plane.hxx"
 #include "Geom_Plane.hxx"
 #include "gp_Pln.hxx"
 #include "BRepTools_ReShape.hxx"
 
 //#define DEB_GET_REGION_SHAPE
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Region, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Region, HYDROData_Entity)
 
 
index bc9a7c6af1019458340f4e8fdafc68cdc5acd492..205e546ef97bfdf1f214a25c0e5209b2f5be87c1 100644 (file)
 #include "HYDROData_ShapesGroup.h"
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_Region, HYDROData_Entity)
-
-class Handle(HYDROData_Zone);
-class Handle(HYDROData_Document);
+class HYDROData_Zone;
+class HYDROData_Document;
 class TopoDS_Shape;
 class TopoDS_Face;
 class QStringList;
@@ -35,9 +33,7 @@ class QStringList;
  */
 class HYDROData_Region : public HYDROData_Entity
 {
-
 protected:
-
   /**
    * Enumeration of tags corresponding to the persistent object parameters.
    */
@@ -49,7 +45,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Region);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Region, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 1f197c03cc81eff3d5af35978d1a2a4cac28fa17..b43f8a3345000cb5da85d5663ae8a9dd248d0909 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_River,HYDROData_NaturalObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_River,HYDROData_NaturalObject)
 
 
index 0873ce156351eef391863e08f8b14b7aad892c98..27376559f36e9fedacef281379c36b5d8d3236fe 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "HYDROData_NaturalObject.h"
 
-DEFINE_STANDARD_HANDLE(HYDROData_River, HYDROData_NaturalObject)
-
 /**\class HYDROData_River
  * \brief 
  *
@@ -39,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_River);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_River, HYDROData_NaturalObject);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index a66bc81b960090322510265ec18a2ce52ad394d8..2a38a86d1401211f791bddbcf949b289fb6d1c47 100644 (file)
@@ -35,9 +35,9 @@
 #include <BRep_Tool.hxx>
 #include <BRepTools.hxx>
 #include <Precision.hxx>
-#include <Handle_Geom_Curve.hxx>
-#include <Handle_Geom_Line.hxx>
-#include <Handle_Geom_TrimmedCurve.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <BRepBuilderAPI_MakeWire.hxx>
@@ -80,21 +80,21 @@ HYDROData_ShapeFile::~HYDROData_ShapeFile()
 
 void HYDROData_ShapeFile::Export(Handle(HYDROData_Document) theDocument,
                                  const QString& aFileName,
-                                 NCollection_Sequence<Handle_HYDROData_PolylineXY> aPolyXYSeq,
-                                 NCollection_Sequence<Handle_HYDROData_Polyline3D> aPoly3DSeq,
+                                 NCollection_Sequence<Handle(HYDROData_PolylineXY)> aPolyXYSeq,
+                                 NCollection_Sequence<Handle(HYDROData_Polyline3D)> aPoly3DSeq,
                                  QStringList& aNonExpList)
 {
   SHPHandle hSHPHandle;
   if (!aPolyXYSeq.IsEmpty() && aPoly3DSeq.IsEmpty())
   {
-    hSHPHandle = SHPCreate( aFileName.toAscii().data(), SHPT_ARC );        
+    hSHPHandle = SHPCreate( aFileName.toLatin1().data(), SHPT_ARC );        
     for (int i = 1; i <= aPolyXYSeq.Size(); i++)
       if (WriteObjectPolyXY(theDocument, hSHPHandle, aPolyXYSeq(i)) != 1)
         aNonExpList.append(aPolyXYSeq(i)->GetName());
   }
   else if (aPolyXYSeq.IsEmpty() && !aPoly3DSeq.IsEmpty())
   {
-    hSHPHandle = SHPCreate( aFileName.toAscii().data(), SHPT_ARCZ );
+    hSHPHandle = SHPCreate( aFileName.toLatin1().data(), SHPT_ARCZ );
     for (int i = 1; i <= aPoly3DSeq.Size(); i++)
       if (WriteObjectPoly3D(theDocument, hSHPHandle, aPoly3DSeq(i)) != 1)
         aNonExpList.append(aPoly3DSeq(i)->GetName());
@@ -112,7 +112,7 @@ void HYDROData_ShapeFile::Export(Handle(HYDROData_Document) theDocument,
 
 void HYDROData_ShapeFile::Export(Handle(HYDROData_Document) theDocument,
                                  const QString& aFileName,
-                                 const Handle_HYDROData_LandCoverMap& aLCM,
+                                 const Handle(HYDROData_LandCoverMap)& aLCM,
                                  QStringList& aNonExpList,
                                  bool bCheckLinear, bool bUseDiscr, double theDefl)
 {
@@ -122,7 +122,7 @@ void HYDROData_ShapeFile::Export(Handle(HYDROData_Document) theDocument,
   SHPHandle hSHPHandle = NULL;
   if ( !aLCM.IsNull() && !aLCM->IsEmpty())
   {
-    hSHPHandle = SHPCreate( aFileName.toAscii().data(), SHPT_POLYGON );
+    hSHPHandle = SHPCreate( aFileName.toLatin1().data(), SHPT_POLYGON );
     HYDROData_LandCoverMap::Explorer It( aLCM );
     for( ; It.More(); It.Next())
     {
@@ -145,7 +145,7 @@ void HYDROData_ShapeFile::Export(Handle(HYDROData_Document) theDocument,
 
 int HYDROData_ShapeFile::WriteObjectPolyXY(Handle(HYDROData_Document) theDocument,
                                            SHPHandle theShpHandle,
-                                           Handle_HYDROData_PolylineXY thePoly )
+                                           Handle(HYDROData_PolylineXY) thePoly )
 {
   SHPObject    *aSHPObj;
   std::vector<double> x, y;
@@ -183,7 +183,7 @@ int HYDROData_ShapeFile::WriteObjectPolyXY(Handle(HYDROData_Document) theDocumen
 
 int HYDROData_ShapeFile::WriteObjectPoly3D(Handle(HYDROData_Document) theDocument,
                                            SHPHandle theShpHandle,
-                                           Handle_HYDROData_Polyline3D thePoly )
+                                           Handle(HYDROData_Polyline3D) thePoly )
 {
   SHPObject    *aSHPObj;
   std::vector<double> x, y, z;
@@ -398,7 +398,7 @@ void HYDROData_ShapeFile::ReadSHPPolygon(Handle(HYDROData_Document) theDocument,
     return;
   TopoDS_Edge E; 
   int nParts = anObj->nParts;
-  Handle_Geom_Plane aPlaneSur = new Geom_Plane(gp_Pnt(0,0,0), gp_Dir(0,0,1));
+  Handle(Geom_Plane) aPlaneSur = new Geom_Plane(gp_Pnt(0,0,0), gp_Dir(0,0,1));
 
   BRep_Builder BB;
   BB.MakeFace(F);
@@ -437,7 +437,7 @@ void HYDROData_ShapeFile::ReadSHPPolygon(Handle(HYDROData_Document) theDocument,
       gp_Pnt P2 = BRep_Tool::Pnt(VPoints(k + 1));
       if (P1.Distance(P2) < Precision::Confusion())
         continue;
-      Handle_Geom_TrimmedCurve aTC = GC_MakeSegment(P1, P2).Value();
+      Handle(Geom_TrimmedCurve) aTC = GC_MakeSegment(P1, P2).Value();
       TopoDS_Edge E;
       if ( k != VPoints.Size() - 2)
         E = BRepLib_MakeEdge(aTC, VPoints(k), VPoints(k + 1)).Edge();
@@ -520,7 +520,7 @@ int HYDROData_ShapeFile::ImportPolygons(Handle(HYDROData_Document) theDocument,
   int Stat = TryOpenShapeFile(theFileName);
   if (Stat != 0)
     return Stat;
-  myHSHP = SHPOpen( theFileName.toAscii().data(), "rb" );
+  myHSHP = SHPOpen( theFileName.toLatin1().data(), "rb" );
   if (!Parse(myHSHP, HYDROData_ShapeFile::ShapeType_Polygon, theShapeTypeOfFile))
     return 0;
   for (size_t i = 0; i < mySHPObjects.size(); i++)
@@ -563,7 +563,7 @@ void HYDROData_ShapeFile::Free()
 
 
 void HYDROData_ShapeFile::ReadSHPPolyXY(Handle(HYDROData_Document) theDocument, SHPObject* anObj, QString theFileName, 
-  int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities, bool bReadAsPolyline)
+  int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities, bool bReadAsPolyline)
 {
 
   Handle(HYDROData_PolylineXY) aPolylineXY = Handle(HYDROData_PolylineXY)::DownCast( theDocument->CreateObject( KIND_POLYLINEXY ) );
@@ -586,10 +586,10 @@ void HYDROData_ShapeFile::ReadSHPPolyXY(Handle(HYDROData_Document) theDocument,
         anObj->padfY[StartIndex] == anObj->padfY[EndIndex - 1] )
       {
         IsClosed = true;
-        aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toAscii()), aSectType, true);
+        aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toLatin1()), aSectType, true);
       }
       else
-        aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toAscii()), aSectType, false);
+        aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toLatin1()), aSectType, false);
 
       if (IsClosed)
         EndIndex--;
@@ -597,7 +597,7 @@ void HYDROData_ShapeFile::ReadSHPPolyXY(Handle(HYDROData_Document) theDocument,
     else
     {
       //polygon; contours always closed
-      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toAscii()), aSectType, true);
+      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toLatin1()), aSectType, true);
       EndIndex--;
     }
     for ( int k = StartIndex; k < EndIndex ; k++ )
@@ -618,7 +618,7 @@ void HYDROData_ShapeFile::ReadSHPPolyXY(Handle(HYDROData_Document) theDocument,
 }
 
 void HYDROData_ShapeFile::ReadSHPPoly3D(Handle(HYDROData_Document) theDocument, SHPObject* anObj, QString theFileName, 
-  int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+  int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 {
   Handle(HYDROData_PolylineXY) aPolylineXY = Handle(HYDROData_PolylineXY)::DownCast( theDocument->CreateObject( KIND_POLYLINEXY ) );
 
@@ -645,10 +645,10 @@ void HYDROData_ShapeFile::ReadSHPPoly3D(Handle(HYDROData_Document) theDocument,
         anObj->padfZ[StartIndex] == anObj->padfZ[EndIndex - 1])
     {
       IsClosed = true;
-      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toAscii()), aSectType, true );
+      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toLatin1()), aSectType, true );
     }
     else
-      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toAscii()), aSectType, false  );
+      aPolylineXY->AddSection( TCollection_AsciiString( ("poly_section_" + QString::number(i)).data()->toLatin1()), aSectType, false  );
     
     if (IsClosed)
       EndIndex--;
@@ -706,7 +706,7 @@ void HYDROData_ShapeFile::GetFreeIndices(std::vector<int>& theAllowedIndexes, QS
 }
 
 int HYDROData_ShapeFile::ImportPolylines(Handle(HYDROData_Document) theDocument, const QString& theFileName, 
-  NCollection_Sequence<Handle_HYDROData_Entity>& theEntities, int& theShapeTypeOfFile)
+  NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities, int& theShapeTypeOfFile)
 {
   //Free();
   int aStat = TryOpenShapeFile(theFileName);
@@ -721,7 +721,7 @@ int HYDROData_ShapeFile::ImportPolylines(Handle(HYDROData_Document) theDocument,
     anExistingNames.push_back(anIter.Current()->GetName());
 
   SHPHandle aHSHP;
-  aHSHP = SHPOpen( theFileName.toAscii().data(), "rb" );
+  aHSHP = SHPOpen( theFileName.toLatin1().data(), "rb" );
   
   QFileInfo aFileInfo(theFileName);
   QString aBaseFileName = aFileInfo.baseName();
@@ -832,9 +832,9 @@ int HYDROData_ShapeFile::TryOpenShapeFile(QString theFileName)
     return -3;
 
   FILE* pFileSHP = NULL;
-  pFileSHP = fopen (aSHPfile.toAscii().data(), "r");
+  pFileSHP = fopen (aSHPfile.toLatin1().data(), "r");
   FILE* pFileSHX = NULL;
-  pFileSHX = fopen (aSHXfile.toAscii().data(), "r");
+  pFileSHX = fopen (aSHXfile.toLatin1().data(), "r");
 
   if (pFileSHP == NULL || pFileSHX == NULL)
   {
@@ -855,7 +855,7 @@ bool HYDROData_ShapeFile::CheckDBFFileExisting(const QString& theSHPFilePath, QS
   QString aSHPfile = theSHPFilePath.simplified();
   QString aDBFfile = theSHPFilePath.simplified().replace( theSHPFilePath.simplified().size() - 4, 4, ".dbf");
   FILE* pFileDBF = NULL;
-  pFileDBF = fopen (aDBFfile.toAscii().data(), "r");
+  pFileDBF = fopen (aDBFfile.toLatin1().data(), "r");
 
   if (pFileDBF == NULL)
   {
@@ -870,7 +870,7 @@ bool HYDROData_ShapeFile::CheckDBFFileExisting(const QString& theSHPFilePath, QS
 
 bool HYDROData_ShapeFile::DBF_OpenDBF(const QString& thePathToDBFFile)
 {
-  myHDBF = DBFOpen( thePathToDBFFile.toAscii().data(), "r" );
+  myHDBF = DBFOpen( thePathToDBFFile.toLatin1().data(), "r" );
   if(myHDBF != NULL)
     return true;
   else
index d74e63d5fa8ccd971d490f8f1912e3f64dd5826f..41f2200f7a4a2530089576407349d80f0c8e19f2 100644 (file)
 #ifndef HYDRODATA_SHAPEFILE_H
 #define HYDRODATA_SHAPEFILE_H
 
-#include <vector>
+#include "HYDROData.h"
+
 #include <NCollection_Sequence.hxx>
+
+#include <TopTools_SequenceOfShape.hxx>
+
 #include <QStringList>
-#include "HYDROData.h"
+
+#include <vector>
+
 
 //extern "C" {
 #include <shapefil.h> 
 //};
 
 class gp_XYZ;
-class Handle_HYDROData_PolylineXY;
-class Handle_HYDROData_Polyline3D;
-class Handle(HYDROData_Document);
-class TopTools_SequenceOfShape;
+class HYDROData_PolylineXY;
+class HYDROData_Polyline3D;
+class HYDROData_Document;
 class TopoDS_Face;
 class TopoDS_Shape;
-class Handle_HYDROData_Entity;
-class Handle_HYDROData_LandCoverMap;
+class HYDROData_Entity;
+class HYDROData_LandCoverMap;
 
 class HYDROData_ShapeFile 
 {
@@ -83,23 +88,23 @@ public:
   //Export operation
   HYDRODATA_EXPORT void Export(Handle(HYDROData_Document) theDocument,
                                const QString& aFileName,
-                               NCollection_Sequence<Handle_HYDROData_PolylineXY> aPolyXYSeq,
-                               NCollection_Sequence<Handle_HYDROData_Polyline3D> aPoly3DSeq,
+                               NCollection_Sequence<Handle(HYDROData_PolylineXY)> aPolyXYSeq,
+                               NCollection_Sequence<Handle(HYDROData_Polyline3D)> aPoly3DSeq,
                                QStringList& aNonExpList);
 
   HYDRODATA_EXPORT void Export(Handle(HYDROData_Document) theDocument,
                                const QString& aFileName,
-                               const Handle_HYDROData_LandCoverMap& aLCM,
+                               const Handle(HYDROData_LandCoverMap)& aLCM,
                                QStringList& aNonExpList,
                                bool bCheckLinear = true,
                                bool bUseDiscr = false, 
                                double theDefl = 0.1);
 
   int WriteObjectPolyXY(Handle(HYDROData_Document) theDocument, SHPHandle theShpHandle,
-                        Handle_HYDROData_PolylineXY thePoly );
+                        Handle(HYDROData_PolylineXY) thePoly );
 
   int WriteObjectPoly3D(Handle(HYDROData_Document) theDocument, SHPHandle theShpHandle,
-                        Handle_HYDROData_Polyline3D thePoly );
+                        Handle(HYDROData_Polyline3D) thePoly );
 
   int WriteObjectPolygon(Handle(HYDROData_Document) theDocument, SHPHandle theShpHandle,
                          const TopoDS_Shape& theInputShape, bool bUseDiscr, double theDefl );
@@ -118,13 +123,14 @@ public:
 
   //Import Polyline
   void ReadSHPPolyXY(Handle(HYDROData_Document) theDocument, SHPObject* anObj, QString theFileName, 
-                     int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities, bool bReadAsPolyline = false);
+                     int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities,
+                     bool bReadAsPolylin = false);
 
   void ReadSHPPoly3D(Handle(HYDROData_Document) theDocument, SHPObject* anObj, QString theFileName, 
-                     int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+                     int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
 
   HYDRODATA_EXPORT int ImportPolylines(Handle(HYDROData_Document) theDocument, const QString& theFileName, 
-                                       NCollection_Sequence<Handle_HYDROData_Entity>& theEntities, int& theShapeTypeOfFile);
+                                       NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities, int& theShapeTypeOfFile);
 
   HYDRODATA_EXPORT QString GetShapeTypeName(int theType);
 
index 92fd7e17d88987d26050ff51a39f6cae9d2d1eba..9db2e01cbc0e4abcbf8a3adbae0b2e89b8674331 100644 (file)
@@ -32,7 +32,6 @@
 #include <ShapeUpgrade_UnifySameDomain.hxx>
 #include <BRepTools_ReShape.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ShapesGroup,HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ShapesGroup,HYDROData_Entity)
 
 void HYDROData_ShapesGroup::GroupDefinition::Update( SeqOfGroupsDefs*          theGroupsDefs,
index 394bf16e3d059f2bc367655103e9dcd4f3554475..71c4c4be0b2a43ab65db25755cabaef5aef9ec82 100644 (file)
 #define HYDROData_ShapesGroup_HeaderFile
 
 #include <HYDROData_Entity.h>
-
 #include <TopTools_SequenceOfShape.hxx>
-
+#include <TopTools_ListOfShape.hxx>
 #include <QString>
 
 class TopoDS_Shape;
-class TopTools_ListOfShape;
 class BRepBuilderAPI_MakeShape;
 class ShapeUpgrade_UnifySameDomain;
 class BRepTools_ReShape;
 
-DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity)
-
 /**\class HYDROData_ShapesGroup
  * \brief Class that stores/retreives the sequence of shapes.
  */
@@ -75,7 +71,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_ShapesGroup);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_ShapesGroup, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 65b9b277fa9c65878d2a002826dd0bc65820864f..53d391db7b3c4931107448dea15c17225ee597d7 100644 (file)
 #include "HYDROData.h"
 
 #include <TopAbs_ShapeEnum.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <TopTools_SequenceOfShape.hxx>
 
 class TopoDS_Shape;
 class TopoDS_Vertex;
 class TopoDS_Edge;
-class TopTools_SequenceOfShape;
-class TopTools_ListOfShape;
 
 class HYDRODATA_EXPORT HYDROData_ShapesTool {
 
index 9fcbef117ca52015ba3832dbf3ba374bef8dbcaa..a18d59eb6e8617732fca8a2eee0705c20a079185 100644 (file)
@@ -43,7 +43,7 @@ HYDROData_SinusX::~HYDROData_SinusX()
 {
 }
 
-void HYDROData_SinusX::CollectExistingNames(Handle_HYDROData_Document theDocument)
+void HYDROData_SinusX::CollectExistingNames(Handle(HYDROData_Document) theDocument)
 {
   HYDROData_Iterator anIter( theDocument );
   int anInd = 0;
@@ -86,7 +86,8 @@ QString HYDROData_SinusX::GetName(const QString& theName)
 }
 
 
-bool HYDROData_SinusX::Import(const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+bool HYDROData_SinusX::Import(const QString& theFilePath, Handle(HYDROData_Document) theDocument,
+  NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 {
   if ( theFilePath.isEmpty() )
   { 
@@ -115,7 +116,7 @@ bool HYDROData_SinusX::Import(const QString& theFilePath, Handle(HYDROData_Docum
 
 }
 
-void HYDROData_SinusX::SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+void HYDROData_SinusX::SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 { 
   for ( size_t i = 0; i < myCurveBlocks.size(); i++ )
   {
@@ -328,7 +329,7 @@ bool HYDROData_SinusX::Parse(QFile& theFile)
 
 }
 
-bool HYDROData_SinusX::Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+bool HYDROData_SinusX::Export(const QString& theFilePath, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 {
   if ( theFilePath.isEmpty() )
   { 
@@ -354,7 +355,7 @@ bool HYDROData_SinusX::Export(const QString& theFilePath, const NCollection_Sequ
 
 }
 
-void HYDROData_SinusX::HydroToSX(QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+void HYDROData_SinusX::HydroToSX(QFile& theFile, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 {
   QTextStream aTextStream(&theFile);
   aTextStream << "C  Generated by HYDRO Module\n";
@@ -362,7 +363,7 @@ void HYDROData_SinusX::HydroToSX(QFile& theFile, const NCollection_Sequence<Hand
 
   for (int i = 1; i <= theEntities.Size(); i++)
   {
-    Handle_HYDROData_Entity anEnt = theEntities.Value(i);
+    Handle(HYDROData_Entity) anEnt = theEntities.Value(i);
     if (anEnt->IsKind( STANDARD_TYPE(HYDROData_Bathymetry) ))
     {
       Handle(HYDROData_Bathymetry) aBathy = Handle(HYDROData_Bathymetry)::DownCast( anEnt );
index b2f6a8e6881b57a8fa18dfc195240afcf06e3ddf..03899572d0bb9013bb3c9aa58608f11191918020 100644 (file)
@@ -27,8 +27,8 @@
 
 class QFile;
 class gp_XYZ;
-class Handle_HYDROData_Entity;
-class Handle_HYDROData_Document;
+class HYDROData_Entity;
+class HYDROData_Document;
 
 struct HYDROGUI_CurveBlock
 {
@@ -51,15 +51,15 @@ class HYDRODATA_EXPORT HYDROData_SinusX
 public:
   HYDROData_SinusX( );
   virtual ~HYDROData_SinusX();
-  bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
-  bool Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
+  bool Export(const QString& theFilePath, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
   
 private:
-  void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
   bool Parse( QFile& theFile );
-  void CollectExistingNames(Handle_HYDROData_Document theDocument);
+  void CollectExistingNames(Handle(HYDROData_Document) theDocument);
   QString GetName(const QString& theName);
-  void HydroToSX( QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+  void HydroToSX( QFile& theFile, const NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
 
 private:
 
index a73b11cb8966efefafb4cd6213f8be2ed3e7d0e3..674f9f0f54b412d0a5ddc3f758a66c87ffb134ae 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "HYDROData_SplitShapesGroup.h"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_SplitShapesGroup,HYDROData_ShapesGroup)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_SplitShapesGroup,HYDROData_ShapesGroup)
 
 HYDROData_SplitShapesGroup::HYDROData_SplitShapesGroup()
index b6812301e38c2d3c80d1fd0999568b1f518944a9..250433889e628945b84afc19bb86f06f82eae3a6 100644 (file)
@@ -21,9 +21,6 @@
 
 #include <HYDROData_ShapesGroup.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_SplitShapesGroup, HYDROData_ShapesGroup)
-
-
 /**\class HYDROData_SplitShapesGroup
  * \brief Class that stores/retreives the sequence of split shapes.
  */
@@ -40,7 +37,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_SplitShapesGroup);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_SplitShapesGroup, HYDROData_ShapesGroup);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 367b22cdcf10512743edbd57c142d6eb3ba11475..2e3b87111e4f786544a882228b2ad39e0773833b 100644 (file)
@@ -36,7 +36,7 @@
 #include <QStringList>
 #include <NCollection_DataMap.hxx>
 
-class Handle(HYDROData_PolylineXY);
+class HYDROData_PolylineXY;
 
 /**
  * \class HYDROData_SplitToZonesTool
index 9ffb8596baf5fefd6cc93515cf0bf13e63b874ea..3ecb3e779857587c501eccf20aad1fc2705bd0ff 100644 (file)
@@ -39,7 +39,6 @@
 #include <TColStd_Array1OfReal.hxx>
 #include <TColStd_ListOfReal.hxx>
 #include <TColStd_ListIteratorOfListOfReal.hxx>
-#include <TCollection_CompareOfReal.hxx>
 #include <TColgp_Array1OfPnt.hxx>
 #include <TColgp_HArray1OfPnt.hxx>
 
 #include <TopTools_SequenceOfShape.hxx>
 #include <TopTools_IndexedMapOfShape.hxx>
 
-#include <SortTools_QuickSortOfReal.hxx>
-
 #include <QColor>
 #include <QStringList>
+#include <QVector>
 
 //#define DEB_STREAM 1
 #ifdef DEB_STREAM
@@ -98,7 +96,6 @@
 
 typedef NCollection_DataMap<Standard_Real, Handle(HYDROData_Profile)> HYDROData_DataMapOfRealOfHDProfile;
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Stream,HYDROData_NaturalObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Stream,HYDROData_NaturalObject)
 
 
@@ -187,7 +184,7 @@ void HYDROData_Stream::Update()
     }
   }
 
-  Handle_HYDROData_DTM dtm = DTM();
+  Handle(HYDROData_DTM) dtm = DTM();
   dtm->Update();
   UpdatePrs( dtm );
 
@@ -199,7 +196,7 @@ bool HYDROData_Stream::IsHas2dPrs() const
   return true;
 }
 
-bool HYDROData_Stream::CreatePresentations( const Handle_HYDROData_DTM& theDTM,
+bool HYDROData_Stream::CreatePresentations( const Handle(HYDROData_DTM)& theDTM,
                                             PrsDefinition&              thePrs )
 {
   if ( theDTM.IsNull() )
@@ -245,7 +242,7 @@ bool HYDROData_Stream::CreatePresentations( const Handle_HYDROData_DTM& theDTM,
   return true;
 }
 
-void HYDROData_Stream::UpdatePrs( const Handle_HYDROData_DTM& theDTM )
+void HYDROData_Stream::UpdatePrs( const Handle(HYDROData_DTM)& theDTM )
 {
   HYDROData_NaturalObject::Update();
   
@@ -330,7 +327,7 @@ TopoDS_Shape HYDROData_Stream::GetOutletShape() const
   return HYDROData_Tool::getFirstShapeFromGroup( aGroups, 4);
 }
 
-Handle_HYDROData_DTM HYDROData_Stream::DTM() const
+Handle(HYDROData_DTM) HYDROData_Stream::DTM() const
 {
   const_cast<HYDROData_Stream*>( this )->checkAndSetAltitudeObject();
   return Handle(HYDROData_DTM)::DownCast( GetAltitudeObject() );
@@ -714,20 +711,21 @@ void HYDROData_Stream::updateProfilesOrder()
   if ( aList.IsEmpty() )
     return;
 
-  TColStd_Array1OfReal anArr( 1, aList.Extent() );
+  QVector<double> anArr( aList.Extent() );
 
   TColStd_ListIteratorOfListOfReal it( aList );
   for ( int j = 1; it.More(); it.Next(), j++ )
-    anArr( j ) = it.Value();
+    anArr[j-1] = it.Value();
 
   // sorting
   if ( aList.Extent() > 1 )
   {
-    TCollection_CompareOfReal Compar;
-    SortTools_QuickSortOfReal::Sort( anArr, Compar );
+    //TCollection_CompareOfReal Compar;
+    //SortTools_QuickSortOfReal::Sort( anArr, Compar );
+    std::sort( anArr.begin(), anArr.end() );
 
-    for (int j = 1; j <= anArr.Length(); j++) {
-      const Standard_Real aKey =  anArr(j);
+    for (int j = 1; j <= anArr.size(); j++) {
+      const Standard_Real aKey =  anArr[j-1];
       const Handle(HYDROData_Profile)& aProfile = aDM.Find(aKey);
       insertProfileInToOrder( aProfile );
     }
@@ -751,9 +749,9 @@ ObjectKind HYDROData_Stream::getAltitudeObjectType() const
   return KIND_DTM;
 }
 
-void HYDROData_Stream::setParametersArray( const TColStd_Array1OfReal& theArray )
+void HYDROData_Stream::setParametersArray( const QVector<double>& theArray )
 {
-  if ( theArray.Length() == 0 )
+  if ( theArray.size() == 0 )
   {
     removeParametersArray();
     return;
@@ -761,13 +759,13 @@ void HYDROData_Stream::setParametersArray( const TColStd_Array1OfReal& theArray
 
   TDF_Label aLabel = myLab.FindChild( DataTag_ParamsArray );
   
+  int n = theArray.size();
   Handle(TDataStd_RealArray) aParamsArray = 
-    TDataStd_RealArray::Set( aLabel, theArray.Lower(), theArray.Upper() );
-
-  for ( int i = theArray.Lower(), n = theArray.Upper(); i <= n; ++i )
+    TDataStd_RealArray::Set( aLabel, 1, n );
+  for ( int i = 0; i < n; ++i )
   {
-    const Standard_Real& aParam = theArray( i );
-    aParamsArray->SetValue( i, aParam );
+    const Standard_Real& aParam = theArray[i];
+    aParamsArray->SetValue( i+1, aParam );
   }
 }
 
@@ -809,7 +807,7 @@ int HYDROData_Stream::insertParameter( const Standard_Real& theParam )
   {
     aResIndex = 0;
 
-    TColStd_Array1OfReal aNewArr( anArr->Lower(), anArr->Upper() + 1 );
+    QVector<double> aNewArr( anArr->Upper() );
 
     bool isInserted = false;
     for ( int i = anArr->Lower(), j = i, n = anArr->Upper(); i <= n; ++i, ++j )
@@ -823,19 +821,19 @@ int HYDROData_Stream::insertParameter( const Standard_Real& theParam )
         }
         else
         {
-          aNewArr( j ) = theParam;
+          aNewArr[j-1] = theParam;
           isInserted = true;
           ++j;
         }
       }
 
-      aNewArr( j ) = aStoredParam;
+      aNewArr[j-1] = aStoredParam;
     }
 
     if ( !isInserted )
     {
       aResIndex = -1;
-      aNewArr( aNewArr.Upper() ) = theParam;
+      aNewArr[aNewArr.size()-1] = theParam;
     }
     
     setParametersArray( aNewArr );
@@ -843,8 +841,8 @@ int HYDROData_Stream::insertParameter( const Standard_Real& theParam )
   }
   else
   {
-    TColStd_Array1OfReal aNewArr( 1, 1 );
-    aNewArr.SetValue( 1, theParam );
+    QVector<double> aNewArr( 1 );
+    aNewArr[0] = theParam;
     setParametersArray( aNewArr );
   }
 
@@ -867,7 +865,7 @@ void HYDROData_Stream::removeParameter( const int& theIndex )
     return;
   }
 
-  TColStd_Array1OfReal aNewArr( aParamsArray->Lower(), aParamsArray->Upper() - 1 );
+  QVector<double> aNewArr( aParamsArray->Upper() - 2 );
 
   for ( int i = aParamsArray->Lower(), j = i, k = 0, n = aParamsArray->Upper(); i <= n; ++i, ++k )
   {
@@ -875,7 +873,7 @@ void HYDROData_Stream::removeParameter( const int& theIndex )
     if ( k == theIndex )
       continue;
 
-    aNewArr.SetValue( j, aStoredParam );
+    aNewArr[j-1] = aStoredParam;
     ++j;
   }
 
@@ -1124,4 +1122,4 @@ void HYDROData_Stream::CreatePresentations( const Handle(TColgp_HArray1OfPnt)
   thePrs.myOutlet = TopoDS::Wire(LS(3));  
   thePrs.myRightBank = TopoDS::Wire(LS(4));
 
-}
\ No newline at end of file
+}
index 0eb6cde9e060ca71c0a8e726ead3ca2706592410..923c23f55fe73a390c9809a133781348a4d08793 100644 (file)
 #include <Geom_BSplineCurve.hxx>
 #include <vector>
 
-DEFINE_STANDARD_HANDLE(HYDROData_Stream, HYDROData_NaturalObject)
-
-class Handle(HYDROData_PolylineXY);
-class Handle(HYDROData_Polyline3D);
-class Handle(HYDROData_Profile);
+class HYDROData_DTM;
+class HYDROData_PolylineXY;
+class HYDROData_Polyline3D;
+class HYDROData_Profile;
 class HYDROData_IProfilesInterpolator;
-class TColStd_Array1OfReal;
-class Handle(TopTools_HArray1OfShape);
-class Handle_HYDROData_DTM;
-class TopTools_ListOfShape;
+class TopTools_HArray1OfShape;
 
 
 /**\class HYDROData_Stream
@@ -72,16 +68,15 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Stream);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Stream, HYDROData_NaturalObject);
 
 public:
 
   /**
    * Creates the presentations(2D and 3D) by given hydraulic axis and profiles.
    */
-  HYDRODATA_EXPORT static bool CreatePresentations( const Handle_HYDROData_DTM& theDTM,
-                                                    PrsDefinition&              thePrs );
+  HYDRODATA_EXPORT static bool CreatePresentations( const Handle(HYDROData_DTM)& theDTM,
+                                                    PrsDefinition&               thePrs );
 
   HYDRODATA_EXPORT static void CreatePresentations( const Handle(TColgp_HArray1OfPnt)     theArrayOfFPnt,
                                                     const Handle(TColgp_HArray1OfPnt)     theArrayOfLPnt,
@@ -120,7 +115,7 @@ public:
   /**
    * Update the shape presentations of stream.
    */
-  HYDRODATA_EXPORT void UpdatePrs( const Handle_HYDROData_DTM& );
+  HYDRODATA_EXPORT void UpdatePrs( const Handle(HYDROData_DTM)& );
 
   /**
    *
@@ -296,7 +291,7 @@ protected:
 
 private:
   
-  void setParametersArray( const TColStd_Array1OfReal& theArray );
+  void setParametersArray( const QVector<double>& theArray );
 
   TColStd_Array1OfReal* getParametersArray() const;
 
@@ -306,7 +301,7 @@ private:
 
   void removeParameter( const int& theIndex );
 
-  Handle_HYDROData_DTM DTM() const;
+  Handle(HYDROData_DTM) DTM() const;
 
 
 protected:
index 7ab98d3f8a44815301806af7d96009bddded361f..2360eddd0fce93aa735dd9b99d12bfe530995f6e 100644 (file)
@@ -61,7 +61,7 @@
 #include <BRep_Builder.hxx>
 #include <BRepBuilderAPI_MakeVertex.hxx>
 #endif
-IMPLEMENT_STANDARD_HANDLE(HYDROData_StreamAltitude, HYDROData_IAltitudeObject)
+
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_StreamAltitude, HYDROData_IAltitudeObject)
 
 HYDROData_StreamAltitude::HYDROData_StreamAltitude()
index 77bf0b2afa8cb36769fa2c7f6b4c3e4d4912119b..25bd528e3429abd63cd6ec31883a16dea0317db1 100644 (file)
@@ -23,8 +23,6 @@
 #include "HYDROData_IAltitudeObject.h"
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_StreamAltitude, HYDROData_IAltitudeObject)
-
 class TopoDS_Wire;
 
 /**\class HYDROData_StreamAltitude
@@ -45,7 +43,7 @@ protected:
 
 public:
 
-  DEFINE_STANDARD_RTTI(HYDROData_StreamAltitude);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_StreamAltitude, HYDROData_IAltitudeObject);
 
   /**
    * Returns the kind of this object. 
index 6cf7c2ccf88ae4cdd923f3e31f14c37abcf39bf3..1c51cf1e49f3849312becdd6ba28145b8894bb8b 100644 (file)
@@ -38,7 +38,6 @@
 #include <QFile>
 #include <QTextStream>
 
-IMPLEMENT_STANDARD_HANDLE( HYDROData_StricklerTable, HYDROData_Entity )
 IMPLEMENT_STANDARD_RTTIEXT( HYDROData_StricklerTable, HYDROData_Entity )
 
 HYDROData_StricklerTable::HYDROData_StricklerTable()
index f50f4546e6303a21b162c6b7ed722da059d3b4a7..de409785d67571b276aa9650ba49a4b49abf2531 100644 (file)
@@ -23,9 +23,7 @@
 
 #include <TColStd_SequenceOfExtendedString.hxx>
 
-class Handle( TDataStd_NamedData );
-
-DEFINE_STANDARD_HANDLE( HYDROData_StricklerTable, HYDROData_Entity )
+class TDataStd_NamedData;
 
 class HYDROData_StricklerTable : public HYDROData_Entity
 {
@@ -42,7 +40,7 @@ protected:
   HYDRODATA_EXPORT ~HYDROData_StricklerTable();
 
 public:
-  DEFINE_STANDARD_RTTI( HYDROData_StricklerTable );
+  DEFINE_STANDARD_RTTIEXT( HYDROData_StricklerTable, HYDROData_Entity );
 
   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const;
 
index e8fd7967bf0c23ad11f9f511a346fc59b6a5c53e..69afafa6893e10b24941ebfd7b5ef1ad80b60cd4 100644 (file)
@@ -23,8 +23,8 @@
 #include <QStringList>
 #include <Precision.hxx>
 
-class Handle_HYDROData_Document;
-class Handle_HYDROData_Entity;
+class HYDROData_Document;
+class HYDROData_Entity;
 class HYDROData_SequenceOfObjects;
 class MapOfTreatedObjects;
 class gp_XY;
@@ -40,7 +40,6 @@ class TopoDS_Edge;
 class TopoDS_Face;
 class TopoDS_Shape;
 class TopoDS_Wire;
-class TopTools_SequenceOfShape;
 class Quantity_Color;
 
 class HYDRODATA_EXPORT HYDROData_Tool {
@@ -59,7 +58,7 @@ public:
    * \param theIsTryToUsePurePrefix if true - the prefix will be returned if the name equal to the prefix is not busy
    * \return generated name
    */
-  static QString                        GenerateObjectName( const Handle_HYDROData_Document& theDoc,
+  static QString GenerateObjectName( const Handle(HYDROData_Document)& theDoc,
                                                             const QString&                   thePrefix,
                                                             const QStringList&               theUsedNames = QStringList(),
                                                             const bool                       theIsTryToUsePurePrefix = false );
@@ -69,7 +68,7 @@ public:
    * \param theObject object to check
    * \return true if object is geometry object
    */
-  static bool                           IsGeometryObject( const Handle_HYDROData_Entity& theObject );
+  static bool                           IsGeometryObject( const Handle(HYDROData_Entity)& theObject );
 
   /**
    * \brief Updates the child object name.
@@ -79,7 +78,7 @@ public:
    */
   static void                           UpdateChildObjectName( const QString&                  theOldStr,
                                                                const QString&                  theNewStr,
-                                                               const Handle_HYDROData_Entity& theObject );
+                                                               const Handle(HYDROData_Entity)& theObject );
 
 
   /**
index e85b7550381a6064b67211f4e5193e32f017bba8..5bba3b28faa2ecee23acdb9e8920ee7dbddb3953 100644 (file)
@@ -20,7 +20,7 @@
 #define HYDRODATA_TOPOCURVE_H
 
 #include <deque>
-#include <Handle_Geom_BSplineCurve.hxx>
+#include <Geom_BSplineCurve.hxx>
 #include <HYDROData.h>
 #include <list>
 #include <TopExp.hxx>
index e7d8ff79529ffb5e03bf33c67669db9f120ce1fc..48d8ba1ec91f4bb34f5c7782e57ac979c22ca6be 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <TDataStd_AsciiString.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_VisualState, HYDROData_Entity)
 
 HYDROData_VisualState::HYDROData_VisualState()
index 49890c1f15dd6c31c4bc51bdab1ce0571f4964f5..ea694a9b3f593b9a9959f958f118d52253a87308 100644 (file)
@@ -21,8 +21,6 @@
 
 #include <HYDROData_Entity.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_VisualState, HYDROData_Entity)
-
 /**\class HYDROData_VisualState
  * \brief Class that stores/retreives information about the visual state.
  *
@@ -41,7 +39,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_VisualState);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_VisualState, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index 6f247eddc32f07a68190252993d20c8f155effff..3e45fb89074b0b16282d6aa17b23dbc463623c03 100644 (file)
@@ -29,7 +29,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Zone, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Zone, HYDROData_Entity)
 
 
@@ -147,8 +146,7 @@ void HYDROData_Zone::SetMergeObject( const Handle(HYDROData_Entity)& theObject )
 
 Handle(HYDROData_Entity) HYDROData_Zone::GetMergeObject() const
 {
-  return Handle(HYDROData_Entity)::DownCast( 
-           GetReferenceObject( DataTag_MergeObject ) );
+  return GetReferenceObject( DataTag_MergeObject );
 }
 
 void HYDROData_Zone::RemoveMergeObject()
index cde3b789a8f0a2a7facef4709c4ea50a23d2e982..2ed80acccd52fb4597e844a5bbc540d5d34d7434 100644 (file)
 #include "HYDROData_Entity.h"
 #include "HYDROData_IInterpolator.h"
 
-class Handle(HYDROData_LandCover);
+class HYDROData_LandCover;
 class TopoDS_Shape;
 
-DEFINE_STANDARD_HANDLE(HYDROData_Zone, HYDROData_Entity)
-
 
 /**\class HYDROData_Zone
  * \brief Class that stores/retreives information about the 2d face.
@@ -35,7 +33,6 @@ class HYDROData_Zone : public HYDROData_Entity
 {
 
 public:
-
   // Enumeration of mergin types for conflict altitudes/types
   enum MergeType
   {
@@ -59,7 +56,7 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Zone);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Zone, HYDROData_Entity);
 
   /**
    * Returns the kind of this object. Must be redefined in all objects of known type.
index bcb457a4c9c59e9e471844a8da893b4bb040a05c..96cbffbcee1054708d25b9e46258e1e967bee620 100644 (file)
@@ -1,6 +1,7 @@
 include(../../CMake/Common.cmake)
 include(../../CMake/UseQT4EXT.cmake)
+INCLUDE(UseQtExt)
+
 set(PROJECT_HEADERS 
     HYDROGUI.h
     HYDROGUI_AbstractDisplayer.h
@@ -145,7 +146,7 @@ set(PROJECT_HEADERS
     HYDROGUI_TransparencyDlg.h
 )
 
-QT4_WRAP_CPP(PROJECT_HEADERS_MOC ${PROJECT_HEADERS})
+QT_WRAP_MOC(PROJECT_HEADERS_MOC ${PROJECT_HEADERS})
 
 set(PROJECT_SOURCES 
     HYDROGUI_AbstractDisplayer.cxx
@@ -208,6 +209,7 @@ set(PROJECT_SOURCES
     HYDROGUI_Operations.cxx
     HYDROGUI_Poly3DDlg.cxx
     HYDROGUI_Poly3DOp.cxx
+    HYDROGUI_Polyline.cxx
     HYDROGUI_PolylineDlg.cxx
     HYDROGUI_PolylineOp.cxx
     HYDROGUI_ProfileDlg.cxx
@@ -226,7 +228,6 @@ set(PROJECT_SOURCES
     HYDROGUI_Region.cxx
     HYDROGUI_RemoveImageRefsOp.cxx
     HYDROGUI_Shape.cxx
-    HYDROGUI_Polyline.cxx
     HYDROGUI_ShapeBathymetry.cxx
     HYDROGUI_ShapeImage.cxx
     HYDROGUI_ShapeLandCoverMap.cxx
index 162e44cd68a2ced78d62c6dcd6473566789899e8..e714a2e68b31d88c3c0e5070151ce69f66842bd3 100644 (file)
@@ -20,9 +20,8 @@
 #include <AIS_DisplayMode.hxx>
 #include <Prs3d_IsoAspect.hxx>
 #include <Prs3d_LineAspect.hxx>
-#include <StdPrs_WFDeflectionShape.hxx>
+#include <StdPrs_WFShape.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROGUI_AISShape, AIS_Shape)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_AISShape, AIS_Shape)
 
 HYDROGUI_AISShape::HYDROGUI_AISShape( const TopoDS_Shape& theShape )
@@ -70,5 +69,5 @@ void HYDROGUI_AISShape::Compute( const Handle(PrsMgr_PresentationManager3d)& the
   }
 
   if( theMode==AIS_Shaded )
-    StdPrs_WFDeflectionShape::Add( thePresentation, Shape(), myDrawer );
+    StdPrs_WFShape::Add( thePresentation, Shape(), myDrawer );
 }
index 7353dcb50fcb11104a80cf1b8d67ea711c787b04..91fa4fa2044e74d6397b3b8c4bc16640f8ec43bd 100644 (file)
 
 #include <AIS_Shape.hxx>
 
-DEFINE_STANDARD_HANDLE(HYDROGUI_AISShape, AIS_Shape)
-
 class HYDROGUI_AISShape : public AIS_Shape
 {
 public:
-  DEFINE_STANDARD_RTTI(HYDROGUI_AISShape);
+  DEFINE_STANDARD_RTTIEXT(HYDROGUI_AISShape, AIS_Shape);
 
   HYDROGUI_AISShape( const TopoDS_Shape& );
   virtual ~HYDROGUI_AISShape();
index 3642aaa88fedf61912cdb1156fc55eaf3c267d4d..7995997147290ca152fe2d60de5545319e7734ea 100644 (file)
@@ -79,9 +79,9 @@ void HYDROGUI_AISTrihedron::ComputeAxis( const Handle(Prs3d_Presentation)& thePr
                                    theParams.myPfirst, theParams.myPlast );
 }
 
-void HYDROGUI_AISTrihedron::Compute(const Handle_Prs3d_Projector& aProjector,
-                                    const Handle_Geom_Transformation& aTransformation,
-                                    const Handle_Prs3d_Presentation& aPresentation)
+void HYDROGUI_AISTrihedron::Compute(const Handle(Prs3d_Projector)& aProjector,
+                                    const Handle(Geom_Transformation)& aTransformation,
+                                    const Handle(Prs3d_Presentation)& aPresentation)
 {
 }
 
index b8c13235e09574aedd90eac5756883b76e935b3f..8722c5089aff6018f1b47e967de0ba1516526101 100644 (file)
@@ -31,7 +31,6 @@
  * \brief AIS trihedron is redefined in order to show U text on the OX axis
  * and Z text on the OY axis.
  */
-DEFINE_STANDARD_HANDLE(HYDROGUI_AISTrihedron, AIS_Trihedron)
 
 class HYDROGUI_AISTrihedron : public AIS_Trihedron
 {
@@ -86,9 +85,9 @@ public:
    * \param theTransformation the transformation
    * \param thePresentationManager the presentation
    */
-  void Compute( const Handle_Prs3d_Projector& theProjector,
-                const Handle_Geom_Transformation& theTransformation,
-                const Handle_Prs3d_Presentation& thePresentation );
+  void Compute( const Handle(Prs3d_Projector)& theProjector,
+                const Handle(Geom_Transformation)& theTransformation,
+                const Handle(Prs3d_Presentation)& thePresentation );
 
   /**
    * AIS trihedron compute selection method. It is empty. We do not select the trihedron
index 2d2f03b75b281a34378fa8ddf4289222a96d13b8..36b111ec0243fc90a6d813dd0b26dd450b9271d1 100644 (file)
@@ -52,7 +52,7 @@ void HYDROGUI_BathymetryBoundsOp::startOperation()
 bool HYDROGUI_BathymetryBoundsOp::processApply( int& theUpdateFlags, QString& theErrorMsg,
                                                 QStringList& theBrowseObjectsEntries )
 {
-  Handle_HYDROData_PolylineXY aPolyline = myBath->CreateBoundaryPolyline();
+  Handle(HYDROData_PolylineXY) aPolyline = myBath->CreateBoundaryPolyline();
   bool isOK = !aPolyline.IsNull();
   theUpdateFlags = 0;
   if( isOK ) {
index 778ac4311666fb01038a44833c13200a089a1ba7..1133fcb18dfe23ac9d75924a4559c0de2d4e3187 100644 (file)
@@ -671,7 +671,7 @@ QStringList HYDROGUI_CalculationDlg::getSelectedAvailableGeomObjects() const
 void HYDROGUI_CalculationDlg::setEditedObject( const Handle(HYDROData_CalculationCase) theCase )
 {
   myEditedObject = theCase;
-  myValidator->setEditedObject( theCase );
+  myValidator->setEditedObject( myEditedObject );
 
   // Build the calculation case subtree
   module()->getDataModel()->buildCaseTree( myBrowser->root(), myEditedObject);
index 6200d72cb53b03257694069177c91c9365a76cf9..134c3bd0b2996beb4d13914db545b34c115e382b 100644 (file)
@@ -1276,7 +1276,7 @@ void HYDROGUI_CalculationOp::createPreview( const bool theLandCoverMap )
       HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
       for ( ; anIter.More(); anIter.Next() )
       {
-        const Handle_HYDROData_Entity& ent = anIter.Value();
+        const Handle(HYDROData_Entity)& ent = anIter.Value();
         if (!ent.IsNull())
           setObjectVisibility( ent, true );
       }
@@ -1371,11 +1371,11 @@ void HYDROGUI_CalculationOp::setAvailableGroups()
   HYDROData_SequenceOfObjects anObjs = myEditedObject->GetGeometryObjects();
   for( int anIndex = 1, aLength = anObjs.Length(); anIndex <= aLength; anIndex++ )
   {
-    Handle_HYDROData_Object anObj = Handle_HYDROData_Object::DownCast( anObjs.Value( anIndex ) );
+    Handle(HYDROData_Object) anObj = Handle(HYDROData_Object)::DownCast( anObjs.Value( anIndex ) );
     HYDROData_SequenceOfObjects aGroups = anObj->GetGroups();
     for( int aGIndex = 1, aGLength = aGroups.Length(); aGIndex <= aGLength; aGIndex++ )
     {
-      Handle_HYDROData_ShapesGroup aGroup = Handle_HYDROData_ShapesGroup::DownCast( aGroups.Value( aGIndex ) );
+      Handle(HYDROData_ShapesGroup) aGroup = Handle(HYDROData_ShapesGroup)::DownCast( aGroups.Value( aGIndex ) );
       aGroupsNames.append( aGroup->GetName() );
     }
   }
index eb5f2539e9528b890fa1fa61dd49f6743b6bd33f..66eec4f6f2873b067adee2bb296915a4afc3e624 100644 (file)
@@ -277,7 +277,7 @@ HYDROGUI_DataBrowser::HYDROGUI_DataBrowser( HYDROGUI_Module* theModule,
   // Create OBSelector
   new HYDROGUI_OBSelector( this, theModule->getApp()->selectionMgr() );
 
-  treeView()->header()->setResizeMode(SUIT_DataObject::VisibilityId, QHeaderView::Fixed);
+  treeView()->header()->setSectionResizeMode(SUIT_DataObject::VisibilityId, QHeaderView::Fixed);
   treeView()->header()->moveSection(SUIT_DataObject::NameId,SUIT_DataObject::VisibilityId);
   treeView()->setColumnWidth(SUIT_DataObject::VisibilityId, VISIBILITY_COLUMN_WIDTH);
   treeView()->hideColumn( SUIT_DataObject::VisibilityId );
index 8968fad7be8a87e9c08e1e37aea0f3b9269725f1..232475f98c35d56bac2d1376cba909d51be4ce14 100644 (file)
@@ -270,40 +270,40 @@ void HYDROGUI_DataModel::update( const int theStudyId )
   // Create root objects:
 
   // IMAGES
-  LightApp_DataObject* anImageRootObj = createObject( aNewRootObj, tr( partitionName( KIND_IMAGE ).toAscii() ) );
+  LightApp_DataObject* anImageRootObj = createObject( aNewRootObj, tr( partitionName( KIND_IMAGE ).toLatin1() ) );
 
   // BATHYMETRY
-  LightApp_DataObject* aBathymetryRootObj = createObject( aNewRootObj, tr( partitionName( KIND_BATHYMETRY ).toAscii() ) );
+  LightApp_DataObject* aBathymetryRootObj = createObject( aNewRootObj, tr( partitionName( KIND_BATHYMETRY ).toLatin1() ) );
 
   // POLYLINES
-  LightApp_DataObject* aPolylineRootObj = createObject( aNewRootObj, tr( partitionName( KIND_POLYLINEXY ).toAscii() ) );
+  LightApp_DataObject* aPolylineRootObj = createObject( aNewRootObj, tr( partitionName( KIND_POLYLINEXY ).toLatin1() ) );
 
   // PROFILES
-  LightApp_DataObject* aProfileRootObj = createObject( aNewRootObj, tr( partitionName( KIND_PROFILE ).toAscii() ) );
+  LightApp_DataObject* aProfileRootObj = createObject( aNewRootObj, tr( partitionName( KIND_PROFILE ).toLatin1() ) );
 
   // POLYLINES 3D
-  LightApp_DataObject* aPolyline3DRootObj = createObject( aNewRootObj, tr( partitionName( KIND_POLYLINE ).toAscii() ) );
+  LightApp_DataObject* aPolyline3DRootObj = createObject( aNewRootObj, tr( partitionName( KIND_POLYLINE ).toLatin1() ) );
 
   // NATURAL OBJECTS
-  LightApp_DataObject* aNaturalObjectsRootObj = createObject( aNewRootObj, tr( partitionName( KIND_NATURAL_OBJECT ).toAscii() ) );
+  LightApp_DataObject* aNaturalObjectsRootObj = createObject( aNewRootObj, tr( partitionName( KIND_NATURAL_OBJECT ).toLatin1() ) );
 
   // ARTIFICIAL OBJECTS
-  LightApp_DataObject* anArtificialObjectsRootObj = createObject( aNewRootObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toAscii() ) );
+  LightApp_DataObject* anArtificialObjectsRootObj = createObject( aNewRootObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toLatin1() ) );
 
   // OBSTACLES
-  LightApp_DataObject* anObstaclesRootObj = createObject( aNewRootObj, tr( partitionName( KIND_OBSTACLE ).toAscii() ) );
+  LightApp_DataObject* anObstaclesRootObj = createObject( aNewRootObj, tr( partitionName( KIND_OBSTACLE ).toLatin1() ) );
 
   // STRICKLER TABLES
-  LightApp_DataObject* aStricklerTablesRootObj = createObject( aNewRootObj, tr( partitionName( KIND_STRICKLER_TABLE ).toAscii() ) );
+  LightApp_DataObject* aStricklerTablesRootObj = createObject( aNewRootObj, tr( partitionName( KIND_STRICKLER_TABLE ).toLatin1() ) );
 
   // LAND COVER MAPS
-  LightApp_DataObject* aLandCoversRootObj = createObject( aNewRootObj, tr( partitionName( KIND_LAND_COVER_MAP ).toAscii() ) );
+  LightApp_DataObject* aLandCoversRootObj = createObject( aNewRootObj, tr( partitionName( KIND_LAND_COVER_MAP ).toLatin1() ) );
 
   // CALCULATION CASES
-  LightApp_DataObject* aCalculRootObj = createObject( aNewRootObj, tr( partitionName( KIND_CALCULATION ).toAscii() ) );
+  LightApp_DataObject* aCalculRootObj = createObject( aNewRootObj, tr( partitionName( KIND_CALCULATION ).toLatin1() ) );
 
   // VISUAL STATES
-  LightApp_DataObject* aVisualStateRootObj = createObject( aNewRootObj, tr( partitionName( KIND_VISUAL_STATE ).toAscii() ) );
+  LightApp_DataObject* aVisualStateRootObj = createObject( aNewRootObj, tr( partitionName( KIND_VISUAL_STATE ).toLatin1() ) );
 
   int aNoStricklerTableObj = 0;
   HYDROData_Iterator anIterator( aDocument, KIND_UNKNOWN );
@@ -964,10 +964,10 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent,
       createObject( aPolylineSect, aPolyline, aGuiObj->entry(), false );
 
     LightApp_DataObject* aCaseAOSect = 
-      createObject( aGuiObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toAscii() ),
+      createObject( aGuiObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toLatin1() ),
                     aGuiObj->entry() );
     LightApp_DataObject* aCaseNOSect = 
-      createObject( aGuiObj, tr( partitionName( KIND_NATURAL_OBJECT ).toAscii() ),
+      createObject( aGuiObj, tr( partitionName( KIND_NATURAL_OBJECT ).toLatin1() ),
                     aGuiObj->entry() );
 
     HYDROData_SequenceOfObjects aSeq = aCaseObj->GetGeometryObjects();
index 8ec9658dab3b3c3120276eaca84a192d9b5e15f6..890e29a9b62441aaf0e15f14a286ab519bf246d5 100644 (file)
@@ -161,7 +161,7 @@ QPixmap HYDROGUI_DataObject::icon( const int theId ) const
           anObjectKind = aFatherObj->GetKind();
       }
 
-      anIcon = QObject::tr( QString("HYDRO_%1TYPE%2_ICO").arg( aNeedUpdate ).arg( anObjectKind ).toAscii() );
+      anIcon = QObject::tr( QString("HYDRO_%1TYPE%2_ICO").arg( aNeedUpdate ).arg( anObjectKind ).toLatin1() );
     }
 
     return aResMgr->loadPixmap( "HYDRO", anIcon );
index 76cbf0dc732f91e297675c0ba3a0890dd2b056be..cf1565cfff4ba533c3a6ba2b6b764feaaa316b4c 100644 (file)
@@ -48,9 +48,9 @@
 #include <TopoDS_Edge.hxx>
 #include <BRep_Tool.hxx>
 #include <Precision.hxx>
-#include <Handle_Geom_Curve.hxx>
-#include <Handle_Geom_Line.hxx>
-#include <Handle_Geom_TrimmedCurve.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <HYDROData_ShapeFile.h>
 #include <SUIT_Desktop.h>
@@ -78,8 +78,8 @@ void HYDROGUI_ExportFileOp::startOperation()
   
   Handle(HYDROData_PolylineXY) aPolyXY;
   Handle(HYDROData_Polyline3D) aPoly3D;
-  NCollection_Sequence<Handle_HYDROData_PolylineXY> aPolyXYSeq;
-  NCollection_Sequence<Handle_HYDROData_Polyline3D> aPoly3DSeq;
+  NCollection_Sequence<Handle(HYDROData_PolylineXY)> aPolyXYSeq;
+  NCollection_Sequence<Handle(HYDROData_Polyline3D)> aPoly3DSeq;
   //
   HYDROData_SequenceOfObjects aSeq = HYDROGUI_Tool::GetSelectedObjects( module() );
   for( int anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
@@ -107,7 +107,7 @@ void HYDROGUI_ExportFileOp::startOperation()
     {
       QStringList aNonExpList;
       HYDROData_ShapeFile anExporter;
-      Handle_HYDROData_Document aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
+      Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
       if (!aPolyXYSeq.IsEmpty() || !aPolyXYSeq.IsEmpty())
         //Export polylines
         anExporter.Export(aDoc, aFileName, aPolyXYSeq, aPoly3DSeq, aNonExpList);
@@ -134,7 +134,7 @@ void HYDROGUI_ExportFileOp::startOperation()
         QStringList SortedListOfAttr = anAttrNames.toList();
         SortedListOfAttr.sort();
         //
-        Handle_HYDROData_LandCoverMap aLCM = Handle(HYDROData_LandCoverMap)::DownCast( aSeq(1) );
+        Handle(HYDROData_LandCoverMap) aLCM = Handle(HYDROData_LandCoverMap)::DownCast( aSeq(1) );
         bool IsLinear = aLCM->CheckLinear();
         HYDROGUI_ExportLandCoverMapDlg aDlg( module()->getApp()->desktop(), IsLinear, SortedListOfAttr);
         if ( aDlg.exec() == HYDROGUI_ExportLandCoverMapDlg::Accepted )
index e841688e48414ed05ee65a3e420aa420f26c7a9e..2f20d768c80ef661a008c4af384c6db4aea1b3bb 100644 (file)
 #include <vector>
 
 class SUIT_FileDlg;
-class gp_XYZ;
-class Handle_HYDROData_PolylineXY;
-class Handle_HYDROData_Polyline3D;
-class TopoDS_Face;
 
 class HYDROGUI_ExportFileOp : public HYDROGUI_Operation
 {
index 5180be14dbbc8096ae41ed94feb50661706017b3..1179745d227bc5a64faf0745a680b021673e7916 100644 (file)
@@ -179,14 +179,14 @@ void HYDROGUI_GeomObjectDlg::onBrowse()
 {
   SUIT_FileDlg* aFileDlg = new SUIT_FileDlg( this, true );
   aFileDlg->setWindowTitle( tr("IMPORT_OBSTACLE_FROM_FILE") );
-  aFileDlg->setFilter( tr("OBSTACLE_FILTER") );
+  aFileDlg->setNameFilter( tr("OBSTACLE_FILTER") );
   if ( !lastUsedFilter.isEmpty() ) {
-    aFileDlg->selectFilter( lastUsedFilter );
+    aFileDlg->selectNameFilter( lastUsedFilter );
   }
 
   if ( aFileDlg->exec() == QDialog::Accepted ) {
     QString aFileName = aFileDlg->selectedFile();
-    lastUsedFilter = aFileDlg->selectedFilter();
+    lastUsedFilter = aFileDlg->selectedNameFilter();
 
     if ( !aFileName.isEmpty() ) {
       myFileName->setText( aFileName );
@@ -261,4 +261,4 @@ void HYDROGUI_GeomObjectDlg::setDefaultName( const QString& theName )
 QString HYDROGUI_GeomObjectDlg::getDefaultName()
 {
   return myDefaultName;
-}
\ No newline at end of file
+}
index b85450ebf4b54bff6e1147044b0d78d1334f9bfd..9ebb95a148043548222315aff38e2f8e048ade61 100644 (file)
 
 #include <TColgp_Array1OfPnt.hxx>
 
-IMPLEMENT_STANDARD_TYPE(HYDROGUI_ImagePrs)
-    IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
-    STANDARD_TYPE(AIS_InteractiveObject),
-    STANDARD_TYPE(SelectMgr_SelectableObject),
-    STANDARD_TYPE(PrsMgr_PresentableObject),
-    STANDARD_TYPE(MMgt_TShared),
-    STANDARD_TYPE(Standard_Transient),
-    IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
-    IMPLEMENT_STANDARD_TYPE_END(HYDROGUI_ImagePrs)
-
-    IMPLEMENT_DOWNCAST(HYDROGUI_ImagePrs,Standard_Transient)
-    IMPLEMENT_STANDARD_RTTI(HYDROGUI_ImagePrs)
-
-    HYDROGUI_ImagePrs::HYDROGUI_ImagePrs()
-    : AIS_InteractiveObject()
+IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_ImagePrs, AIS_InteractiveObject)
+
+HYDROGUI_ImagePrs::HYDROGUI_ImagePrs()
+  : AIS_InteractiveObject()
 {
 }
 
index d74a9a792473b7a9afec35ee417737409618f14d..63968cafa5088cee6c0b6d63125625a41cb5698c 100644 (file)
@@ -28,8 +28,6 @@
 class Font_FTFont;
 class HYDROGUI_ImagePrs;
 
-DEFINE_STANDARD_HANDLE(HYDROGUI_ImagePrs, AIS_InteractiveObject)
-
 class HYDROGUI_ImagePrs : public AIS_InteractiveObject
 {
 public:
@@ -47,7 +45,7 @@ public:
                                     const Handle(Prs3d_Presentation)&, const Standard_Integer = 0 );
     virtual void           ComputeSelection( const Handle(SelectMgr_Selection)&, const Standard_Integer );
 
-    DEFINE_STANDARD_RTTI(HYDROGUI_ImagePrs)
+    DEFINE_STANDARD_RTTIEXT(HYDROGUI_ImagePrs, AIS_InteractiveObject)
 
 private:
     gp_Pnt                 convert( const QPointF& ) const;
index d99c13e4a83535de39e21cc95cb03a0a8078bb90..8bca430933432e5d0beb02ee22424ef72dac9f01 100644 (file)
@@ -269,7 +269,7 @@ void HYDROGUI_ImportLandCoverMapDlg::FillCorrespondenceTable(const QStringList&
   myCorrTableWidget->setHorizontalHeaderItem(0, aHeader_1);
   myCorrTableWidget->setHorizontalHeaderItem(1, aHeader_2);
   myCorrTableWidget->setHorizontalHeaderItem(2, aHeader_3);
-  myCorrTableWidget->horizontalHeader()->setResizeMode( QHeaderView::ResizeToContents );
+  myCorrTableWidget->horizontalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents );
   //
   for (int i = 0; i < aFCSize; i++)
   {
@@ -453,4 +453,4 @@ bool HYDROGUI_ImportLandCoverMapDlg::CheckFirstPageFilling() const
      return false;
   }
   return true;
-}
\ No newline at end of file
+}
index a2d3a09b55c1712992a782b2a07009923d61cb8d..5cb9d9478c73085f4c5aa6accd6cdfabae58dbde 100644 (file)
@@ -262,7 +262,7 @@ bool HYDROGUI_ImportLandCoverMapOp::processApply( int& theUpdateFlags,
   if ( !aPanel->getFileName().isEmpty() )
     anObjName = aPanel->getObjectName();
   
-  Handle_HYDROData_Document aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
+  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
 
   //check if name of LCM is already exists
   QSet<QString> aNameList;
@@ -408,7 +408,7 @@ void HYDROGUI_ImportLandCoverMapOp::onNext( const int theIndex )
 
     //Collect all strickler_types
     QSet<QString> aSTSet;
-    Handle_HYDROData_Document aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
+    Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
     Handle(HYDROData_StricklerTable) DefStricklerTableObj;
     if ( aDoc )
     {
@@ -495,8 +495,7 @@ void HYDROGUI_ImportLandCoverMapOp::onApply()
   }
   else
   {
-    Handle(HYDROData_Entity) LCM = Handle(HYDROData_Entity)::DownCast( myLCM );
-    LCM->Remove();
+    myLCM->Remove();
     module()->setObjectRemoved( myLCM );
     abort();
   }
index 5a639978d1e1eb1117568d4c8f829e6949ec5e3f..9c0743c0b3fcfd68c5f119daad92b4a5ca1bcdce 100644 (file)
@@ -72,9 +72,9 @@ void HYDROGUI_ImportObstacleFromFileOp::startOperation()
   } else {
     myFileDlg = new SUIT_FileDlg( module()->getApp()->desktop(), true );
     myFileDlg->setWindowTitle( getName() );
-    myFileDlg->setFilter( tr("OBSTACLE_FILTER") );
+    myFileDlg->setNameFilter( tr("OBSTACLE_FILTER") );
     if ( !lastUsedFilter.isEmpty() ) {
-      myFileDlg->selectFilter( lastUsedFilter );
+      myFileDlg->selectNameFilter( lastUsedFilter );
     }
 
     connect( myFileDlg, SIGNAL( accepted() ),      this, SLOT( onApply()  ) );
@@ -118,7 +118,7 @@ bool HYDROGUI_ImportObstacleFromFileOp::processApply( int& theUpdateFlags,
   } else if ( myFileDlg ) {
     // Get file name and file filter defined by the user
     aFileName = myFileDlg->selectedFile();
-    lastUsedFilter = myFileDlg->selectedFilter();
+    lastUsedFilter = myFileDlg->selectedNameFilter();
   }
 
   // Check the file name
@@ -195,4 +195,4 @@ HYDROGUI_InputPanel* HYDROGUI_ImportObstacleFromFileOp::createInputPanel() const
   }
 
   return aPanel;
-}
\ No newline at end of file
+}
index 238acf07171cad4f11bbff689be2e91b03f077d9..e7faee118be82bfaa64f382d43cdcefd0092be0a 100644 (file)
@@ -58,7 +58,7 @@ void HYDROGUI_ImportPolylineOp::startOperation()
   myFileDlg = new SUIT_FileDlg( module()->getApp()->desktop(), true );
   myFileDlg->setWindowTitle( getName() );
   myFileDlg->setFileMode( SUIT_FileDlg::ExistingFiles );
-  myFileDlg->setFilter( tr("POLYLINE_FILTER") );
+  myFileDlg->setNameFilter( tr("POLYLINE_FILTER") );
 
   connect( myFileDlg, SIGNAL( accepted() ), this, SLOT( onApply() ) );
   connect( myFileDlg, SIGNAL( rejected() ), this, SLOT( onCancel() ) );
@@ -89,7 +89,7 @@ void HYDROGUI_ImportPolylineOp::onApply()
     if (anExt == "shp")
     {
       HYDROData_ShapeFile anImporter;
-      NCollection_Sequence<Handle_HYDROData_Entity> theEntities;
+      NCollection_Sequence<Handle(HYDROData_Entity)> theEntities;
       int aShapeTypeOfFile = -1;
       int aStat = anImporter.ImportPolylines(doc(), aFileName, theEntities, aShapeTypeOfFile ); 
       if (aStat == 1)
@@ -125,7 +125,7 @@ void HYDROGUI_ImportPolylineOp::onApply()
   QApplication::restoreOverrideCursor();
 }
 
-void HYDROGUI_ImportPolylineOp::UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities)
+void HYDROGUI_ImportPolylineOp::UpdateView( NCollection_Sequence<Handle(HYDROData_Entity)>& anEntities)
 {
   size_t anActiveViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
   if ( anActiveViewId == 0 )
index 9bd684a91bee8ef9898cb721644c967e1947747f..23cb0b87156887e0d645cf4e9c2d51d9187e0b63 100644 (file)
@@ -25,7 +25,7 @@
 #include <NCollection_Sequence.hxx>
 
 class SUIT_FileDlg;
-class Handle_HYDROData_Entity;
+class HYDROData_Entity;
 
 class HYDROGUI_ImportPolylineOp : public HYDROGUI_Operation
 {
@@ -38,7 +38,7 @@ public:
 protected:
   virtual void startOperation();
   virtual void onApply();
-  void UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities);
+  void UpdateView( NCollection_Sequence<Handle(HYDROData_Entity)>& anEntities);
 
 private:
   SUIT_FileDlg* myFileDlg;
index deaab0c3de442f6a06a0e9e01244806828bb371b..9e12b9eebd004777213c2423e9d64751b93129c5 100644 (file)
@@ -52,7 +52,7 @@ void HYDROGUI_ImportProfilesOp::startOperation()
   myFileDlg = new SUIT_FileDlg( module()->getApp()->desktop(), true );
   myFileDlg->setWindowTitle( getName() );
   myFileDlg->setFileMode( SUIT_FileDlg::ExistingFiles );
-  myFileDlg->setFilter( tr("PROFILE_FILTER") );
+  myFileDlg->setNameFilter( tr("PROFILE_FILTER") );
 
   connect( myFileDlg, SIGNAL( accepted() ), this, SLOT( onApply() ) );
   connect( myFileDlg, SIGNAL( rejected() ), this, SLOT( onCancel() ) );
index 4f30e80256c3ee52da222e821eadd0570ff4b6b4..38b5cf4cb14ebf1389c2fa81d81e76b30d58512f 100644 (file)
@@ -59,7 +59,7 @@ void HYDROGUI_ImportSinusXOp::startOperation()
   myFileDlg = new SUIT_FileDlg( module()->getApp()->desktop(), true );
   myFileDlg->setWindowTitle( getName() );
   myFileDlg->setFileMode( SUIT_FileDlg::ExistingFiles );
-  myFileDlg->setFilter( tr("SINUSX_FILTER") );
+  myFileDlg->setNameFilter( tr("SINUSX_FILTER") );
 
   connect( myFileDlg, SIGNAL( accepted() ), this, SLOT( onApply() ) );
   connect( myFileDlg, SIGNAL( rejected() ), this, SLOT( onCancel() ) );
@@ -91,7 +91,7 @@ void HYDROGUI_ImportSinusXOp::onApply()
     if (anExt == "sx")
     {
       HYDROData_SinusX aSinusXImporter;
-      NCollection_Sequence<Handle_HYDROData_Entity> anEntities;
+      NCollection_Sequence<Handle(HYDROData_Entity)> anEntities;
       if (aSinusXImporter.Import(aFileName, doc(), anEntities)) 
       {
         UpdateView(anEntities);
@@ -112,7 +112,7 @@ void HYDROGUI_ImportSinusXOp::onApply()
   QApplication::restoreOverrideCursor();
 }
 
-void HYDROGUI_ImportSinusXOp::UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities)
+void HYDROGUI_ImportSinusXOp::UpdateView( NCollection_Sequence<Handle(HYDROData_Entity)>& anEntities)
 {
   size_t anActiveViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
   if ( anActiveViewId == 0 )
index 738d25e4cf525f11796a7c57c89dae1e661933ba..36665caed0e5cba45d4276c735eefee4d5b9c04a 100644 (file)
@@ -23,7 +23,7 @@
 #include <NCollection_Sequence.hxx>
 
 class SUIT_FileDlg;
-class Handle_HYDROData_Entity;
+class HYDROData_Entity;
 
 class HYDROGUI_ImportSinusXOp : public HYDROGUI_Operation
 {
@@ -36,7 +36,7 @@ public:
 protected:
   virtual void startOperation();
   virtual void onApply();
-  void UpdateView( NCollection_Sequence<Handle_HYDROData_Entity>& anEntities);
+  void UpdateView( NCollection_Sequence<Handle(HYDROData_Entity)>& anEntities);
 private:
   SUIT_FileDlg* myFileDlg;
 };
index 196bd70ded7ab773c1078b792ca147b3efd2644f..73e755e7d2c9abe625b560f48bbab8ad7352cefd 100644 (file)
@@ -22,7 +22,7 @@
 #include <AIS_DisplayMode.hxx>
 #include <Prs3d_IsoAspect.hxx>
 #include <SelectMgr_SequenceOfOwner.hxx>
-#include <StdPrs_WFDeflectionShape.hxx>
+#include <StdPrs_WFShape.hxx>
 #include <StdSelect_BRepOwner.hxx>
 #include <TopoDS_Face.hxx>
 #include <QColor>
@@ -31,8 +31,8 @@
 const Quantity_Color EDGES_COLOR = Quantity_NOC_SLATEGRAY;
 const int HILIGHT_ISO_NB = 10;
 
-IMPLEMENT_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
-IMPLEMENT_STANDARD_RTTIEXT( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
+//@MZN zzz IMPLEMENT_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
+//@MZN zzz IMPLEMENT_STANDARD_RTTIEXT( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
 
 HYDROGUI_LandCoverMapPrs::HYDROGUI_LandCoverMapPrs( const Handle(HYDROData_LandCoverMap)& theMap )
   : AIS_ColoredShape( theMap->GetShape() )
@@ -79,12 +79,12 @@ void HYDROGUI_LandCoverMapPrs::UpdateColors()
   SetTransparency( myLCMap->GetTransparency() );
 }
 
-Handle(Aspect_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const
+Handle(AIS_ColorScale) HYDROGUI_LandCoverMapPrs::GetColorScale() const
 {
   return myColorScale;
 }
 
-void HYDROGUI_LandCoverMapPrs::SetColorScale( const Handle(Aspect_ColorScale)& theColorScale )
+void HYDROGUI_LandCoverMapPrs::SetColorScale( const Handle(AIS_ColorScale)& theColorScale )
 {
   myColorScale = theColorScale;
   double aMin = 0, aMax = 0;
@@ -152,7 +152,7 @@ void HYDROGUI_LandCoverMapPrs::Compute( const Handle(PrsMgr_PresentationManager3
   }
 
   if( theMode==AIS_Shaded )
-    StdPrs_WFDeflectionShape::Add( thePresentation, Shape(), myDrawer );
+    StdPrs_WFShape::Add( thePresentation, Shape(), myDrawer );
 }
 
 void HYDROGUI_LandCoverMapPrs::HilightSelected( const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
@@ -166,7 +166,7 @@ void HYDROGUI_LandCoverMapPrs::HilightSelected( const Handle(PrsMgr_Presentation
   {
     Handle(StdSelect_BRepOwner) anOwner = Handle(StdSelect_BRepOwner)::DownCast( theOwners.Value( i ) );
     if( !anOwner.IsNull() )
-      StdPrs_WFDeflectionShape::Add( aSelectPrs, anOwner->Shape(), HilightAttributes() );
+      StdPrs_WFShape::Add( aSelectPrs, anOwner->Shape(), HilightAttributes() );
   }
 
   HilightAttributes()->UIsoAspect()->SetNumber( 0 );
index dabe4526c0989af7cd63e034256eac0793e50f16..f9fe4a15bf4f7b9c1c0ef26551c5c34e184a033a 100644 (file)
 #include <HYDROData_LandCoverMap.h>
 #include <HYDROData_StricklerTable.h>
 #include <AIS_ColoredShape.hxx>
-#include <Aspect_ColorScale.hxx>
+#include <AIS_ColorScale.hxx>
 
-DEFINE_STANDARD_HANDLE( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape )
 
 class HYDROGUI_LandCoverMapPrs : public AIS_ColoredShape
 {
 public:
-  DEFINE_STANDARD_RTTI( HYDROGUI_LandCoverMapPrs );
+  DEFINE_STANDARD_RTTIEXT( HYDROGUI_LandCoverMapPrs, AIS_ColoredShape );
 
   HYDROGUI_LandCoverMapPrs( const Handle(HYDROData_LandCoverMap)& );
   virtual ~HYDROGUI_LandCoverMapPrs();
@@ -37,8 +36,8 @@ public:
   Handle(HYDROData_LandCoverMap) GetLandCoverMap() const;
   void SetLandCoverMap( const Handle(HYDROData_LandCoverMap)& );
 
-  Handle(Aspect_ColorScale) GetColorScale() const;
-  void SetColorScale( const Handle(Aspect_ColorScale)& );
+  Handle(AIS_ColorScale) GetColorScale() const;
+  void SetColorScale( const Handle(AIS_ColorScale)& );
 
   Handle(HYDROData_StricklerTable) GetTable() const;
   void SetTable( const Handle(HYDROData_StricklerTable)& );
@@ -59,7 +58,7 @@ protected:
 
 private:
   Handle(HYDROData_LandCoverMap)   myLCMap;
-  Handle(Aspect_ColorScale)        myColorScale;
+  Handle(AIS_ColorScale)           myColorScale;
   Handle(HYDROData_StricklerTable) myTable;
 };
 
index 254cb7c3f06fcf8ffd786e76451a5ab4e0e02226..a452d2b3ba7145356f386adaf93f09285c28c6ca 100644 (file)
@@ -51,9 +51,6 @@ HYDROGUI_ListModel::HYDROGUI_ListModel( QObject* theParent )
     myEye = QPixmap( 16, 16 );
     myEye.fill( Qt::black );
   }
-
-  // Set the supported drag actions for the items in the model
-  setSupportedDragActions( Qt::MoveAction | Qt::CopyAction );
 }
 
 /**
@@ -156,9 +153,9 @@ int HYDROGUI_ListModel::rowCount( const QModelIndex &theParent ) const
 */
 void HYDROGUI_ListModel::setObjects( const Object2VisibleList& theObjects )
 {
+  beginResetModel();
   myObjects = theObjects;
-
-  reset();
+  endResetModel();
 }
 
 /**
@@ -182,9 +179,9 @@ HYDROGUI_ListModel::ObjectList HYDROGUI_ListModel::getObjects() const
 */
 void HYDROGUI_ListModel::addObject( const Object2Visible& theObject )
 {
+  beginResetModel();
   myObjects << theObject;
-
-  reset();
+  endResetModel();
 }
 
 /**
@@ -200,9 +197,9 @@ void HYDROGUI_ListModel::removeObjectByName( const QString& theObjectName )
     }
   }
 
+  beginResetModel();
   myObjects.removeAll(anItem);
-
-  reset();
+  endResetModel();
 }
 
 
@@ -315,6 +312,14 @@ Qt::DropActions HYDROGUI_ListModel::supportedDropActions() const
   return Qt::MoveAction | Qt::CopyAction;
 }
 
+/**
+*/
+Qt::DropActions HYDROGUI_ListModel::supportedDragActions() const
+{
+  // Set the supported drag actions for the items in the model
+  return Qt::MoveAction | Qt::CopyAction;
+}
+
 /**
   Get list of ids by the list model indexes.
   @param theIsToSort defines if the list of ids should be sorted in ascending order
@@ -520,6 +525,7 @@ void HYDROGUI_ListModel::setDecorationEnabled( const bool theIsToEnable )
 
 void HYDROGUI_ListModel::undoLastMove()
 {
+  beginResetModel();
   myObjects = myPrevObjects;
-  reset();
+  endResetModel();
 }
index 8216175af69f1cc770f1873003f0aac41c95791e..f8246036bb41fbddfd441ba776d2f5783daf5bb3 100644 (file)
@@ -59,6 +59,7 @@ public:
   virtual bool dropMimeData( const QMimeData* theData, Qt::DropAction theAction,
                              int theRow, int theColumn, const QModelIndex& theParent );
   virtual Qt::DropActions supportedDropActions() const;
+  virtual Qt::DropActions supportedDragActions() const;
 
   QList<int> getIds( const QModelIndexList& theIndexes, bool theIsToSort = true ) const;
 
@@ -95,4 +96,4 @@ private:
   bool myIsDecorationEnabled;
 };
 
-#endif
\ No newline at end of file
+#endif
index 8780c389adf3488c66f0f626d97dfe01a39e1dc1..2e62e5081b5ee87f1358736728b65e353f29e1a1 100644 (file)
@@ -41,7 +41,7 @@ class SVTK_Viewer;
 class SUIT_ViewWindow;
 class SUIT_ViewManager;
 
-class Handle(HYDROData_StricklerTable);
+class HYDROData_StricklerTable;
 
 class HYDROGUI_DataModel;
 class HYDROGUI_Displayer;
index b7505b0c0d19a980056972e8ba9df22c9b1ffa2a..6f5081110ab3a624f5d3235d7536a798ce976768 100644 (file)
@@ -36,8 +36,7 @@
 #include <AIS_InteractiveContext.hxx>
 #include <AIS_ListIteratorOfListOfInteractive.hxx>
 #include <AIS_ListOfInteractive.hxx>
-
-#include <Aspect_ColorScale.hxx>
+#include <AIS_ColorScale.hxx>
 
 #include <TColStd_SequenceOfInteger.hxx>
 
@@ -163,12 +162,12 @@ HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int
     return aResShape;
 
   if( theObject->IsKind( STANDARD_TYPE( HYDROData_Image ) ) )
-    aResShape = new HYDROGUI_ShapeImage( theContext, Handle_HYDROData_Image::DownCast( theObject ) );
+    aResShape = new HYDROGUI_ShapeImage( theContext, Handle(HYDROData_Image)::DownCast( theObject ) );
   else if( theObject->IsKind( STANDARD_TYPE( HYDROData_Bathymetry ) ) )
-    aResShape = new HYDROGUI_ShapeBathymetry( this, theContext, Handle_HYDROData_Bathymetry::DownCast( theObject ) );
+    aResShape = new HYDROGUI_ShapeBathymetry( this, theContext, Handle(HYDROData_Bathymetry)::DownCast( theObject ) );
   else if( theObject->IsKind( STANDARD_TYPE( HYDROData_LandCoverMap ) ) ) {
     bool isScalarMode = module()->isLandCoversScalarMapModeOn( theViewerId );
-    aResShape = new HYDROGUI_ShapeLandCoverMap( this, theContext, Handle_HYDROData_LandCoverMap::DownCast( theObject ), -1, isScalarMode );
+    aResShape = new HYDROGUI_ShapeLandCoverMap( this, theContext, Handle(HYDROData_LandCoverMap)::DownCast( theObject ), -1, isScalarMode );
   }
   else
     aResShape = new HYDROGUI_Shape( theContext, theObject );
@@ -465,10 +464,10 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer
     }
   }
 
-  Handle(Aspect_ColorScale) aColorScale;
+  Handle(AIS_ColorScale) aColorScale = GetColorScale( aViewerId );
+  Handle(AIS_InteractiveContext) aCtx = theViewer->getAISContext();
   if( isDisplayColorScale )
   {
-    aColorScale = aView->ColorScale();
     if( !aColorScale.IsNull() )
     {
       aColorScale->SetXPosition( anXPos );
@@ -481,6 +480,8 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer
 
       aColorScale->SetTitle( aColorScaleTitle );
       aColorScale->SetRange( aColorScaleMin, aColorScaleMax );
+      
+      aColorScale->SetToUpdate();
 
       if ( !isLandCoverColoringOn ) {
         foreach( HYDROGUI_Shape* aShape, aBathShapes ) {
@@ -491,14 +492,17 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer
           aBathShape->UpdateWithColorScale( aColorScale );
         }
       }
+      
+      if ( !aCtx.IsNull() && !aCtx->IsDisplayed( aColorScale ) ) {
+        aCtx->Display( aColorScale );
+      }
     }
-    if( !aView->ColorScaleIsDisplayed() )
-      aView->ColorScaleDisplay();
   }
   else
   {
-    if( aView->ColorScaleIsDisplayed() )
-      aView->ColorScaleErase();
+    if ( !aCtx.IsNull() && aCtx->IsDisplayed( aColorScale ) ) {
+      aCtx->Erase( aColorScale );
+    }
   }
 
   foreach( HYDROGUI_Shape* aShape, aLandCoverMapShapes ) {
@@ -526,3 +530,16 @@ void HYDROGUI_OCCDisplayer::UpdateColorScale( const OCCViewer_Viewer* theViewer
   
   myToUpdateColorScale = false;
 }
+
+Handle(AIS_ColorScale) HYDROGUI_OCCDisplayer::GetColorScale( const int theViewerId )
+{
+  Handle(AIS_ColorScale) aColorScale;
+
+  aColorScale = myColorScales.value( theViewerId, aColorScale );
+  if ( aColorScale.IsNull() ) {
+    aColorScale = new AIS_ColorScale();
+    myColorScales.insert( theViewerId, aColorScale );
+  }
+
+  return aColorScale;
+}
index b454518df71d61c18382af2604aa433b2434ec6b..92e20c815854ade1c62d9322833cf1fb7dc27df6 100644 (file)
@@ -22,7 +22,8 @@
 #include "HYDROGUI_AbstractDisplayer.h"
 
 class HYDROGUI_Shape;
-class Handle(AIS_InteractiveContext);
+class AIS_InteractiveContext;
+class AIS_ColorScale;
 class OCCViewer_ViewManager;
 class OCCViewer_Viewer;
 
@@ -74,6 +75,13 @@ public:
 
   void SetToUpdateColorScale();
 
+  /**
+   * \brief Get color scale for the viewer.
+   * \param theViewerId viewer identifier
+   * \return the color scale 
+   */
+  Handle(AIS_ColorScale)          GetColorScale( const int theViewerId );
+
 protected:
   /**
    * \brief Erase all viewer objects.
@@ -145,6 +153,8 @@ private:
 
 private:
   bool myToUpdateColorScale;
+  
+  QMap<int, Handle(AIS_ColorScale)> myColorScales;
 };
 
 #endif
index 093f0b3bc9213e128a22d08e02fbb89dc5af6def..4f717c9222c8972be47d01b193e160d8c5dfdda5 100644 (file)
@@ -23,7 +23,7 @@
 
 class HYDROGUI_Module;
 class OCCViewer_Viewer;
-class Handle_AIS_InteractiveObject;
+class AIS_InteractiveObject;
 
 class HYDROGUI_OCCSelector : public LightApp_OCCSelector
 {
@@ -39,7 +39,7 @@ protected:
   virtual void      getSelection( SUIT_DataOwnerPtrList& ) const;
   virtual void      setSelection( const SUIT_DataOwnerPtrList& );
 
-  virtual QString   entry( const Handle_AIS_InteractiveObject& ) const;
+  virtual QString   entry( const Handle(AIS_InteractiveObject)& ) const;
 
 private:
   HYDROGUI_Module* myModule;
index 916a5a682337401c496904920d98e86906c23399..30caab310ad1451e56a17b3c4a5b576259ce93c6 100644 (file)
@@ -390,7 +390,7 @@ void HYDROGUI_Operation::commitDocOperation()
   }
 }
 
-Handle_HYDROData_Document HYDROGUI_Operation::doc() const
+Handle(HYDROData_Document) HYDROGUI_Operation::doc() const
 {
   return HYDROData_Document::Document( myModule->getStudyId() );
 }
index b3b3d7bc486a04de6d1fc39bf35781ac5d759b97..11e38511912cecd5891e3c36fc093089bd6e61b2 100644 (file)
@@ -20,7 +20,7 @@
 #define HYDROGUI_OPERATION_H
 
 #include <LightApp_Operation.h>
-
+#include <Standard_DefineHandle.hxx>
 #include <QCursor>
 
 class HYDROGUI_Module;
@@ -30,8 +30,8 @@ class HYDROGUI_Shape;
 class SUIT_SelectionMgr;
 class OCCViewer_ViewManager;
 
-class Handle_HYDROData_Document;
-class Handle_HYDROData_Object;
+class HYDROData_Document;
+class HYDROData_Object;
 
 class HYDROGUI_Operation : public LightApp_Operation
 {
@@ -77,7 +77,7 @@ protected:
   void                                abortDocOperation();
   void                                commitDocOperation();
 
-  Handle_HYDROData_Document           doc() const;
+  Handle(HYDROData_Document)          doc() const;
 
   virtual bool                        isToAbortOnApply() const { return true; }
 
index 90e3e42e26a6340e81b11163af2280beb5730de6..b9a7a2aacb62ab1c041395bc3438460992192639 100644 (file)
@@ -41,7 +41,6 @@
 #include <BRepAdaptor_Curve.hxx>
 #include <Prs3d_LineAspect.hxx>
 
-IMPLEMENT_STANDARD_HANDLE (HYDROGUI_Polyline, AIS_Shape)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_Polyline, AIS_Shape)
 
 
index 45e79dba8d0cc240ba88ed287a34021e9a14f8d5..7b70a15fd1303197554c7cb40ce413d0a5f7849e 100644 (file)
@@ -25,7 +25,7 @@
 #include <Standard.hxx>
 #include <Standard_DefineHandle.hxx>
 #include <PrsMgr_PresentationManager.hxx>
-#include <Handle_Prs3d_Presentation.hxx>
+#include <Prs3d_Presentation.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <AIS_DisplayMode.hxx>
 
@@ -43,9 +43,7 @@ public:
                                       const Standard_Integer aMode = 0);
   
 public:
-  DEFINE_STANDARD_RTTI(HYDROGUI_Polyline);
+  DEFINE_STANDARD_RTTIEXT(HYDROGUI_Polyline, AIS_Shape);
 };
 
-DEFINE_STANDARD_HANDLE(HYDROGUI_Polyline, AIS_Shape)
-
 #endif
index 0d7061cb0a91ebeaacb9c2198c90c28918151449..0b008616eb8ae6a49aee0c150043d076ce3f742e 100644 (file)
@@ -530,7 +530,6 @@ void HYDROGUI_PriorityTableModel::undoLastChange()
   beginResetModel();
   myRules = myPrevRules;
   endResetModel();
-  reset();
 }
 
 /**
index e6e15e01ab30be5cacd3357085e3af3866c8493f..2f84a8229570b92dfa9bd6f83734042a80a5db6f 100644 (file)
@@ -154,12 +154,12 @@ HYDROGUI_PriorityWidget::HYDROGUI_PriorityWidget( QWidget* theParent )
 
   // Set resize mode
   myTable->horizontalHeader()->setStretchLastSection( false);
-  myTable->horizontalHeader()->setResizeMode( 0, QHeaderView::Stretch );
-  myTable->horizontalHeader()->setResizeMode( 1, QHeaderView::ResizeToContents );
-  myTable->horizontalHeader()->setResizeMode( 2, QHeaderView::Stretch );
-  myTable->horizontalHeader()->setResizeMode( 3, QHeaderView::ResizeToContents );
+  myTable->horizontalHeader()->setSectionResizeMode( 0, QHeaderView::Stretch );
+  myTable->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
+  myTable->horizontalHeader()->setSectionResizeMode( 2, QHeaderView::Stretch );
+  myTable->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::ResizeToContents );
 
-  myTable->verticalHeader()->setResizeMode( QHeaderView::ResizeToContents );
+  myTable->verticalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents );
  
   // Layout
   // buttons
index ac85dfbf182df46ad22e4ca92d738c422f46c9d7..c34f2cc9522f4807a01529c4c8848175aa1fc626 100644 (file)
@@ -480,10 +480,10 @@ void HYDROGUI_Shape::setZLayer( const int theZLayer )
     myContext->SetZLayer( myShape, myZLayer );
 }
 
-Handle_AIS_InteractiveObject HYDROGUI_Shape::createShape() const
+Handle(AIS_InteractiveObject) HYDROGUI_Shape::createShape() const
 {
   if( myTopoShape.IsNull() ) {
-    return Handle_AIS_InteractiveObject();
+    return Handle(AIS_InteractiveObject)();
   }
 
   TopAbs_ShapeEnum aShapeType = myTopoShape.ShapeType();
@@ -513,7 +513,7 @@ void HYDROGUI_Shape::buildShape()
   if( myShape.IsNull() )
     return;
 
-  Handle_AIS_Shape anAISShape = Handle_AIS_Shape::DownCast( myShape );
+  Handle(AIS_Shape) anAISShape = Handle(AIS_Shape)::DownCast( myShape );
   if( !anAISShape.IsNull() )
     anAISShape ->SetHLRAngleAndDeviation( 0.001 );
 
@@ -523,9 +523,8 @@ void HYDROGUI_Shape::buildShape()
   if ( !myObject.IsNull() && !myObject->IsKind( STANDARD_TYPE(HYDROData_LandCoverMap) ) )
     myShape->SetTransparency( 0 );
   myShape->SetDisplayMode( (AIS_DisplayMode)myDisplayMode );
-  myShape->SetSelectionMode( (Standard_Integer)mySelectionMode );
 
-    // Init default params for shape
+  // Init default params for shape
   const Handle(Prs3d_Drawer)& anAttributes = myShape->Attributes();
   if ( !anAttributes.IsNull() )
   {
@@ -677,4 +676,4 @@ void HYDROGUI_Shape::setDisplayMode( int theDisplayMode )
 void HYDROGUI_Shape::setSelectionMode( int theSelectionMode )
 {
   mySelectionMode = theSelectionMode;
-}
\ No newline at end of file
+}
index 5447abb04b7a98660d1c32d72741b2adce0da109..76113ba1a6da1ebbb494b68ccdc77ebb17b42d95 100644 (file)
@@ -109,7 +109,7 @@ protected:
   virtual void               eraseShape( const bool theIsUpdateViewer );
 
   virtual QColor             getActiveColor() const;
-  virtual Handle_AIS_InteractiveObject createShape() const;
+  virtual Handle(AIS_InteractiveObject) createShape() const;
 
   void setDisplayMode( int theDisplayMode );
 
index e8e7941b670df5490036037941cc70b95161a62b..a88b5069923989e42e06f4bcf2ef403b7ef4b692 100644 (file)
 #include <HYDROData_Bathymetry.h>
 
 #include <AIS_InteractiveContext.hxx>
-#include <Aspect_ColorScale.hxx>
+#include <AIS_ColorScale.hxx>
 #include <Prs3d_PointAspect.hxx>
 
 HYDROGUI_ShapeBathymetry::HYDROGUI_ShapeBathymetry( HYDROGUI_OCCDisplayer*                theDisplayer,
                                                     const Handle(AIS_InteractiveContext)& theContext,
-                                                    const Handle_HYDROData_Bathymetry&    theBathymetry,
+                                                    const Handle(HYDROData_Bathymetry)&   theBathymetry,
                                                     const int                             theZLayer )
 : HYDROGUI_Shape( theContext, theBathymetry, theZLayer ),
   myDisplayer( theDisplayer )
@@ -58,12 +58,14 @@ void HYDROGUI_ShapeBathymetry::update( bool theIsUpdateViewer, bool isDeactivate
 }
 
 
-Handle_AIS_InteractiveObject HYDROGUI_ShapeBathymetry::createShape() const
+Handle(AIS_InteractiveObject) HYDROGUI_ShapeBathymetry::createShape() const
 {
-  Handle_HYDROData_Bathymetry aBath = Handle_HYDROData_Bathymetry::DownCast( getObject() );
+  Handle(AIS_InteractiveObject) aPntCloud;
+
+  Handle(HYDROData_Bathymetry) aBath = Handle(HYDROData_Bathymetry)::DownCast( getObject() );
   if( !aBath.IsNull() )
   {
-    Handle_AIS_PointCloud aPntCloud = new HYDROGUI_BathymetryPrs();
+    aPntCloud = new HYDROGUI_BathymetryPrs();
     aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox );
     aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 2.0));
 
@@ -76,11 +78,9 @@ Handle_AIS_InteractiveObject HYDROGUI_ShapeBathymetry::createShape() const
     aThat->myColors = new Quantity_HArray1OfColor( aLower, anUpper );
     for( int i=aLower; i<=anUpper; i++ )
       aThat->myCoords->SetValue( i, gp_Pnt( aBathPoints[i].X, aBathPoints[i].Y, aBathPoints[i].Z ) );
-
-    return aPntCloud;
   }
-  else
-    return Handle_AIS_InteractiveObject();
+
+  return aPntCloud;
 }
 
 void HYDROGUI_ShapeBathymetry::GetRange( double& theMin, double& theMax ) const
@@ -102,7 +102,7 @@ void HYDROGUI_ShapeBathymetry::GetRange( double& theMin, double& theMax ) const
   }
 }
 
-void HYDROGUI_ShapeBathymetry::UpdateWithColorScale( const Handle(Aspect_ColorScale)& theColorScale )
+void HYDROGUI_ShapeBathymetry::UpdateWithColorScale( const Handle(AIS_ColorScale)& theColorScale )
 {
   if (!myCoords)
     return;
@@ -113,7 +113,7 @@ void HYDROGUI_ShapeBathymetry::UpdateWithColorScale( const Handle(Aspect_ColorSc
     theColorScale->FindColor( z, aColor );
     myColors->SetValue( i, aColor );
   }
-  Handle_AIS_PointCloud aPntCloud = Handle_AIS_PointCloud::DownCast( getAISObject() );
+  Handle(AIS_PointCloud) aPntCloud = Handle(AIS_PointCloud)::DownCast( getAISObject() );
   aPntCloud->SetPoints( myCoords, myColors );
   getContext()->Redisplay( aPntCloud, Standard_False );
 }
index 8a6447215ebe52080263d0b88a436febe75bbbee..c736c60fd1765b072cf1a489a1a9e32b9ec0b7da 100644 (file)
@@ -23,8 +23,8 @@
 #include <TColgp_HArray1OfPnt.hxx>
 #include <Quantity_HArray1OfColor.hxx>
 
-class Handle_HYDROData_Bathymetry;
-class Handle_Aspect_ColorScale;
+class HYDROData_Bathymetry;
+class AIS_ColorScale;
 class HYDROGUI_OCCDisplayer;
 
 class HYDROGUI_ShapeBathymetry : public HYDROGUI_Shape
@@ -32,12 +32,12 @@ class HYDROGUI_ShapeBathymetry : public HYDROGUI_Shape
 public:
   HYDROGUI_ShapeBathymetry( HYDROGUI_OCCDisplayer* theDisplayer,
                             const Handle(AIS_InteractiveContext)& theContext,
-                            const Handle_HYDROData_Bathymetry&    theBathymetry,
+                            const Handle(HYDROData_Bathymetry)&    theBathymetry,
                             const int                             theZLayer = -1 );
   virtual ~HYDROGUI_ShapeBathymetry();
 
   void GetRange( double& theMin, double& theMax ) const;
-  void UpdateWithColorScale( const Handle_Aspect_ColorScale& );
+  void UpdateWithColorScale( const Handle(AIS_ColorScale)& );
 
   virtual void display( const bool theIsUpdateViewer = true );
   virtual void erase( const bool theIsUpdateViewer = true );
@@ -48,15 +48,15 @@ public:
   virtual void               setVisible( const bool theState,
                                          const bool theIsUpdateViewer = true );
 protected:
-  virtual Handle_AIS_InteractiveObject createShape() const;
+  virtual Handle(AIS_InteractiveObject) createShape() const;
   virtual void displayShape( const bool theIsUpdateViewer );
 
   void setToUpdateColorScale( bool isChanged );
 
 private:
   HYDROGUI_OCCDisplayer* myDisplayer;
-  Handle_TColgp_HArray1OfPnt     myCoords;
-  Handle_Quantity_HArray1OfColor myColors;
+  Handle(TColgp_HArray1OfPnt)     myCoords;
+  Handle(Quantity_HArray1OfColor) myColors;
 };
 
 #endif
index 3d5199656b4476fdd4db7a80643ff37f836e7209..4f832399d26895271f03bb09d14b9c3469372d0e 100644 (file)
@@ -27,7 +27,7 @@
 #include <gp_Pnt.hxx>
 
 HYDROGUI_ShapeImage::HYDROGUI_ShapeImage( const Handle(AIS_InteractiveContext)& theContext,
-                                          const Handle_HYDROData_Image&         theImage,
+                                          const Handle(HYDROData_Image)&         theImage,
                                           const int                             theZLayer )
 : HYDROGUI_Shape( theContext, theImage, theZLayer )
 {
@@ -48,12 +48,15 @@ void HYDROGUI_ShapeImage::update( bool theIsUpdateViewer, bool isDeactivateSelec
 
 Handle(AIS_InteractiveObject) HYDROGUI_ShapeImage::createShape() const
 {
-    Handle(HYDROData_Image) anImageObj = Handle(HYDROData_Image)::DownCast( getObject() );
-    if ( anImageObj.IsNull() )
-        return Handle_AIS_InteractiveObject();
+  Handle(HYDROGUI_ImagePrs) aPrs;
 
-    Handle(HYDROGUI_ImagePrs) aPrs = new HYDROGUI_ImagePrs( imagePixMap( anImageObj ), imageContour( anImageObj ) );
-    return aPrs;
+  Handle(HYDROData_Image) anImageObj = Handle(HYDROData_Image)::DownCast( getObject() );
+  if ( !anImageObj.IsNull() )
+  {
+    aPrs = new HYDROGUI_ImagePrs( imagePixMap( anImageObj ), imageContour( anImageObj ) );
+  }
+
+  return aPrs;
 }
 
 Handle(Image_PixMap) HYDROGUI_ShapeImage::imagePixMap( const Handle(HYDROData_Image)& theImageObj ) const
@@ -81,7 +84,7 @@ Handle(Image_PixMap) HYDROGUI_ShapeImage::imagePixMap( const Handle(HYDROData_Im
     return aPix;
 }
 
-QPolygonF HYDROGUI_ShapeImage::imageContour( const Handle_HYDROData_Image& theImageObj ) const
+QPolygonF HYDROGUI_ShapeImage::imageContour( const Handle(HYDROData_Image)& theImageObj ) const
 {
     QPolygonF aContour;
     if ( !theImageObj.IsNull() )
index e9cf07a4dd26e721c216bea9a71aeb63a36aeeac..aba5b82b4b2d45516f9fb8dcb547fb18abebc514 100644 (file)
 
 #include <QPolygonF>
 
-class Handle_HYDROData_Image;
+class HYDROData_Image;
 
 class HYDROGUI_ShapeImage : public HYDROGUI_Shape
 {
 public:
   HYDROGUI_ShapeImage( const Handle(AIS_InteractiveContext)& theContext,
-                       const Handle_HYDROData_Image&         theImage,
+                       const Handle(HYDROData_Image)&        theImage,
                        const int                             theZLayer = -1 );
   virtual ~HYDROGUI_ShapeImage();
 
   virtual void                         update( bool isUpdateViewer, bool isDeactivateSelection );
 
 protected:
-  virtual Handle_AIS_InteractiveObject createShape() const;
-  Handle(Image_PixMap)                 imagePixMap( const Handle_HYDROData_Image& ) const;
-  QPolygonF                            imageContour( const Handle_HYDROData_Image& ) const;
+  virtual Handle(AIS_InteractiveObject) createShape() const;
+  Handle(Image_PixMap)                  imagePixMap( const Handle(HYDROData_Image)& ) const;
+  QPolygonF                             imageContour( const Handle(HYDROData_Image)& ) const;
 };
 
 #endif
index 0a6b59abe3394840719ac12413ed4943f8e4c2c0..3446545e3db4973a5ed49219077f8079eaa82aa3 100644 (file)
@@ -34,7 +34,7 @@
 
 HYDROGUI_ShapeLandCoverMap::HYDROGUI_ShapeLandCoverMap( HYDROGUI_OCCDisplayer* theDisplayer,
                                                         const Handle(AIS_InteractiveContext)& theContext,
-                                                        const Handle_HYDROData_LandCoverMap&  theLandCoverMap,
+                                                        const Handle(HYDROData_LandCoverMap)& theLandCoverMap,
                                                         const int                             theZLayer,
                                                         const bool                            theIsScalarMode )
 : HYDROGUI_Shape( theContext, theLandCoverMap, theZLayer ),
@@ -91,7 +91,7 @@ void HYDROGUI_ShapeLandCoverMap::displayShape( const bool theIsUpdateViewer )
   myDisplayer->SetToUpdateColorScale();
 }
 
-Handle_AIS_InteractiveObject HYDROGUI_ShapeLandCoverMap::createShape() const
+Handle(AIS_InteractiveObject) HYDROGUI_ShapeLandCoverMap::createShape() const
 {
   Handle(HYDROData_LandCoverMap) aLandCoverMap = Handle(HYDROData_LandCoverMap)::DownCast( getObject() );
   if ( !aLandCoverMap.IsNull() )
@@ -115,13 +115,7 @@ Handle_AIS_InteractiveObject HYDROGUI_ShapeLandCoverMap::createShape() const
             aLandCoverMapPrs->SetTable( aTable );
 
           // Set color scale
-          OCCViewer_ViewWindow* aWnd = dynamic_cast<OCCViewer_ViewWindow*>( aViewer->getViewManager()->getActiveView() );
-          Handle(V3d_View) aView = aWnd->getViewPort()->getView();
-          if( !aView.IsNull() )
-          {
-            Handle(Aspect_ColorScale) aColorScale = aView->ColorScale();
-            aLandCoverMapPrs->SetColorScale( aColorScale );
-          }
+          aLandCoverMapPrs->SetColorScale( myDisplayer->GetColorScale( aViewerId) );
         }
       }
     }
index 263c23294b2478a3e6bcdf65011cd56eff45604b..526c52e59ce03d97a4e8d4040842bb1690368a80 100644 (file)
 #include <HYDROGUI_Shape.h>
 
 class HYDROGUI_OCCDisplayer;
-class Handle_HYDROData_LandCoverMap;
+class HYDROData_LandCoverMap;
 
 class HYDROGUI_ShapeLandCoverMap : public HYDROGUI_Shape
 {
 public:
   HYDROGUI_ShapeLandCoverMap( HYDROGUI_OCCDisplayer* theDisplayer,
                               const Handle(AIS_InteractiveContext)& theContext,
-                              const Handle_HYDROData_LandCoverMap&  theLandCoverMap,
+                              const Handle(HYDROData_LandCoverMap)& theLandCoverMap,
                               const int                             theZLayer = -1,
                               const bool                            theIsScalarMode = false );
   virtual ~HYDROGUI_ShapeLandCoverMap();
@@ -54,7 +54,7 @@ public:
 
 protected:
   virtual void              displayShape( const bool theIsUpdateViewer );
-  virtual Handle_AIS_InteractiveObject createShape() const;
+  virtual Handle(AIS_InteractiveObject) createShape() const;
 
 private:
   HYDROGUI_OCCDisplayer*           myDisplayer;
index 6c14e957b622ccf0a18bf9efc689452617cb6606..07bb17adb371ac2b8fd98f6345bf213b61e874dc 100644 (file)
@@ -46,7 +46,7 @@ HYDROGUI_ColorDelegate::~HYDROGUI_ColorDelegate()
 void HYDROGUI_ColorDelegate::paint( QPainter* thePainter, const QStyleOptionViewItem& theOption,
                                     const QModelIndex& theIndex ) const
 {
-  QColor aColor = qVariantValue<QColor>( theIndex.data( Qt::BackgroundColorRole ) );
+  QColor aColor = theIndex.data( Qt::BackgroundColorRole ).value<QColor>();
   thePainter->fillRect( theOption.rect, aColor );
 }
 
@@ -54,7 +54,7 @@ QWidget* HYDROGUI_ColorDelegate::createEditor( QWidget* theParent,
                                                const QStyleOptionViewItem& theOption,
                                                const QModelIndex& theIndex ) const
 {
-  QColor aColor = qVariantValue<QColor>( theIndex.data( Qt::BackgroundColorRole ) );
+  QColor aColor = theIndex.data( Qt::BackgroundColorRole ).value<QColor>();
   QColor aNewColor = QColorDialog::getColor( aColor );
   if( aNewColor.isValid() )
   {
@@ -166,13 +166,13 @@ HYDROGUI_StricklerTableDlg::HYDROGUI_StricklerTableDlg( HYDROGUI_Module* theModu
     myTable->setHorizontalHeaderLabels( aColumnNames );
 
     myTable->horizontalHeader()->setStretchLastSection( false );
-    myTable->horizontalHeader()->setResizeMode( 0, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setResizeMode( 1, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setResizeMode( 2, QHeaderView::ResizeToContents );
-    myTable->horizontalHeader()->setResizeMode( 3, QHeaderView::Stretch );
+    myTable->horizontalHeader()->setSectionResizeMode( 0, QHeaderView::ResizeToContents );
+    myTable->horizontalHeader()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
+    myTable->horizontalHeader()->setSectionResizeMode( 2, QHeaderView::ResizeToContents );
+    myTable->horizontalHeader()->setSectionResizeMode( 3, QHeaderView::Stretch );
     myTable->horizontalHeader()->setMinimumSectionSize( 50 );
 
-    myTable->verticalHeader()->setResizeMode( QHeaderView::ResizeToContents );
+    myTable->verticalHeader()->setSectionResizeMode( QHeaderView::ResizeToContents );
 
     // Layout
     // buttons
@@ -250,7 +250,7 @@ void HYDROGUI_StricklerTableDlg::setTableNameReadOnly( bool on )
     myName->setReadOnly( on );
 }
 
-void HYDROGUI_StricklerTableDlg::getGuiData( Handle_HYDROData_StricklerTable& theTable ) const
+void HYDROGUI_StricklerTableDlg::getGuiData( Handle(HYDROData_StricklerTable)& theTable ) const
 {
   if( theTable.IsNull() )
     return;
@@ -278,7 +278,7 @@ void HYDROGUI_StricklerTableDlg::getGuiData( Handle_HYDROData_StricklerTable& th
   }
 }
 
-void HYDROGUI_StricklerTableDlg::setGuiData( const Handle_HYDROData_StricklerTable& theTable )
+void HYDROGUI_StricklerTableDlg::setGuiData( const Handle(HYDROData_StricklerTable)& theTable )
 {
   myAttrName->setText( theTable->GetAttrName() );
 
index 6801b55d9daf63aee23361cd9975ac26d7387158..11704db432d2c253edc8ce99ee5509c53326df41 100644 (file)
@@ -21,8 +21,9 @@
 
 #include "HYDROGUI_InputPanel.h"
 #include <QAbstractItemDelegate>
+#include <Standard_Type.hxx>
 
-class Handle_HYDROData_StricklerTable;
+class HYDROData_StricklerTable;
 
 class QGroupBox;
 class QLineEdit;
@@ -52,8 +53,8 @@ public:
     bool                       isTableNameReadOnly() const;
     void                       setTableNameReadOnly( bool );
 
-    void                       getGuiData( Handle_HYDROData_StricklerTable& theTable ) const;
-    void                       setGuiData( const Handle_HYDROData_StricklerTable& theTable );
+    void                       getGuiData( Handle(HYDROData_StricklerTable)& theTable ) const;
+    void                       setGuiData( const Handle(HYDROData_StricklerTable)& theTable );
 
 protected:
     void                       updateControls();
index 8f592db39a46cf4452280d442ae70158f67b23c0..321a72cdc7f44ad5d83d9fd0bb3761740ff50172 100644 (file)
@@ -46,7 +46,7 @@ HYDROGUI_StricklerTypeComboBox::HYDROGUI_StricklerTypeComboBox( HYDROGUI_Module*
   if ( myModule )
   {
     // Construct a list of unique names of all Strickler types defined within the data model
-    Handle_HYDROData_Document aDoc = HYDROData_Document::Document( myModule->getStudyId() );
+    Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( myModule->getStudyId() );
     if ( aDoc )
     {
       QStringList aStricklerTypes;
index f86499f2b94171631fa6e7e5688ecdeb05ebc8ee..af92511763d2b47ad114139193fead1db1e44637 100644 (file)
@@ -200,7 +200,7 @@ HYDROData_SequenceOfObjects HYDROGUI_Tool::GetObjectBackReferences( const Handle
 }
 
 QMap<QString,HYDROData_SequenceOfObjects> HYDROGUI_Tool::GetObjectsBackReferences(
-  const Handle_HYDROData_Document& theDocument, const QStringList& theObjectNames )
+  const Handle(HYDROData_Document)& theDocument, const QStringList& theObjectNames )
 {
   QMap<QString,HYDROData_SequenceOfObjects> aResMap;
 
@@ -268,7 +268,7 @@ QStringList HYDROGUI_Tool::FindExistingObjectsNames( const Handle(HYDROData_Docu
     
     if( isOK && isCheckValidProfile )
     {
-      Handle_HYDROData_Profile aProfile = Handle_HYDROData_Profile::DownCast( anObject );
+      Handle(HYDROData_Profile) aProfile = Handle(HYDROData_Profile)::DownCast( anObject );
       if( !aProfile.IsNull() && !aProfile->IsValid() )
         isOK = false;
     }
index 99aa175ced8d12252890a750a76b02fa0c649292..90756880a9589c23d1cf8e1fbf7635d33585ec86 100644 (file)
 #include <QString>
 
 class TCollection_AsciiString;
-class Handle_HYDROData_Document;
-class Handle_Image_PixMap;
-class Handle_TCollection_HAsciiString;
-class Handle_TCollection_HExtendedString;
+class HYDROData_Document;
+class Image_PixMap;
+class TCollection_HAsciiString;
+class TCollection_HExtendedString;
 class QDockWidget;
 class QImage;
 class QWidget;
@@ -35,8 +35,8 @@ namespace HYDROGUI_Tool
 {
   QString ToQString( const TCollection_AsciiString& );
   QString ToQString( const TCollection_ExtendedString& );
-  QString ToQString( const Handle_TCollection_HAsciiString& );
-  QString ToQString( const Handle_TCollection_HExtendedString& );
+  QString ToQString( const Handle(TCollection_HAsciiString)& );
+  QString ToQString( const Handle(TCollection_HExtendedString)& );
   TCollection_AsciiString ToAsciiString( const QString& );
   TCollection_ExtendedString ToExtString( const QString& );
   Handle(TCollection_HAsciiString) ToHAsciiString( const QString& );
@@ -46,19 +46,19 @@ namespace HYDROGUI_Tool
 
   QDockWidget* WindowDock( QWidget* wid );
 
-  QStringList FindExistingObjectsNames( const Handle_HYDROData_Document& theDoc, 
+  QStringList FindExistingObjectsNames( const Handle(HYDROData_Document)& theDoc, 
                                         const ObjectKind theObjectKind, 
                                         bool isCheckValidProfile = false );
   QString GetCoordinateString( const double theNumber, bool isInLocale );
   
-  Handle_Image_PixMap Pixmap( const QImage& theImage );
+  Handle(Image_PixMap) Pixmap( const QImage& theImage );
 
   void GetObjectReferences( const Handle(HYDROData_Entity)& theObj,
                             HYDROData_SequenceOfObjects& theRefObjects,
                             QStringList& theRefNames );
   HYDROData_SequenceOfObjects GetObjectBackReferences( const Handle(HYDROData_Entity)& theObj );
   QMap<QString,HYDROData_SequenceOfObjects> GetObjectsBackReferences
-    ( const Handle_HYDROData_Document& theDocument, const QStringList& theObjectNames );
+    ( const Handle(HYDROData_Document)& theDocument, const QStringList& theObjectNames );
 };
 
 #endif
index c87743e04fb7e78f46a76669b74a744d364c7aad..ef1962e806843c903ee22a05a0b1f0821fc2bd86 100644 (file)
@@ -244,7 +244,7 @@ ObjectKind HYDROGUI_Tool::GetSelectedPartition( HYDROGUI_Module* theModule )
     {
       anEntry.remove( aPrefix );
       for( ObjectKind anObjectKind = KIND_UNKNOWN + 1; anObjectKind <= KIND_LAST; anObjectKind++ )
-        if( HYDROGUI_DataModel::tr( HYDROGUI_DataModel::partitionName( anObjectKind ).toAscii() ) == anEntry )
+        if( HYDROGUI_DataModel::tr( HYDROGUI_DataModel::partitionName( anObjectKind ).toLatin1() ) == anEntry )
           return anObjectKind;
     }
   }
index e39bc3f68b161ff3837b17f9b4f217ab2eb0c30a..980372accdd67de3de4b3adaece5c9e10db46d46 100644 (file)
@@ -33,7 +33,7 @@ class HYDROGUI_Prs;
 class SUIT_ViewManager;
 class GraphicsView_ViewPort;
 class OCCViewer_ViewFrame;
-class Handle_HYDROData_Document;
+class HYDROData_Document;
 
 namespace HYDROGUI_Tool
 {
@@ -52,7 +52,7 @@ namespace HYDROGUI_Tool
 
   HYDROData_SequenceOfObjects GetSelectedObjects( HYDROGUI_Module* theModule );
 
-  bool IsObjectHasPresentation( const Handle_HYDROData_Entity& theObject,
+  bool IsObjectHasPresentation( const Handle(HYDROData_Entity)& theObject,
                                 const QString&                 theViewerType = "" );
 
   Handle(HYDROData_Entity) GetSelectedObject( HYDROGUI_Module* theModule );
@@ -95,7 +95,7 @@ namespace HYDROGUI_Tool
 
   QColor GenerateFillingColor( HYDROGUI_Module* theModule, const QStringList& theZoneNames );
 
-  QColor GenerateFillingColor( const Handle_HYDROData_Document& theDoc,
+  QColor GenerateFillingColor( const Handle(HYDROData_Document)& theDoc,
                                const QStringList& theZoneNames );
 
   QStringList GetSelectedGeomObjects( HYDROGUI_Module* theModule,
index 4e8b5ba0191f874fefe51398e56ee2cece88d8e6..70f1157f13866e14978c11bd83e0a14cdca71cf3 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <NCollection_Map.hxx>
 
-class Handle_HYDROData_Entity;
+class HYDROData_Entity;
 
 class HYDROGUI_UpdateObjectOp : public HYDROGUI_Operation
 {
@@ -38,7 +38,7 @@ protected:
 
   virtual void               startOperation();
 
-  virtual void               updateObject( const Handle_HYDROData_Entity& theObject,
+  virtual void               updateObject( const Handle(HYDROData_Entity)& theObject,
                                            NCollection_Map<Handle(HYDROData_Entity)>& theMapOfTreated  ) const;
 
 private:
index c16dbb01f8309fcaf873fe1eedb65cb939a10234..925f013ccea1c83b7dc41df479c7f746bcf8602b 100644 (file)
@@ -34,7 +34,7 @@ HYDROGUI_VTKPrs::HYDROGUI_VTKPrs( const Handle(HYDROData_Entity)& theObject )
   // Define IO for actors to be added:
   QString anEntry = HYDROGUI_DataObject::dataObjectEntry( theObject );
   myIO = new SALOME_InteractiveObject(
-    anEntry.toAscii(), QString::number( theObject->GetKind() ).toAscii(), theObject->GetName().toAscii() );
+    anEntry.toLatin1(), QString::number( theObject->GetKind() ).toLatin1(), theObject->GetName().toLatin1() );
   myZRange[0] = HYDROData_IAltitudeObject::GetInvalidAltitude();
   myZRange[1] = HYDROData_IAltitudeObject::GetInvalidAltitude();
 }
index 52969e5e353aacc4b71db07ffff442ff15dd02ea..af8b9bf89502ebdaa90f3363c142c8ef10265665 100644 (file)
@@ -192,8 +192,7 @@ void HYDROGUI_VTKPrsShape::buildShape()
         HYDROData_SequenceOfObjects::Iterator anIter( aRefObjects );
         for ( ; anIter.More(); anIter.Next() )
         {
-          Handle(HYDROData_Entity) aRefbject = 
-            Handle(HYDROData_Entity)::DownCast( anIter.Value() );
+          Handle(HYDROData_Entity) aRefbject = anIter.Value();
           if ( aRefbject.IsNull() )
             continue;
 
index 0fe911d488f0c16f487867dbcf95a4674bd53326..4cd49e8b055dd0218ae9cd15150ed444e1c372be 100644 (file)
@@ -23,7 +23,7 @@
 
 void SetZLayerForPrs( const Handle(PrsMgr_Presentation)& thePrs, int theLayerId );
 
-void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject,
+void SetPrsZLayer( const Handle(PrsMgr_PresentableObject)& thePresentableObject,
                    const int theMode, const int theLayerId )
 {
   PrsMgr_Presentations& aPresentations = thePresentableObject->Presentations();
@@ -37,7 +37,7 @@ void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject,
   }
 }
 
-void SetZLayerSettings( const Handle_V3d_Viewer& theViewer3d, int theLayerId, bool theIsOrdered )
+void SetZLayerSettings( const Handle(V3d_Viewer)& theViewer3d, int theLayerId, bool theIsOrdered )
 {
   if ( theViewer3d.IsNull() /*|| theLayerId < 0*/ )
   {
@@ -65,7 +65,7 @@ void SetZLayerSettings( const Handle_V3d_Viewer& theViewer3d, int theLayerId, bo
   theViewer3d->SetZLayerSettings( theLayerId, aSettings );
 }
 
-int CreateTopZLayer( const Handle_V3d_Viewer& theViewer3d )
+int CreateTopZLayer( const Handle(V3d_Viewer)& theViewer3d )
 {
   int aTopZLayer = -1;
 
@@ -77,7 +77,7 @@ int CreateTopZLayer( const Handle_V3d_Viewer& theViewer3d )
 }
 
 
-HYDROGUI_ZLayersIterator::HYDROGUI_ZLayersIterator( const Handle_V3d_Viewer& theViewer )
+HYDROGUI_ZLayersIterator::HYDROGUI_ZLayersIterator( const Handle(V3d_Viewer)& theViewer )
   : myIndex( 0 ), myNewZLayer( -1 ), myViewer( theViewer )
 {
   Init( theViewer );
@@ -87,7 +87,7 @@ HYDROGUI_ZLayersIterator::~HYDROGUI_ZLayersIterator()
 {
 }
 
-void HYDROGUI_ZLayersIterator::Init( const Handle_V3d_Viewer& theViewer )
+void HYDROGUI_ZLayersIterator::Init( const Handle(V3d_Viewer)& theViewer )
 {
   TColStd_SequenceOfInteger anExistingZLayers;
   theViewer->GetAllZLayers( anExistingZLayers );
index 3fd3fd47cabad0f385bdd86e3fd3134f82dc4f20..1b3069d9fb2f2361b6a99cdaeae77e228bc71e0a 100644 (file)
 #include <vector>
 #include <V3d_Viewer.hxx>
 
-class Handle_PrsMgr_PresentableObject;
-class Handle_AIS_InteractiveContext;
+class PrsMgr_PresentableObject;
+class AIS_InteractiveContext;
 
 class HYDROGUI_ZLayersIterator
 {
 public:
-  HYDROGUI_ZLayersIterator( const Handle_V3d_Viewer& );
+  HYDROGUI_ZLayersIterator( const Handle(V3d_Viewer)& );
   ~HYDROGUI_ZLayersIterator();
 
-  void Init( const Handle_V3d_Viewer& );
+  void Init( const Handle(V3d_Viewer)& );
   bool More() const;
   void Next();
   int LayerId() const;
@@ -41,13 +41,13 @@ private:
   std::vector<int>  myZLayers;
   int               myIndex;
   int               myNewZLayer;
-  Handle_V3d_Viewer myViewer;
+  Handle(V3d_Viewer) myViewer;
 };
 
-void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject,
+void SetPrsZLayer( const Handle(PrsMgr_PresentableObject)& thePresentableObject,
                    const int theMode, const int theLayerId );
-void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_InteractiveContext&, int theLayer );
-void SetZLayerSettings( const Handle_V3d_Viewer&, int theLayerId, bool theIsOrdered );
-int  CreateTopZLayer( const Handle_V3d_Viewer& );
+void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)&, int theLayer );
+void SetZLayerSettings( const Handle(V3d_Viewer)&, int theLayerId, bool theIsOrdered );
+int  CreateTopZLayer( const Handle(V3d_Viewer)& );
 
 #endif
index 76bd41b06414b7c0802b1b98727aaf4775d4a6a0..af9391c7e8c5afcc1d014cba9e16c70e636c6448 100644 (file)
@@ -24,7 +24,7 @@
 #include <AIS_Trihedron.hxx>
 #include <PrsMgr_PresentationManager3d.hxx>
 
-void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_InteractiveContext& theContext,
+void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)& theContext,
                                                             int theLayer )
 {
   AIS_ListOfInteractive aDisplayedObjects;
index 0d0ab6bc3cc5ee1b2feb31b4c4d7251b50e30fa7..6da859d9a4ede9ff32f9f022bd03304fe2aef58d 100644 (file)
@@ -65,8 +65,7 @@ QString HYDROGUI_Zone::getRefObjectNames() const
     HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
     for ( ; anIter.More(); anIter.Next() )
     {
-      Handle(HYDROData_Entity) aRefGeomObj =
-        Handle(HYDROData_Entity)::DownCast( anIter.Value() );
+      Handle(HYDROData_Entity) aRefGeomObj = anIter.Value();
       if ( !aRefGeomObj.IsNull() )
       {
         // Get Ref.Object name
index 6eedb591ddb1668487211ef4de7fda5a4ad3d22d..804641250e4f49751baf398085351908a7c68269 100644 (file)
@@ -1,5 +1,5 @@
 include(../../CMake/Common.cmake)
-include(UsePyQt4)
+INCLUDE(UsePyQt)
 
 # additional include directories
 INCLUDE_DIRECTORIES(
@@ -34,7 +34,7 @@ SET(_sip_input_file
 
 SET(_add_SOURCES
   sipHYDROPycmodule.cc
-  sipHYDROPygp_XY.cc
+  sipHYDROPyNCollection_Sequence0600opencascadehandle0100HYDROData_Entity.cc
   sipHYDROPygp_XYZ.cc
   sipHYDROPyHYDROData_AltitudeObject.cc
   sipHYDROPyHYDROData_Application.cc
@@ -86,7 +86,7 @@ SET(_add_SOURCES
 )
 
 # sources / sip wrappings
-PYQT4_WRAP_SIP(_sip_SOURCES ${_sip_input_file} SOURCES ${_add_SOURCES})
+PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files} SOURCES ${_add_SOURCES})
 
 # sources / to compile
 SET(HYDROPy_SOURCES ${_sip_SOURCES})
index 1bbc51e6c12e7324d616b1777c770f8887699d8a..74bc249a1cb2df88ad2c7f8222c55a248c5a257c 100644 (file)
@@ -87,7 +87,7 @@ public:
   /**
    * Add new one reference geometry object for calculation case.
    */
-  bool AddGeometryObject( HYDROData_Object theObject ) [bool ( const Handle_HYDROData_Object& )];
+  bool AddGeometryObject( HYDROData_Object theObject ) [bool ( const opencascade::handle<HYDROData_Object>& )];
   %MethodCode
     Handle(HYDROData_Object) aRef =
       Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
@@ -109,7 +109,7 @@ public:
    * Removes reference geometry object from calculation case.
    */
   void RemoveGeometryObject( HYDROData_Object theObject )
-  [void ( const Handle_HYDROData_Object& )];
+  [void ( const opencascade::handle<HYDROData_Object>& )];
   %MethodCode
     Handle(HYDROData_Object) aRef =
       Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
@@ -134,7 +134,7 @@ public:
   /**
    * Add new one reference geometry group for calculation case.
    */
-  bool AddGeometryGroup( HYDROData_ShapesGroup theGroup ) [bool ( const Handle_HYDROData_ShapesGroup& )];
+  bool AddGeometryGroup( HYDROData_ShapesGroup theGroup ) [bool ( const opencascade::handle<HYDROData_ShapesGroup>& )];
   %MethodCode
     Handle(HYDROData_ShapesGroup) aRef =
       Handle(HYDROData_ShapesGroup)::DownCast( createHandle( a0 ) );
@@ -155,7 +155,7 @@ public:
   /**
    * Removes reference geometry group from calculation case.
    */
-  void RemoveGeometryGroup( HYDROData_ShapesGroup theGroup ) [void ( const Handle_HYDROData_ShapesGroup& )];
+  void RemoveGeometryGroup( HYDROData_ShapesGroup theGroup ) [void ( opencascade::handle<HYDROData_ShapesGroup>& )];
   %MethodCode
     Handle(HYDROData_ShapesGroup) aRef =
       Handle(HYDROData_ShapesGroup)::DownCast( createHandle( a0 ) );
@@ -180,7 +180,7 @@ public:
   /**
    * Sets reference boundary polyline object for calculation case.
    */
-  void SetBoundaryPolyline( HYDROData_PolylineXY thePolyline ) [void ( const Handle_HYDROData_PolylineXY& )];
+  void SetBoundaryPolyline( HYDROData_PolylineXY thePolyline ) [void ( opencascade::handle<HYDROData_PolylineXY>& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
@@ -199,7 +199,7 @@ public:
   /**
    * Returns reference boundary polyline object of calculation case.
    */
-  HYDROData_PolylineXY GetBoundaryPolyline() const [Handle_HYDROData_PolylineXY ()];
+  HYDROData_PolylineXY GetBoundaryPolyline() const [opencascade::handle<HYDROData_PolylineXY> ()];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef;
     
@@ -254,7 +254,7 @@ public:
    * The label of theZone is changed during this operation
    * because of new region becomes the new parent for this zone.
    */
-  HYDROData_Region AddNewRegion( HYDROData_Zone theZone ) [Handle_HYDROData_Region ( const Handle_HYDROData_Zone& )];
+  HYDROData_Region AddNewRegion( HYDROData_Zone theZone ) [opencascade::handle<HYDROData_Region> ( opencascade::handle<HYDROData_Zone>& )];
   %MethodCode
     Handle(HYDROData_Zone) aRef =
       Handle(HYDROData_Zone)::DownCast( createHandle( a0 ) );
@@ -275,7 +275,7 @@ public:
    * Add new one reference region for calculation case.
    * The label of theRegion is changed in case if old parent is not this calculation.
    */
-  bool AddRegion( HYDROData_Region theRegion ) [bool ( const Handle_HYDROData_Region& )];
+  bool AddRegion( HYDROData_Region theRegion ) [bool ( opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     Handle(HYDROData_Region) aRef =
       Handle(HYDROData_Region)::DownCast( createHandle( a0 ) );
@@ -301,7 +301,7 @@ public:
   /**
    * Removes reference region from calculation case.
    */
-  void RemoveRegion( HYDROData_Region theRegion ) [void ( const Handle_HYDROData_Region& )];
+  void RemoveRegion( HYDROData_Region theRegion ) [void ( opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     Handle(HYDROData_Region) aRef =
       Handle(HYDROData_Region)::DownCast( createHandle( a0 ) );
@@ -389,7 +389,7 @@ public:
   double GetAltitudeForPoint( const double     theCoordX,
                               const double     theCoordY,
                               HYDROData_Region theRegion ) const
-  [double ( const gp_XY&, const Handle_HYDROData_Region& )];
+  [double ( const gp_XY&, opencascade::handle<HYDROData_Region>& )];
   %MethodCode
     gp_XY aPnt( a0, a1 );
     Handle(HYDROData_Region) aRefRegion =
@@ -410,7 +410,7 @@ public:
   double GetAltitudeForPoint( const double theCoordX,
                               const double theCoordY,
                               HYDROData_Zone theZone ) const
-  [double ( const gp_XY&, const Handle_HYDROData_Zone& )];
+  [double ( const gp_XY&, opencascade::handle<HYDROData_Zone>& )];
   %MethodCode
     gp_XY aPnt( a0, a1 );
     Handle(HYDROData_Zone) aRefZone =
@@ -432,7 +432,7 @@ public:
                                                       const NCollection_Sequence<double>& theCoordsY,
                                                       HYDROData_Region                    theRegion,
                                                       int                                 theMethod = 0) const
-  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, const Handle_HYDROData_Region&, int)];
+  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, opencascade::handle<HYDROData_Region>&, int)];
   %MethodCode
 
     NCollection_Sequence<gp_XY> aPnts;
@@ -489,7 +489,7 @@ public:
                                                       const NCollection_Sequence<double>& theCoordsY,
                                                       HYDROData_Zone                      theZone,
                                                       int                                 theMethod = 0) const
-  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, const Handle_HYDROData_Zone&, int )];
+  [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, opencascade::handle<HYDROData_Zone>&, int )];
   %MethodCode
 
     NCollection_Sequence<gp_XY> aPnts;
@@ -521,7 +521,7 @@ public:
    */
   HYDROData_Region GetRegionFromPoint( const double theCoordX,
                                        const double theCoordY ) const
-  [Handle_HYDROData_Region ( const gp_XY& )];
+  [opencascade::handle<HYDROData_Region> ( const gp_XY& )];
   %MethodCode
     Handle(HYDROData_Region) aRes;
     
@@ -542,7 +542,7 @@ public:
    */
   HYDROData_Zone GetZoneFromPoint( const double theCoordX,
                                    const double theCoordY ) const
-  [Handle_HYDROData_Zone ( const gp_XY& )];
+  [opencascade::handle<HYDROData_Zone> ( const gp_XY& )];
   %MethodCode
     Handle(HYDROData_Zone) aRes;
     
@@ -565,7 +565,7 @@ public:
   PointClassification GetPointClassification( const double theCoordX,
                                               const double theCoordY,
                                               HYDROData_Zone theZone ) const 
-  [PointClassification ( const gp_XY&, const Handle_HYDROData_Zone& )];    
+  [PointClassification ( const gp_XY&, opencascade::handle<HYDROData_Zone>& )];    
   %MethodCode
     gp_XY aPnt( a0, a1 );
 
@@ -586,12 +586,10 @@ public:
                 HYDROData_Entity                   theObject2,
                 HYDROData_Zone::MergeType          theMergeType,
                                HYDROData_CalculationCase::DataTag theDataTag )
-  [void ( const Handle_HYDROData_Entity&, HYDROData_PriorityType, const Handle_HYDROData_Entity&, HYDROData_Zone::MergeType, HYDROData_CalculationCase::DataTag )];
+  [void ( const opencascade::handle<HYDROData_Entity>&, HYDROData_PriorityType, opencascade::handle<HYDROData_Entity>&, HYDROData_Zone::MergeType, HYDROData_CalculationCase::DataTag )];
   %MethodCode
-    Handle(HYDROData_Entity) anObject1 =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) );
-    Handle(HYDROData_Entity) anObject2 =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a2 ) );
+    Handle(HYDROData_Entity) anObject1 = createHandle( a0 );
+    Handle(HYDROData_Entity) anObject2 = createHandle( a2 );
 
     Py_BEGIN_ALLOW_THREADS
     sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::AddRule( anObject1, a1, anObject2, a3, a4 ) : 
index 1ff170acce53a4222bea1ee22fb8426040c6d042..f1ef457ad7c53d671555f6108ba9be2d45425a1b 100644 (file)
@@ -63,7 +63,7 @@ public:
    * Sets reference guide line object for channel.
    */
   bool SetGuideLine( HYDROData_Polyline3D theGuideLine )
-  [bool ( const Handle_HYDROData_Polyline3D& )];
+  [bool ( const opencascade::handle<HYDROData_Polyline3D>& )];
   %MethodCode
     Handle(HYDROData_Polyline3D) aRef =
       Handle(HYDROData_Polyline3D)::DownCast( createHandle( a0 ) );
@@ -80,7 +80,7 @@ public:
    * Returns reference guide line object of channel.
    */
   HYDROData_Polyline3D GetGuideLine() const
-  [Handle_HYDROData_Polyline3D ()];
+  [opencascade::handle<HYDROData_Polyline3D> ()];
   %MethodCode
     Handle(HYDROData_Polyline3D) aRef;
     
@@ -102,7 +102,7 @@ public:
    * Sets reference profile object for channel.
    */
   bool SetProfile( HYDROData_Profile theProfile )
-  [bool ( const Handle_HYDROData_Profile& )];
+  [bool ( const opencascade::handle<HYDROData_Profile>& )];
   %MethodCode
     Handle(HYDROData_Profile) aRef =
       Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) );
@@ -119,7 +119,7 @@ public:
    * Returns reference profile object of channel.
    */
   HYDROData_Profile GetProfile() const
-  [Handle_HYDROData_Profile ()];
+  [opencascade::handle<HYDROData_Profile> ()];
   %MethodCode
     Handle(HYDROData_Profile) aRef;
     
index 4ebd3353f9aa4bf1be58f3b308dfd59a94236e13..882fe167ab7cd1444c472ad7bcc15896a8810877 100644 (file)
@@ -42,7 +42,8 @@ class HYDROData_Document
 %End
 
 %ConvertToSubClassCode
-    if ( !Handle(HYDROData_Document)::DownCast( sipCpp ).IsNull() )
+    HYDROData_Document* aDoc = dynamic_cast< HYDROData_Document*>( sipCpp );
+    if ( aDoc )
       sipClass = sipClass_HYDROData_Document;
     else
       sipClass = NULL;
@@ -199,7 +200,7 @@ class HYDROData_Document
 public:
 
   //! Returns the existing document or creates new if it is not exist
-  static HYDROData_Document Document( const int theStudyID ) [Handle_HYDROData_Document (const int)] ;
+  static HYDROData_Document Document( const int theStudyID ) [opencascade::handle<HYDROData_Document> (const int)] ;
   %MethodCode
 
     Handle(HYDROData_Document) aDocument;
@@ -273,7 +274,7 @@ public:
   //! Creates and locates in the document a new object
   //! \param theKind kind of the created object, can not be UNKNOWN
   //! \returns the created object
-  HYDROData_Entity CreateObject( const ObjectKind theKind ) [Handle_HYDROData_Entity (const ObjectKind)] ;
+  HYDROData_Entity CreateObject( const ObjectKind theKind ) [opencascade::handle<HYDROData_Entity> (const ObjectKind)] ;
   %MethodCode
 
     Handle(HYDROData_Entity) anObject;
@@ -288,7 +289,7 @@ public:
 
   HYDROData_Entity FindObjectByName( const QString&   theName,
                                      const ObjectKind theKind = KIND_UNKNOWN ) 
-  [Handle_HYDROData_Entity (const QString&, const ObjectKind)] ;
+  [opencascade::handle<HYDROData_Entity> (const QString&, const ObjectKind)] ;
   %MethodCode
 
     Handle(HYDROData_Entity) anObject;
index 4eae394f4e86a03f2095e38d41481646ffb62c6a..c9b676672b057c24642281f4c541696d28fd7492 100644 (file)
@@ -222,7 +222,7 @@ public:
    * Returns father object. For object created under root document label
    * this method always return NULL object.
    */
-  HYDROData_Entity GetFatherObject() const [Handle_HYDROData_Entity ()];
+  HYDROData_Entity GetFatherObject() const [opencascade::handle<HYDROData_Entity> ()];
   %MethodCode
     Handle(HYDROData_Entity) aFather;
     
@@ -244,7 +244,7 @@ public:
   /**
    * Returns the z-level for object presentation, -1 if no z-level.
    */
-  virtual bool GetZLevel( int& theLevel ) const [Standard_Boolean ( Standard_Integer& )];
+  virtual bool GetZLevel( int& theLevel ) const [bool ( Standard_Integer& )];
 
   /**
    * Set the z-level for object presentation.
index 1b5dfe4467b9557588fc838ea5c1a09d6ed6f985..23ed1ad9a944a2c5ed39075d8ccc29c19f4deacd 100644 (file)
@@ -56,7 +56,7 @@ public:
    * Sets the altitude object for interpolation.
    */
   void SetAltitudeObject( HYDROData_IAltitudeObject theAltitude ) 
-  [void ( const Handle_HYDROData_IAltitudeObject& )];
+  [void ( const opencascade::handle<HYDROData_IAltitudeObject>& )];
   %MethodCode
     Handle(HYDROData_IAltitudeObject) anAltitude =
       Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) );
@@ -74,7 +74,7 @@ public:
   /**
    * Returns the altitude object for interpolation.
    */
-  HYDROData_IAltitudeObject GetAltitudeObject() const [Handle_HYDROData_IAltitudeObject ()];
+  HYDROData_IAltitudeObject GetAltitudeObject() const [opencascade::handle<HYDROData_IAltitudeObject> ()];
   %MethodCode
     Handle(HYDROData_IAltitudeObject) aRes;
     
index 00e70250e7978f3ab0c48efad7ab9a8013ab6b6d..64935d935ef9e507ccffb6e3495592004d93ab59 100644 (file)
@@ -196,7 +196,7 @@ public:
                            const QPointF&  thePointB,
                            const QPointF&  thePointC = QPoint( INT_MIN, INT_MIN ),
                            const bool      theIsUpdate = true )
-  [void ( const Handle_HYDROData_Image&, const QPointF&, const QPointF&, const QPointF&, const bool )];
+  [void ( const opencascade::handle<HYDROData_Image>&, const QPointF&, const QPointF&, const QPointF&, const bool )];
   %MethodCode
     Handle(HYDROData_Image) aRefImage =
       Handle(HYDROData_Image)::DownCast( createHandle( a0 ) );
@@ -221,7 +221,7 @@ public:
                            QPointF&        thePointA /Out/,
                            QPointF&        thePointB /Out/,
                            QPointF&        thePointC /Out/ ) const
-  [bool ( const Handle_HYDROData_Image&, QPointF&, QPointF&, QPointF& )];
+  [bool ( const opencascade::handle<HYDROData_Image>&, QPointF&, QPointF&, QPointF& )];
   %MethodCode
     Handle(HYDROData_Image) aRefImage =
       Handle(HYDROData_Image)::DownCast( createHandle( a0 ) );
@@ -239,12 +239,11 @@ public:
    */
   bool HasReferencePoints() const;
 
-
   /**
    * Stores the reference image for transformation
    * \param theRefImage reference image
    */
-  void SetTrsfReferenceImage( HYDROData_Image theRefImage ) [void ( const Handle_HYDROData_Image& )];
+  void SetTrsfReferenceImage( HYDROData_Image theRefImage ) [void ( const opencascade::handle<HYDROData_Image>& )];
   %MethodCode
     Handle(HYDROData_Image) aRefImage =
       Handle(HYDROData_Image)::DownCast( createHandle( a0 ) );
@@ -260,7 +259,7 @@ public:
   /**
    * Returns the reference image for transformation
    */
-  HYDROData_Image GetTrsfReferenceImage() const [Handle_HYDROData_Image ()];
+  HYDROData_Image GetTrsfReferenceImage() const [opencascade::handle<HYDROData_Image> ()];
   %MethodCode
     Handle(HYDROData_Image) aRefImage;
     
@@ -299,7 +298,7 @@ public:
    * Appends reference to other object (image or polyline).
    * \param theReferenced the object referenced by this
    */
-  void AppendReference( HYDROData_Entity theReferenced ) [void ( const Handle_HYDROData_Entity& )];
+  void AppendReference( HYDROData_Entity theReferenced ) [void ( const opencascade::handle<HYDROData_Entity>& )];
   %MethodCode
     Handle(HYDROData_Entity) aRef = createHandle( a0 );
     if ( !aRef.IsNull() )
@@ -316,7 +315,7 @@ public:
    * \param theIndex number of reference [0; NbReference)
    * \returns the referenced object, or Null if index is invalid
    */
-  HYDROData_Entity Reference( const int theIndex ) const [Handle_HYDROData_Entity ()];
+  HYDROData_Entity Reference( const int theIndex ) const [opencascade::handle<HYDROData_Entity> ()];
   %MethodCode
     Handle(HYDROData_Entity) aRef;
     
@@ -335,7 +334,7 @@ public:
    * \param theReferenced the object referenced by this
    */
   void ChangeReference( const int theIndex, HYDROData_Entity theReferenced )
-  [void ( const int, const Handle_HYDROData_Entity& )];
+  [void ( const int, const opencascade::handle<HYDROData_Entity>& )];
   %MethodCode
     Handle(HYDROData_Entity) aRef = createHandle( a1 );
     if ( !aRef.IsNull() )
index bd9ecd7a9f6b4f69e467aa9b75aed1660020be2f..3f5f6116361cf52e8c56e265a4f37dfa07ef273e 100644 (file)
@@ -45,7 +45,7 @@ public:
   /**
    * Sets reference polyline object for zone.
    */
-  void SetPolyline( HYDROData_PolylineXY thePolyline ) [void (const Handle_HYDROData_PolylineXY&)];
+  void SetPolyline( HYDROData_PolylineXY thePolyline ) [void (const opencascade::handle<HYDROData_PolylineXY>&)];
   %MethodCode
 
     Handle(HYDROData_PolylineXY) aRefPolyline =
@@ -63,7 +63,7 @@ public:
   /**
    * Returns reference polyline object of zone.
    */
-  HYDROData_PolylineXY GetPolyline() const [Handle_HYDROData_PolylineXY ()];
+  HYDROData_PolylineXY GetPolyline() const [opencascade::handle<HYDROData_PolylineXY> ()];
   %MethodCode
 
     Handle(HYDROData_PolylineXY) aRefPolyline;
index b20417de3d7b4b9dba31add8b0ac42aae5a1a260..7f9d15428832ab0337b15312a573bf5157027f43 100644 (file)
@@ -68,7 +68,7 @@ public:
 
   bool ExportTelemac( const QString& theFileName, double theDeflection,
                       HYDROData_StricklerTable theTable ) const
-  [bool( const QString&, double, const Handle_HYDROData_StricklerTable& )];
+  [bool( const QString&, double, const opencascade::handle<HYDROData_StricklerTable>& )];
   %MethodCode
     Handle(HYDROData_StricklerTable) aRef =
       Handle(HYDROData_StricklerTable)::DownCast( createHandle( a2 ) );
@@ -83,7 +83,7 @@ public:
   %End
 
   bool Add( HYDROData_Object theObject, const QString& theType )
-  [bool ( const Handle_HYDROData_Object&, const QString& )];
+  [bool ( const opencascade::handle<HYDROData_Object>&, const QString& )];
   %MethodCode
     Handle(HYDROData_Object) aRef =
       Handle(HYDROData_Object)::DownCast( createHandle( a0 ) );
@@ -97,7 +97,7 @@ public:
   %End
 
   bool Add( HYDROData_PolylineXY thePolyline, const QString& theType )
-  [bool ( const Handle_HYDROData_PolylineXY&, const QString& )];
+  [bool ( const opencascade::handle<HYDROData_PolylineXY>&, const QString& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
@@ -111,7 +111,7 @@ public:
   %End
 
   bool Split( HYDROData_PolylineXY thePolyline )
-  [bool ( const Handle_HYDROData_PolylineXY& )];
+  [bool ( const opencascade::handle<HYDROData_PolylineXY>& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
index 5e18bd214bb04323777a303b4589970a759583db..9b0fd58ee70b4dfebec055796f244e6c41c929b7 100644 (file)
@@ -77,7 +77,7 @@ public:
   /**
    * Set reference altitude object for geometry object.
    */
-  bool SetAltitudeObject( HYDROData_IAltitudeObject theAltitude ) [void (const Handle_HYDROData_IAltitudeObject&)];
+  bool SetAltitudeObject( HYDROData_IAltitudeObject theAltitude ) [void (const opencascade::handle<HYDROData_IAltitudeObject>&)];
   %MethodCode
 
     Handle(HYDROData_IAltitudeObject) aRefAltitude =
@@ -95,7 +95,7 @@ public:
   /**
    * Returns reference altitude object of geometry object.
    */
-  HYDROData_IAltitudeObject GetAltitudeObject() const [Handle_HYDROData_IAltitudeObject ()];
+  HYDROData_IAltitudeObject GetAltitudeObject() const [opencascade::handle<HYDROData_IAltitudeObject> ()];
   %MethodCode
 
     Handle(HYDROData_IAltitudeObject) aRefAltitude;
@@ -143,7 +143,7 @@ public:
   /**
    * Returns group data model object by it id.
    */
-  HYDROData_ShapesGroup GetGroup( const int theGroupId ) const [Handle_HYDROData_ShapesGroup ()];
+  HYDROData_ShapesGroup GetGroup( const int theGroupId ) const [opencascade::handle<HYDROData_ShapesGroup> ()];
   %MethodCode
 
     Handle(HYDROData_ShapesGroup) aRefGroup;
@@ -160,7 +160,7 @@ public:
   /**
    * Returns group id by data model object.
    */
-  int GetGroupId( HYDROData_ShapesGroup theGroup ) const [int (const Handle_HYDROData_ShapesGroup&)];
+  int GetGroupId( HYDROData_ShapesGroup theGroup ) const [int (const opencascade::handle<HYDROData_ShapesGroup>&)];
   %MethodCode
 
     Handle(HYDROData_ShapesGroup) aRefGroup =
index 58de3fd62db5cde058ab33b8600c9778554306e3..9e293a032a9dfeea0b75fe4ca099d2892e7db793 100644 (file)
@@ -46,7 +46,7 @@ public:
    */
   bool SetPolylineXY( HYDROData_PolylineXY thePolyline,
                               const bool theIsUpdateProfile = true )
-  [bool ( const Handle_HYDROData_PolylineXY&,
+  [bool ( const opencascade::handle<HYDROData_PolylineXY>&,
           const bool = true )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
@@ -64,7 +64,7 @@ public:
    * Returns reference x,y polyline object of 3D polyline.
    */
   HYDROData_PolylineXY GetPolylineXY() const
-  [Handle_HYDROData_PolylineXY ()];
+  [opencascade::handle<HYDROData_PolylineXY> ()];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef;
     
@@ -86,7 +86,7 @@ public:
    * Sets reference u,z profile object for 3D polyline.
    */
   bool SetProfileUZ( HYDROData_ProfileUZ theProfile )
-  [bool ( const Handle_HYDROData_ProfileUZ& )];
+  [bool ( const opencascade::handle<HYDROData_ProfileUZ>& )];
   %MethodCode
     Handle(HYDROData_ProfileUZ) aRef =
       Handle(HYDROData_ProfileUZ)::DownCast( createHandle( a0 ) );
@@ -103,7 +103,7 @@ public:
    * Returns reference u,z profile object of 3D polyline.
    */
   HYDROData_ProfileUZ GetProfileUZ() const
-  [Handle_HYDROData_ProfileUZ ()];
+  [Hopencascade::handle<HYDROData_ProfileUZ> ()];
   %MethodCode
     Handle(HYDROData_ProfileUZ) aRef;
     
@@ -126,7 +126,7 @@ public:
    * Reimplemented to remove reference u,z profile.
    */
   bool SetAltitudeObject( HYDROData_IAltitudeObject theAltitude )
-  [bool ( const Handle_HYDROData_IAltitudeObject& )];
+  [bool ( const opencascade::handle<HYDROData_IAltitudeObject>& )];
   %MethodCode
     Handle(HYDROData_IAltitudeObject) aRef =
       Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) );
@@ -150,7 +150,7 @@ public:
    * Returns the child u,z profile which has been generated from bathymetry.
    */
   HYDROData_ProfileUZ GetChildProfileUZ( const bool theIsCreate = true ) const
-  [Handle_HYDROData_ProfileUZ ( const bool = true )];
+  [opencascade::handle<HYDROData_ProfileUZ> ( const bool = true )];
   %MethodCode
     Handle(HYDROData_ProfileUZ) aRef;
     
@@ -166,7 +166,7 @@ public:
   /**
    * Sets the child u,z profile for polyline.
    */
-  void SetChildProfileUZ( HYDROData_ProfileUZ theProfile ) [void ( const Handle_HYDROData_ProfileUZ& )];
+  void SetChildProfileUZ( HYDROData_ProfileUZ theProfile ) [void ( const opencascade::handle<HYDROData_ProfileUZ>& )];
   %MethodCode
     Handle(HYDROData_ProfileUZ) aRef =
       Handle(HYDROData_ProfileUZ)::DownCast( createHandle( a0 ) );
index 601be2037fbdc60009ace46066764c7a11c64238..e67faaea7759c13d080875ba1c55cd3f76e2c120 100644 (file)
@@ -93,7 +93,7 @@ public:
    * \return profile U,Z
    */
   HYDROData_ProfileUZ GetProfileUZ( const bool theIsCreate = true ) const 
-    [Handle_HYDROData_ProfileUZ ( const bool theIsCreate = true )];
+    [opencascade::handle<HYDROData_ProfileUZ> ( const bool theIsCreate = true )];
   %MethodCode
 
     Handle(HYDROData_ProfileUZ) aRefProfileUZ;
@@ -173,8 +173,8 @@ public:
   static int ImportFromFile( HYDROData_Document             theDoc,
                              const TCollection_AsciiString& theFileName,
                              NCollection_Sequence<int>&     theBadProfilesIds,
-                                                        bool isToProject = true )
-  [int ( const Handle_HYDROData_Document&,
+                             bool isToProject = true )
+  [int ( const opencascade::handle<HYDROData_Document>&,
          const TCollection_AsciiString&,
          NCollection_Sequence<int>& )];
   %MethodCode
index f3af2f810e820b21ad8acf03d1930f5de3bcc334..5917f614b892cc42d45c1ee3d749154161570bd4 100644 (file)
@@ -45,7 +45,7 @@ public:
   /**
    * Add new one reference zone for region.
    */
-  void AddZone( HYDROData_Zone theZone ) [void (const Handle_HYDROData_Zone&)];
+  void AddZone( HYDROData_Zone theZone ) [void (const opencascade::handle<HYDROData_Zone>&)];
   %MethodCode
 
     Handle(HYDROData_Zone) aZone =
@@ -68,7 +68,7 @@ public:
   /**
    * Removes reference zone from region.
    */
-  void RemoveZone( HYDROData_Zone theZone ) [void (const Handle_HYDROData_Zone&)];
+  void RemoveZone( HYDROData_Zone theZone ) [void (const opencascade::handle<HYDROData_Zone>&)];
   %MethodCode
 
     Handle(HYDROData_Zone) aZone =
index 141a5279aa35da5ad382bae6ceaac87d063036ad..e183215039214a9ed12e82d71bf6f2b360bdc989 100644 (file)
@@ -20,7 +20,7 @@
 #include <NCollection_Sequence.hxx>
 %End
 
-%MappedType NCollection_Sequence<Handle_HYDROData_Entity>
+%MappedType NCollection_Sequence<opencascade::handle<HYDROData_Entity>>
 {
 %TypeHeaderCode
 #include <NCollection_Sequence.hxx>
@@ -44,7 +44,7 @@
         {
             Py_DECREF(l);
             {
-              Handle_HYDROData_Entity anEnt( aPntr );
+              Handle(HYDROData_Entity) anEnt( aPntr );
             }
 
             return NULL;
@@ -79,8 +79,8 @@
         return 1;
     }
 
-    NCollection_Sequence<Handle_HYDROData_Entity> *aSeq = 
-      new NCollection_Sequence<Handle_HYDROData_Entity>;
+    NCollection_Sequence<Handle(HYDROData_Entity)> *aSeq = 
+      new NCollection_Sequence<Handle(HYDROData_Entity)>;
     len = PySequence_Size(sipPy);
  
     for (SIP_SSIZE_T i = 0; i < len; ++i)
             return 0;
         }
 
-        Handle_HYDROData_Entity anEnt( t );
+        Handle(HYDROData_Entity) anEnt( t );
         aSeq->Append( anEnt );
 
         //sipReleaseType(t, sipType_HYDROData_Entity, state);
 %End
 };
 
-typedef NCollection_Sequence<Handle_HYDROData_Entity> HYDROData_SequenceOfObjects;
+typedef NCollection_Sequence<opencascade::handle<HYDROData_Entity>> HYDROData_SequenceOfObjects;
index f271ea5d3a688cd6acbe1807ee481d027fb82b96..7963b776caa4dc2310a23d4932d4db6a620f302f 100644 (file)
@@ -41,7 +41,7 @@ public:
    * Returns true if given polyline can be used as stream axis.
    */
   static bool IsValidAsAxis( HYDROData_PolylineXY theAxis ) 
-  [bool ( const Handle_HYDROData_PolylineXY& )];
+  [bool ( const opencascade::handle<HYDROData_PolylineXY>& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
@@ -60,7 +60,7 @@ public:
    * Sets reference hydraulic axis object for stream.
    */
   bool SetHydraulicAxis( HYDROData_PolylineXY theAxis )
-  [bool ( const Handle_HYDROData_PolylineXY& )];
+  [bool ( const opencascade::handle<HYDROData_PolylineXY>& )];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef =
       Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) );
@@ -77,7 +77,7 @@ public:
    * Returns reference hydraulic axis object of stream.
    */
   HYDROData_PolylineXY GetHydraulicAxis() const
-  [Handle_HYDROData_PolylineXY ()];
+  [opencascade::handle<HYDROData_PolylineXY> ()];
   %MethodCode
     Handle(HYDROData_PolylineXY) aRef;
     
@@ -98,7 +98,7 @@ public:
    * Add new one reference profile object for stream.
    */
   bool AddProfile( HYDROData_Profile theProfile )
-  [bool ( const Handle_HYDROData_Profile& )];
+  [bool ( const opencascade::handle<HYDROData_Profile>& )];
   %MethodCode
     Handle(HYDROData_Profile) aRef =
       Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) );
@@ -120,7 +120,7 @@ public:
    * Removes reference profile object from stream.
    */
   bool RemoveProfile( HYDROData_Profile theProfile )
-  [bool ( const Handle_HYDROData_Profile& )];
+  [bool ( const opencascade::handle<HYDROData_Profile>& )];
   %MethodCode
     Handle(HYDROData_Profile) aRef =
       Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) );
@@ -147,7 +147,7 @@ public:
    * Returns reference bottom polyline object of stream.
    */
   HYDROData_Polyline3D GetBottomPolyline() const
-  [Handle_HYDROData_Polyline3D ()];
+  [opencascade::handle<HYDROData_Polyline3D> ()];
   %MethodCode
     Handle(HYDROData_Polyline3D) aRef;
     
@@ -163,7 +163,7 @@ public:
    * Sets reference bottom polyline object for stream.
    */
   bool SetBottomPolyline( HYDROData_Polyline3D theBottom )
-  [bool ( const Handle_HYDROData_Polyline3D& )];
+  [bool ( const opencascade::handle<HYDROData_Polyline3D>& )];
   %MethodCode
     Handle(HYDROData_Polyline3D) aRef =
       Handle(HYDROData_Polyline3D)::DownCast( createHandle( a0 ) );
index 070354cd7262a66a1f079c6fb0ba54f4da2cc0b3..ff034d86b1799fc1498d10b6819d06cf21656042 100644 (file)
@@ -56,7 +56,7 @@ public:
   MergeType GetMergeType() const;
 
   void SetMergeAltitude( HYDROData_IAltitudeObject theAltitude )
-  [void (const Handle_HYDROData_IAltitudeObject&)];
+  [void (const opencascade::handle<HYDROData_IAltitudeObject>&)];
   %MethodCode
     Handle(HYDROData_IAltitudeObject) aRefAltitude =
       Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) );
@@ -69,7 +69,7 @@ public:
     }
   %End
 
-  HYDROData_IAltitudeObject GetMergeAltitude() const [Handle_HYDROData_IAltitudeObject ()];
+  HYDROData_IAltitudeObject GetMergeAltitude() const [opencascade::handle<HYDROData_IAltitudeObject> ()];
   %MethodCode
     Handle(HYDROData_IAltitudeObject) aRefAltitude;
     Py_BEGIN_ALLOW_THREADS
@@ -88,10 +88,9 @@ public:
     Py_END_ALLOW_THREADS
   %End
 
-  void SetMergeObject( HYDROData_Entity theObject ) [void (const Handle_HYDROData_Entity&)];
+  void SetMergeObject( HYDROData_Entity theObject ) [void (const opencascade::handle<HYDROData_Entity>&)];
   %MethodCode
-    Handle(HYDROData_Entity) aRefObject =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) );
+    Handle(HYDROData_Entity) aRefObject = createHandle( a0 );
     if ( !aRefObject.IsNull() )
     {
       Py_BEGIN_ALLOW_THREADS
@@ -101,7 +100,7 @@ public:
     }
   %End
 
-  HYDROData_Entity GetMergeObject() const [Handle_HYDROData_Entity ()];
+  HYDROData_Entity GetMergeObject() const [opencascade::handle<HYDROData_Entity> ()];
   %MethodCode
     Handle(HYDROData_Entity) aRefObject;
     Py_BEGIN_ALLOW_THREADS
@@ -113,11 +112,10 @@ public:
 
   void RemoveMergeObject();
 
-  void AddObject( HYDROData_Entity theObject ) [void (const Handle_HYDROData_Entity&)];
+  void AddObject( HYDROData_Entity theObject ) [void (const opencascade::handle<HYDROData_Entity>&)];
   %MethodCode
 
-    Handle(HYDROData_Entity) anObj =
-      Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) );
+    Handle(HYDROData_Entity) anObj = createHandle( a0 );
     if ( !anObj.IsNull() )
     {
       Py_BEGIN_ALLOW_THREADS
index 7ee642314746303082cf46b5ffcda615fb0730ca..041a55d0ca385349fb5b6495a50d57e3470e632d 100644 (file)
@@ -67,7 +67,7 @@ ENDIF()
 
 SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT}/include )
 SET( CAS_INCLUDES $ENV{CASROOT}/inc )
-SET( QT_INCLUDES $ENV{QTDIR}/include $ENV{QTDIR}/include/QtCore $ENV{QTDIR}/include/QtGui $ENV{QTDIR}/include/QtTest )
+SET( QT_INCLUDES $ENV{QT5_ROOT_DIR}/include $ENV{QT5_ROOT_DIR}/include/QtCore $ENV{QT5_ROOT_DIR}/include/QtGui $ENV{QT5_ROOT_DIR}/include/QtTest )
 SET( KERNEL_INCLUDES $ENV{KERNEL_ROOT_DIR}/include/salome )
 SET( GUI_INCLUDES $ENV{GUI_ROOT_DIR}/include/salome )
 SET( GEOM_INCLUDES $ENV{GEOM_ROOT_DIR}/include/salome )
@@ -79,7 +79,7 @@ ELSE()
 ENDIF()
 SET( CAS_LIBRARIES TKernel TKLCAF TKCAF TKCDF TKMath TKG2d TKG3d TKBRep TKGeomBase TKTopAlgo TKGeomAlgo TKBool TKShHealing TKXSBase TKOffset TKHLR TKBO TKV3d TKService TKMesh )
 
-link_directories( $ENV{QTDIR}/lib )
+link_directories( $ENV{QT5_ROOT_DIR}/lib )
 IF( ${WIN32} )
   SET( QT_LIBRARIES QtCored4 QtGuid4 QtTestd4 )
 ELSE()
index 004295c19a0d97e614b5ccdf7ff0e15d0fa0fe1d..b093912a32801617eaeab5369f1d54c79160ac56 100644 (file)
@@ -1,5 +1,6 @@
 
-find_package(Qt4 4.8.4 REQUIRED QtCore QtGui )
+find_package( Qt5Core )
+find_package( Qt5Widgets )
 
 set( EXTERNAL_FILES
   ../HYDROData/HYDROData_AltitudeObject.cxx
@@ -86,4 +87,4 @@ set( MOC_HEADERS
   ../HYDROGUI/HYDROGUI_OrderedListWidget.h
 )
 
-QT4_WRAP_CPP( PROJECT_MOC_HEADERS ${MOC_HEADERS} )
+QT_WRAP_MOC( PROJECT_MOC_HEADERS ${MOC_HEADERS} )
index 64155ea69743222e7e0838adb6bdb85f728a3beb..144545e1b948aaeea7a2e538666d0539be8bbcc2 100644 (file)
@@ -34,9 +34,8 @@
 #ifdef WIN32
   #pragma warning ( disable: 4251 )
 #endif
-#include <AIS_InteractiveContext.hxx>
 #include <AIS_Shape.hxx>
-#include <Aspect_ColorScale.hxx>
+#include <AIS_ColorScale.hxx>
 #include <Prs3d_PointAspect.hxx>
 #include <TopoDS_Iterator.hxx>
 #include <QDir>
@@ -298,22 +297,16 @@ bool TestViewer::AssertImages( QString& theMessage, const QImage* theImage, cons
   return false;
 }
 
-Handle_Aspect_ColorScale TestViewer::colorScale()
+Handle(AIS_ColorScale) TestViewer::colorScale()
 {
-  Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
-  if( aView.IsNull() )
-    return Handle(Aspect_ColorScale)();
-  else
-    return aView->ColorScale();
+  static Handle(AIS_ColorScale) aColorScale = new AIS_ColorScale();
+
+  return aColorScale;
 }
 
 void TestViewer::showColorScale( bool isShow )
 {
-  Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
-  if( aView.IsNull() )
-    return;
-
-  Handle(Aspect_ColorScale) aColorScale = colorScale();
+  Handle(AIS_ColorScale) aColorScale = colorScale();
   if( aColorScale.IsNull() )
     return;
 
@@ -334,24 +327,23 @@ void TestViewer::showColorScale( bool isShow )
   aColorScale->SetTitle( "test" );
   aColorScale->SetRange( 0, 1 );
 
+  aColorScale->SetToUpdate();
+
   if( isShow )
   {
-    if( !aView->ColorScaleIsDisplayed() )
-      aView->ColorScaleDisplay();
+    if( !context()->IsDisplayed( aColorScale ) )
+      context()->Display( aColorScale );
   }
   else
   {
-    if( aView->ColorScaleIsDisplayed() )
-      aView->ColorScaleErase();
+    if( context()->IsDisplayed( aColorScale ) )
+      context()->Erase( aColorScale );
   }
 }
 
 bool TestViewer::ColorScaleIsDisplayed()
 {
-  Handle(V3d_View) aView = myViewWindow->getViewPort()->getView();
-  if( aView.IsNull() )
-    return false;
-  return aView->ColorScaleIsDisplayed();
+  return context()->IsDisplayed( colorScale() );
 }
 
 void TestViewer::select( int theViewX, int theViewY )
index f3dea715d359b86b6de675aae5c6958809acbb46..c27e5d36482fe67b1f7a12c48beb5650a3fac2d3 100644 (file)
@@ -18,6 +18,8 @@
 
 #pragma once
 
+#include <AIS_InteractiveContext.hxx>
+
 class OCCViewer_ViewManager;
 class OCCViewer_Viewer;
 class OCCViewer_ViewWindow;
@@ -25,9 +27,8 @@ class TopoDS_Shape;
 class QString;
 class QColor;
 class QImage;
-class Handle_AIS_InteractiveContext;
-class Handle_AIS_InteractiveObject;
-class Handle_Aspect_ColorScale;
+class AIS_InteractiveObject;
+class AIS_ColorScale;
 
 class TestViewer
 {
@@ -35,17 +36,17 @@ public:
   static OCCViewer_ViewManager* viewManager();
   static OCCViewer_Viewer* viewer();
   static OCCViewer_ViewWindow* viewWindow();
-  static Handle_AIS_InteractiveContext context();
+  static Handle(AIS_InteractiveContext) context();
 
   static void eraseAll( bool isUpdate );
-  static void show( const Handle_AIS_InteractiveObject& theObject,
+  static void show( const Handle(AIS_InteractiveObject)& theObject,
                     int theMode, int theSelectionMode, bool isFitAll, const char* theKey );
   static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const QColor& theColor );
   static void show( const TopoDS_Shape& theShape, int theMode, bool isFitAll, const char* theKey );
   static bool AssertImages( QString& theMessage, const QImage* = 0, const char* theCase = 0 );
   static QColor GetColor(int i);
 
-  static Handle_Aspect_ColorScale colorScale();
+  static Handle(AIS_ColorScale) colorScale();
   static void showColorScale( bool );
   static bool ColorScaleIsDisplayed();
 
index 421933c03ad2020b8195bc67d3a3499481e60290..27bed5c6867cc38d8c631142f344daac59941427 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <cppunit/extensions/HelperMacros.h>
 
-class Handle_HYDROData_Bathymetry;
 class QString;
 
 class test_HYDROData_Bathymetry : public CppUnit::TestFixture {
index 7e3c9b7226aafa33ebd9f9b0ceebce12d6a3990b..af0c74278e8e383dce12396c7daa4523e97474d3 100644 (file)
@@ -28,7 +28,6 @@
 #include <TestShape.h>
 #include <TopTools_ListOfShape.hxx>
 #include <AIS_DisplayMode.hxx>
-#include <Aspect_ColorScale.hxx>
 #include <QString>
 #include <QColor>
 #include <BRep_Builder.hxx>
index 175b42b8a7fbc6de46515e85eeb0ef2a3b5a90b6..0436c8fb693e0e48607636206ef0a19932b8fbb3 100644 (file)
@@ -30,7 +30,7 @@
 #include <AIS_InteractiveContext.hxx>
 #include <AIS_PointCloud.hxx>
 #include <HYDROGUI_ShapeBathymetry.h>
-#include <Aspect_ColorScale.hxx>
+#include <AIS_ColorScale.hxx>
 #include <QGraphicsItem>
 #include <QGraphicsScene>
 #include <QGraphicsView>
@@ -555,7 +555,7 @@ void test_HYDROData_DTM::test_presentation()
 
   bool ColorScaleIsDisp = TestViewer::ColorScaleIsDisplayed();
   TestViewer::showColorScale( true );
-  Handle_Aspect_ColorScale aCS = TestViewer::colorScale();
+  Handle(AIS_ColorScale) aCS = TestViewer::colorScale();
   aCS->SetMin( 0.0 );
   aCS->SetMax( 5.0 );
   aCS->SetNumberOfIntervals( 10 );
@@ -609,7 +609,7 @@ void test_HYDROData_DTM::test_garonne()
   bool ColorScaleIsDisp = TestViewer::ColorScaleIsDisplayed();
 
   TestViewer::showColorScale( true );
-  Handle_Aspect_ColorScale aCS = TestViewer::colorScale();
+  Handle(AIS_ColorScale) aCS = TestViewer::colorScale();
   aCS->SetMin( 0.0 );
   aCS->SetMax( 25.0 );
   aCS->SetNumberOfIntervals( 30 );
index 96d6705793b33d413e4ca09d2359ddb3c0005ce2..488c212745613103d6eff0b212d4b73b1710c257 100644 (file)
@@ -34,7 +34,6 @@
 #include <TestShape.h>
 #include <TopTools_ListOfShape.hxx>
 #include <AIS_DisplayMode.hxx>
-#include <Aspect_ColorScale.hxx>
 #include <BRepMesh_IncrementalMesh.hxx>
 #include <QString>
 #include <QColor>
index d50bdcf7831fcec5954238c6a03c7a52385c759b..05f6b9b8f8cb7140b5c208f3b962cdb14bc07f0b 100644 (file)
@@ -44,7 +44,7 @@ int main( int argc, char* argv[] )
   int W = 800, H = 600;
   aWindow->setGeometry( 200, 200, W, H );
   aWindow->show();
-  QTest::qWaitForWindowShown( aWindow );
+  QTest::qWaitForWindowExposed( aWindow );
 
   int dy = 34;
   //std::cout << dx << "," << dy << std::endl;
index 9707ce22ef6863cc96190b82c455eaac950607aa..9a22db00d9865c13fca90b4274eeae0d941d0b91 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <cppunit/extensions/HelperMacros.h>
 
-class Handle_HYDROData_Profile;
 class QString;
 
 class test_HYDROData_Profile : public CppUnit::TestFixture {
index 6bf3c37d404a47aacebfbaeec1f83b7f3322a604..52388f33737ab8df33cf6688dbae9c7b3f227115 100644 (file)
@@ -91,8 +91,7 @@ void test_HYDROData_Stream::test_params_sync()
 
   Handle(HYDROData_Stream) aStream = 
     Handle(HYDROData_Stream)::DownCast( aDoc->CreateObject( KIND_STREAM ) );
-  Handle(HYDROData_DTM) aDTM = 
-    Handle(HYDROData_DTM)::DownCast( aStream->DTM() );
+  Handle(HYDROData_DTM) aDTM = aStream->DTM();
   CPPUNIT_ASSERT_EQUAL( false, (bool)aDTM.IsNull() );
 
   Handle(HYDROData_Profile) aProfile1 = 
index f5b0ea490545d68e8470833e3bb8d10971c6341c..2290ed7e174f96abe8cd3b6799b56b4c80072498 100644 (file)
@@ -22,7 +22,7 @@
 #include <HYDROData_Document.h>
 #include <HYDROGUI_ListModel.h>
 
-Handle_HYDROData_Document GetDocument()
+Handle(HYDROData_Document) GetDocument()
 {
   return HYDROData_Document::Document( 0 );
 }
@@ -33,7 +33,7 @@ HYDROGUI_ListModel::Object2VisibleList CreateTestObjects( int theObjCount )
 
   for( int i=0; i<theObjCount; i++ )
   {
-    Handle_HYDROData_Entity anObj = GetDocument()->CreateObject( KIND_IMMERSIBLE_ZONE );
+    Handle(HYDROData_Entity) anObj = GetDocument()->CreateObject( KIND_IMMERSIBLE_ZONE );
 
     std::string aName = " ";
     aName[0] = 'A' + i;
@@ -424,4 +424,4 @@ void test_HYDROGUI_ListModel::testDragAndDrop()
   aRes = aModel->move(  QList<int>() << 0 << 2 << 4 << 5 << 7, aDnD, false, 3 );
   CPPUNIT_ASSERT_EQUAL( true, aRes );
   CPPUNIT_ASSERT_EQUAL( std::string( "F, *A, *G, *C, H, *E, D, B" ), GetObjects( aModel ) );
-}
\ No newline at end of file
+}
index 2d696144c83a411bbeac89a63de8e8c7796f7446..ee5ca41f6d53f94d05117f187b19959ec67ee1b4 100644 (file)
@@ -31,8 +31,8 @@ void test_HYDROGUI_Shape::test_face_in_preview()
                                              128 << 18 << 140 << 50 << 131 << 89 << 104 << 111 <<
                                               31 << 114 );
 
-  Handle_AIS_InteractiveContext aContext = TestViewer::context();
-  Handle_HYDROData_Entity anEntity; //it should be null as in preview
+  Handle(AIS_InteractiveContext) aContext = TestViewer::context();
+  Handle(HYDROData_Entity) anEntity; //it should be null as in preview
 
   HYDROGUI_Shape* aPreview = new HYDROGUI_Shape( aContext, anEntity );
   aPreview->setFace( aFace, true, true, "" );