0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / IGESDimen / IGESDimen_CurveDimension.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESDimen_CurveDimension_HeaderFile
18 #define _IGESDimen_CurveDimension_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
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;
29
30
31 class IGESDimen_CurveDimension;
32 DEFINE_STANDARD_HANDLE(IGESDimen_CurveDimension, IGESData_IGESEntity)
33
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
39 //! the orientation
40 class IGESDimen_CurveDimension : public IGESData_IGESEntity
41 {
42
43 public:
44
45   
46   Standard_EXPORT IGESDimen_CurveDimension();
47   
48   //! This method is used to set the fields of the class
49   //! CurveDimension
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
56   //! Handle
57   //! - anotherLine   : Second Witness Line Entity or a Null
58   //! Handle
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);
60   
61   //! returns the General Note Entity
62   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
63   
64   //! returns the First curve Entity
65   Standard_EXPORT Handle(IGESData_IGESEntity) FirstCurve() const;
66   
67   //! returns False if theSecondCurve is a Null Handle.
68   Standard_EXPORT Standard_Boolean HasSecondCurve() const;
69   
70   //! returns the Second curve Entity or a Null Handle.
71   Standard_EXPORT Handle(IGESData_IGESEntity) SecondCurve() const;
72   
73   //! returns the First Leader Entity
74   Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
75   
76   //! returns the Second Leader Entity
77   Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
78   
79   //! returns False if theFirstWitnessLine is a Null Handle.
80   Standard_EXPORT Standard_Boolean HasFirstWitnessLine() const;
81   
82   //! returns the First Witness Line Entity or a Null Handle.
83   Standard_EXPORT Handle(IGESDimen_WitnessLine) FirstWitnessLine() const;
84   
85   //! returns False if theSecondWitnessLine is a Null Handle.
86   Standard_EXPORT Standard_Boolean HasSecondWitnessLine() const;
87   
88   //! returns the Second Witness Line Entity or a Null Handle.
89   Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
90
91
92
93
94   DEFINE_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity)
95
96 protected:
97
98
99
100
101 private:
102
103
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;
111
112
113 };
114
115
116
117
118
119
120
121 #endif // _IGESDimen_CurveDimension_HeaderFile