b311480e |
1 | // Created by: CKY / Contract Toubro-Larsen |
2 | // Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
3 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
7fd59977 |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
7fd59977 |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
16 | //-------------------------------------------------------------------- |
7fd59977 |
17 | //-------------------------------------------------------------------- |
18 | |
7fd59977 |
19 | #include <gp_GTrsf.hxx> |
42cf5bc1 |
20 | #include <gp_XYZ.hxx> |
21 | #include <IGESData_IGESEntity.hxx> |
22 | #include <IGESDimen_CurveDimension.hxx> |
23 | #include <IGESDimen_GeneralNote.hxx> |
24 | #include <IGESDimen_LeaderArrow.hxx> |
25 | #include <IGESDimen_WitnessLine.hxx> |
26 | #include <IGESGeom_Line.hxx> |
27 | #include <Standard_Type.hxx> |
7fd59977 |
28 | |
92efcf78 |
29 | IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity) |
30 | |
b311480e |
31 | IGESDimen_CurveDimension::IGESDimen_CurveDimension () { } |
7fd59977 |
32 | |
33 | |
34 | void IGESDimen_CurveDimension::Init |
35 | (const Handle(IGESDimen_GeneralNote)& aNote, |
36 | const Handle(IGESData_IGESEntity)& aCurve, |
37 | const Handle(IGESData_IGESEntity)& anotherCurve, |
38 | const Handle(IGESDimen_LeaderArrow)& aLeader, |
39 | const Handle(IGESDimen_LeaderArrow)& anotherLeader, |
40 | const Handle(IGESDimen_WitnessLine)& aLine, |
41 | const Handle(IGESDimen_WitnessLine)& anotherLine) |
42 | { |
43 | theNote = aNote; |
44 | theFirstCurve = aCurve; |
45 | theSecondCurve = anotherCurve; |
46 | theFirstLeader = aLeader; |
47 | theSecondLeader = anotherLeader; |
48 | theFirstWitnessLine = aLine; |
49 | theSecondWitnessLine = anotherLine; |
50 | InitTypeAndForm(204,0); |
51 | } |
52 | |
53 | Handle(IGESDimen_GeneralNote) IGESDimen_CurveDimension::Note () const |
54 | { |
55 | return theNote; |
56 | } |
57 | |
58 | Handle(IGESData_IGESEntity) IGESDimen_CurveDimension::FirstCurve () const |
59 | { |
60 | return theFirstCurve; |
61 | } |
62 | |
63 | Standard_Boolean IGESDimen_CurveDimension::HasSecondCurve () const |
64 | { |
65 | return (! theSecondCurve.IsNull()); |
66 | } |
67 | |
68 | Handle(IGESData_IGESEntity) IGESDimen_CurveDimension::SecondCurve () const |
69 | { |
70 | return theSecondCurve; |
71 | } |
72 | |
73 | Handle(IGESDimen_LeaderArrow) IGESDimen_CurveDimension::FirstLeader () const |
74 | { |
75 | return theFirstLeader; |
76 | } |
77 | |
78 | Handle(IGESDimen_LeaderArrow) IGESDimen_CurveDimension::SecondLeader () const |
79 | { |
80 | return theSecondLeader; |
81 | } |
82 | |
83 | Standard_Boolean IGESDimen_CurveDimension::HasFirstWitnessLine () const |
84 | { |
85 | return (! theFirstWitnessLine.IsNull()); |
86 | } |
87 | |
88 | Handle(IGESDimen_WitnessLine) IGESDimen_CurveDimension::FirstWitnessLine |
89 | () const |
90 | { |
91 | return theFirstWitnessLine; |
92 | } |
93 | |
94 | Standard_Boolean IGESDimen_CurveDimension::HasSecondWitnessLine () const |
95 | { |
96 | return (! theSecondWitnessLine.IsNull()); |
97 | } |
98 | |
99 | Handle(IGESDimen_WitnessLine) IGESDimen_CurveDimension::SecondWitnessLine |
100 | () const |
101 | { |
102 | return theSecondWitnessLine; |
103 | } |