0028832: MMgt_TShared can be replaced by Standard_Transient
[occt.git] / src / ChFiDS / ChFiDS_CircSection.cxx
CommitLineData
b311480e 1// Created on: 1996-03-06
2// Created by: Laurent BOURESCHE
3// Copyright (c) 1996-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17
18#include <ChFiDS_CircSection.hxx>
19#include <gp_Circ.hxx>
20#include <gp_Lin.hxx>
7fd59977 21
22//=======================================================================
23//function : ChFiDS_CircSection
24//purpose :
25//=======================================================================
7fd59977 26ChFiDS_CircSection::ChFiDS_CircSection(){}
27
28
29//=======================================================================
30//function : Set
31//purpose :
32//=======================================================================
33
34void 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
49void 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
63void 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
77void 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}