]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
first part of the porting on OCCT 7.0
authorasl <asl@opencascade.com>
Fri, 25 Nov 2016 07:26:14 +0000 (10:26 +0300)
committerasl <asl@opencascade.com>
Fri, 25 Nov 2016 07:26:14 +0000 (10:26 +0300)
118 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_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.h
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/HYDROGUI_DataObject.cxx
src/HYDROGUI/HYDROGUI_ExportFileOp.cxx
src/HYDROGUI/HYDROGUI_ImagePrs.cxx
src/HYDROGUI/HYDROGUI_ImagePrs.h
src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
src/HYDROGUI/HYDROGUI_ImportPolylineOp.h
src/HYDROGUI/HYDROGUI_ImportSinusXOp.cxx
src/HYDROGUI/HYDROGUI_ImportSinusXOp.h
src/HYDROGUI/HYDROGUI_LandCoverMapPrs.h
src/HYDROGUI/HYDROGUI_Module.h
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_ShapeBathymetry.cxx
src/HYDROGUI/HYDROGUI_ShapeBathymetry.h
src/HYDROGUI/HYDROGUI_ShapeImage.cxx
src/HYDROGUI/HYDROGUI_StricklerTableDlg.h
src/HYDROGUI/HYDROGUI_Tool.h
src/HYDROGUI/HYDROGUI_Tool2.h
src/HYDROGUI/HYDROGUI_UpdateObjectOp.h
src/HYDROGUI/HYDROGUI_VTKPrs.cxx
src/HYDROGUI/HYDROGUI_ZLayers.h
src/HYDROPy/CMakeLists.txt
src/HYDRO_tests/CMakeLists.txt
src/HYDRO_tests/ExternalFiles.cmake
src/HYDRO_tests/TestViewer.h

index 75b6f19d1fef5f0831b38b34b47778f0b4f9b9fc..144941168c8be52e9d101165db7e47e52dc3417b 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 34bd4a21d2c0dff8e6a939c9bbdaf48137852717..451234725c11a00444054287e044468dfef271bd 100644 (file)
@@ -53,7 +53,6 @@
 #define _DEVDEBUG_
 #include "HYDRO_trace.hxx"
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
 
 //HYDROData_QuadtreeNode* HYDROData_Bathymetry::myQuadtree = 0;
@@ -503,7 +502,7 @@ bool HYDROData_Bathymetry::ImportFromFile( const TCollection_AsciiString& theFil
   
 
   // Convert from global to local CS
-  Handle_HYDROData_Document aDoc = HYDROData_Document::Document( myLab );
+  Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( myLab );
   AltitudePoints::Iterator anIter( aPoints );
   for ( ; anIter.More(); anIter.Next() )
   {
@@ -676,11 +675,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 6a555afdf39052c92054c6762d3db8803fcb7110..39ac30b1d3eee244b349819a4018bc4b937a38fe 100644 (file)
 class QFile;
 class gp_XYZ;
 class gp_XY;
-class Handle_HYDROData_PolylineXY;
+class HYDROData_PolylineXY;
 
 
-DEFINE_STANDARD_HANDLE(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
-
 
 /**\class HYDROData_Bathymetry
  * \brief Class that stores/retreives information about the Bathymetry.
@@ -59,8 +57,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.
@@ -141,7 +138,7 @@ public:
    */
   HYDRODATA_EXPORT virtual bool             ImportFromFile( const TCollection_AsciiString& 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 c3d4961dda05a1d078217134fbfde858099f958f..9bea62647310c65f3235c134c6fe4eabad555b64 100644 (file)
@@ -83,7 +83,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 1780ca9c682f246a4734398b3972a4acd3b39e08..af03f9518a787a415296d1f9b3f8bac641ba69a4 100644 (file)
@@ -43,20 +43,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�.
@@ -107,8 +103,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 14ac7fb6e94bda367fe9f2617240d7c84a0aadf7..d9ccf4a8c9968b7afaafe6bc1963937c184ec9eb 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 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 fd129087ff61a135e07bfbd8e4adad5d4af02fc6..56c6590f3c34cdaaf8d73e40155d52ae452cad72 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 e3c7b1c81821d9ebeff01bffad29c1ec17fbda3e..41b6a020da0964996bbe3da78f7ca9a726626fe9 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 4b8a76ede2252fff6b4f2700f68fba7273368190..ce65478918e3ed68de4909d4cd9d2aa74ee3842c 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();
@@ -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 51186e607beed5a9c755f78d1b15c17e2875d2f0..2422d4feb3098579962c18f5a10d69cbde50a1d6 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
@@ -67,22 +68,20 @@ const ObjectKind KIND_CHANNEL_ALTITUDE    = 28;
 const ObjectKind KIND_LAND_COVER_MAP      = 29;
 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.
@@ -119,7 +118,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.
@@ -334,7 +333,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;
 
   /**
@@ -342,7 +341,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 );
 
   /**
@@ -354,7 +353,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 );
 
@@ -367,7 +366,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 );
 
@@ -386,7 +385,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 c456c8c9ce85f6629307e9871af9959abc47eadb..abdfd1840a545b50760ccce713dec2fc68965cb9 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 4ad735022b32330c1219f570afdd3ff2d35b437f..fe76bd40afe3f04cca64422d76ab8a5ca070dc0a 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>
@@ -76,7 +76,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)
 
 /**
@@ -1130,7 +1129,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()) 
@@ -1145,7 +1144,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);
@@ -1233,7 +1232,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 6827d52a0924f46d58d9a61e6e34a5cedc3f7579..d5dfceb16d32b9762e38859c68e6e337111cacdf 100644 (file)
 #include <TopoDS_Face.hxx>
 #include <TopExp_Explorer.hxx>
 
-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_Pnt2d;
 
 class HYDROData_LandCoverMap : public HYDROData_Entity
@@ -109,7 +106,7 @@ public:
 
   HYDRODATA_EXPORT bool ExportTelemac( const QString& theFileName,
                                        double theDeflection,
-                                       const Handle_HYDROData_StricklerTable& theTable ) const;
+                                       const Handle(HYDROData_StricklerTable)& theTable ) const;
 
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_Object )&, const QString& theType );
   HYDRODATA_EXPORT bool Add( const Handle( HYDROData_PolylineXY )&, const QString& theType );
@@ -161,7 +158,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 240db460801d73ff059a86480fb879f8ec4a80ab..01543c41b9e77996e3dfa9e31686d40ec71ba162 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 3eaa0ad90360092de7db9b7ceb2215f0d03a4776..9987e16475caab8babcac885af8bd8590071ebb6 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 1faa2960339b8017faeef9f825ab695161c0fee8..6308af1403ff6020573c5c2fba0934802dc8045b 100644 (file)
@@ -50,7 +50,6 @@
 #include <QColor>
 #include <QStringList>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Profile, HYDROData_Object)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Profile, HYDROData_Object)
 
 HYDROData_Profile::HYDROData_Profile()
index 5bcc450da7a182a4503ace453f15920e1c00e90d..1809a02c780c7ced463a9eb7d3f34d1dfdc4003f 100644 (file)
 
 #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.
@@ -53,7 +51,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 698cfc944925502b5744e9ae3adc281bc39b5523..f74956cedad44f8957b59147adfcf0b8b13a77ee 100644 (file)
@@ -48,7 +48,6 @@
 
 //#define DEB_GET_REGION_SHAPE
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_Region, HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Region, HYDROData_Entity)
 
 
index 08af0ab65ef6c53ce724bcedf726a64baab2077c..e7fcfeabf39e4b8d470dc124fe2cda0f9bd8b55d 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 37f759f0d29425d55fa6173b2d82ffc4a14739b2..b928ce8d1491c6214d365d7a8e7da86eb91dabc9 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;
@@ -397,7 +397,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);
@@ -436,7 +436,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();
@@ -519,7 +519,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++)
@@ -562,7 +562,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)
+  int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities)
 {
 
   Handle(HYDROData_PolylineXY) aPolylineXY = Handle(HYDROData_PolylineXY)::DownCast( theDocument->CreateObject( KIND_POLYLINEXY ) );
@@ -583,10 +583,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--;
@@ -608,7 +608,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 ) );
 
@@ -635,10 +635,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--;
@@ -678,7 +678,7 @@ void HYDROData_ShapeFile::ReadSHPPoly3D(Handle(HYDROData_Document) theDocument,
 
 
 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);
@@ -693,7 +693,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();
@@ -799,9 +799,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)
   {
@@ -822,7 +822,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)
   {
@@ -837,7 +837,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 fbeeb64358ec0bb0a78641f47ef4ff79dcbee1e9..10dec11092d4dc99574e166b8190e9d60170d016 100644 (file)
 #include <NCollection_Sequence.hxx>
 #include <QStringList>
 #include "HYDROData.h"
+#include <TopTools_SequenceOfShape.hxx>
 
 //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 +83,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 +118,13 @@ public:
 
   //Import Polyline
   void ReadSHPPolyXY(Handle(HYDROData_Document) theDocument, SHPObject* anObj, QString theFileName, 
-                     int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+                     int theInd, NCollection_Sequence<Handle(HYDROData_Entity)>& theEntities);
 
   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 6c0d5ae00a91fa2b54fd081020f6ebc63e767855..1a086b7671699be8932e76b12a90f149e30ecf04 100644 (file)
@@ -31,7 +31,6 @@
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 #include <ShapeUpgrade_UnifySameDomain.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROData_ShapesGroup,HYDROData_Entity)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_ShapesGroup,HYDROData_Entity)
 
 void HYDROData_ShapesGroup::GroupDefinition::Update( SeqOfGroupsDefs*          theGroupsDefs,
index db2a29ea4d4af497f395be5be985b2c6724380eb..92018bf5206f1607bfb42ff542a806b41c2227cb 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;
 
-DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity)
-
 /**\class HYDROData_ShapesGroup
  * \brief Class that stores/retreives the sequence of shapes.
  */
@@ -70,7 +66,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 4b9dc6f4fc78bf464fd3c088133812c04964ea16..8bee17ad234dc0f49745827ba054f2c2cabe8173 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++ )
   {
@@ -322,7 +323,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() )
   { 
@@ -348,7 +349,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";
@@ -356,7 +357,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 dd50bc4e01f7907eb4e7a0e143037cf32e32ecd3..090473fddc099efda2d40091dbc7178e0ddf1aba 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 81e04ded6134136a4091efebc201257cc23dc4f9..8cd00a8dbdf8a5daa000963098c800cbb8223a8f 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.
  */
@@ -39,7 +36,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 eaa58208496cd17581c277b36cf2792c8fcd9427..c5545978e715ba9594e4a688b094bf26a1b32828 100644 (file)
@@ -34,7 +34,7 @@
 #include <TopTools_ListOfShape.hxx>
 #include <QStringList>
 
-class Handle(HYDROData_PolylineXY);
+class HYDROData_PolylineXY;
 
 /**
  * \class HYDROData_SplitToZonesTool
index 44833c6afe4f3e00fb309d29f6bc66019d2e34f4..518753aa63fd7f0919a95371faa15fdd6025ee30 100644 (file)
@@ -37,7 +37,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_HArray1OfShape.hxx>
 
-#include <SortTools_QuickSortOfReal.hxx>
-
 #include <QColor>
 #include <QStringList>
+#include <QVector>
 
 //#define DEB_STREAM 1
 #ifdef DEB_STREAM
@@ -90,7 +88,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)
 
 
@@ -679,20 +676,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 );
     }
@@ -716,9 +714,9 @@ ObjectKind HYDROData_Stream::getAltitudeObjectType() const
   return KIND_STREAM_ALTITUDE;
 }
 
-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;
@@ -726,13 +724,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 );
   }
 }
 
@@ -774,7 +772,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 )
@@ -788,19 +786,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 );
@@ -808,8 +806,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 );
   }
 
@@ -832,7 +830,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 )
   {
@@ -840,7 +838,7 @@ void HYDROData_Stream::removeParameter( const int& theIndex )
     if ( k == theIndex )
       continue;
 
-    aNewArr.SetValue( j, aStoredParam );
+    aNewArr[j-1] = aStoredParam;
     ++j;
   }
 
@@ -1166,4 +1164,4 @@ bool HYDROData_Stream::CreatePresentations( const Handle(TColgp_HArray1OfPnt)
 #endif
 
   return true;
-}
\ No newline at end of file
+}
index 73691575c13f3d943568859068000ad378c15d29..ee72a1645728e150a80c924dcb0ef7891b3d691f 100644 (file)
 
 #include <Geom_BSplineCurve.hxx>
 
-DEFINE_STANDARD_HANDLE(HYDROData_Stream, HYDROData_NaturalObject)
-
-class Handle(HYDROData_PolylineXY);
-class Handle(HYDROData_Polyline3D);
-class Handle(HYDROData_Profile);
+class HYDROData_PolylineXY;
+class HYDROData_Polyline3D;
+class HYDROData_Profile;
 class HYDROData_IProfilesInterpolator;
-class TColStd_Array1OfReal;
-class Handle(TopTools_HArray1OfShape);
+class TopTools_HArray1OfShape;
 
 
 /**\class HYDROData_Stream
@@ -68,8 +65,7 @@ protected:
   };
 
 public:
-
-  DEFINE_STANDARD_RTTI(HYDROData_Stream);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Stream, HYDROData_NaturalObject);
 
 public:
 
@@ -292,7 +288,7 @@ protected:
 
 private:
   
-  void setParametersArray( const TColStd_Array1OfReal& theArray );
+  void setParametersArray( const QVector<double>& theArray );
 
   TColStd_Array1OfReal* getParametersArray() const;
 
index d00d47c846d2dac6ae67b3d78766f27411b9b021..cbd1cca0c6bcb6ce389cc8628b17c7bc6d6f6340 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..15dfd3aaa8dd638b709c1df589175639badf9bbd 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)
 
 
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..481b08654a5f774a64b5cab98eeae58128fb49ba 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,14 +146,14 @@ 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
-    HYDROGUI_AISShape.cxx
-    HYDROGUI_AISTrihedron.cxx
+    #HYDROGUI_AISShape.cxx
+    #HYDROGUI_AISTrihedron.cxx
     HYDROGUI_BathymetryPrs.cxx
-    HYDROGUI_CalculationDlg.cxx
+    #HYDROGUI_CalculationDlg.cxx
     HYDROGUI_CalculationOp.cxx
     HYDROGUI_ChannelDlg.cxx
     HYDROGUI_ChannelOp.cxx
@@ -160,7 +161,7 @@ set(PROJECT_SOURCES
     HYDROGUI_CopyPasteOp.cxx
     HYDROGUI_CopyPastePositionOp.cxx
     HYDROGUI_CurveCreatorProfile.cxx
-    HYDROGUI_DataBrowser.cxx
+    #HYDROGUI_DataBrowser.cxx
     HYDROGUI_DataModel.cxx
     HYDROGUI_DataModelSync.cxx
     HYDROGUI_DataObject.cxx
@@ -183,17 +184,17 @@ set(PROJECT_SOURCES
     HYDROGUI_ImportImageDlg.cxx
     HYDROGUI_ImportImageOp.cxx
     HYDROGUI_ImportLandCoverMapOp.cxx
-    HYDROGUI_ImportLandCoverMapDlg.cxx
-    HYDROGUI_ImportPolylineOp.cxx
-    HYDROGUI_ImportSinusXOp.cxx
+    #HYDROGUI_ImportLandCoverMapDlg.cxx
+    #HYDROGUI_ImportPolylineOp.cxx
+    #HYDROGUI_ImportSinusXOp.cxx
     HYDROGUI_ExportSinusXOp.cxx
     HYDROGUI_ExportSinusXDlg.cxx
     HYDROGUI_ExportLandCoverMapDlg.cxx
     HYDROGUI_InputPanel.cxx
     HYDROGUI_LandCoverArgsFilter.cxx
     HYDROGUI_LandCoverMapDlg.cxx
-    HYDROGUI_LandCoverMapOp.cxx
-    HYDROGUI_LandCoverMapPrs.cxx
+    #HYDROGUI_LandCoverMapOp.cxx
+    #HYDROGUI_LandCoverMapPrs.cxx
     HYDROGUI_LocalCSDlg.cxx
     HYDROGUI_LocalCSOp.cxx
     HYDROGUI_MergePolylinesDlg.cxx
@@ -202,12 +203,13 @@ set(PROJECT_SOURCES
     HYDROGUI_NameValidator.cxx
     HYDROGUI_ObjSelector.cxx
     HYDROGUI_ObserveImageOp.cxx
-    HYDROGUI_OCCDisplayer.cxx
-    HYDROGUI_OCCSelector.cxx
+    #HYDROGUI_OCCDisplayer.cxx
+    #HYDROGUI_OCCSelector.cxx
     HYDROGUI_Operation.cxx
     HYDROGUI_Operations.cxx
     HYDROGUI_Poly3DDlg.cxx
     HYDROGUI_Poly3DOp.cxx
+    HYDROGUI_Polyline.cxx
     HYDROGUI_PolylineDlg.cxx
     HYDROGUI_PolylineOp.cxx
     HYDROGUI_ProfileDlg.cxx
@@ -225,26 +227,25 @@ set(PROJECT_SOURCES
     HYDROGUI_PrsZoneDriver.cxx
     HYDROGUI_Region.cxx
     HYDROGUI_RemoveImageRefsOp.cxx
-    HYDROGUI_Shape.cxx
-    HYDROGUI_Polyline.cxx
-    HYDROGUI_ShapeBathymetry.cxx
-    HYDROGUI_ShapeImage.cxx
-    HYDROGUI_ShapeLandCoverMap.cxx
+    #HYDROGUI_Shape.cxx
+    #HYDROGUI_ShapeBathymetry.cxx
+    #HYDROGUI_ShapeImage.cxx
+    #HYDROGUI_ShapeLandCoverMap.cxx
     HYDROGUI_ShowHideOp.cxx
     HYDROGUI_StreamDlg.cxx
     HYDROGUI_StreamOp.cxx
     HYDROGUI_LineEditDoubleValidator.cxx
-    HYDROGUI_StricklerTableDlg.cxx
+    #HYDROGUI_StricklerTableDlg.cxx
     HYDROGUI_StricklerTableOp.cxx
-    HYDROGUI_StricklerTypeComboBox.cxx
+    #HYDROGUI_StricklerTypeComboBox.cxx
     HYDROGUI_SplitPolylinesDlg.cxx
     HYDROGUI_SplitPolylinesOp.cxx
     HYDROGUI_SubmersibleOp.cxx
-    HYDROGUI_Tool.cxx
-    HYDROGUI_Tool2.cxx
+    #HYDROGUI_Tool.cxx
+    #HYDROGUI_Tool2.cxx
     HYDROGUI_TwoImagesDlg.cxx
     HYDROGUI_TwoImagesOp.cxx
-    HYDROGUI_UpdateObjectOp.cxx
+    #HYDROGUI_UpdateObjectOp.cxx
     HYDROGUI_VisualStateOp.cxx
     HYDROGUI_VTKPrs.cxx
     HYDROGUI_VTKPrsBathymetry.cxx
@@ -256,19 +257,19 @@ set(PROJECT_SOURCES
     HYDROGUI_Wizard.cxx
     HYDROGUI_Zone.cxx
     HYDROGUI_ImportGeomObjectOp.cxx
-    HYDROGUI_ImportObstacleFromFileOp.cxx
+    #HYDROGUI_ImportObstacleFromFileOp.cxx
     HYDROGUI_ExportCalculationOp.cxx
-    HYDROGUI_GeomObjectDlg.cxx
+    #HYDROGUI_GeomObjectDlg.cxx
     HYDROGUI_SetColorOp.cxx
     HYDROGUI_ColorDlg.cxx
-    HYDROGUI_ImportProfilesOp.cxx
+    #HYDROGUI_ImportProfilesOp.cxx
     HYDROGUI_GeoreferencementDlg.cxx
     HYDROGUI_GeoreferencementOp.cxx
     HYDROGUI_Actor.cxx
-    HYDROGUI_BathymetryBoundsOp.cxx
+    #HYDROGUI_BathymetryBoundsOp.cxx
     HYDROGUI_TranslateObstacleDlg.cxx
     HYDROGUI_TranslateObstacleOp.cxx
-    HYDROGUI_ListModel.cxx
+    #HYDROGUI_ListModel.cxx
     HYDROGUI_ZLevelsDlg.cxx
     HYDROGUI_ZLevelsOp.cxx
     HYDROGUI_OrderedListWidget.cxx
@@ -276,8 +277,8 @@ set(PROJECT_SOURCES
     HYDROGUI_ZLayers.cxx
     HYDROGUI_ZLayers2.cxx
     HYDROGUI_ZLayers3.cxx
-    HYDROGUI_PriorityWidget.cxx
-    HYDROGUI_PriorityTableModel.cxx
+    #HYDROGUI_PriorityWidget.cxx
+    #HYDROGUI_PriorityTableModel.cxx
     HYDROGUI_RiverBottomDlg.cxx
     HYDROGUI_RiverBottomOp.cxx
     HYDROGUI_ViewerDlg.cxx
index 162e44cd68a2ced78d62c6dcd6473566789899e8..c6516527e47a3f27557b39be1323420b50106667 100644 (file)
@@ -22,7 +22,6 @@
 #include <Prs3d_LineAspect.hxx>
 #include <StdPrs_WFDeflectionShape.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(HYDROGUI_AISShape, AIS_Shape)
 IMPLEMENT_STANDARD_RTTIEXT(HYDROGUI_AISShape, AIS_Shape)
 
 HYDROGUI_AISShape::HYDROGUI_AISShape( const TopoDS_Shape& theShape )
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 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 0af2109beca5c87a95531b072d709da9c1e8a64f..797e5fcad695d79413accb4b8fe59362eb35b966 100644 (file)
@@ -1313,11 +1313,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 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 d9c0076ab1fc81f21b0d5374332f5023927da264..1a4b2bb956c587445f579a654d8b310da0913498 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 a2d3a09b55c1712992a782b2a07009923d61cb8d..deba3d6c38232dba9b102e18ce3f624ece2b3890 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 )
     {
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 4f30e80256c3ee52da222e821eadd0570ff4b6b4..0d3f217a668f59c12272b5c145fa17e789e29728 100644 (file)
@@ -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 dabe4526c0989af7cd63e034256eac0793e50f16..acabf5aa972386be9114bd84b6a8cf49fca00007 100644 (file)
@@ -22,7 +22,7 @@
 #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 )
 
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 b454518df71d61c18382af2604aa433b2434ec6b..968e051ec2ec032fccc3c74ba2c47980fb0ba58d 100644 (file)
@@ -22,7 +22,7 @@
 #include "HYDROGUI_AbstractDisplayer.h"
 
 class HYDROGUI_Shape;
-class Handle(AIS_InteractiveContext);
+class AIS_InteractiveContext;
 class OCCViewer_ViewManager;
 class OCCViewer_Viewer;
 
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 532c6071cd15b4023ccdae15d41dd4943c68a316..6091415e8a3e4c3f5d5f632cc3558576492cd8a3 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 fd8158e539b1f4d8bc143b1ce0b7000bb0b1dda1..cd9e913411139864c064a23301eb1e3bd9d2168d 100644 (file)
@@ -63,7 +63,7 @@ Handle_AIS_InteractiveObject HYDROGUI_ShapeBathymetry::createShape() const
   Handle_HYDROData_Bathymetry aBath = Handle_HYDROData_Bathymetry::DownCast( getObject() );
   if( !aBath.IsNull() )
   {
-    Handle_AIS_PointCloud aPntCloud = new HYDROGUI_BathymetryPrs();
+    Handle(AIS_PointCloud) aPntCloud = new HYDROGUI_BathymetryPrs();
     aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox );
     aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 2.0));
 
index 2521119560b8b6d27de2eb4677dfbbd5c1fa7d77..f71e433643d02ebecdaf0cd755f24b26b03771ba 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 Aspect_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(Aspect_ColorScale)& );
 
   virtual void display( const bool theIsUpdateViewer = true );
   virtual void erase( const bool theIsUpdateViewer = true );
@@ -48,13 +48,13 @@ 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 );
 
 private:
   HYDROGUI_OCCDisplayer* myDisplayer;
-  Handle_TColgp_HArray1OfPnt     myCoords;
-  Handle_Quantity_HArray1OfColor myColors;
+  Handle(TColgp_HArray1OfPnt)     myCoords;
+  Handle(Quantity_HArray1OfColor) myColors;
 };
 
 #endif
index 3d5199656b4476fdd4db7a80643ff37f836e7209..e9ecc0c524115cb06509c116f3638deb36f9e8ca 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 )
 {
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 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 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 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 c15ed61c1ec8d59534416235a69205981f2be9ad..6064009713a529d5e0ef2e2ff9dc60fe7373f717 100644 (file)
@@ -1,5 +1,5 @@
 include(../../CMake/Common.cmake)
-include(UsePyQt4)
+INCLUDE(UsePyQt)
 
 # --- options ---
 
@@ -87,7 +87,7 @@ SET(_add_SOURCES
 # --- sources ---
 
 # sources / sip wrappings
-PYQT4_WRAP_SIP(_sip_SOURCES ${_sip_files} SOURCES ${_add_SOURCES})
+PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files} SOURCES ${_add_SOURCES})
 
 # sources / to compile
 SET(HYDROPy_SOURCES ${_sip_SOURCES})
index 1e95d072c54be64b51620bf55bad8a4a2ae8a1ce..4eb4bde31e0e3118d45ee4c082afbaaf26a939b5 100644 (file)
@@ -62,7 +62,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 )
@@ -74,7 +74,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 df610ea5e60fc1914e2ae4dcc3ea981073e5981a..79f0769922a014e98a09be1ad974079830500388 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
@@ -73,4 +74,4 @@ set( MOC_HEADERS
   ../HYDROGUI/HYDROGUI_StricklerTableDlg.h
 )
 
-QT4_WRAP_CPP( PROJECT_MOC_HEADERS ${MOC_HEADERS} )
+QT_WRAP_MOC( PROJECT_MOC_HEADERS ${MOC_HEADERS} )
index 9030f33b80e0ee44d3f2c6921ba4d0056ebd2559..fbcd7da212e03ee11ba2f52b861c30f8a5874224 100644 (file)
@@ -24,9 +24,9 @@ class OCCViewer_ViewWindow;
 class TopoDS_Shape;
 class QString;
 class QColor;
-class Handle_AIS_InteractiveContext;
-class Handle_AIS_InteractiveObject;
-class Handle_Aspect_ColorScale;
+class AIS_InteractiveContext;
+class AIS_InteractiveObject;
+class Aspect_ColorScale;
 
 class TestViewer
 {
@@ -34,17 +34,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 );
   static QColor GetColor(int i);
 
-  static Handle_Aspect_ColorScale colorScale();
+  static Handle(Aspect_ColorScale) colorScale();
   static void showColorScale( bool );
 
   static void select( int theViewX, int theViewY );