Salome HOME
Merge from BR_imps_2013 14/01/2014
[modules/geom.git] / src / OBJECT / GEOM_AISDimension.cxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  GEOM OBJECT : interactive object for Geometry entities visualization
24 //  File   : GEOM_AISDimension.cxx
25 //  Module : GEOM
26
27 #include "GEOM_AISDimension.hxx"
28
29 IMPLEMENT_STANDARD_HANDLE (GEOM_AISLength,   AIS_LengthDimension)
30 IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISLength,   AIS_LengthDimension)
31 IMPLEMENT_STANDARD_HANDLE (GEOM_AISDiameter, AIS_DiameterDimension)
32 IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISDiameter, AIS_DiameterDimension)
33 IMPLEMENT_STANDARD_HANDLE (GEOM_AISAngle,    AIS_AngleDimension)
34 IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISAngle,    AIS_AngleDimension)
35
36 /* ****************************************************************************** *
37  *                                                                                *
38  *                                GEOM_AISLength                                  *
39  *                                                                                *
40  * ****************************************************************************** */
41
42 //=================================================================================
43 // function : Constructor
44 // purpose  : 
45 //=================================================================================
46 GEOM_AISLength::GEOM_AISLength( const Standard_Integer theId ) 
47 : AIS_LengthDimension( gp::Origin(),
48                        gp::Origin(),
49                        gp_Pln( gp::XOY() ) ),
50   myId( theId )
51 {
52 }
53
54 //=================================================================================
55 // function : GetId
56 // purpose  : 
57 //=================================================================================
58 Standard_Integer GEOM_AISLength::GetId() const
59 {
60   return myId;
61 }
62
63 //=================================================================================
64 // function : SetId
65 // purpose  : 
66 //=================================================================================
67 void GEOM_AISLength::SetId( const Standard_Integer theId )
68 {
69   myId = theId;
70 }
71
72
73 /* ****************************************************************************** *
74  *                                                                                *
75  *                              GEOM_AISDiameter                                  *
76  *                                                                                *
77  * ****************************************************************************** */
78
79 //=================================================================================
80 // function : Constructor
81 // purpose  : 
82 //=================================================================================
83 GEOM_AISDiameter::GEOM_AISDiameter( const Standard_Integer theId )
84 : AIS_DiameterDimension( gp_Circ() ),
85   myId( theId )
86 {
87 }
88
89 //=================================================================================
90 // function : GetId
91 // purpose  : 
92 //=================================================================================
93 Standard_Integer GEOM_AISDiameter::GetId() const
94 {
95   return myId;
96 }
97
98 //=================================================================================
99 // function : SetId
100 // purpose  : 
101 //=================================================================================
102 void GEOM_AISDiameter::SetId( const Standard_Integer theId )
103 {
104   myId = theId;
105 }
106
107 /* ****************************************************************************** *
108  *                                                                                *
109  *                              GEOM_AISAngle                                     *
110  *                                                                                *
111  * ****************************************************************************** */
112
113 //=================================================================================
114 // function : Constructor
115 // purpose  : 
116 //=================================================================================
117 GEOM_AISAngle::GEOM_AISAngle( const Standard_Integer theId ) 
118 : AIS_AngleDimension( gp::Origin(),
119                       gp::Origin(),
120                       gp::Origin() ),
121   myId( theId )
122 {
123 }
124
125 //=================================================================================
126 // function : GetId
127 // purpose  : 
128 //=================================================================================
129 Standard_Integer GEOM_AISAngle::GetId() const
130 {
131   return myId;
132 }
133
134 //=================================================================================
135 // function : SetId
136 // purpose  : 
137 //=================================================================================
138 void GEOM_AISAngle::SetId( const Standard_Integer theId )
139 {
140   myId = theId;
141 }