Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:01

0001 // Created on: 2002-12-06
0002 // Created by: data exchange team
0003 // Copyright (c) 2002-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _StepAP209_Construct_HeaderFile
0017 #define _StepAP209_Construct_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <STEPConstruct_Tool.hxx>
0024 #include <StepElement_HSequenceOfElementMaterial.hxx>
0025 #include <StepFEA_HSequenceOfElementGeometricRelationship.hxx>
0026 #include <StepFEA_HSequenceOfElementRepresentation.hxx>
0027 #include <Standard_Type.hxx>
0028 #include <StepElement_HSequenceOfCurveElementSectionDefinition.hxx>
0029 class XSControl_WorkSession;
0030 class StepBasic_ProductDefinitionFormation;
0031 class StepFEA_FeaModel;
0032 class StepBasic_Product;
0033 class StepFEA_FeaAxis2Placement3d;
0034 class StepShape_ShapeRepresentation;
0035 class StepFEA_Curve3dElementRepresentation;
0036 class StepFEA_ElementRepresentation;
0037 class StepBasic_ProductDefinition;
0038 class StepData_StepModel;
0039 class StepRepr_ProductDefinitionShape;
0040 
0041 
0042 //! Basic tool for working with AP209 model
0043 class StepAP209_Construct  : public STEPConstruct_Tool
0044 {
0045 public:
0046 
0047   DEFINE_STANDARD_ALLOC
0048 
0049   
0050   //! Creates an empty tool
0051   Standard_EXPORT StepAP209_Construct();
0052   
0053   //! Creates a tool and initializes it
0054   Standard_EXPORT StepAP209_Construct(const Handle(XSControl_WorkSession)& WS);
0055   
0056   //! Initializes tool; returns True if succeeded
0057   Standard_EXPORT Standard_Boolean Init (const Handle(XSControl_WorkSession)& WS);
0058   
0059   Standard_EXPORT Standard_Boolean IsDesing (const Handle(StepBasic_ProductDefinitionFormation)& PD) const;
0060   
0061   Standard_EXPORT Standard_Boolean IsAnalys (const Handle(StepBasic_ProductDefinitionFormation)& PD) const;
0062   
0063   Standard_EXPORT Handle(StepFEA_FeaModel) FeaModel (const Handle(StepBasic_Product)& Prod) const;
0064   
0065   Standard_EXPORT Handle(StepFEA_FeaModel) FeaModel (const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
0066   
0067   Standard_EXPORT Handle(StepFEA_FeaAxis2Placement3d) GetFeaAxis2Placement3d (const Handle(StepFEA_FeaModel)& theFeaModel) const;
0068   
0069   Standard_EXPORT Handle(StepShape_ShapeRepresentation) IdealShape (const Handle(StepBasic_Product)& Prod) const;
0070   
0071   Standard_EXPORT Handle(StepShape_ShapeRepresentation) IdealShape (const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
0072   
0073   Standard_EXPORT Handle(StepShape_ShapeRepresentation) NominShape (const Handle(StepBasic_Product)& Prod) const;
0074   
0075   Standard_EXPORT Handle(StepShape_ShapeRepresentation) NominShape (const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
0076   
0077   Standard_EXPORT Handle(StepElement_HSequenceOfElementMaterial) GetElementMaterial() const;
0078   
0079   Standard_EXPORT Handle(StepFEA_HSequenceOfElementGeometricRelationship) GetElemGeomRelat() const;
0080   
0081   Standard_EXPORT Handle(StepFEA_HSequenceOfElementRepresentation) GetElements1D (const Handle(StepFEA_FeaModel)& theFeaModel) const;
0082   
0083   Standard_EXPORT Handle(StepFEA_HSequenceOfElementRepresentation) GetElements2D (const Handle(StepFEA_FeaModel)& theFEAModel) const;
0084   
0085   Standard_EXPORT Handle(StepFEA_HSequenceOfElementRepresentation) GetElements3D (const Handle(StepFEA_FeaModel)& theFEAModel) const;
0086   
0087   //! Getting list of curve_element_section_definitions
0088   //! for given element_representation
0089   Standard_EXPORT Handle(StepElement_HSequenceOfCurveElementSectionDefinition) GetCurElemSection (const Handle(StepFEA_Curve3dElementRepresentation)& ElemRepr) const;
0090   
0091   Standard_EXPORT Handle(StepShape_ShapeRepresentation) GetShReprForElem (const Handle(StepFEA_ElementRepresentation)& ElemRepr) const;
0092   
0093   //! Create empty structure for idealized_analysis_shape
0094   Standard_EXPORT Standard_Boolean CreateAnalysStructure (const Handle(StepBasic_Product)& Prod) const;
0095   
0096   //! Create fea structure
0097   Standard_EXPORT Standard_Boolean CreateFeaStructure (const Handle(StepBasic_Product)& Prod) const;
0098   
0099   //! Put into model entities Applied... for AP209 instead of
0100   //! entities CcDesing... from AP203.
0101   Standard_EXPORT Standard_Boolean ReplaceCcDesingToApplied() const;
0102   
0103   //! Create approval.. , date.. , time.. , person.. and
0104   //! organization.. entities for analysis structure
0105   Standard_EXPORT Standard_Boolean CreateAddingEntities (const Handle(StepBasic_ProductDefinition)& AnaPD) const;
0106   
0107   //! Create AP203 structure from existing AP209 structure
0108   Standard_EXPORT Handle(StepData_StepModel) CreateAP203Structure() const;
0109   
0110   //! Create approval.. , date.. , time.. , person.. and
0111   //! organization.. entities for 203 structure
0112   Standard_EXPORT Standard_Boolean CreateAdding203Entities (const Handle(StepBasic_ProductDefinition)& PD, Handle(StepData_StepModel)& aModel) const;
0113   
0114   Standard_EXPORT Handle(StepFEA_FeaModel) FeaModel (const Handle(StepRepr_ProductDefinitionShape)& PDS) const;
0115   
0116   Standard_EXPORT Handle(StepFEA_FeaModel) FeaModel (const Handle(StepBasic_ProductDefinition)& PD) const;
0117   
0118   Standard_EXPORT Handle(StepShape_ShapeRepresentation) IdealShape (const Handle(StepBasic_ProductDefinition)& PD) const;
0119   
0120   Standard_EXPORT Handle(StepShape_ShapeRepresentation) IdealShape (const Handle(StepRepr_ProductDefinitionShape)& PDS) const;
0121 
0122 
0123 
0124 
0125 protected:
0126 
0127   
0128   Standard_EXPORT Handle(StepFEA_HSequenceOfElementRepresentation) GetFeaElements (const Handle(StepFEA_FeaModel)& theFeaModel, const Handle(Standard_Type)& theType) const;
0129 
0130 
0131 
0132 
0133 private:
0134 
0135 
0136 
0137 
0138 
0139 };
0140 
0141 
0142 
0143 
0144 
0145 
0146 
0147 #endif // _StepAP209_Construct_HeaderFile