]> SALOME platform Git repositories - plugins/canrecplugin.git/commitdiff
Salome HOME
OCCT 7.0.0 porting mpa/OCCT-7.0.0_Porting
authormnt <mnt@opencascade.com>
Wed, 2 Mar 2016 13:11:45 +0000 (16:11 +0300)
committermnt <mnt@opencascade.com>
Wed, 2 Mar 2016 13:11:45 +0000 (16:11 +0300)
adm_local/cmake_files/FindCR.cmake
src/CANRECPLUGINEngine/CANRECPluginEngine_IOperations_i.cc
src/CANRECPLUGINEngine/CANRECPluginImpl_Driver.cxx
src/CANRECPLUGINEngine/CANRECPluginImpl_Driver.hxx

index 3f7544b8fae54c57b2f86a4d96f663735d833f84..5c4d8157fdce6658fcd76410e582de293d721f69 100644 (file)
@@ -46,8 +46,8 @@ IF(OCCTLICENSE_INCLUDE_DIRS)
   LIST(APPEND CR_INCLUDE_DIRS ${OCCTLICENSE_INCLUDE_DIRS})
 ENDIF(OCCTLICENSE_INCLUDE_DIRS)
 
-FIND_LIBRARY(CR_TKCR NAMES TKCR)
-FIND_LIBRARY(CRKOCCLicense NAMES TKOCCLicense)
+FIND_LIBRARY(CR_TKCR NAMES TKCR PATH_SUFFIXES lib lin64/gcc/lib bin)
+FIND_LIBRARY(CRKOCCLicense NAMES TKOCCLicense PATH_SUFFIXES lib lin64/gcc/lib bin)
 
 SET(CR_LIBRARIES
   ${CR_TKCR}
index 677edb72800e5d5228f3a5b068ec2d764dda7caa..a6f6dc96010460c215a1040b7412fdd0ff99d41d 100644 (file)
@@ -58,7 +58,7 @@ CANRECPluginEngine_IOperations_i::MakeCanonicalRecognition( GEOM::GEOM_Object_pt
   GetOperations()->SetNotDone();
 
   // Get the reference points
-  Handle(GEOM_Object) anInitObject = GetObjectImpl( theObject );
+  HANDLE_NAMESPACE(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(GEOM_Object)                anObject =
+  HANDLE_NAMESPACE(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(GEOM_Object) anInitObject = GetObjectImpl(theObject);
+  HANDLE_NAMESPACE(GEOM_Object) anInitObject = GetObjectImpl(theObject);
 
   if (anInitObject.IsNull()) {
     return -1;
index d273e70c2ecb1210e4b6c8f227803b70771473d2..4858beb66b1088e88672b6d87b47f5f874d5a6d2 100644 (file)
@@ -102,16 +102,16 @@ CANRECPluginImpl_Driver::~CANRECPluginImpl_Driver()
 {
 }
 
-Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const TFunction_Logbook& ) const
+Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const LOGBOOK& ) const
 {
   return Standard_True;
 }
 
-void CANRECPluginImpl_Driver::Validate( TFunction_Logbook& ) const
+void CANRECPluginImpl_Driver::Validate( LOGBOOK& ) const
 {
 } 
 
-Standard_Integer CANRECPluginImpl_Driver::Execute( TFunction_Logbook& log ) const
+Standard_Integer CANRECPluginImpl_Driver::Execute( LOGBOOK& log ) const
 {
   if ( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -188,7 +188,11 @@ Standard_Integer CANRECPluginImpl_Driver::Execute( TFunction_Logbook& log ) cons
 
   aFunction->SetValue( aResultingShape );
 
+#if OCC_VERSION_MAJOR < 7
   log.SetTouched( Label() );
+#else
+  log->SetTouched( Label() );
+#endif
   
   return 1;
 }
@@ -211,5 +215,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_HANDLE( CANRECPluginImpl_Driver, GEOM_BaseDriver );
-IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver, GEOM_BaseDriver );
+OCCT_IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
index 1b18418959bcf49b141164bf930a0a0fccccad10..16f8ab287a2d3917b365bf769afef1fb4f96f075 100644 (file)
@@ -34,14 +34,14 @@ public:
 
   static const Standard_GUID& GetID();
   static Standard_Integer GetNbCanonicalFaces(const TopoDS_Shape &theShape);
-  virtual Standard_Integer Execute( TFunction_Logbook& ) const; 
-  Standard_Boolean MustExecute( const TFunction_Logbook& ) const;
-  virtual void Validate( TFunction_Logbook& ) const;
+  virtual Standard_Integer Execute( LOGBOOK& ) const; 
+  Standard_Boolean MustExecute( const LOGBOOK& ) const;
+  virtual void Validate( LOGBOOK& ) const;
 
   virtual bool GetCreationInformation( std::string&,
                                        std::vector<GEOM_Param>& );
 
-  DEFINE_STANDARD_RTTI( CANRECPluginImpl_Driver );
+OCCT_DEFINE_STANDARD_RTTIEXT( CANRECPluginImpl_Driver, GEOM_BaseDriver )
 };
 
 #endif // __CANRECPLUGINIMPL_DRIVER_HXX