Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1998-07-07
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1998-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_Assembly_HeaderFile
0018 #define _STEPConstruct_Assembly_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 class StepShape_ShapeDefinitionRepresentation;
0025 class StepShape_ShapeRepresentation;
0026 class StepGeom_Axis2Placement3d;
0027 class StepRepr_NextAssemblyUsageOccurrence;
0028 class StepShape_ContextDependentShapeRepresentation;
0029 class Interface_Graph;
0030 
0031 
0032 //! This operator creates and checks an item of an assembly, from its
0033 //! basic data : a ShapeRepresentation, a Location ...
0034 //!
0035 //! Three ways of coding such item from a ShapeRepresentation :
0036 //! - do nothing : i.e. information for assembly are ignored
0037 //! - create a MappedItem
0038 //! - create a RepresentationRelationship (WithTransformation)
0039 class STEPConstruct_Assembly 
0040 {
0041 public:
0042 
0043   DEFINE_STANDARD_ALLOC
0044 
0045   
0046   Standard_EXPORT STEPConstruct_Assembly();
0047   
0048   //! Initialises with starting values
0049   //! Ax0 : origin axis (typically, standard XYZ)
0050   //! Loc : location to which place the item
0051   //! Makes a MappedItem
0052   //! Resulting Value is returned by ItemValue
0053   Standard_EXPORT void Init (const Handle(StepShape_ShapeDefinitionRepresentation)& aSR, const Handle(StepShape_ShapeDefinitionRepresentation)& SDR0, const Handle(StepGeom_Axis2Placement3d)& Ax0, const Handle(StepGeom_Axis2Placement3d)& Loc);
0054   
0055   //! Make a (ShapeRepresentationRelationship,...WithTransformation)
0056   //! Resulting Value is returned by ItemValue
0057   Standard_EXPORT void MakeRelationship();
0058   
0059   //! Returns the Value
0060   //! If no Make... has been called, returns the starting SR
0061   Standard_EXPORT Handle(Standard_Transient) ItemValue() const;
0062   
0063   //! Returns the location of the item, computed from starting aLoc
0064   Standard_EXPORT Handle(StepGeom_Axis2Placement3d) ItemLocation() const;
0065   
0066   //! Returns NAUO object describing the assembly link
0067   Standard_EXPORT Handle(StepRepr_NextAssemblyUsageOccurrence) GetNAUO() const;
0068   
0069   //! Checks whether SRR's definition of assembly and component contradicts
0070   //! with NAUO definition or not, according to model schema (AP214 or AP203)
0071   Standard_EXPORT static Standard_Boolean CheckSRRReversesNAUO (const Interface_Graph& theGraph, const Handle(StepShape_ContextDependentShapeRepresentation)& CDSR);
0072 
0073 
0074 
0075 
0076 protected:
0077 
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085 
0086   Handle(StepShape_ShapeDefinitionRepresentation) thesdr;
0087   Handle(StepShape_ShapeDefinitionRepresentation) thesdr0;
0088   Handle(StepShape_ShapeRepresentation) thesr;
0089   Handle(StepShape_ShapeRepresentation) thesr0;
0090   Handle(Standard_Transient) theval;
0091   Handle(StepGeom_Axis2Placement3d) theloc;
0092   Handle(StepGeom_Axis2Placement3d) theax0;
0093 
0094 
0095 };
0096 
0097 
0098 
0099 
0100 
0101 
0102 
0103 #endif // _STEPConstruct_Assembly_HeaderFile