0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / StepBasic / StepBasic_Action.cxx
1 // Created on: 1999-11-26
2 // Created by: Andrey BETENEV
3 // Copyright (c) 1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18
19 #include <StepBasic_Action.ixx>
20
21 //=======================================================================
22 //function : StepBasic_Action
23 //purpose  : 
24 //=======================================================================
25
26 StepBasic_Action::StepBasic_Action ()
27 {
28   defDescription = Standard_False;
29 }
30
31 //=======================================================================
32 //function : Init
33 //purpose  : 
34 //=======================================================================
35
36 void StepBasic_Action::Init (const Handle(TCollection_HAsciiString) &aName,
37                              const Standard_Boolean hasDescription,
38                              const Handle(TCollection_HAsciiString) &aDescription,
39                              const Handle(StepBasic_ActionMethod) &aChosenMethod)
40 {
41
42   theName = aName;
43
44   defDescription = hasDescription;
45   if (defDescription) {
46     theDescription = aDescription;
47   }
48   else theDescription.Nullify();
49
50   theChosenMethod = aChosenMethod;
51 }
52
53 //=======================================================================
54 //function : Name
55 //purpose  : 
56 //=======================================================================
57
58 Handle(TCollection_HAsciiString) StepBasic_Action::Name () const
59 {
60   return theName;
61 }
62
63 //=======================================================================
64 //function : SetName
65 //purpose  : 
66 //=======================================================================
67
68 void StepBasic_Action::SetName (const Handle(TCollection_HAsciiString) &aName)
69 {
70   theName = aName;
71 }
72
73 //=======================================================================
74 //function : Description
75 //purpose  : 
76 //=======================================================================
77
78 Handle(TCollection_HAsciiString) StepBasic_Action::Description () const
79 {
80   return theDescription;
81 }
82
83 //=======================================================================
84 //function : SetDescription
85 //purpose  : 
86 //=======================================================================
87
88 void StepBasic_Action::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
89 {
90   theDescription = aDescription;
91 }
92
93 //=======================================================================
94 //function : HasDescription
95 //purpose  : 
96 //=======================================================================
97
98 Standard_Boolean StepBasic_Action::HasDescription () const
99 {
100   return defDescription;
101 }
102
103 //=======================================================================
104 //function : ChosenMethod
105 //purpose  : 
106 //=======================================================================
107
108 Handle(StepBasic_ActionMethod) StepBasic_Action::ChosenMethod () const
109 {
110   return theChosenMethod;
111 }
112
113 //=======================================================================
114 //function : SetChosenMethod
115 //purpose  : 
116 //=======================================================================
117
118 void StepBasic_Action::SetChosenMethod (const Handle(StepBasic_ActionMethod) &aChosenMethod)
119 {
120   theChosenMethod = aChosenMethod;
121 }