1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // GEOM OBJECT : interactive object for Geometry entities visualization
24 // File : GEOM_AISDimension.cxx
27 #include "GEOM_AISDimension.hxx"
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)
36 /* ****************************************************************************** *
40 * ****************************************************************************** */
42 //=================================================================================
43 // function : Constructor
45 //=================================================================================
46 GEOM_AISLength::GEOM_AISLength( const Standard_Integer theId )
47 : AIS_LengthDimension( gp::Origin(),
49 gp_Pln( gp::XOY() ) ),
54 //=================================================================================
57 //=================================================================================
58 Standard_Integer GEOM_AISLength::GetId() const
63 //=================================================================================
66 //=================================================================================
67 void GEOM_AISLength::SetId( const Standard_Integer theId )
73 /* ****************************************************************************** *
77 * ****************************************************************************** */
79 //=================================================================================
80 // function : Constructor
82 //=================================================================================
83 GEOM_AISDiameter::GEOM_AISDiameter( const Standard_Integer theId )
84 : AIS_DiameterDimension( gp_Circ() ),
89 //=================================================================================
92 //=================================================================================
93 Standard_Integer GEOM_AISDiameter::GetId() const
98 //=================================================================================
101 //=================================================================================
102 void GEOM_AISDiameter::SetId( const Standard_Integer theId )
107 /* ****************************************************************************** *
111 * ****************************************************************************** */
113 //=================================================================================
114 // function : Constructor
116 //=================================================================================
117 GEOM_AISAngle::GEOM_AISAngle( const Standard_Integer theId )
118 : AIS_AngleDimension( gp::Origin(),
125 //=================================================================================
128 //=================================================================================
129 Standard_Integer GEOM_AISAngle::GetId() const
134 //=================================================================================
137 //=================================================================================
138 void GEOM_AISAngle::SetId( const Standard_Integer theId )