1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <Standard_Type.hxx>
16 #include <StepShape_Face.hxx>
17 #include <StepShape_OpenShell.hxx>
18 #include <StepShape_OrientedOpenShell.hxx>
19 #include <TCollection_HAsciiString.hxx>
21 IMPLEMENT_STANDARD_RTTIEXT(StepShape_OrientedOpenShell,StepShape_OpenShell)
23 StepShape_OrientedOpenShell::StepShape_OrientedOpenShell () {}
25 void StepShape_OrientedOpenShell::Init(
26 const Handle(TCollection_HAsciiString)& aName,
27 const Handle(StepShape_OpenShell)& aOpenShellElement,
28 const Standard_Boolean aOrientation)
30 // --- classe own fields ---
31 openShellElement = aOpenShellElement;
32 orientation = aOrientation;
33 // --- classe inherited fields ---
34 Handle(StepShape_HArray1OfFace) aCfsFaces;
36 StepShape_ConnectedFaceSet::Init(aName, aCfsFaces);
40 void StepShape_OrientedOpenShell::SetOpenShellElement(const Handle(StepShape_OpenShell)& aOpenShellElement)
42 openShellElement = aOpenShellElement;
45 Handle(StepShape_OpenShell) StepShape_OrientedOpenShell::OpenShellElement() const
47 return openShellElement;
50 void StepShape_OrientedOpenShell::SetOrientation(const Standard_Boolean aOrientation)
52 orientation = aOrientation;
55 Standard_Boolean StepShape_OrientedOpenShell::Orientation() const
60 void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFace)& /*aCfsFaces*/)
62 // WARNING : the field is redefined.
63 // field set up forbidden.
64 std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
67 Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const
69 // WARNING : the field is redefined.
70 // method body is not yet automaticly wrote
71 // Attention, cette modif. est juste pour la compilation
72 return openShellElement->CfsFaces();
75 Handle(StepShape_Face) StepShape_OrientedOpenShell::CfsFacesValue(const Standard_Integer num) const
77 // WARNING : the field is redefined.
78 // method body is not yet automaticly wrote
79 // Attention, cette modif. est juste pour la compilation
80 return openShellElement->CfsFacesValue(num);
83 Standard_Integer StepShape_OrientedOpenShell::NbCfsFaces () const
85 // WARNING : the field is redefined.
86 // method body is not yet automaticly wrote
87 // Attention, cette modif. est juste pour la compilation
88 return openShellElement->NbCfsFaces();