1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1,181 +0,0 @@
-- Created on: 1997-01-08
-- Created by: VAUTHIER Jean-Claude
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-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.
package DNaming
---Purpose:
uses
Draw,
TCollection,
TColStd,
TopAbs,
gp,
TDF,
TDataStd,
TFunction,
TNaming,
TopoDS,
TopTools,
BRepPrimAPI,
BRepFilletAPI,
BRepBuilderAPI,
BRepAlgoAPI
is
class BoxDriver;
class CylinderDriver;
class SphereDriver;
class SelectionDriver;
class BooleanOperationDriver;
class FilletDriver;
class TransformationDriver;
class PrismDriver;
class RevolutionDriver;
class PointDriver;
class Line3DDriver;
imported DataMapOfShapeOfName;
imported DataMapIteratorOfDataMapOfShapeOfName;
GetReal (theFunction : Function from TFunction; thePosition : Integer from Standard)
returns Real from TDataStd;
GetInteger (theFunction : Function from TFunction;thePosition : Integer from Standard)
returns Integer from TDataStd;
GetString (theFunction : Function from TFunction; thePosition : Integer from Standard)
returns Name from TDataStd;
ComputeAxis (theNS : NamedShape from TNaming; theAx1 : in out Ax1 from gp)
returns Boolean from Standard;
-- manipulation by function - object
GetFunctionResult(theFunction : Function from TFunction)
returns NamedShape from TNaming;
GetObjectArg(theFunction : Function from TFunction; thePosition : Integer from Standard)
returns UAttribute from TDataStd;
SetObjectArg(theFunction : Function from TFunction; thePosition : Integer from Standard;
theNewValue : UAttribute from TDataStd);
GetObjectValue(theObject : UAttribute from TDataStd)
returns NamedShape from TNaming;
GetLastFunction(theObject : UAttribute from TDataStd)
returns Function from TFunction;
GetFirstFunction(theObject : UAttribute from TDataStd)
returns Function from TFunction;
GetPrevFunction(theFunction : Function from TFunction)
returns Function from TFunction;
GetObjectFromFunction(theFunction : Function from TFunction)
returns UAttribute from TDataStd;
IsAttachment(theObject : UAttribute from TDataStd)
returns Boolean from Standard;
GetAttachmentsContext (theObject : UAttribute from TDataStd)
returns NamedShape from TNaming;
ComputeSweepDir ( theShape : Shape from TopoDS; theAxis : in out Ax1 from gp)
returns Boolean from Standard;
-- Naming short-cuts
LoadAndOrientModifiedShapes(
MakeShape : in out MakeShape from BRepBuilderAPI;
ShapeIn : in Shape from TopoDS;
GeneratedFrom : in ShapeEnum from TopAbs;
Buider : in out Builder from TNaming;
SubShapesOfResult : in DataMapOfShapeShape from TopTools);
LoadAndOrientGeneratedShapes(
MakeShape : in out MakeShape from BRepBuilderAPI;
ShapeIn : in Shape from TopoDS;
GeneratedFrom : in ShapeEnum from TopAbs;
Buider : in out Builder from TNaming;
SubShapesOfResult : in DataMapOfShapeShape from TopTools);
LoadDeletedShapes(
MakeShape : in out MakeShape from BRepBuilderAPI;
ShapeIn : in Shape from TopoDS;
KindOfDeletedShape : in ShapeEnum from TopAbs;
Buider : in out Builder from TNaming);
LoadResult(theLabel : Label from TDF; MS : in out BooleanOperation from BRepAlgoAPI);
-- old methods
CurrentShape (ShapeEntry : CString from Standard;
Data : Data from TDF)
returns Shape from TopoDS;
GetShape (ShapeEntry : CString from Standard;
Data : Data from TDF;
Shapes : in out ListOfShape from TopTools);
GetEntry (Shape : in Shape from TopoDS;
Data : in Data from TDF;
Status : in out Integer from Standard)
---Purpose: Status = 0 Not found,
-- Status = 1 One shape,
-- Status = 2 More than one shape.
returns AsciiString from TCollection;
LoadImportedShape(theResultLabel : Label from TDF;
theShape : Shape from TopoDS);
---Purpose: Loads the Shape to DF
LoadPrime(theResultLabel : Label from TDF;
theShape : Shape from TopoDS);
---Purpose: Reloads sub-shapes of the Shape to DF
AllCommands (DI : in out Interpretor from Draw);
BasicCommands (DI : in out Interpretor from Draw);
---Purpose: commands relatives to NamedShape
ToolsCommands (DI : in out Interpretor from Draw);
SelectionCommands (DI : in out Interpretor from Draw);
---Purpose: commands relatives to Naming
ModelingCommands (DI : in out Interpretor from Draw);
---Purpose: commands for testing Naming
end DNaming;

View File

@@ -14,60 +14,68 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming.ixx>
#include <BRep_Tool.hxx>
#include <BRepAlgoAPI_BooleanOperation.hxx>
#include <BRepBuilderAPI_MakeShape.hxx>
#include <BRepLib_FindSurface.hxx>
#include <BRepTools.hxx>
#include <DDF.hxx>
#include <DDF_Data.hxx>
#include <DNaming.hxx>
#include <Draw.hxx>
#include <Geom_Curve.hxx>
#include <Geom_Line.hxx>
#include <Geom_Plane.hxx>
#include <Geom_RectangularTrimmedSurface.hxx>
#include <Geom_Surface.hxx>
#include <gp_Ax1.hxx>
#include <gp_Pln.hxx>
#include <gp_Vec.hxx>
#include <ModelDefinitions.hxx>
#include <TCollection_AsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Name.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_TreeNode.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Data.hxx>
#include <TDF_Label.hxx>
#include <TDF_LabelList.hxx>
#include <TDF_LabelMap.hxx>
#include <TDF_Tool.hxx>
#include <TDF_Reference.hxx>
#include <TDF_TagSource.hxx>
#include <TNaming_Iterator.hxx>
#include <TNaming_Tool.hxx>
#include <TNaming_NamedShape.hxx>
#include <TDF_Tool.hxx>
#include <TFunction_Function.hxx>
#include <TNaming_Builder.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#include <TNaming_Iterator.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Tool.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Shape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopExp_Explorer.hxx>
#include <TopExp.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Face.hxx>
#include <BRepTools.hxx>
#include <TDF_Reference.hxx>
#include <TDataStd_TreeNode.hxx>
#include <BRepAlgoAPI_BooleanOperation.hxx>
#include <gp_Vec.hxx>
#include <gp_Ax1.hxx>
#include <gp_Pln.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <BRep_Tool.hxx>
#include <Geom_Line.hxx>
#include <Geom_Plane.hxx>
#include <Geom_Surface.hxx>
#include <BRepLib_FindSurface.hxx>
#include <Geom_RectangularTrimmedSurface.hxx>
#include <ModelDefinitions.hxx>
#include <TopTools_MapOfShape.hxx>
//=======================================================================
//function : DNaming_DFandUS
//purpose :
//=======================================================================
// Standard_Boolean DNaming_DFandUS(char* a,
// Handle(TDF_Data)& ND,
// Handle(TNaming_UsedShapes)& US)
@@ -78,12 +86,10 @@
// ND->Root().FindAttribute(TNaming_UsedShapes::GetID(),US);
// return 1;
// }
//=======================================================================
//function : GetShape
//purpose :
//=======================================================================
void DNaming::GetShape (const Standard_CString LabelName,
const Handle(TDF_Data)& DF,
TopTools_ListOfShape& L)

166
src/DNaming/DNaming.hxx Normal file
View File

@@ -0,0 +1,166 @@
// Created on: 1997-01-08
// Created by: VAUTHIER Jean-Claude
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-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_HeaderFile
#define _DNaming_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <Standard_CString.hxx>
#include <TopTools_ListOfShape.hxx>
#include <Draw_Interpretor.hxx>
class TDataStd_Real;
class TFunction_Function;
class TDataStd_Integer;
class TDataStd_Name;
class TNaming_NamedShape;
class gp_Ax1;
class TDataStd_UAttribute;
class TopoDS_Shape;
class BRepBuilderAPI_MakeShape;
class TNaming_Builder;
class TDF_Label;
class BRepAlgoAPI_BooleanOperation;
class TDF_Data;
class TCollection_AsciiString;
class DNaming_BoxDriver;
class DNaming_CylinderDriver;
class DNaming_SphereDriver;
class DNaming_SelectionDriver;
class DNaming_BooleanOperationDriver;
class DNaming_FilletDriver;
class DNaming_TransformationDriver;
class DNaming_PrismDriver;
class DNaming_RevolutionDriver;
class DNaming_PointDriver;
class DNaming_Line3DDriver;
class DNaming
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT static Handle(TDataStd_Real) GetReal (const Handle(TFunction_Function)& theFunction, const Standard_Integer thePosition);
Standard_EXPORT static Handle(TDataStd_Integer) GetInteger (const Handle(TFunction_Function)& theFunction, const Standard_Integer thePosition);
Standard_EXPORT static Handle(TDataStd_Name) GetString (const Handle(TFunction_Function)& theFunction, const Standard_Integer thePosition);
Standard_EXPORT static Standard_Boolean ComputeAxis (const Handle(TNaming_NamedShape)& theNS, gp_Ax1& theAx1);
Standard_EXPORT static Handle(TNaming_NamedShape) GetFunctionResult (const Handle(TFunction_Function)& theFunction);
Standard_EXPORT static Handle(TDataStd_UAttribute) GetObjectArg (const Handle(TFunction_Function)& theFunction, const Standard_Integer thePosition);
Standard_EXPORT static void SetObjectArg (const Handle(TFunction_Function)& theFunction, const Standard_Integer thePosition, const Handle(TDataStd_UAttribute)& theNewValue);
Standard_EXPORT static Handle(TNaming_NamedShape) GetObjectValue (const Handle(TDataStd_UAttribute)& theObject);
Standard_EXPORT static Handle(TFunction_Function) GetLastFunction (const Handle(TDataStd_UAttribute)& theObject);
Standard_EXPORT static Handle(TFunction_Function) GetFirstFunction (const Handle(TDataStd_UAttribute)& theObject);
Standard_EXPORT static Handle(TFunction_Function) GetPrevFunction (const Handle(TFunction_Function)& theFunction);
Standard_EXPORT static Handle(TDataStd_UAttribute) GetObjectFromFunction (const Handle(TFunction_Function)& theFunction);
Standard_EXPORT static Standard_Boolean IsAttachment (const Handle(TDataStd_UAttribute)& theObject);
Standard_EXPORT static Handle(TNaming_NamedShape) GetAttachmentsContext (const Handle(TDataStd_UAttribute)& theObject);
Standard_EXPORT static Standard_Boolean ComputeSweepDir (const TopoDS_Shape& theShape, gp_Ax1& theAxis);
Standard_EXPORT static void LoadAndOrientModifiedShapes (BRepBuilderAPI_MakeShape& MakeShape, const TopoDS_Shape& ShapeIn, const TopAbs_ShapeEnum GeneratedFrom, TNaming_Builder& Buider, const TopTools_DataMapOfShapeShape& SubShapesOfResult);
Standard_EXPORT static void LoadAndOrientGeneratedShapes (BRepBuilderAPI_MakeShape& MakeShape, const TopoDS_Shape& ShapeIn, const TopAbs_ShapeEnum GeneratedFrom, TNaming_Builder& Buider, const TopTools_DataMapOfShapeShape& SubShapesOfResult);
Standard_EXPORT static void LoadDeletedShapes (BRepBuilderAPI_MakeShape& MakeShape, const TopoDS_Shape& ShapeIn, const TopAbs_ShapeEnum KindOfDeletedShape, TNaming_Builder& Buider);
Standard_EXPORT static void LoadResult (const TDF_Label& theLabel, BRepAlgoAPI_BooleanOperation& MS);
Standard_EXPORT static TopoDS_Shape CurrentShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data);
Standard_EXPORT static void GetShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data, TopTools_ListOfShape& Shapes);
//! Status = 0 Not found,
//! Status = 1 One shape,
//! Status = 2 More than one shape.
Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& Status);
//! Loads the Shape to DF
Standard_EXPORT static void LoadImportedShape (const TDF_Label& theResultLabel, const TopoDS_Shape& theShape);
//! Reloads sub-shapes of the Shape to DF
Standard_EXPORT static void LoadPrime (const TDF_Label& theResultLabel, const TopoDS_Shape& theShape);
Standard_EXPORT static void AllCommands (Draw_Interpretor& DI);
//! commands relatives to NamedShape
Standard_EXPORT static void BasicCommands (Draw_Interpretor& DI);
Standard_EXPORT static void ToolsCommands (Draw_Interpretor& DI);
//! commands relatives to Naming
Standard_EXPORT static void SelectionCommands (Draw_Interpretor& DI);
//! commands for testing Naming
Standard_EXPORT static void ModelingCommands (Draw_Interpretor& DI);
protected:
private:
friend class DNaming_BoxDriver;
friend class DNaming_CylinderDriver;
friend class DNaming_SphereDriver;
friend class DNaming_SelectionDriver;
friend class DNaming_BooleanOperationDriver;
friend class DNaming_FilletDriver;
friend class DNaming_TransformationDriver;
friend class DNaming_PrismDriver;
friend class DNaming_RevolutionDriver;
friend class DNaming_PointDriver;
friend class DNaming_Line3DDriver;
};
#endif // _DNaming_HeaderFile

View File

@@ -1,69 +0,0 @@
-- Created on: 2009-05-05
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class BooleanOperationDriver from DNaming inherits Driver from TFunction
---Purpose: Driver for Fuse, Cut, Common
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
BooleanOperation from BRepAlgoAPI
is
Create returns BooleanOperationDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; MS : in out BooleanOperation from BRepAlgoAPI)
is private;
LoadSectionNDS(me; theResultLabel : Label from TDF; MS : in out BooleanOperation from BRepAlgoAPI)
is private;
CheckAndLoad(me; theMkOpe : in out BooleanOperation from BRepAlgoAPI;
theFunction : Function from TFunction)
returns Boolean from Standard is private;
end BooleanOperationDriver;

View File

@@ -13,43 +13,45 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_BooleanOperationDriver.ixx>
#include <TFunction_Function.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_NamedShape.hxx>
#include <Adaptor3d_HCurve.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepAlgoAPI_BooleanOperation.hxx>
#include <BRepAlgoAPI_Common.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
#include <BRepAlgoAPI_Section.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Vertex.hxx>
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
#include <BRepCheck_ListOfStatus.hxx>
#include <BRepCheck_Result.hxx>
#include <BRepLib.hxx>
#include <DNaming.hxx>
#include <DNaming_BooleanOperationDriver.hxx>
#include <GeomAbs_SurfaceType.hxx>
#include <ModelDefinitions.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <ModelDefinitions.hxx>
#include <DNaming.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgoAPI_Common.hxx>
#include <BRepAlgoAPI_Section.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopExp_Explorer.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopExp.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <BRepLib.hxx>
#include <Precision.hxx>
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
#include <BRepCheck_Result.hxx>
#include <BRepCheck_ListOfStatus.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <Adaptor3d_HCurve.hxx>
#include <GeomAbs_SurfaceType.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
static Standard_Boolean FixSameParameter(const TopoDS_Shape& theShape,
BRepCheck_Analyzer& theAnalyzer,

View File

@@ -0,0 +1,93 @@
// Created on: 2009-05-05
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_BooleanOperationDriver_HeaderFile
#define _DNaming_BooleanOperationDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepAlgoAPI_BooleanOperation;
class TFunction_Function;
class DNaming_BooleanOperationDriver;
DEFINE_STANDARD_HANDLE(DNaming_BooleanOperationDriver, TFunction_Driver)
//! Driver for Fuse, Cut, Common
class DNaming_BooleanOperationDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_BooleanOperationDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_BooleanOperationDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepAlgoAPI_BooleanOperation& MS) const;
Standard_EXPORT void LoadSectionNDS (const TDF_Label& theResultLabel, BRepAlgoAPI_BooleanOperation& MS) const;
Standard_EXPORT Standard_Boolean CheckAndLoad (BRepAlgoAPI_BooleanOperation& theMkOpe, const Handle(TFunction_Function)& theFunction) const;
};
#endif // _DNaming_BooleanOperationDriver_HeaderFile

View File

@@ -1,58 +0,0 @@
-- Created on: 2009-04-29
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class BoxDriver from DNaming inherits Driver from TFunction
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakeBox from BRepPrimAPI
is
Create returns BoxDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkBox : in out MakeBox from BRepPrimAPI)
is private;
end BoxDriver;

View File

@@ -13,23 +13,26 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_BoxDriver.ixx>
#include <TFunction_Function.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_NamedShape.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Solid.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <DNaming.hxx>
#include <DNaming_BoxDriver.hxx>
#include <ModelDefinitions.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <ModelDefinitions.hxx>
#include <DNaming.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Solid.hxx>
//=======================================================================
//function : DNaming_BoxDriver
//purpose : Constructor

View File

@@ -0,0 +1,88 @@
// Created on: 2009-04-29
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_BoxDriver_HeaderFile
#define _DNaming_BoxDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepPrimAPI_MakeBox;
class DNaming_BoxDriver;
DEFINE_STANDARD_HANDLE(DNaming_BoxDriver, TFunction_Driver)
class DNaming_BoxDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_BoxDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_BoxDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepPrimAPI_MakeBox& mkBox) const;
};
#endif // _DNaming_BoxDriver_HeaderFile

View File

@@ -1,61 +0,0 @@
-- Created on: 2009-05-04
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class CylinderDriver from DNaming inherits Driver from TFunction
---Purpose: Computes Cylinder function
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakeCylinder from BRepPrimAPI
is
Create returns CylinderDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkCyl : in out MakeCylinder from BRepPrimAPI)
is private;
end CylinderDriver;

View File

@@ -13,31 +13,33 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_CylinderDriver.ixx>
#include <TFunction_Function.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_NamedShape.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Solid.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <DNaming.hxx>
#include <DNaming_CylinderDriver.hxx>
#include <Geom_Line.hxx>
#include <Geom_TrimmedCurve.hxx>
#include <gp_Lin.hxx>
#include <ModelDefinitions.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <ModelDefinitions.hxx>
#include <DNaming.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <gp_Lin.hxx>
#include <Geom_TrimmedCurve.hxx>
#include <Geom_Line.hxx>
#include <TopoDS_Solid.hxx>
//=======================================================================
//function : DNaming_CylinderDriver
//purpose : Constructor

View File

@@ -0,0 +1,88 @@
// Created on: 2009-05-04
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_CylinderDriver_HeaderFile
#define _DNaming_CylinderDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepPrimAPI_MakeCylinder;
class DNaming_CylinderDriver;
DEFINE_STANDARD_HANDLE(DNaming_CylinderDriver, TFunction_Driver)
//! Computes Cylinder function
class DNaming_CylinderDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_CylinderDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_CylinderDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepPrimAPI_MakeCylinder& mkCyl) const;
};
#endif // _DNaming_CylinderDriver_HeaderFile

View File

@@ -1,63 +0,0 @@
-- Created on: 2009-05-06
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class FilletDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakeFillet from BRepFilletAPI,
Shape from TopoDS
is
Create returns FilletDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkFillet : in out MakeFillet from BRepFilletAPI;
theContext : Shape from TopoDS)
is private;
end FilletDriver;

View File

@@ -13,32 +13,33 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_FilletDriver.ixx>
#include <BRepAlgo.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <DNaming.hxx>
#include <DNaming_FilletDriver.hxx>
#include <ModelDefinitions.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_Iterator.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopExp_Explorer.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <BRepAlgo.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Edge.hxx>
#include <TDF_Label.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TNaming.hxx>
#include <TNaming_Iterator.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TFunction_Logbook.hxx>
#include <TFunction_Function.hxx>
#include <DNaming.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <ModelDefinitions.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
//=======================================================================
//function : FilletDriver

View File

@@ -0,0 +1,89 @@
// Created on: 2009-05-06
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_FilletDriver_HeaderFile
#define _DNaming_FilletDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepFilletAPI_MakeFillet;
class TopoDS_Shape;
class DNaming_FilletDriver;
DEFINE_STANDARD_HANDLE(DNaming_FilletDriver, TFunction_Driver)
class DNaming_FilletDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_FilletDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_FilletDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepFilletAPI_MakeFillet& mkFillet, const TopoDS_Shape& theContext) const;
};
#endif // _DNaming_FilletDriver_HeaderFile

View File

@@ -1,63 +0,0 @@
-- Created on: 2010-02-26
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- 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.
class Line3DDriver from DNaming inherits Driver from TFunction
---Purpose: Computes Line 3D function
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
Wire from TopoDS,
Array1OfShape from TopTools
is
Create returns Line3DDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; theWire : Wire from TopoDS;
theVertexes : Array1OfShape from TopTools;
isClosed : Boolean from Standard = Standard_False) is private;
---Purpose: Loads a Line3D in a data framework
end Line3DDriver;

View File

@@ -13,43 +13,45 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_Line3DDriver.ixx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <gp_Trsf.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
#include <BRepAlgo.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <DNaming.hxx>
#include <DNaming_Line3DDriver.hxx>
#include <Geom_BSplineCurve.hxx>
#include <GeomAPI_Interpolate.hxx>
#include <BRep_Tool.hxx>
#include <BRep_Builder.hxx>
#include <TopLoc_Location.hxx>
#include <TopTools_HSequenceOfShape.hxx>
#include <gp_Pnt.hxx>
#include <gp_Trsf.hxx>
#include <gp_Vec.hxx>
#include <ModelDefinitions.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TColgp_HArray1OfPnt.hxx>
#include <TopTools_Array1OfShape.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Name.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_AttributeMap.hxx>
#include <TDF_Label.hxx>
#include <TDF_MapIteratorOfAttributeMap.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopAbs.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
#include <TopAbs.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TDF_Label.hxx>
#include <TDF_AttributeMap.hxx>
#include <TDF_MapIteratorOfAttributeMap.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TFunction_Logbook.hxx>
#include <TFunction_Function.hxx>
#include <DNaming.hxx>
#include <ModelDefinitions.hxx>
#include <TDataStd_Name.hxx>
#include <TopTools_Array1OfShape.hxx>
#include <TopTools_HSequenceOfShape.hxx>
//=======================================================================
//function : DNaming_Line3DDriver

View File

@@ -0,0 +1,90 @@
// Created on: 2010-02-26
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// 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 <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <TopTools_Array1OfShape.hxx>
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 <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(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

View File

@@ -1,56 +0,0 @@
-- Created on: 2010-02-25
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- 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.
class PointDriver from DNaming inherits Driver from TFunction
---Purpose: Driver for PointXYZ and RelativePoint
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction
is
Create returns PointDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
end PointDriver;

View File

@@ -13,28 +13,29 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_PointDriver.ixx>
//OCCT
#include <BRep_Tool.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <DNaming.hxx>
#include <DNaming_PointDriver.hxx>
#include <gp_Pnt.hxx>
#include <ModelDefinitions.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS.hxx>
#include <BRep_Tool.hxx>
#include <gp_Pnt.hxx>
#include <Standard_GUID.hxx>
//OCCT
// OCAF
#include <TNaming.hxx>
#include <TDF_Label.hxx>
#include <TDataStd_Real.hxx>
#include <TFunction_Logbook.hxx>
#include <TFunction_Function.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Builder.hxx>
#include <DNaming.hxx>
#include <ModelDefinitions.hxx>
//=======================================================================
//function : DNaming_PointDriver
//purpose : Constructor

View File

@@ -0,0 +1,84 @@
// Created on: 2010-02-25
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// 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_PointDriver_HeaderFile
#define _DNaming_PointDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class DNaming_PointDriver;
DEFINE_STANDARD_HANDLE(DNaming_PointDriver, TFunction_Driver)
//! Driver for PointXYZ and RelativePoint
class DNaming_PointDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_PointDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_PointDriver,TFunction_Driver)
protected:
private:
};
#endif // _DNaming_PointDriver_HeaderFile

View File

@@ -1,63 +0,0 @@
-- Created on: 2009-06-16
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class PrismDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakePrism from BRepPrimAPI,
Shape from TopoDS
is
Create returns PrismDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkPrism : in out MakePrism from BRepPrimAPI;
Basis : Shape from TopoDS; Context : Shape from TopoDS)
is private;
end PrismDriver;

View File

@@ -13,51 +13,48 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_PrismDriver.ixx>
// OCC
#include <gp_Dir.hxx>
#include <gp_Vec.hxx>
#include <gp_Pnt.hxx>
#include <gp_Ax2.hxx>
#include <Geom_Line.hxx>
#include <BRep_Tool.hxx>
#include <BRepGProp.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <BRepCheck_Shell.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <BRepPrimAPI_MakePrism.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Wire.hxx>
#include <TopLoc_Location.hxx>
#include <TopExp_Explorer.hxx>
#include <GProp_GProps.hxx>
#include <Precision.hxx>
#include <BRepCheck_Wire.hxx>
#include <BRepGProp.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Solid.hxx>
#include <BRepPrimAPI_MakePrism.hxx>
#include <DNaming.hxx>
#include <DNaming_PrismDriver.hxx>
#include <Geom_Line.hxx>
#include <gp_Ax2.hxx>
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <GProp_GProps.hxx>
#include <ModelDefinitions.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
// OCAF
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <TDF_TagSource.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TDF_Label.hxx>
#include <TDF_TagSource.hxx>
#include <DNaming.hxx>
#include <ModelDefinitions.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Wire.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
// OCC
// OCAF
//=======================================================================
//function : DNaming_PrismDriver
//purpose : Constructor

View File

@@ -0,0 +1,89 @@
// Created on: 2009-06-16
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_PrismDriver_HeaderFile
#define _DNaming_PrismDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepPrimAPI_MakePrism;
class TopoDS_Shape;
class DNaming_PrismDriver;
DEFINE_STANDARD_HANDLE(DNaming_PrismDriver, TFunction_Driver)
class DNaming_PrismDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_PrismDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_PrismDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepPrimAPI_MakePrism& mkPrism, const TopoDS_Shape& Basis, const TopoDS_Shape& Context) const;
};
#endif // _DNaming_PrismDriver_HeaderFile

View File

@@ -1,62 +0,0 @@
-- Created on: 2009-06-17
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class RevolutionDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakeRevol from BRepPrimAPI,
Shape from TopoDS
is
Create returns RevolutionDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkRevol : in out MakeRevol from BRepPrimAPI;
Basis : Shape from TopoDS; Context : Shape from TopoDS)
is private;
end RevolutionDriver;

View File

@@ -13,56 +13,52 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_RevolutionDriver.ixx>
#include <gp_Dir.hxx>
#include <gp_Vec.hxx>
#include <gp_Pnt.hxx>
#include <gp_Ax2.hxx>
#include <Geom_Line.hxx>
#include <BRep_Tool.hxx>
#include <BRepGProp.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <BRepCheck_Shell.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <BRepPrimAPI_MakeRevol.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Wire.hxx>
#include <TopLoc_Location.hxx>
#include <TopExp_Explorer.hxx>
#include <GProp_GProps.hxx>
#include <Precision.hxx>
#include <BRepCheck_Wire.hxx>
#include <BRepGProp.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepCheck_Analyzer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Solid.hxx>
#include <BRepPrimAPI_MakeRevol.hxx>
#include <DNaming.hxx>
#include <DNaming_RevolutionDriver.hxx>
#include <Geom_Line.hxx>
#include <gp_Ax2.hxx>
#include <gp_Dir.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <GProp_GProps.hxx>
#include <ModelDefinitions.hxx>
#include <Precision.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Real.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopExp.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
// OCAF
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <TDF_TagSource.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TDF_Label.hxx>
#include <TDF_TagSource.hxx>
#include <DNaming.hxx>
#include <ModelDefinitions.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Wire.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
// OCAF
//=======================================================================
//function : DNaming_RevolutionDriver
//purpose : Constructor

View File

@@ -0,0 +1,89 @@
// Created on: 2009-06-17
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_RevolutionDriver_HeaderFile
#define _DNaming_RevolutionDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepPrimAPI_MakeRevol;
class TopoDS_Shape;
class DNaming_RevolutionDriver;
DEFINE_STANDARD_HANDLE(DNaming_RevolutionDriver, TFunction_Driver)
class DNaming_RevolutionDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_RevolutionDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_RevolutionDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepPrimAPI_MakeRevol& mkRevol, const TopoDS_Shape& Basis, const TopoDS_Shape& Context) const;
};
#endif // _DNaming_RevolutionDriver_HeaderFile

View File

@@ -1,57 +0,0 @@
-- Created on: 2009-05-05
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class SelectionDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection
is
Create returns SelectionDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
end SelectionDriver;

View File

@@ -13,19 +13,21 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_SelectionDriver.ixx>
#include <TopAbs.hxx>
#include <TopoDS_Shape.hxx>
#include <DNaming_SelectionDriver.hxx>
#include <ModelDefinitions.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDF_Label.hxx>
#include <TDF_LabelMap.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Selector.hxx>
#include <TNaming_Tool.hxx>
#include <TFunction_Function.hxx>
#include <TDataStd_Integer.hxx>
#include <ModelDefinitions.hxx>
#include <TopAbs.hxx>
#include <TopoDS_Shape.hxx>
//#define SEL_DEB 1
#ifdef OCCT_DEBUG

View File

@@ -0,0 +1,84 @@
// Created on: 2009-05-05
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_SelectionDriver_HeaderFile
#define _DNaming_SelectionDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class DNaming_SelectionDriver;
DEFINE_STANDARD_HANDLE(DNaming_SelectionDriver, TFunction_Driver)
class DNaming_SelectionDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_SelectionDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_SelectionDriver,TFunction_Driver)
protected:
private:
};
#endif // _DNaming_SelectionDriver_HeaderFile

View File

@@ -1,63 +0,0 @@
-- Created on: 2009-06-18
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class SphereDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
MakeSphere from BRepPrimAPI,
Shape from TopoDS
is
Create returns SphereDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; mkSphere : in out MakeSphere from BRepPrimAPI)
is private;
end SphereDriver;

View File

@@ -13,36 +13,36 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_SphereDriver.ixx>
#include <BRep_Tool.hxx>
#include <BRepAlgo.hxx>
#include <BRepPrimAPI_MakeSphere.hxx>
#include <DNaming.hxx>
#include <DNaming_SphereDriver.hxx>
#include <gp_Ax2.hxx>
#include <gp_Dir.hxx>
#include <gp_Vec.hxx>
#include <gp_Pnt.hxx>
#include <BRep_Tool.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopExp.hxx>
#include <BRepPrimAPI_MakeSphere.hxx>
#include <TopLoc_Location.hxx>
#include <BRepAlgo.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <gp_Vec.hxx>
#include <ModelDefinitions.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TopoDS_Solid.hxx>
#include <TNaming.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Builder.hxx>
#include <TDF_Label.hxx>
#include <TFunction_Function.hxx>
#include <DNaming.hxx>
#include <ModelDefinitions.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TopExp.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
//=======================================================================
//function : DNaming_SphereDriver

View File

@@ -0,0 +1,88 @@
// Created on: 2009-06-18
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_SphereDriver_HeaderFile
#define _DNaming_SphereDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class BRepPrimAPI_MakeSphere;
class DNaming_SphereDriver;
DEFINE_STANDARD_HANDLE(DNaming_SphereDriver, TFunction_Driver)
class DNaming_SphereDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_SphereDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_SphereDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, BRepPrimAPI_MakeSphere& mkSphere) const;
};
#endif // _DNaming_SphereDriver_HeaderFile

View File

@@ -1,63 +0,0 @@
-- Created on: 2009-05-07
-- Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
-- Copyright (c) 2009-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.
class TransformationDriver from DNaming inherits Driver from TFunction
---Purpose:
uses
Label from TDF,
Logbook from TFunction,
Function from TFunction,
ExtendedString from TCollection,
NamedShape from TNaming,
Trsf from gp
is
Create returns TransformationDriver from DNaming;
---Purpose: Constructor
---Purpose: validation
-- ==========
Validate(me; theLog : in out Logbook from TFunction)
is redefined;
---Purpose: Validates labels of a function in <log>.
-- In regeneration mode this method must be called (by the
-- solver) even if the function is not executed, to build
-- the valid label scope.
---Purpose: execution of function
-- ======================
MustExecute (me; theLog : Logbook from TFunction)
---Purpose: Analyse in <log> 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.
returns Boolean from Standard
is redefined;
Execute (me; theLog : in out Logbook from TFunction)
---Purpose: Execute the function and push in <log> the impacted
-- labels (see method SetImpacted).
returns Integer from Standard
is redefined;
LoadNamingDS(me; theResultLabel : Label from TDF; theSourceNS : NamedShape from TNaming;
theTrsf : Trsf from gp)
is private;
end TransformationDriver;

View File

@@ -13,41 +13,45 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <DNaming_TransformationDriver.ixx>
#include <Standard_NullObject.hxx>
#include <TopAbs.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <BRep_Builder.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <BRep_Tool.hxx>
#include <BRepBuilderAPI_MakeShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
#include <TopTools_DataMapOfShapeInteger.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeInteger.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Tool.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <DNaming.hxx>
#include <TDataStd_Real.hxx>
#include <gp_Vec.hxx>
#include <DNaming_TransformationDriver.hxx>
#include <GeomLib_IsPlanarSurface.hxx>
#include <gp_Ax1.hxx>
#include <gp_Ax2.hxx>
#include <gp_Pln.hxx>
#include <GeomLib_IsPlanarSurface.hxx>
#include <NCollection_Handle.hxx>
#include <gp_Trsf.hxx>
#include <gp_Vec.hxx>
#include <ModelDefinitions.hxx>
#include <NCollection_Handle.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Label.hxx>
#include <TFunction_Function.hxx>
#include <TFunction_Logbook.hxx>
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Tool.hxx>
#include <TopAbs.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeInteger.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
#include <TopTools_DataMapOfShapeInteger.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_MapIteratorOfMapOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
#ifdef WNT
#define EXCEPTION ...

View File

@@ -0,0 +1,89 @@
// Created on: 2009-05-07
// Created by: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
// Copyright (c) 2009-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_TransformationDriver_HeaderFile
#define _DNaming_TransformationDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TFunction_Driver.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TFunction_Logbook;
class TDF_Label;
class TNaming_NamedShape;
class gp_Trsf;
class DNaming_TransformationDriver;
DEFINE_STANDARD_HANDLE(DNaming_TransformationDriver, TFunction_Driver)
class DNaming_TransformationDriver : public TFunction_Driver
{
public:
//! Constructor
//! validation
//! ==========
Standard_EXPORT DNaming_TransformationDriver();
//! Validates labels of a function in <log>.
//! 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 (TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Analyse in <log> 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 TFunction_Logbook& theLog) const Standard_OVERRIDE;
//! Execute the function and push in <log> the impacted
//! labels (see method SetImpacted).
Standard_EXPORT virtual Standard_Integer Execute (TFunction_Logbook& theLog) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(DNaming_TransformationDriver,TFunction_Driver)
protected:
private:
Standard_EXPORT void LoadNamingDS (const TDF_Label& theResultLabel, const Handle(TNaming_NamedShape)& theSourceNS, const gp_Trsf& theTrsf) const;
};
#endif // _DNaming_TransformationDriver_HeaderFile

View File

@@ -1,8 +1,32 @@
DNaming.cxx
DNaming.hxx
DNaming_BasicCommands.cxx
DNaming_ToolsCommands.cxx
DNaming_SelectionCommands.cxx
DNaming_ModelingCommands.cxx
DNaming_Selection.tcl
ModelDefinitions.hxx
DNaming_DataMapOfShapeOfName.hxx
DNaming_BooleanOperationDriver.cxx
DNaming_BooleanOperationDriver.hxx
DNaming_BoxDriver.cxx
DNaming_BoxDriver.hxx
DNaming_CylinderDriver.cxx
DNaming_CylinderDriver.hxx
DNaming_DataMapIteratorOfDataMapOfShapeOfName.hxx
DNaming_DataMapOfShapeOfName.hxx
DNaming_FilletDriver.cxx
DNaming_FilletDriver.hxx
DNaming_Line3DDriver.cxx
DNaming_Line3DDriver.hxx
DNaming_ModelingCommands.cxx
DNaming_PointDriver.cxx
DNaming_PointDriver.hxx
DNaming_PrismDriver.cxx
DNaming_PrismDriver.hxx
DNaming_RevolutionDriver.cxx
DNaming_RevolutionDriver.hxx
DNaming_Selection.tcl
DNaming_SelectionCommands.cxx
DNaming_SelectionDriver.cxx
DNaming_SelectionDriver.hxx
DNaming_SphereDriver.cxx
DNaming_SphereDriver.hxx
DNaming_ToolsCommands.cxx
DNaming_TransformationDriver.cxx
DNaming_TransformationDriver.hxx
ModelDefinitions.hxx