7fd59977 |
1 | //-------------------------------------------------------------------- |
2 | // |
3 | // File Name : IGESSolid_CylindricalSurface.cxx |
4 | // Date : |
5 | // Author : CKY / Contract Toubro-Larsen |
6 | // Copyright : MATRA-DATAVISION 1993 |
7 | // |
8 | //-------------------------------------------------------------------- |
9 | |
10 | #include <IGESSolid_CylindricalSurface.ixx> |
11 | |
12 | |
13 | IGESSolid_CylindricalSurface::IGESSolid_CylindricalSurface () { } |
14 | |
15 | |
16 | void IGESSolid_CylindricalSurface::Init |
17 | (const Handle(IGESGeom_Point)& aLocation, |
18 | const Handle(IGESGeom_Direction)& anAxis, |
19 | const Standard_Real aRadius, |
20 | const Handle(IGESGeom_Direction)& aRefdir) |
21 | { |
22 | theLocationPoint = aLocation; |
23 | theAxis = anAxis; |
24 | theRadius = aRadius; |
25 | theRefDir = aRefdir; |
26 | InitTypeAndForm(192, (theRefDir.IsNull() ? 0 : 1)); |
27 | } |
28 | |
29 | Handle(IGESGeom_Point) IGESSolid_CylindricalSurface::LocationPoint () const |
30 | { |
31 | return theLocationPoint; |
32 | } |
33 | |
34 | Handle(IGESGeom_Direction) IGESSolid_CylindricalSurface::Axis () const |
35 | { |
36 | return theAxis; |
37 | } |
38 | |
39 | Standard_Real IGESSolid_CylindricalSurface::Radius () const |
40 | { |
41 | return theRadius; |
42 | } |
43 | |
44 | Handle(IGESGeom_Direction) IGESSolid_CylindricalSurface::ReferenceDir () const |
45 | { |
46 | return theRefDir; |
47 | } |
48 | |
49 | Standard_Boolean IGESSolid_CylindricalSurface::IsParametrised () const |
50 | { |
51 | return (!theRefDir.IsNull()); |
52 | } |
53 | |