7fd59977 |
1 | // File: StepRepr_MakeFromUsageOption.cxx |
2 | // Created: Mon Jul 3 20:13:36 2000 |
3 | // Author: Andrey BETENEV |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1 |
5 | // Copyright: Matra Datavision 2000 |
6 | |
7 | #include <StepRepr_MakeFromUsageOption.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : StepRepr_MakeFromUsageOption |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | StepRepr_MakeFromUsageOption::StepRepr_MakeFromUsageOption () |
15 | { |
16 | } |
17 | |
18 | //======================================================================= |
19 | //function : Init |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | void StepRepr_MakeFromUsageOption::Init (const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Id, |
24 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Name, |
25 | const Standard_Boolean hasProductDefinitionRelationship_Description, |
26 | const Handle(TCollection_HAsciiString) &aProductDefinitionRelationship_Description, |
27 | const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatingProductDefinition, |
28 | const Handle(StepBasic_ProductDefinition) &aProductDefinitionRelationship_RelatedProductDefinition, |
29 | const Standard_Integer aRanking, |
30 | const Handle(TCollection_HAsciiString) &aRankingRationale, |
31 | const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
32 | { |
33 | StepRepr_ProductDefinitionUsage::Init(aProductDefinitionRelationship_Id, |
34 | aProductDefinitionRelationship_Name, |
35 | hasProductDefinitionRelationship_Description, |
36 | aProductDefinitionRelationship_Description, |
37 | aProductDefinitionRelationship_RelatingProductDefinition, |
38 | aProductDefinitionRelationship_RelatedProductDefinition); |
39 | |
40 | theRanking = aRanking; |
41 | |
42 | theRankingRationale = aRankingRationale; |
43 | |
44 | theQuantity = aQuantity; |
45 | } |
46 | |
47 | //======================================================================= |
48 | //function : Ranking |
49 | //purpose : |
50 | //======================================================================= |
51 | |
52 | Standard_Integer StepRepr_MakeFromUsageOption::Ranking () const |
53 | { |
54 | return theRanking; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : SetRanking |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | void StepRepr_MakeFromUsageOption::SetRanking (const Standard_Integer aRanking) |
63 | { |
64 | theRanking = aRanking; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : RankingRationale |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | Handle(TCollection_HAsciiString) StepRepr_MakeFromUsageOption::RankingRationale () const |
73 | { |
74 | return theRankingRationale; |
75 | } |
76 | |
77 | //======================================================================= |
78 | //function : SetRankingRationale |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | void StepRepr_MakeFromUsageOption::SetRankingRationale (const Handle(TCollection_HAsciiString) &aRankingRationale) |
83 | { |
84 | theRankingRationale = aRankingRationale; |
85 | } |
86 | |
87 | //======================================================================= |
88 | //function : Quantity |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | Handle(StepBasic_MeasureWithUnit) StepRepr_MakeFromUsageOption::Quantity () const |
93 | { |
94 | return theQuantity; |
95 | } |
96 | |
97 | //======================================================================= |
98 | //function : SetQuantity |
99 | //purpose : |
100 | //======================================================================= |
101 | |
102 | void StepRepr_MakeFromUsageOption::SetQuantity (const Handle(StepBasic_MeasureWithUnit) &aQuantity) |
103 | { |
104 | theQuantity = aQuantity; |
105 | } |