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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESSolid_EdgeList_HeaderFile
18 #define _IGESSolid_EdgeList_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IGESData_HArray1OfIGESEntity.hxx>
24 #include <IGESSolid_HArray1OfVertexList.hxx>
25 #include <TColStd_HArray1OfInteger.hxx>
26 #include <IGESData_IGESEntity.hxx>
27 #include <Standard_Integer.hxx>
28 class Standard_DimensionMismatch;
29 class Standard_OutOfRange;
30 class IGESData_IGESEntity;
31 class IGESSolid_VertexList;
34 class IGESSolid_EdgeList;
35 DEFINE_STANDARD_HANDLE(IGESSolid_EdgeList, IGESData_IGESEntity)
37 //! defines EdgeList, Type <504> Form <1>
38 //! in package IGESSolid
39 //! EdgeList is defined as a segment joining two vertices
40 //! It contains one or more edge tuples.
41 class IGESSolid_EdgeList : public IGESData_IGESEntity
47 Standard_EXPORT IGESSolid_EdgeList();
49 //! This method is used to set the fields of the class
51 //! - curves : the model space curves
52 //! - startVertexList : the vertex list that contains the
54 //! - startVertexIndex : the index of the vertex in the
55 //! corresponding vertex list
56 //! - endVertexList : the vertex list that contains the
58 //! - endVertexIndex : the index of the vertex in the
59 //! corresponding vertex list
60 //! raises exception if size of curves,startVertexList,startVertexIndex,
61 //! endVertexList and endVertexIndex do no match
62 Standard_EXPORT void Init (const Handle(IGESData_HArray1OfIGESEntity)& curves, const Handle(IGESSolid_HArray1OfVertexList)& startVertexList, const Handle(TColStd_HArray1OfInteger)& startVertexIndex, const Handle(IGESSolid_HArray1OfVertexList)& endVertexList, const Handle(TColStd_HArray1OfInteger)& endVertexIndex);
64 //! returns the number of edges in the edge list
65 Standard_EXPORT Standard_Integer NbEdges() const;
67 //! returns the num'th model space curve
68 //! raises Exception if num <= 0 or num > NbEdges()
69 Standard_EXPORT Handle(IGESData_IGESEntity) Curve (const Standard_Integer num) const;
71 //! returns the num'th start vertex list
72 //! raises Exception if num <= 0 or num > NbEdges()
73 Standard_EXPORT Handle(IGESSolid_VertexList) StartVertexList (const Standard_Integer num) const;
75 //! returns the index of num'th start vertex in
76 //! the corresponding start vertex list
77 //! raises Exception if num <= 0 or num > NbEdges()
78 Standard_EXPORT Standard_Integer StartVertexIndex (const Standard_Integer num) const;
80 //! returns the num'th end vertex list
81 //! raises Exception if num <= 0 or num > NbEdges()
82 Standard_EXPORT Handle(IGESSolid_VertexList) EndVertexList (const Standard_Integer num) const;
84 //! returns the index of num'th end vertex in
85 //! the corresponding end vertex list
86 //! raises Exception if num <= 0 or num > NbEdges()
87 Standard_EXPORT Standard_Integer EndVertexIndex (const Standard_Integer num) const;
92 DEFINE_STANDARD_RTTIEXT(IGESSolid_EdgeList,IGESData_IGESEntity)
102 Handle(IGESData_HArray1OfIGESEntity) theCurves;
103 Handle(IGESSolid_HArray1OfVertexList) theStartVertexList;
104 Handle(TColStd_HArray1OfInteger) theStartVertexIndex;
105 Handle(IGESSolid_HArray1OfVertexList) theEndVertexList;
106 Handle(TColStd_HArray1OfInteger) theEndVertexIndex;
117 #endif // _IGESSolid_EdgeList_HeaderFile