1 // Created on: 1993-01-13
2 // Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESDimen_CurveDimension_HeaderFile
18 #define _IGESDimen_CurveDimension_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IGESData_IGESEntity.hxx>
24 #include <Standard_Boolean.hxx>
25 class IGESDimen_GeneralNote;
26 class IGESData_IGESEntity;
27 class IGESDimen_LeaderArrow;
28 class IGESDimen_WitnessLine;
31 class IGESDimen_CurveDimension;
32 DEFINE_STANDARD_HANDLE(IGESDimen_CurveDimension, IGESData_IGESEntity)
34 //! defines CurveDimension, Type <204> Form <0>
35 //! in package IGESDimen
36 //! Used to dimension curves
37 //! Consists of one tail segment of nonzero length
38 //! beginning with an arrowhead and which serves to define
40 class IGESDimen_CurveDimension : public IGESData_IGESEntity
46 Standard_EXPORT IGESDimen_CurveDimension();
48 //! This method is used to set the fields of the class
50 //! - aNote : General Note Entity
51 //! - aCurve : First Curve Entity
52 //! - anotherCurve : Second Curve Entity or a Null Handle
53 //! - aLeader : First Leader Entity
54 //! - anotherLeader : Second Leader Entity
55 //! - aLine : First Witness Line Entity or a Null
57 //! - anotherLine : Second Witness Line Entity or a Null
59 Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESData_IGESEntity)& aCurve, const Handle(IGESData_IGESEntity)& anotherCurve, const Handle(IGESDimen_LeaderArrow)& aLeader, const Handle(IGESDimen_LeaderArrow)& anotherLeader, const Handle(IGESDimen_WitnessLine)& aLine, const Handle(IGESDimen_WitnessLine)& anotherLine);
61 //! returns the General Note Entity
62 Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
64 //! returns the First curve Entity
65 Standard_EXPORT Handle(IGESData_IGESEntity) FirstCurve() const;
67 //! returns False if theSecondCurve is a Null Handle.
68 Standard_EXPORT Standard_Boolean HasSecondCurve() const;
70 //! returns the Second curve Entity or a Null Handle.
71 Standard_EXPORT Handle(IGESData_IGESEntity) SecondCurve() const;
73 //! returns the First Leader Entity
74 Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
76 //! returns the Second Leader Entity
77 Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
79 //! returns False if theFirstWitnessLine is a Null Handle.
80 Standard_EXPORT Standard_Boolean HasFirstWitnessLine() const;
82 //! returns the First Witness Line Entity or a Null Handle.
83 Standard_EXPORT Handle(IGESDimen_WitnessLine) FirstWitnessLine() const;
85 //! returns False if theSecondWitnessLine is a Null Handle.
86 Standard_EXPORT Standard_Boolean HasSecondWitnessLine() const;
88 //! returns the Second Witness Line Entity or a Null Handle.
89 Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
94 DEFINE_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity)
104 Handle(IGESDimen_GeneralNote) theNote;
105 Handle(IGESData_IGESEntity) theFirstCurve;
106 Handle(IGESData_IGESEntity) theSecondCurve;
107 Handle(IGESDimen_LeaderArrow) theFirstLeader;
108 Handle(IGESDimen_LeaderArrow) theSecondLeader;
109 Handle(IGESDimen_WitnessLine) theFirstWitnessLine;
110 Handle(IGESDimen_WitnessLine) theSecondWitnessLine;
121 #endif // _IGESDimen_CurveDimension_HeaderFile