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();
// Make Canonical Recognition
Handle(TColStd_HSequenceOfInteger) aStat = new TColStd_HSequenceOfInteger;
- HANDLE_NAMESPACE(GEOM_Object) anObject =
+ Handle(::GEOM_Object) anObject =
GetOperations()->MakeCanonicalRecognition(anInitObject,
theMergeSurf,
theMergeCurves,
GetOperations()->SetNotDone();
// Get the reference points
- HANDLE_NAMESPACE(GEOM_Object) anInitObject = GetObjectImpl(theObject);
+ Handle(::GEOM_Object) anInitObject = GetObjectImpl(theObject);
if (anInitObject.IsNull()) {
return -1;
{
}
-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() );
aFunction->SetValue( aResultingShape );
-#if OCC_VERSION_MAJOR < 7
- log.SetTouched( Label() );
-#else
log->SetTouched( Label() );
-#endif
return 1;
}
return true;
}
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
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