0030554: Coding - ChFiDS_CommonPoint uninitialized member traarc
[occt.git] / src / ChFiDS / ChFiDS_CircSection.cxx
1 // Created on: 1996-03-06
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1996-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
18 #include <ChFiDS_CircSection.hxx>
19 #include <gp_Circ.hxx>
20 #include <gp_Lin.hxx>
21
22 //=======================================================================
23 //function : ChFiDS_CircSection
24 //purpose  : 
25 //=======================================================================
26 ChFiDS_CircSection::ChFiDS_CircSection(){}
27
28
29 //=======================================================================
30 //function : Set
31 //purpose  : 
32 //=======================================================================
33
34 void ChFiDS_CircSection::Set(const gp_Circ&      C,
35                              const Standard_Real F,
36                              const Standard_Real L)
37 {
38   myCirc = C;
39   myF    = F;
40   myL    = L;
41 }
42
43
44 //=======================================================================
45 //function : Set
46 //purpose  : 
47 //=======================================================================
48
49 void ChFiDS_CircSection::Set(const gp_Lin&      C,
50                              const Standard_Real F,
51                              const Standard_Real L)
52 {
53   myLin  = C;
54   myF    = F;
55   myL    = L;
56 }
57
58 //=======================================================================
59 //function : Get
60 //purpose  : 
61 //=======================================================================
62
63 void ChFiDS_CircSection::Get(gp_Circ&       C,
64                              Standard_Real& F,
65                              Standard_Real& L) const 
66 {
67   C = myCirc;
68   F = myF;
69   L = myL;
70 }
71
72 //=======================================================================
73 //function : Get
74 //purpose  : 
75 //=======================================================================
76
77 void ChFiDS_CircSection::Get(gp_Lin&        C,
78                              Standard_Real& F,
79                              Standard_Real& L) const 
80 {
81   C = myLin;
82   F = myF;
83   L = myL;
84 }