7fd59977 |
1 | //-------------------------------------------------------------------- |
2 | // |
3 | // File Name : IGESDimen_PointDimension.cxx |
4 | // Date : |
5 | // Author : CKY / Contract Toubro-Larsen |
6 | // Copyright : MATRA-DATAVISION 1993 |
7 | // |
8 | //-------------------------------------------------------------------- |
9 | |
10 | #include <IGESDimen_PointDimension.ixx> |
11 | #include <Interface_Macros.hxx> |
12 | |
13 | IGESDimen_PointDimension::IGESDimen_PointDimension () { } |
14 | |
15 | |
16 | void IGESDimen_PointDimension::Init |
17 | (const Handle(IGESDimen_GeneralNote)& aNote, |
18 | const Handle(IGESDimen_LeaderArrow)& anArrow, |
19 | const Handle(IGESData_IGESEntity)& aGeom) |
20 | { |
21 | theNote = aNote; |
22 | theLeader = anArrow; |
23 | theGeom = aGeom; |
24 | InitTypeAndForm(220,0); |
25 | } |
26 | |
27 | |
28 | Handle(IGESDimen_GeneralNote) IGESDimen_PointDimension::Note () const |
29 | { |
30 | return theNote; |
31 | } |
32 | |
33 | Handle(IGESDimen_LeaderArrow) IGESDimen_PointDimension::LeaderArrow () const |
34 | { |
35 | return theLeader; |
36 | } |
37 | |
38 | Handle(IGESGeom_CircularArc) IGESDimen_PointDimension::CircularArc () const |
39 | { |
40 | return GetCasted(IGESGeom_CircularArc, theGeom); |
41 | } |
42 | |
43 | Handle(IGESGeom_CompositeCurve) IGESDimen_PointDimension::CompositeCurve () const |
44 | { |
45 | return GetCasted(IGESGeom_CompositeCurve, theGeom); |
46 | } |
47 | |
48 | Handle(IGESData_IGESEntity) IGESDimen_PointDimension::Geom () const |
49 | { |
50 | return theGeom; |
51 | } |
52 | |
53 | Standard_Integer IGESDimen_PointDimension::GeomCase () const |
54 | { |
55 | if (theGeom.IsNull()) return 0; |
56 | else if (theGeom->TypeNumber() == 100) return 1; |
57 | else if (theGeom->TypeNumber() == 102) return 2; |
58 | else return 3; |
59 | } |