summaryrefslogtreecommitdiff
path: root/src/IGESGeom/IGESGeom_SurfaceOfRevolution.cxx
blob: 16db4bf266c1913005312e4755f9e9551c068b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//--------------------------------------------------------------------
//
//  File Name : IGESGeom_SurfaceOfRevolution.cxx
//  Date      :
//  Author    : CKY / Contract Toubro-Larsen
//  Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------

#include <IGESGeom_SurfaceOfRevolution.ixx>


    IGESGeom_SurfaceOfRevolution::IGESGeom_SurfaceOfRevolution ()    {  }


    void IGESGeom_SurfaceOfRevolution::Init
  (const Handle(IGESGeom_Line)& anAxis,
   const Handle(IGESData_IGESEntity)& aGeneratrix,
   const Standard_Real aStartAngle, const Standard_Real anEndAngle)
{
  theLine       = anAxis;
  theGeneratrix = aGeneratrix;
  theStartAngle = aStartAngle;
  theEndAngle   = anEndAngle;
  InitTypeAndForm(120,0);
}

    Handle(IGESGeom_Line) IGESGeom_SurfaceOfRevolution::AxisOfRevolution () const
{
  return theLine;
}

    Handle(IGESData_IGESEntity) IGESGeom_SurfaceOfRevolution::Generatrix () const
{
  return theGeneratrix;
}

    Standard_Real IGESGeom_SurfaceOfRevolution::StartAngle () const
{
  return theStartAngle;
}

    Standard_Real IGESGeom_SurfaceOfRevolution::EndAngle () const
{
  return theEndAngle;
}