42cf5bc1 |
1 | // Created on: 1993-01-09 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Kiran ) |
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 _IGESGeom_RuledSurface_HeaderFile |
18 | #define _IGESGeom_RuledSurface_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
42cf5bc1 |
21 | |
22 | #include <Standard_Integer.hxx> |
23 | #include <IGESData_IGESEntity.hxx> |
42cf5bc1 |
24 | |
25 | |
26 | class IGESGeom_RuledSurface; |
27 | DEFINE_STANDARD_HANDLE(IGESGeom_RuledSurface, IGESData_IGESEntity) |
28 | |
29 | //! defines IGESRuledSurface, Type <118> Form <0-1> |
30 | //! in package IGESGeom |
31 | //! A ruled surface is formed by moving a line connecting points |
32 | //! of equal relative arc length or equal relative parametric |
33 | //! value on two parametric curves from a start point to a |
34 | //! terminate point on the curves. The parametric curves may be |
35 | //! points, lines, circles, conics, rational B-splines, |
36 | //! parametric splines or any parametric curve defined in |
37 | //! the IGES specification. |
38 | class IGESGeom_RuledSurface : public IGESData_IGESEntity |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | Standard_EXPORT IGESGeom_RuledSurface(); |
45 | |
46 | //! This method is used to set the fields of the class |
47 | //! RuledSurface |
48 | //! - aCurve : First parametric curve |
49 | //! - anotherCurve : Second parametric curve |
50 | //! - aDirFlag : Direction Flag |
51 | //! 0 = Join first to first, last to last |
52 | //! 1 = Join first to last, last to first |
53 | //! - aDevFlag : Developable Surface Flag |
54 | //! 1 = Developable |
55 | //! 0 = Possibly not |
56 | Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aCurve, const Handle(IGESData_IGESEntity)& anotherCurve, const Standard_Integer aDirFlag, const Standard_Integer aDevFlag); |
57 | |
58 | //! Sets <me> to be Ruled by Parameter (Form 1) if <mode> is |
59 | //! True, or Ruled by Length (Form 0) else |
60 | Standard_EXPORT void SetRuledByParameter (const Standard_Boolean mode); |
61 | |
62 | //! Returns True if Form is 1 |
63 | Standard_EXPORT Standard_Boolean IsRuledByParameter() const; |
64 | |
65 | //! returns the first curve |
66 | Standard_EXPORT Handle(IGESData_IGESEntity) FirstCurve() const; |
67 | |
68 | //! returns the second curve |
69 | Standard_EXPORT Handle(IGESData_IGESEntity) SecondCurve() const; |
70 | |
71 | //! return the sense of direction |
72 | //! 0 = Join first to first, last to last |
73 | //! 1 = Join first to last, last to first |
74 | Standard_EXPORT Standard_Integer DirectionFlag() const; |
75 | |
76 | //! returns True if developable else False |
77 | Standard_EXPORT Standard_Boolean IsDevelopable() const; |
78 | |
79 | |
80 | |
81 | |
92efcf78 |
82 | DEFINE_STANDARD_RTTIEXT(IGESGeom_RuledSurface,IGESData_IGESEntity) |
42cf5bc1 |
83 | |
84 | protected: |
85 | |
86 | |
87 | |
88 | |
89 | private: |
90 | |
91 | |
92 | Handle(IGESData_IGESEntity) theCurve1; |
93 | Handle(IGESData_IGESEntity) theCurve2; |
94 | Standard_Integer theDirFlag; |
95 | Standard_Integer theDevFlag; |
96 | |
97 | |
98 | }; |
99 | |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | |
106 | #endif // _IGESGeom_RuledSurface_HeaderFile |