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_FaceBound.hxx>
18 #include <StepShape_OrientedFace.hxx>
19 #include <TCollection_HAsciiString.hxx>
21 IMPLEMENT_STANDARD_RTTIEXT(StepShape_OrientedFace,StepShape_Face)
23 StepShape_OrientedFace::StepShape_OrientedFace () {}
25 void StepShape_OrientedFace::Init(
26 const Handle(TCollection_HAsciiString)& aName,
27 const Handle(StepShape_Face)& aFaceElement,
28 const Standard_Boolean aOrientation)
30 // --- classe own fields ---
31 faceElement = aFaceElement;
32 orientation = aOrientation;
33 // --- classe inherited fields ---
34 Handle(StepShape_HArray1OfFaceBound) aBounds;
36 StepShape_Face::Init(aName, aBounds);
40 void StepShape_OrientedFace::SetFaceElement(const Handle(StepShape_Face)& aFaceElement)
42 faceElement = aFaceElement;
45 Handle(StepShape_Face) StepShape_OrientedFace::FaceElement() const
50 void StepShape_OrientedFace::SetOrientation(const Standard_Boolean aOrientation)
52 orientation = aOrientation;
55 Standard_Boolean StepShape_OrientedFace::Orientation() const
60 void StepShape_OrientedFace::SetBounds(const Handle(StepShape_HArray1OfFaceBound)& /*aBounds*/)
62 // WARNING : the field is redefined.
63 // field set up forbidden.
64 std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
67 Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const
69 // WARNING : the field is redefined.
70 // method body is not yet automatically wrote
71 // Attention, cette modif. est juste pour la compilation
72 return faceElement->Bounds();
76 Handle(StepShape_FaceBound) StepShape_OrientedFace::BoundsValue(const Standard_Integer num) const
78 // WARNING : the field is redefined.
79 // method body is not yet automatically wrote
80 // Attention, cette modif. est juste pour la compilation
81 return faceElement->BoundsValue(num);
84 Standard_Integer StepShape_OrientedFace::NbBounds () const
86 // WARNING : the field is redefined.
87 // method body is not yet automatically wrote
88 // Attention, cette modif. est juste pour la compilation
89 return faceElement->NbBounds();