0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
[occt.git] / src / StepShape / StepShape_OrientedOpenShell.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
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.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
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>
20
21 IMPLEMENT_STANDARD_RTTIEXT(StepShape_OrientedOpenShell,StepShape_OpenShell)
22
23 StepShape_OrientedOpenShell::StepShape_OrientedOpenShell ()  {}
24
25 void StepShape_OrientedOpenShell::Init(
26         const Handle(TCollection_HAsciiString)& aName,
27         const Handle(StepShape_OpenShell)& aOpenShellElement,
28         const Standard_Boolean aOrientation)
29 {
30         // --- classe own fields ---
31         openShellElement = aOpenShellElement;
32         orientation = aOrientation;
33         // --- classe inherited fields ---
34         Handle(StepShape_HArray1OfFace) aCfsFaces;
35         aCfsFaces.Nullify();
36         StepShape_ConnectedFaceSet::Init(aName, aCfsFaces);
37 }
38
39
40 void StepShape_OrientedOpenShell::SetOpenShellElement(const Handle(StepShape_OpenShell)& aOpenShellElement)
41 {
42         openShellElement = aOpenShellElement;
43 }
44
45 Handle(StepShape_OpenShell) StepShape_OrientedOpenShell::OpenShellElement() const
46 {
47         return openShellElement;
48 }
49
50 void StepShape_OrientedOpenShell::SetOrientation(const Standard_Boolean aOrientation)
51 {
52         orientation = aOrientation;
53 }
54
55 Standard_Boolean StepShape_OrientedOpenShell::Orientation() const
56 {
57         return orientation;
58 }
59
60 void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFace)& /*aCfsFaces*/)
61 {
62         // WARNING : the field is redefined.
63         // field set up forbidden.
64         std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
65 }
66
67 Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const
68 {
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();
73 }
74
75 Handle(StepShape_Face) StepShape_OrientedOpenShell::CfsFacesValue(const Standard_Integer num) const
76 {
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);
81 }
82
83 Standard_Integer StepShape_OrientedOpenShell::NbCfsFaces () const
84 {
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();
89 }