42cf5bc1 |
1 | // Created on: 1993-01-09 |
2 | // Created by: CKY / Contract Toubro-Larsen ( TCD ) |
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 _IGESDraw_Planar_HeaderFile |
18 | #define _IGESDraw_Planar_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <IGESData_HArray1OfIGESEntity.hxx> |
25 | #include <IGESData_IGESEntity.hxx> |
26 | #include <Standard_Boolean.hxx> |
27 | class IGESGeom_TransformationMatrix; |
28 | class Standard_OutOfRange; |
29 | class IGESData_IGESEntity; |
30 | |
31 | |
32 | class IGESDraw_Planar; |
33 | DEFINE_STANDARD_HANDLE(IGESDraw_Planar, IGESData_IGESEntity) |
34 | |
35 | //! defines IGESPlanar, Type <402> Form <16> |
36 | //! in package IGESDraw |
37 | //! |
38 | //! Indicates that a collection of entities is coplanar.The |
39 | //! entities may be geometric, annotative, and/or structural. |
40 | class IGESDraw_Planar : public IGESData_IGESEntity |
41 | { |
42 | |
43 | public: |
44 | |
45 | |
46 | Standard_EXPORT IGESDraw_Planar(); |
47 | |
48 | //! This method is used to set the fields of the class Planar |
49 | //! - nbMats : Number of Transformation matrices |
50 | //! - aTransformationMatrix : Pointer to the Transformation matrix |
51 | //! - allEntities : Pointers to the entities specified |
52 | Standard_EXPORT void Init (const Standard_Integer nbMats, const Handle(IGESGeom_TransformationMatrix)& aTransformationMatrix, const Handle(IGESData_HArray1OfIGESEntity)& allEntities); |
53 | |
54 | //! returns the number of Transformation matrices in <me> |
55 | Standard_EXPORT Standard_Integer NbMatrices() const; |
56 | |
57 | //! returns the number of Entities in the plane pointed to by this |
58 | //! associativity |
59 | Standard_EXPORT Standard_Integer NbEntities() const; |
60 | |
61 | //! returns True if TransformationMatrix is Identity Matrix, |
62 | //! i.e:- No Matrix defined. |
63 | Standard_EXPORT Standard_Boolean IsIdentityMatrix() const; |
64 | |
65 | //! returns the Transformation matrix moving data from the XY plane |
66 | //! into space or zero |
67 | Standard_EXPORT Handle(IGESGeom_TransformationMatrix) TransformMatrix() const; |
68 | |
69 | //! returns the Entity on the specified plane, indicated by EntityIndex |
70 | //! raises an exception if EntityIndex <= 0 or |
71 | //! EntityIndex > NbEntities() |
72 | Standard_EXPORT Handle(IGESData_IGESEntity) Entity (const Standard_Integer EntityIndex) const; |
73 | |
74 | |
75 | |
76 | |
92efcf78 |
77 | DEFINE_STANDARD_RTTIEXT(IGESDraw_Planar,IGESData_IGESEntity) |
42cf5bc1 |
78 | |
79 | protected: |
80 | |
81 | |
82 | |
83 | |
84 | private: |
85 | |
86 | |
87 | Standard_Integer theNbMatrices; |
88 | Handle(IGESGeom_TransformationMatrix) theTransformationMatrix; |
89 | Handle(IGESData_HArray1OfIGESEntity) theEntities; |
90 | |
91 | |
92 | }; |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | |
99 | |
100 | #endif // _IGESDraw_Planar_HeaderFile |