Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepShape / StepShape_OrientedFace.cxx
1 #include <StepShape_OrientedFace.ixx>
2
3
4 StepShape_OrientedFace::StepShape_OrientedFace ()  {}
5
6 void StepShape_OrientedFace::Init(
7         const Handle(TCollection_HAsciiString)& aName,
8         const Handle(StepShape_HArray1OfFaceBound)& aBounds)
9 {
10
11         StepShape_Face::Init(aName, aBounds);
12 }
13
14 void StepShape_OrientedFace::Init(
15         const Handle(TCollection_HAsciiString)& aName,
16         const Handle(StepShape_Face)& aFaceElement,
17         const Standard_Boolean aOrientation)
18 {
19         // --- classe own fields ---
20         faceElement = aFaceElement;
21         orientation = aOrientation;
22         // --- classe inherited fields ---
23         Handle(StepShape_HArray1OfFaceBound) aBounds;
24         aBounds.Nullify();
25         StepShape_Face::Init(aName, aBounds);
26 }
27
28
29 void StepShape_OrientedFace::SetFaceElement(const Handle(StepShape_Face)& aFaceElement)
30 {
31         faceElement = aFaceElement;
32 }
33
34 Handle(StepShape_Face) StepShape_OrientedFace::FaceElement() const
35 {
36         return faceElement;
37 }
38
39 void StepShape_OrientedFace::SetOrientation(const Standard_Boolean aOrientation)
40 {
41         orientation = aOrientation;
42 }
43
44 Standard_Boolean StepShape_OrientedFace::Orientation() const
45 {
46         return orientation;
47 }
48
49 void StepShape_OrientedFace::SetBounds(const Handle(StepShape_HArray1OfFaceBound)& aBounds)
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_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() 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 faceElement->Bounds();
62
63 }
64
65 Handle(StepShape_FaceBound) StepShape_OrientedFace::BoundsValue(const Standard_Integer num) const
66 {
67   // WARNING : the field is redefined.
68   // method body is not yet automaticly wrote
69   // Attention, cette modif. est juste pour la compilation  
70   return faceElement->BoundsValue(num);
71 }
72
73 Standard_Integer StepShape_OrientedFace::NbBounds () const
74 {
75   // WARNING : the field is redefined.
76   // method body is not yet automaticly wrote
77   // Attention, cette modif. est juste pour la compilation  
78   return faceElement->NbBounds();
79 }