7fd59977 |
1 | #include <StepShape_OrientedOpenShell.ixx> |
2 | |
3 | |
4 | StepShape_OrientedOpenShell::StepShape_OrientedOpenShell () {} |
5 | |
6 | void StepShape_OrientedOpenShell::Init( |
7 | const Handle(TCollection_HAsciiString)& aName, |
8 | const Handle(StepShape_HArray1OfFace)& aCfsFaces) |
9 | { |
10 | |
11 | StepShape_ConnectedFaceSet::Init(aName, aCfsFaces); |
12 | } |
13 | |
14 | void StepShape_OrientedOpenShell::Init( |
15 | const Handle(TCollection_HAsciiString)& aName, |
16 | const Handle(StepShape_OpenShell)& aOpenShellElement, |
17 | const Standard_Boolean aOrientation) |
18 | { |
19 | // --- classe own fields --- |
20 | openShellElement = aOpenShellElement; |
21 | orientation = aOrientation; |
22 | // --- classe inherited fields --- |
23 | Handle(StepShape_HArray1OfFace) aCfsFaces; |
24 | aCfsFaces.Nullify(); |
25 | StepShape_ConnectedFaceSet::Init(aName, aCfsFaces); |
26 | } |
27 | |
28 | |
29 | void StepShape_OrientedOpenShell::SetOpenShellElement(const Handle(StepShape_OpenShell)& aOpenShellElement) |
30 | { |
31 | openShellElement = aOpenShellElement; |
32 | } |
33 | |
34 | Handle(StepShape_OpenShell) StepShape_OrientedOpenShell::OpenShellElement() const |
35 | { |
36 | return openShellElement; |
37 | } |
38 | |
39 | void StepShape_OrientedOpenShell::SetOrientation(const Standard_Boolean aOrientation) |
40 | { |
41 | orientation = aOrientation; |
42 | } |
43 | |
44 | Standard_Boolean StepShape_OrientedOpenShell::Orientation() const |
45 | { |
46 | return orientation; |
47 | } |
48 | |
49 | void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFace)& aCfsFaces) |
50 | { |
51 | // WARNING : the field is redefined. |
52 | // field set up forbidden. |
53 | cout << "Field is redefined, SetUp Forbidden" << endl; |
54 | } |
55 | |
56 | Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const |
57 | { |
58 | // WARNING : the field is redefined. |
59 | // method body is not yet automaticly wrote |
60 | // Attention, cette modif. est juste pour la compilation |
61 | return openShellElement->CfsFaces(); |
62 | } |
63 | |
64 | Handle(StepShape_Face) StepShape_OrientedOpenShell::CfsFacesValue(const Standard_Integer num) const |
65 | { |
66 | // WARNING : the field is redefined. |
67 | // method body is not yet automaticly wrote |
68 | // Attention, cette modif. est juste pour la compilation |
69 | return openShellElement->CfsFacesValue(num); |
70 | } |
71 | |
72 | Standard_Integer StepShape_OrientedOpenShell::NbCfsFaces () const |
73 | { |
74 | // WARNING : the field is redefined. |
75 | // method body is not yet automaticly wrote |
76 | // Attention, cette modif. est juste pour la compilation |
77 | return openShellElement->NbCfsFaces(); |
78 | } |