0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / IGESSolid / IGESSolid_SolidAssembly.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-01-09
2// Created by: CKY / Contract Toubro-Larsen ( SIVA )
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESSolid_SolidAssembly_HeaderFile
18#define _IGESSolid_SolidAssembly_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IGESData_HArray1OfIGESEntity.hxx>
24#include <IGESGeom_HArray1OfTransformationMatrix.hxx>
25#include <IGESData_IGESEntity.hxx>
26#include <Standard_Boolean.hxx>
27#include <Standard_Integer.hxx>
28class Standard_DimensionMismatch;
29class Standard_OutOfRange;
30class IGESData_IGESEntity;
31class IGESGeom_TransformationMatrix;
32
33
34class IGESSolid_SolidAssembly;
35DEFINE_STANDARD_HANDLE(IGESSolid_SolidAssembly, IGESData_IGESEntity)
36
37//! defines SolidAssembly, Type <184> Form <0>
38//! in package IGESSolid
39//! Solid assembly is a collection of items which possess a
40//! shared fixed geometric relationship.
41//!
42//! From IGES-5.3, From 1 says that at least one item is a Brep
43//! else all are Primitives, Boolean Trees, Solid Instances or
44//! other Assemblies
45class IGESSolid_SolidAssembly : public IGESData_IGESEntity
46{
47
48public:
49
50
51 Standard_EXPORT IGESSolid_SolidAssembly();
52
53 //! This method is used to set the fields of the class
54 //! SolidAssembly
55 //! - allItems : the collection of items
56 //! - allMatrices : transformation matrices corresponding to each
57 //! item
58 //! raises exception if the length of allItems & allMatrices
59 //! do not match
60 Standard_EXPORT void Init (const Handle(IGESData_HArray1OfIGESEntity)& allItems, const Handle(IGESGeom_HArray1OfTransformationMatrix)& allMatrices);
61
62 //! Tells if at least one item is a Brep, from FormNumber
63 Standard_EXPORT Standard_Boolean HasBrep() const;
64
65 //! Sets or Unsets the status "HasBrep" from FormNumber
66 //! Default is False
67 Standard_EXPORT void SetBrep (const Standard_Boolean hasbrep);
68
69 //! returns the number of items in the collection
70 Standard_EXPORT Standard_Integer NbItems() const;
71
72 //! returns the Index'th item
73 //! raises exception if Index <= 0 or Index > NbItems()
74 Standard_EXPORT Handle(IGESData_IGESEntity) Item (const Standard_Integer Index) const;
75
76 //! returns the transformation matrix of the Index'th item
77 //! raises exception if Index <= 0 or Index > NbItems()
78 Standard_EXPORT Handle(IGESGeom_TransformationMatrix) TransfMatrix (const Standard_Integer Index) const;
79
80
81
82
92efcf78 83 DEFINE_STANDARD_RTTIEXT(IGESSolid_SolidAssembly,IGESData_IGESEntity)
42cf5bc1 84
85protected:
86
87
88
89
90private:
91
92
93 Handle(IGESData_HArray1OfIGESEntity) theItems;
94 Handle(IGESGeom_HArray1OfTransformationMatrix) theMatrices;
95
96
97};
98
99
100
101
102
103
104
105#endif // _IGESSolid_SolidAssembly_HeaderFile