Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-08-04
0002 // Created by: Herve LEGRAND
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _STEPConstruct_Part_HeaderFile
0018 #define _STEPConstruct_Part_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 class StepShape_ShapeDefinitionRepresentation;
0025 class StepBasic_ProductRelatedProductCategory;
0026 class StepShape_ShapeRepresentation;
0027 class TCollection_HAsciiString;
0028 class StepBasic_ApplicationContext;
0029 class StepBasic_ProductContext;
0030 class StepBasic_ProductDefinitionContext;
0031 class StepBasic_Product;
0032 class StepBasic_ProductDefinitionFormation;
0033 class StepBasic_ProductDefinition;
0034 class StepData_StepModel;
0035 class StepRepr_ProductDefinitionShape;
0036 
0037 
0038 //! Provides tools for creating STEP structures associated
0039 //! with part (SDR), such as PRODUCT, PDF etc., as
0040 //! required by current schema
0041 //! Also allows to investigate and modify this data
0042 class STEPConstruct_Part 
0043 {
0044 public:
0045 
0046   DEFINE_STANDARD_ALLOC
0047 
0048   
0049   Standard_EXPORT STEPConstruct_Part();
0050   
0051   Standard_EXPORT void MakeSDR (const Handle(StepShape_ShapeRepresentation)& aShape,
0052                                 const Handle(TCollection_HAsciiString)& aName,
0053                                 const Handle(StepBasic_ApplicationContext)& AC,
0054                                 Handle(StepData_StepModel)& theStepModel);
0055   
0056   Standard_EXPORT void ReadSDR (const Handle(StepShape_ShapeDefinitionRepresentation)& aShape);
0057   
0058   Standard_EXPORT Standard_Boolean IsDone() const;
0059   
0060   //! Returns SDR or Null if not done
0061   Standard_EXPORT Handle(StepShape_ShapeDefinitionRepresentation) SDRValue() const;
0062   
0063   //! Returns SDR->UsedRepresentation() or Null if not done
0064   Standard_EXPORT Handle(StepShape_ShapeRepresentation) SRValue() const;
0065   
0066   Standard_EXPORT Handle(StepBasic_ProductContext) PC() const;
0067   
0068   Standard_EXPORT Handle(TCollection_HAsciiString) PCname() const;
0069   
0070   Standard_EXPORT Handle(TCollection_HAsciiString) PCdisciplineType() const;
0071   
0072   Standard_EXPORT void SetPCname (const Handle(TCollection_HAsciiString)& name);
0073   
0074   Standard_EXPORT void SetPCdisciplineType (const Handle(TCollection_HAsciiString)& label);
0075   
0076   Standard_EXPORT Handle(StepBasic_ApplicationContext) AC() const;
0077   
0078   Standard_EXPORT Handle(TCollection_HAsciiString) ACapplication() const;
0079   
0080   Standard_EXPORT void SetACapplication (const Handle(TCollection_HAsciiString)& text);
0081   
0082   Standard_EXPORT Handle(StepBasic_ProductDefinitionContext) PDC() const;
0083   
0084   Standard_EXPORT Handle(TCollection_HAsciiString) PDCname() const;
0085   
0086   Standard_EXPORT Handle(TCollection_HAsciiString) PDCstage() const;
0087   
0088   Standard_EXPORT void SetPDCname (const Handle(TCollection_HAsciiString)& label);
0089   
0090   Standard_EXPORT void SetPDCstage (const Handle(TCollection_HAsciiString)& label);
0091   
0092   Standard_EXPORT Handle(StepBasic_Product) Product() const;
0093   
0094   Standard_EXPORT Handle(TCollection_HAsciiString) Pid() const;
0095   
0096   Standard_EXPORT Handle(TCollection_HAsciiString) Pname() const;
0097   
0098   Standard_EXPORT Handle(TCollection_HAsciiString) Pdescription() const;
0099   
0100   Standard_EXPORT void SetPid (const Handle(TCollection_HAsciiString)& id);
0101   
0102   Standard_EXPORT void SetPname (const Handle(TCollection_HAsciiString)& label);
0103   
0104   Standard_EXPORT void SetPdescription (const Handle(TCollection_HAsciiString)& text);
0105   
0106   Standard_EXPORT Handle(StepBasic_ProductDefinitionFormation) PDF() const;
0107   
0108   Standard_EXPORT Handle(TCollection_HAsciiString) PDFid() const;
0109   
0110   Standard_EXPORT Handle(TCollection_HAsciiString) PDFdescription() const;
0111   
0112   Standard_EXPORT void SetPDFid (const Handle(TCollection_HAsciiString)& id);
0113   
0114   Standard_EXPORT void SetPDFdescription (const Handle(TCollection_HAsciiString)& text);
0115   
0116   Standard_EXPORT Handle(StepBasic_ProductDefinition) PD() const;
0117   
0118   Standard_EXPORT Handle(TCollection_HAsciiString) PDdescription() const;
0119   
0120   Standard_EXPORT void SetPDdescription (const Handle(TCollection_HAsciiString)& text);
0121   
0122   Standard_EXPORT Handle(StepRepr_ProductDefinitionShape) PDS() const;
0123   
0124   Standard_EXPORT Handle(TCollection_HAsciiString) PDSname() const;
0125   
0126   Standard_EXPORT Handle(TCollection_HAsciiString) PDSdescription() const;
0127   
0128   Standard_EXPORT void SetPDSname (const Handle(TCollection_HAsciiString)& label);
0129   
0130   Standard_EXPORT void SetPDSdescription (const Handle(TCollection_HAsciiString)& text);
0131   
0132   Standard_EXPORT Handle(StepBasic_ProductRelatedProductCategory) PRPC() const;
0133   
0134   Standard_EXPORT Handle(TCollection_HAsciiString) PRPCname() const;
0135   
0136   Standard_EXPORT Handle(TCollection_HAsciiString) PRPCdescription() const;
0137   
0138   Standard_EXPORT void SetPRPCname (const Handle(TCollection_HAsciiString)& label);
0139   
0140   Standard_EXPORT void SetPRPCdescription (const Handle(TCollection_HAsciiString)& text);
0141 
0142 
0143 
0144 
0145 protected:
0146 
0147 
0148 
0149 
0150 
0151 private:
0152 
0153 
0154 
0155   Standard_Boolean myDone;
0156   Handle(StepShape_ShapeDefinitionRepresentation) mySDR;
0157   Handle(StepBasic_ProductRelatedProductCategory) myPRPC;
0158 
0159 
0160 };
0161 
0162 
0163 
0164 
0165 
0166 
0167 
0168 #endif // _STEPConstruct_Part_HeaderFile