Salome HOME
0020660: EDF 1238 GEOM: Missing equivalent of 2nd contructor of LCS in TUI
[modules/geom.git] / src / GEOM_I / GEOM_IMeasureOperations_i.hh
index 6e26f873e3e07e663358bbb88b5e61d219706076..1aace732a454d0f52dd370a2a5746baa13ad549d 100644 (file)
@@ -1,7 +1,28 @@
-
+//  Copyright (C) 2007-2008  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
+//
 #ifndef _GEOM_IMeasureOperations_i_HeaderFile
 #define _GEOM_IMeasureOperations_i_HeaderFile
 
+#include "GEOMImpl_Gen.hxx"
 
 #include <SALOMEconfig.h>
 
@@ -11,7 +32,7 @@
 
 #include "GEOMImpl_IMeasureOperations.hxx"
 
-class GEOM_IMeasureOperations_i :
+class GEOM_I_EXPORT GEOM_IMeasureOperations_i :
     public virtual POA_GEOM::GEOM_IMeasureOperations,
     public virtual GEOM_IOperations_i
 {
@@ -20,6 +41,15 @@ class GEOM_IMeasureOperations_i :
                            ::GEOMImpl_IMeasureOperations* theImpl);
   ~GEOM_IMeasureOperations_i();
 
+  GEOM::GEOM_IKindOfShape::shape_kind KindOfShape (GEOM::GEOM_Object_ptr  theShape,
+                                                  GEOM::ListOfLong_out   theIntegers,
+                                                  GEOM::ListOfDouble_out theDoubles);
+
+  void GetPosition (GEOM::GEOM_Object_ptr theShape,
+                   CORBA::Double& Ox, CORBA::Double& Oy, CORBA::Double& Oz,
+                   CORBA::Double& Zx, CORBA::Double& Zy, CORBA::Double& Zz,
+                   CORBA::Double& Xx, CORBA::Double& Xy, CORBA::Double& Xz);
+
   void GetBasicProperties (GEOM::GEOM_Object_ptr theShape,
                           CORBA::Double& theLength,
                           CORBA::Double& theSurfArea,
@@ -27,6 +57,9 @@ class GEOM_IMeasureOperations_i :
 
   GEOM::GEOM_Object_ptr GetCentreOfMass (GEOM::GEOM_Object_ptr theShape);
 
+  GEOM::GEOM_Object_ptr GetNormal (GEOM::GEOM_Object_ptr theFace,
+                                  GEOM::GEOM_Object_ptr theOptionalPoint);
+
   void GetInertia (GEOM::GEOM_Object_ptr theShape,
                   CORBA::Double& I11, CORBA::Double& I12, CORBA::Double& I13,
                   CORBA::Double& I21, CORBA::Double& I22, CORBA::Double& I23,
@@ -46,6 +79,9 @@ class GEOM_IMeasureOperations_i :
   CORBA::Boolean CheckShape (GEOM::GEOM_Object_ptr theShape,
                             CORBA::String_out     theDescription);
 
+  CORBA::Boolean CheckShapeWithGeometry (GEOM::GEOM_Object_ptr theShape,
+                                        CORBA::String_out     theDescription);
+
   char* WhatIs (GEOM::GEOM_Object_ptr theShape);
 
   CORBA::Double GetMinDistance (GEOM::GEOM_Object_ptr theShape1,
@@ -53,9 +89,33 @@ class GEOM_IMeasureOperations_i :
                                 CORBA::Double& X1, CORBA::Double& Y1, CORBA::Double& Z1,
                                 CORBA::Double& X2, CORBA::Double& Y2, CORBA::Double& Z2);
 
+  void PointCoordinates (GEOM::GEOM_Object_ptr theShape,
+                        CORBA::Double& X, CORBA::Double& Y, CORBA::Double& Z);
+
+  CORBA::Double GetAngle (GEOM::GEOM_Object_ptr theShape1,
+                         GEOM::GEOM_Object_ptr theShape2);
+
+  // Methods for recieving radiuses of curvature of curves and surfaces
+  // in the given point
+  CORBA::Double CurveCurvatureByParam (GEOM::GEOM_Object_ptr theCurve,
+                                      CORBA::Double theParam);
+
+  CORBA::Double CurveCurvatureByPoint (GEOM::GEOM_Object_ptr theCurve,
+                                      GEOM::GEOM_Object_ptr thePoint);
+
+  CORBA::Double MaxSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
+                                           CORBA::Double theUParam,
+                                           CORBA::Double theVParam);
+
+  CORBA::Double MaxSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
+                                           GEOM::GEOM_Object_ptr thePoint);
+
+  CORBA::Double MinSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
+                                           CORBA::Double theUParam,
+                                           CORBA::Double theVParam);
 
-  void PointCoordinates( GEOM::GEOM_Object_ptr theShape,
-    CORBA::Double& X, CORBA::Double& Y, CORBA::Double& Z );
+  CORBA::Double MinSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
+                                           GEOM::GEOM_Object_ptr thePoint);
 
   ::GEOMImpl_IMeasureOperations* GetOperations()
   { return (::GEOMImpl_IMeasureOperations*)GetImpl(); }