Salome HOME
Merge from BR_imps_2013 14/01/2014
[modules/geom.git] / src / OBJECT / GEOM_AISDimension.cxx
diff --git a/src/OBJECT/GEOM_AISDimension.cxx b/src/OBJECT/GEOM_AISDimension.cxx
new file mode 100755 (executable)
index 0000000..80ba581
--- /dev/null
@@ -0,0 +1,141 @@
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+//  GEOM OBJECT : interactive object for Geometry entities visualization
+//  File   : GEOM_AISDimension.cxx
+//  Module : GEOM
+
+#include "GEOM_AISDimension.hxx"
+
+IMPLEMENT_STANDARD_HANDLE (GEOM_AISLength,   AIS_LengthDimension)
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISLength,   AIS_LengthDimension)
+IMPLEMENT_STANDARD_HANDLE (GEOM_AISDiameter, AIS_DiameterDimension)
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISDiameter, AIS_DiameterDimension)
+IMPLEMENT_STANDARD_HANDLE (GEOM_AISAngle,    AIS_AngleDimension)
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_AISAngle,    AIS_AngleDimension)
+
+/* ****************************************************************************** *
+ *                                                                                *
+ *                                GEOM_AISLength                                  *
+ *                                                                                *
+ * ****************************************************************************** */
+
+//=================================================================================
+// function : Constructor
+// purpose  : 
+//=================================================================================
+GEOM_AISLength::GEOM_AISLength( const Standard_Integer theId ) 
+: AIS_LengthDimension( gp::Origin(),
+                       gp::Origin(),
+                       gp_Pln( gp::XOY() ) ),
+  myId( theId )
+{
+}
+
+//=================================================================================
+// function : GetId
+// purpose  : 
+//=================================================================================
+Standard_Integer GEOM_AISLength::GetId() const
+{
+  return myId;
+}
+
+//=================================================================================
+// function : SetId
+// purpose  : 
+//=================================================================================
+void GEOM_AISLength::SetId( const Standard_Integer theId )
+{
+  myId = theId;
+}
+
+
+/* ****************************************************************************** *
+ *                                                                                *
+ *                              GEOM_AISDiameter                                  *
+ *                                                                                *
+ * ****************************************************************************** */
+
+//=================================================================================
+// function : Constructor
+// purpose  : 
+//=================================================================================
+GEOM_AISDiameter::GEOM_AISDiameter( const Standard_Integer theId )
+: AIS_DiameterDimension( gp_Circ() ),
+  myId( theId )
+{
+}
+
+//=================================================================================
+// function : GetId
+// purpose  : 
+//=================================================================================
+Standard_Integer GEOM_AISDiameter::GetId() const
+{
+  return myId;
+}
+
+//=================================================================================
+// function : SetId
+// purpose  : 
+//=================================================================================
+void GEOM_AISDiameter::SetId( const Standard_Integer theId )
+{
+  myId = theId;
+}
+
+/* ****************************************************************************** *
+ *                                                                                *
+ *                              GEOM_AISAngle                                     *
+ *                                                                                *
+ * ****************************************************************************** */
+
+//=================================================================================
+// function : Constructor
+// purpose  : 
+//=================================================================================
+GEOM_AISAngle::GEOM_AISAngle( const Standard_Integer theId ) 
+: AIS_AngleDimension( gp::Origin(),
+                      gp::Origin(),
+                      gp::Origin() ),
+  myId( theId )
+{
+}
+
+//=================================================================================
+// function : GetId
+// purpose  : 
+//=================================================================================
+Standard_Integer GEOM_AISAngle::GetId() const
+{
+  return myId;
+}
+
+//=================================================================================
+// function : SetId
+// purpose  : 
+//=================================================================================
+void GEOM_AISAngle::SetId( const Standard_Integer theId )
+{
+  myId = theId;
+}