]> SALOME platform Git repositories - plugins/canrecplugin.git/commitdiff
Salome HOME
Clean-up deprecated OCCT-related code
authorvsr <vsr@opencascade.com>
Mon, 25 Sep 2017 14:11:50 +0000 (17:11 +0300)
committervsr <vsr@opencascade.com>
Mon, 25 Sep 2017 14:11:50 +0000 (17:11 +0300)
src/CANRECPLUGINEngine/CANRECPluginEngine_IOperations_i.cc
src/CANRECPLUGINEngine/CANRECPluginImpl_Driver.cxx
src/CANRECPLUGINEngine/CANRECPluginImpl_Driver.hxx

index 23cf75972789301fd235896bf0f25ae77d93360a..09f69d83acd18af1453140afa2c2c2d43ac3f97c 100644 (file)
@@ -58,7 +58,7 @@ CANRECPluginEngine_IOperations_i::MakeCanonicalRecognition( GEOM::GEOM_Object_pt
   GetOperations()->SetNotDone();
 
   // Get the reference points
-  HANDLE_NAMESPACE(GEOM_Object) anInitObject = GetObjectImpl( theObject );
+  Handle(::GEOM_Object) anInitObject = GetObjectImpl( theObject );
 
   if ( anInitObject.IsNull() ) {
     return GEOM::GEOM_Object::_nil();
@@ -66,7 +66,7 @@ CANRECPluginEngine_IOperations_i::MakeCanonicalRecognition( GEOM::GEOM_Object_pt
 
   // Make Canonical Recognition
   Handle(TColStd_HSequenceOfInteger) aStat    = new TColStd_HSequenceOfInteger;
-  HANDLE_NAMESPACE(GEOM_Object)      anObject =
+  Handle(::GEOM_Object)      anObject =
         GetOperations()->MakeCanonicalRecognition(anInitObject,
                                                   theMergeSurf, 
                                                   theMergeCurves, 
@@ -106,7 +106,7 @@ CORBA::Long CANRECPluginEngine_IOperations_i::GetNbCanonicalFaces
   GetOperations()->SetNotDone();
 
   // Get the reference points
-  HANDLE_NAMESPACE(GEOM_Object) anInitObject = GetObjectImpl(theObject);
+  Handle(::GEOM_Object) anInitObject = GetObjectImpl(theObject);
 
   if (anInitObject.IsNull()) {
     return -1;
index a0f400a0bf5884bf5b2e4661232153db5a75f391..167acfac39da13373feb11f3bed4d4f675fc9d78 100644 (file)
@@ -103,16 +103,16 @@ CANRECPluginImpl_Driver::~CANRECPluginImpl_Driver()
 {
 }
 
-Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const LOGBOOK& ) const
+Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const Handle(TFunction_Logbook)& ) const
 {
   return Standard_True;
 }
 
-void CANRECPluginImpl_Driver::Validate( LOGBOOK& ) const
+void CANRECPluginImpl_Driver::Validate( Handle(TFunction_Logbook)& ) const
 {
 } 
 
-Standard_Integer CANRECPluginImpl_Driver::Execute( LOGBOOK& log ) const
+Standard_Integer CANRECPluginImpl_Driver::Execute( Handle(TFunction_Logbook)& log ) const
 {
   if ( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -189,11 +189,7 @@ Standard_Integer CANRECPluginImpl_Driver::Execute( LOGBOOK& log ) const
 
   aFunction->SetValue( aResultingShape );
 
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched( Label() );
-#else
   log->SetTouched( Label() );
-#endif
   
   return 1;
 }
@@ -216,4 +212,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
index ee442d9dc244f5f5f6061a3af1d312a1650e96e5..fad16aa24d0460e086875d527f3e414d7b5d423a 100644 (file)
@@ -34,14 +34,14 @@ public:
 
   static const Standard_GUID& GetID();
   static Standard_Integer GetNbCanonicalFaces(const TopoDS_Shape &theShape);
-  virtual Standard_Integer Execute( LOGBOOK& ) const; 
-  Standard_Boolean MustExecute( const LOGBOOK& ) const;
-  virtual void Validate( LOGBOOK& ) const;
+  virtual Standard_Integer Execute( Handle(TFunction_Logbook)& ) const; 
+  Standard_Boolean MustExecute( const Handle(TFunction_Logbook)& ) const;
+  virtual void Validate( Handle(TFunction_Logbook)& ) const;
 
   virtual bool GetCreationInformation( std::string&,
                                        std::vector<GEOM_Param>& );
 
-OCCT_DEFINE_STANDARD_RTTIEXT( CANRECPluginImpl_Driver, GEOM_BaseDriver )
+DEFINE_STANDARD_RTTIEXT( CANRECPluginImpl_Driver, GEOM_BaseDriver )
 };
 
 #endif // __CANRECPLUGINIMPL_DRIVER_HXX