1 // Created by: CKY / Contract Toubro-Larsen
2 // Copyright (c) 1993-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 //--------------------------------------------------------------------
17 //--------------------------------------------------------------------
19 #include <gp_GTrsf.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>
29 IMPLEMENT_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity)
31 IGESDimen_CurveDimension::IGESDimen_CurveDimension () { }
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)
44 theFirstCurve = aCurve;
45 theSecondCurve = anotherCurve;
46 theFirstLeader = aLeader;
47 theSecondLeader = anotherLeader;
48 theFirstWitnessLine = aLine;
49 theSecondWitnessLine = anotherLine;
50 InitTypeAndForm(204,0);
53 Handle(IGESDimen_GeneralNote) IGESDimen_CurveDimension::Note () const
58 Handle(IGESData_IGESEntity) IGESDimen_CurveDimension::FirstCurve () const
63 Standard_Boolean IGESDimen_CurveDimension::HasSecondCurve () const
65 return (! theSecondCurve.IsNull());
68 Handle(IGESData_IGESEntity) IGESDimen_CurveDimension::SecondCurve () const
70 return theSecondCurve;
73 Handle(IGESDimen_LeaderArrow) IGESDimen_CurveDimension::FirstLeader () const
75 return theFirstLeader;
78 Handle(IGESDimen_LeaderArrow) IGESDimen_CurveDimension::SecondLeader () const
80 return theSecondLeader;
83 Standard_Boolean IGESDimen_CurveDimension::HasFirstWitnessLine () const
85 return (! theFirstWitnessLine.IsNull());
88 Handle(IGESDimen_WitnessLine) IGESDimen_CurveDimension::FirstWitnessLine
91 return theFirstWitnessLine;
94 Standard_Boolean IGESDimen_CurveDimension::HasSecondWitnessLine () const
96 return (! theSecondWitnessLine.IsNull());
99 Handle(IGESDimen_WitnessLine) IGESDimen_CurveDimension::SecondWitnessLine
102 return theSecondWitnessLine;