Warnings on vc14 were eliminated
[occt.git] / src / IGESDimen / IGESDimen_CurveDimension.cxx
1 // Created by: CKY / Contract Toubro-Larsen
2 // Copyright (c) 1993-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //--------------------------------------------------------------------
17 //--------------------------------------------------------------------
18
19 #include <gp_GTrsf.hxx>
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>
28
29 IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity)
30
31 IGESDimen_CurveDimension::IGESDimen_CurveDimension ()    {  }
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 }