|
||||
File indexing completed on 2025-01-18 10:04:03
0001 // Created on: 1993-01-09 0002 // Created by: CKY / Contract Toubro-Larsen ( SIVA ) 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 _IGESSolid_SolidAssembly_HeaderFile 0018 #define _IGESSolid_SolidAssembly_HeaderFile 0019 0020 #include <Standard.hxx> 0021 0022 #include <IGESData_HArray1OfIGESEntity.hxx> 0023 #include <IGESGeom_HArray1OfTransformationMatrix.hxx> 0024 #include <IGESData_IGESEntity.hxx> 0025 #include <Standard_Integer.hxx> 0026 class IGESGeom_TransformationMatrix; 0027 0028 0029 class IGESSolid_SolidAssembly; 0030 DEFINE_STANDARD_HANDLE(IGESSolid_SolidAssembly, IGESData_IGESEntity) 0031 0032 //! defines SolidAssembly, Type <184> Form <0> 0033 //! in package IGESSolid 0034 //! Solid assembly is a collection of items which possess a 0035 //! shared fixed geometric relationship. 0036 //! 0037 //! From IGES-5.3, From 1 says that at least one item is a Brep 0038 //! else all are Primitives, Boolean Trees, Solid Instances or 0039 //! other Assemblies 0040 class IGESSolid_SolidAssembly : public IGESData_IGESEntity 0041 { 0042 0043 public: 0044 0045 0046 Standard_EXPORT IGESSolid_SolidAssembly(); 0047 0048 //! This method is used to set the fields of the class 0049 //! SolidAssembly 0050 //! - allItems : the collection of items 0051 //! - allMatrices : transformation matrices corresponding to each 0052 //! item 0053 //! raises exception if the length of allItems & allMatrices 0054 //! do not match 0055 Standard_EXPORT void Init (const Handle(IGESData_HArray1OfIGESEntity)& allItems, const Handle(IGESGeom_HArray1OfTransformationMatrix)& allMatrices); 0056 0057 //! Tells if at least one item is a Brep, from FormNumber 0058 Standard_EXPORT Standard_Boolean HasBrep() const; 0059 0060 //! Sets or Unsets the status "HasBrep" from FormNumber 0061 //! Default is False 0062 Standard_EXPORT void SetBrep (const Standard_Boolean hasbrep); 0063 0064 //! returns the number of items in the collection 0065 Standard_EXPORT Standard_Integer NbItems() const; 0066 0067 //! returns the Index'th item 0068 //! raises exception if Index <= 0 or Index > NbItems() 0069 Standard_EXPORT Handle(IGESData_IGESEntity) Item (const Standard_Integer Index) const; 0070 0071 //! returns the transformation matrix of the Index'th item 0072 //! raises exception if Index <= 0 or Index > NbItems() 0073 Standard_EXPORT Handle(IGESGeom_TransformationMatrix) TransfMatrix (const Standard_Integer Index) const; 0074 0075 0076 0077 0078 DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidAssembly,IGESData_IGESEntity) 0079 0080 protected: 0081 0082 0083 0084 0085 private: 0086 0087 0088 Handle(IGESData_HArray1OfIGESEntity) theItems; 0089 Handle(IGESGeom_HArray1OfTransformationMatrix) theMatrices; 0090 0091 0092 }; 0093 0094 0095 0096 0097 0098 0099 0100 #endif // _IGESSolid_SolidAssembly_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |