// Created on: 2010-02-26 // Created by: Sergey ZARITCHNY // Copyright (c) 2010-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _DNaming_Line3DDriver_HeaderFile #define _DNaming_Line3DDriver_HeaderFile #include #include #include #include #include #include class TFunction_Logbook; class TDF_Label; class TopoDS_Wire; class DNaming_Line3DDriver; DEFINE_STANDARD_HANDLE(DNaming_Line3DDriver, TFunction_Driver) //! Computes Line 3D function class DNaming_Line3DDriver : public TFunction_Driver { public: //! Constructor //! validation //! ========== Standard_EXPORT DNaming_Line3DDriver(); //! Validates labels of a function in . //! In regeneration mode this method must be called (by the //! solver) even if the function is not executed, to build //! the valid label scope. //! execution of function //! ====================== Standard_EXPORT virtual void Validate (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE; //! Analyse in if the loaded function must be executed //! (i.e.arguments are modified) or not. //! If the Function label itself is modified, the function must //! be executed. Standard_EXPORT virtual Standard_Boolean MustExecute (const Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE; //! Execute the function and push in the impacted //! labels (see method SetImpacted). Standard_EXPORT virtual Standard_Integer Execute (Handle(TFunction_Logbook)& theLog) const Standard_OVERRIDE; DEFINE_STANDARD_RTTIEXT(DNaming_Line3DDriver,TFunction_Driver) protected: private: //! Loads a Line3D in a data framework Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, const TopoDS_Wire& theWire, const TopTools_Array1OfShape& theVertexes, const Standard_Boolean isClosed = Standard_False) const; }; #endif // _DNaming_Line3DDriver_HeaderFile