1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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

6
src/STEPEdit/FILES Normal file
View File

@@ -0,0 +1,6 @@
STEPEdit.cxx
STEPEdit.hxx
STEPEdit_EditContext.cxx
STEPEdit_EditContext.hxx
STEPEdit_EditSDR.cxx
STEPEdit_EditSDR.hxx

View File

@@ -1,65 +0,0 @@
-- Created on: 1998-07-29
-- Created by: Christian CAILLET
-- Copyright (c) 1998-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 STEPEdit
---Purpose : Provides tools to exploit and edit a set of STEP data :
-- editors, selections ..
uses Standard, TCollection,
Interface, IFSelect, StepData
is
class EditContext;
-- This class is for global context : ApplicationContext,
-- ProductRelatedProductCategory
class EditSDR;
-- This class allows to edit product data for a SDR
-- Some useful operators
-- They are not classes, they are just based on general tools
Protocol returns Protocol from Interface;
---Purpose : Returns a Protocol fit for STEP (creates the first time)
NewModel returns StepModel from StepData;
---Purpose : Returns a new empty StepModel fit for STEP
-- i.e. with its header determined from Protocol
SignType returns Signature from IFSelect;
---Purpose : Returns a SignType fit for STEP (creates the first time)
NewSelectSDR returns SelectSignature from IFSelect;
---Purpose : Creates a Selection for ShapeDefinitionRepresentation
-- By default searches among root entities
NewSelectPlacedItem returns SelectSignature from IFSelect;
---Purpose : Creates a Selection for Placed Items, i.e. MappedItem or
-- ContextDependentShapeRepresentation, which itself refers to a
-- RepresentationRelationship with possible subtypes (Shape...
-- and/or ...WithTransformation)
-- By default in the whole StepModel
NewSelectShapeRepr returns SelectSignature from IFSelect;
---Purpose : Creates a Selection for ShapeRepresentation and its sub-types,
-- plus ContextDependentShapeRepresentation (which is not a
-- sub-type of ShapeRepresentation)
-- By default in the whole StepModel
end STEPEdit;

View File

@@ -11,18 +11,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <STEPEdit.ixx>
#include <StepAP214.hxx>
#include <StepAP214_Protocol.hxx>
#include <APIHeaderSection_MakeHeader.hxx>
#include <StepSelect_StepType.hxx>
#include <IFSelect_SelectSignature.hxx>
#include <IFSelect_SelectModelEntities.hxx>
#include <IFSelect_SelectModelRoots.hxx>
#include <IFSelect_SelectSignature.hxx>
#include <IFSelect_Signature.hxx>
#include <Interface_Protocol.hxx>
#include <StepAP214.hxx>
#include <StepAP214_Protocol.hxx>
#include <StepData_StepModel.hxx>
#include <STEPEdit.hxx>
#include <StepSelect_StepType.hxx>
Handle(Interface_Protocol) STEPEdit::Protocol ()
{

93
src/STEPEdit/STEPEdit.hxx Normal file
View File

@@ -0,0 +1,93 @@
// Created on: 1998-07-29
// Created by: Christian CAILLET
// Copyright (c) 1998-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 _STEPEdit_HeaderFile
#define _STEPEdit_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class Interface_Protocol;
class StepData_StepModel;
class IFSelect_Signature;
class IFSelect_SelectSignature;
class STEPEdit_EditContext;
class STEPEdit_EditSDR;
//! Provides tools to exploit and edit a set of STEP data :
//! editors, selections ..
class STEPEdit
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a Protocol fit for STEP (creates the first time)
Standard_EXPORT static Handle(Interface_Protocol) Protocol();
//! Returns a new empty StepModel fit for STEP
//! i.e. with its header determined from Protocol
Standard_EXPORT static Handle(StepData_StepModel) NewModel();
//! Returns a SignType fit for STEP (creates the first time)
Standard_EXPORT static Handle(IFSelect_Signature) SignType();
//! Creates a Selection for ShapeDefinitionRepresentation
//! By default searches among root entities
Standard_EXPORT static Handle(IFSelect_SelectSignature) NewSelectSDR();
//! Creates a Selection for Placed Items, i.e. MappedItem or
//! ContextDependentShapeRepresentation, which itself refers to a
//! RepresentationRelationship with possible subtypes (Shape...
//! and/or ...WithTransformation)
//! By default in the whole StepModel
Standard_EXPORT static Handle(IFSelect_SelectSignature) NewSelectPlacedItem();
//! Creates a Selection for ShapeRepresentation and its sub-types,
//! plus ContextDependentShapeRepresentation (which is not a
//! sub-type of ShapeRepresentation)
//! By default in the whole StepModel
Standard_EXPORT static Handle(IFSelect_SelectSignature) NewSelectShapeRepr();
protected:
private:
friend class STEPEdit_EditContext;
friend class STEPEdit_EditSDR;
};
#endif // _STEPEdit_HeaderFile

View File

@@ -1,44 +0,0 @@
-- Created on: 1998-07-29
-- Created by: Christian CAILLET
-- Copyright (c) 1998-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.
class EditContext from STEPEdit inherits Editor from IFSelect
---Purpose : EditContext is an Editor fit for
-- Product Definition Context (one per Model) , i.e. :
-- - ProductDefinition
-- - ApplicationProtocolDefinition
-- - ProductRelatedProductCategory
uses Transient, AsciiString, HAsciiString, InterfaceModel, EditForm
is
Create returns EditContext;
Label (me) returns AsciiString;
Recognize (me; form : EditForm) returns Boolean;
StringValue (me; form : EditForm; num : Integer)
returns HAsciiString from TCollection;
Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
end EditContext;

View File

@@ -11,13 +11,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <STEPEdit_EditContext.ixx>
#include <Interface_TypedValue.hxx>
#include <TCollection_HAsciiString.hxx>
#include <StepData_StepModel.hxx>
#include <STEPConstruct_ContextTool.hxx>
#include <IFSelect_EditForm.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_TypedValue.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <StepBasic_ApplicationProtocolDefinition.hxx>
#include <STEPConstruct_ContextTool.hxx>
#include <StepData_StepModel.hxx>
#include <STEPEdit_EditContext.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_HAsciiString.hxx>
STEPEdit_EditContext::STEPEdit_EditContext ()
: IFSelect_Editor (5)

View File

@@ -0,0 +1,82 @@
// Created on: 1998-07-29
// Created by: Christian CAILLET
// Copyright (c) 1998-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 _STEPEdit_EditContext_HeaderFile
#define _STEPEdit_EditContext_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IFSelect_Editor.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TCollection_AsciiString;
class IFSelect_EditForm;
class TCollection_HAsciiString;
class Standard_Transient;
class Interface_InterfaceModel;
class STEPEdit_EditContext;
DEFINE_STANDARD_HANDLE(STEPEdit_EditContext, IFSelect_Editor)
//! EditContext is an Editor fit for
//! Product Definition Context (one per Model) , i.e. :
//! - ProductDefinition
//! - ApplicationProtocolDefinition
//! - ProductRelatedProductCategory
class STEPEdit_EditContext : public IFSelect_Editor
{
public:
Standard_EXPORT STEPEdit_EditContext();
Standard_EXPORT TCollection_AsciiString Label() const;
Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const;
Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const;
Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
DEFINE_STANDARD_RTTI(STEPEdit_EditContext,IFSelect_Editor)
protected:
private:
};
#endif // _STEPEdit_EditContext_HeaderFile

View File

@@ -1,41 +0,0 @@
-- Created on: 1998-07-29
-- Created by: Administrateur Atelier XSTEP
-- Copyright (c) 1998-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.
class EditSDR from STEPEdit inherits Editor from IFSelect
---Purpose : EditSDR is an Editor fit for a Shape Definition Representation
-- which designates a Product Definition
uses Transient, AsciiString, HAsciiString, InterfaceModel, EditForm
is
Create returns EditSDR;
Label (me) returns AsciiString;
Recognize (me; form : EditForm) returns Boolean;
StringValue (me; form : EditForm; num : Integer)
returns HAsciiString from TCollection;
Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
end EditSDR;

View File

@@ -11,14 +11,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <STEPEdit_EditSDR.ixx>
#include <IFSelect_EditForm.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_TypedValue.hxx>
#include <TCollection_HAsciiString.hxx>
#include <StepData_StepModel.hxx>
#include <StepShape_ShapeDefinitionRepresentation.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <STEPConstruct_Part.hxx>
#include <StepData_StepModel.hxx>
#include <STEPEdit_EditSDR.hxx>
#include <StepShape_ShapeDefinitionRepresentation.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_HAsciiString.hxx>
STEPEdit_EditSDR::STEPEdit_EditSDR ()
: IFSelect_Editor (11)

View File

@@ -0,0 +1,79 @@
// Created on: 1998-07-29
// Created by: Administrateur Atelier XSTEP
// Copyright (c) 1998-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 _STEPEdit_EditSDR_HeaderFile
#define _STEPEdit_EditSDR_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IFSelect_Editor.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TCollection_AsciiString;
class IFSelect_EditForm;
class TCollection_HAsciiString;
class Standard_Transient;
class Interface_InterfaceModel;
class STEPEdit_EditSDR;
DEFINE_STANDARD_HANDLE(STEPEdit_EditSDR, IFSelect_Editor)
//! EditSDR is an Editor fit for a Shape Definition Representation
//! which designates a Product Definition
class STEPEdit_EditSDR : public IFSelect_Editor
{
public:
Standard_EXPORT STEPEdit_EditSDR();
Standard_EXPORT TCollection_AsciiString Label() const;
Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const;
Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const;
Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
DEFINE_STANDARD_RTTI(STEPEdit_EditSDR,IFSelect_Editor)
protected:
private:
};
#endif // _STEPEdit_EditSDR_HeaderFile