Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:24

0001 // Created on: 2009-05-06
0002 // Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com> 
0003 // Copyright (c) 2009-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _DNaming_FilletDriver_HeaderFile
0017 #define _DNaming_FilletDriver_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <TFunction_Driver.hxx>
0023 #include <Standard_Integer.hxx>
0024 class TFunction_Logbook;
0025 class TDF_Label;
0026 class BRepFilletAPI_MakeFillet;
0027 class TopoDS_Shape;
0028 
0029 
0030 class DNaming_FilletDriver;
0031 DEFINE_STANDARD_HANDLE(DNaming_FilletDriver, TFunction_Driver)
0032 
0033 
0034 class DNaming_FilletDriver : public TFunction_Driver
0035 {
0036 
0037 public:
0038 
0039   
0040   //! Constructor
0041   //! validation
0042   //! ==========
0043   Standard_EXPORT DNaming_FilletDriver();
0044   
0045   //! Validates labels of a function in <log>.
0046   //! In regeneration mode this method must be called (by the
0047   //! solver) even if the function is not executed, to build
0048   //! the valid label scope.
0049   //! execution of function
0050   //! ======================
0051   Standard_EXPORT virtual void Validate (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
0052   
0053   //! Analyse in <log> if the loaded function must be executed
0054   //! (i.e.arguments are modified) or not.
0055   //! If the Function label itself is modified, the function must
0056   //! be executed.
0057   Standard_EXPORT virtual Standard_Boolean MustExecute (const Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
0058   
0059   //! Execute the function and push in <log> the impacted
0060   //! labels (see method SetImpacted).
0061   Standard_EXPORT virtual Standard_Integer Execute (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE;
0062 
0063 
0064 
0065 
0066   DEFINE_STANDARD_RTTIEXT(DNaming_FilletDriver,TFunction_Driver)
0067 
0068 protected:
0069 
0070 
0071 
0072 
0073 private:
0074 
0075   
0076   Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepFilletAPI_MakeFillet& mkFillet, const TopoDS_Shape& theContext) const;
0077 
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _DNaming_FilletDriver_HeaderFile