973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
7fd59977 |
16 | #include <StepShape_BrepWithVoids.hxx> |
42cf5bc1 |
17 | #include <StepShape_ClosedShell.hxx> |
18 | #include <StepShape_FacetedBrep.hxx> |
19 | #include <StepShape_FacetedBrepAndBrepWithVoids.hxx> |
20 | #include <StepShape_OrientedClosedShell.hxx> |
21 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
22 | |
92efcf78 |
23 | IMPLEMENT_STANDARD_RTTIEXT(StepShape_FacetedBrepAndBrepWithVoids,StepShape_ManifoldSolidBrep) |
24 | |
7fd59977 |
25 | StepShape_FacetedBrepAndBrepWithVoids::StepShape_FacetedBrepAndBrepWithVoids () {} |
26 | |
7fd59977 |
27 | void StepShape_FacetedBrepAndBrepWithVoids::Init |
28 | (const Handle(TCollection_HAsciiString)& aName, |
29 | const Handle(StepShape_ClosedShell)& aOuter, |
30 | const Handle(StepShape_FacetedBrep)& aFacetedBrep, |
31 | const Handle(StepShape_BrepWithVoids)& aBrepWithVoids) |
32 | { |
33 | // --- class own fields --- |
34 | facetedBrep = aFacetedBrep; |
35 | brepWithVoids = aBrepWithVoids; |
36 | // --- class inherited fields --- |
37 | StepShape_ManifoldSolidBrep::Init(aName, aOuter); |
38 | } |
39 | |
40 | |
41 | void StepShape_FacetedBrepAndBrepWithVoids::Init |
42 | (const Handle(TCollection_HAsciiString)& aName, |
43 | const Handle(StepShape_ClosedShell)& aOuter, |
44 | const Handle(StepShape_HArray1OfOrientedClosedShell)& aVoids) |
45 | { |
46 | // --- class inherited fields --- |
47 | |
48 | StepShape_ManifoldSolidBrep::Init(aName, aOuter); |
49 | |
50 | // --- ANDOR componant fields --- |
51 | |
52 | brepWithVoids = new StepShape_BrepWithVoids(); |
53 | brepWithVoids->Init(aName, aOuter, aVoids); |
54 | |
55 | // --- ANDOR componant fields --- |
56 | |
57 | facetedBrep = new StepShape_FacetedBrep(); |
58 | facetedBrep->Init(aName, aOuter); |
59 | } |
60 | |
61 | |
62 | void StepShape_FacetedBrepAndBrepWithVoids::SetFacetedBrep(const Handle(StepShape_FacetedBrep)& aFacetedBrep) |
63 | { |
64 | facetedBrep = aFacetedBrep; |
65 | } |
66 | |
67 | Handle(StepShape_FacetedBrep) StepShape_FacetedBrepAndBrepWithVoids::FacetedBrep() const |
68 | { |
69 | return facetedBrep; |
70 | } |
71 | |
72 | void StepShape_FacetedBrepAndBrepWithVoids::SetBrepWithVoids(const Handle(StepShape_BrepWithVoids)& aBrepWithVoids) |
73 | { |
74 | brepWithVoids = aBrepWithVoids; |
75 | } |
76 | |
77 | Handle(StepShape_BrepWithVoids) StepShape_FacetedBrepAndBrepWithVoids::BrepWithVoids() const |
78 | { |
79 | return brepWithVoids; |
80 | } |
81 | |
82 | //--- Specific Methods for AND class field access --- |
83 | |
84 | |
85 | void StepShape_FacetedBrepAndBrepWithVoids::SetVoids(const Handle(StepShape_HArray1OfOrientedClosedShell)& aVoids) |
86 | { |
87 | brepWithVoids->SetVoids(aVoids); |
88 | } |
89 | |
90 | Handle(StepShape_HArray1OfOrientedClosedShell) StepShape_FacetedBrepAndBrepWithVoids::Voids() const |
91 | { |
92 | return brepWithVoids->Voids(); |
93 | } |
94 | |
95 | Handle(StepShape_OrientedClosedShell) StepShape_FacetedBrepAndBrepWithVoids::VoidsValue(const Standard_Integer num) const |
96 | { |
97 | return brepWithVoids->VoidsValue(num); |
98 | } |
99 | |
100 | Standard_Integer StepShape_FacetedBrepAndBrepWithVoids::NbVoids () const |
101 | { |
102 | return brepWithVoids->NbVoids(); |
103 | } |
104 | |
105 | //--- Specific Methods for AND class field access --- |
106 | |