1 // Copyright (C) 2007-2020 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, or (at your option) any later version.
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_RTTIEXT(GEOM_AISLength, AIS_LengthDimension)
30 IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISDiameter, AIS_DiameterDimension)
31 IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISAngle, AIS_AngleDimension)
33 /* ****************************************************************************** *
37 * ****************************************************************************** */
39 //=================================================================================
40 // function : Constructor
42 //=================================================================================
43 GEOM_AISLength::GEOM_AISLength( const Standard_Integer theId )
44 : AIS_LengthDimension( gp::Origin(),
46 gp_Pln( gp::XOY() ) ),
51 //=================================================================================
54 //=================================================================================
55 Standard_Integer GEOM_AISLength::GetId() const
60 //=================================================================================
63 //=================================================================================
64 void GEOM_AISLength::SetId( const Standard_Integer theId )
70 /* ****************************************************************************** *
74 * ****************************************************************************** */
76 //=================================================================================
77 // function : Constructor
79 //=================================================================================
80 GEOM_AISDiameter::GEOM_AISDiameter( const Standard_Integer theId )
81 : AIS_DiameterDimension( gp_Circ( gp_Ax2( gp::Origin(), gp::DZ() ), 0.0 ) ),
86 //=================================================================================
89 //=================================================================================
90 Standard_Integer GEOM_AISDiameter::GetId() const
95 //=================================================================================
98 //=================================================================================
99 void GEOM_AISDiameter::SetId( const Standard_Integer theId )
104 /* ****************************************************************************** *
108 * ****************************************************************************** */
110 //=================================================================================
111 // function : Constructor
113 //=================================================================================
114 GEOM_AISAngle::GEOM_AISAngle( const Standard_Integer theId )
115 : AIS_AngleDimension( gp::Origin(),
122 //=================================================================================
125 //=================================================================================
126 Standard_Integer GEOM_AISAngle::GetId() const
131 //=================================================================================
134 //=================================================================================
135 void GEOM_AISAngle::SetId( const Standard_Integer theId )