Salome HOME
Notebook: processed creation of objects dependent on another objects.
[modules/geom.git] / src / GEOM_I / GEOM_IMeasureOperations_i.hh
1 //  Copyright (C) 2007-2008  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 #ifndef _GEOM_IMeasureOperations_i_HeaderFile
23 #define _GEOM_IMeasureOperations_i_HeaderFile
24
25 #include "GEOMImpl_Gen.hxx"
26
27 #include <SALOMEconfig.h>
28
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
32
33 #include "GEOMImpl_IMeasureOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_IMeasureOperations_i :
36     public virtual POA_GEOM::GEOM_IMeasureOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_IMeasureOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
41                             ::GEOMImpl_IMeasureOperations* theImpl);
42   ~GEOM_IMeasureOperations_i();
43
44   GEOM::GEOM_IKindOfShape::shape_kind KindOfShape (GEOM::GEOM_Object_ptr  theShape,
45                                                    GEOM::ListOfLong_out   theIntegers,
46                                                    GEOM::ListOfDouble_out theDoubles);
47
48   void GetPosition (GEOM::GEOM_Object_ptr theShape,
49                     CORBA::Double& Ox, CORBA::Double& Oy, CORBA::Double& Oz,
50                     CORBA::Double& Zx, CORBA::Double& Zy, CORBA::Double& Zz,
51                     CORBA::Double& Xx, CORBA::Double& Xy, CORBA::Double& Xz);
52
53   void GetBasicProperties (GEOM::GEOM_Object_ptr theShape,
54                            CORBA::Double& theLength,
55                            CORBA::Double& theSurfArea,
56                            CORBA::Double& theVolume);
57
58   GEOM::GEOM_Object_ptr GetCentreOfMass (GEOM::GEOM_Object_ptr theShape);
59
60   GEOM::GEOM_Object_ptr GetNormal (GEOM::GEOM_Object_ptr theFace,
61                                    GEOM::GEOM_Object_ptr theOptionalPoint);
62
63   void GetInertia (GEOM::GEOM_Object_ptr theShape,
64                    CORBA::Double& I11, CORBA::Double& I12, CORBA::Double& I13,
65                    CORBA::Double& I21, CORBA::Double& I22, CORBA::Double& I23,
66                    CORBA::Double& I31, CORBA::Double& I32, CORBA::Double& I33,
67                    CORBA::Double& Ix , CORBA::Double& Iy , CORBA::Double& Iz);
68
69   void GetBoundingBox (GEOM::GEOM_Object_ptr theShape,
70                        CORBA::Double& Xmin, CORBA::Double& Xmax,
71                        CORBA::Double& Ymin, CORBA::Double& Ymax,
72                        CORBA::Double& Zmin, CORBA::Double& Zmax);
73
74   void GetTolerance (GEOM::GEOM_Object_ptr theShape,
75                      CORBA::Double& FaceMin, CORBA::Double& FaceMax,
76                      CORBA::Double& EdgeMin, CORBA::Double& EdgeMax,
77                      CORBA::Double& VertMin, CORBA::Double& VertMax);
78
79   CORBA::Boolean CheckShape (GEOM::GEOM_Object_ptr theShape,
80                              CORBA::String_out     theDescription);
81
82   CORBA::Boolean CheckShapeWithGeometry (GEOM::GEOM_Object_ptr theShape,
83                                          CORBA::String_out     theDescription);
84
85   char* WhatIs (GEOM::GEOM_Object_ptr theShape);
86
87   CORBA::Double GetMinDistance (GEOM::GEOM_Object_ptr theShape1,
88                                 GEOM::GEOM_Object_ptr theShape2,
89                                 CORBA::Double& X1, CORBA::Double& Y1, CORBA::Double& Z1,
90                                 CORBA::Double& X2, CORBA::Double& Y2, CORBA::Double& Z2);
91
92   void PointCoordinates (GEOM::GEOM_Object_ptr theShape,
93                          CORBA::Double& X, CORBA::Double& Y, CORBA::Double& Z);
94
95   CORBA::Double GetAngle (GEOM::GEOM_Object_ptr theShape1,
96                           GEOM::GEOM_Object_ptr theShape2);
97
98   // Methods for recieving radiuses of curvature of curves and surfaces
99   // in the given point
100   CORBA::Double CurveCurvatureByParam (GEOM::GEOM_Object_ptr theCurve,
101                                        CORBA::Double theParam);
102
103   CORBA::Double CurveCurvatureByPoint (GEOM::GEOM_Object_ptr theCurve,
104                                        GEOM::GEOM_Object_ptr thePoint);
105
106   CORBA::Double MaxSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
107                                             CORBA::Double theUParam,
108                                             CORBA::Double theVParam);
109
110   CORBA::Double MaxSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
111                                             GEOM::GEOM_Object_ptr thePoint);
112
113   CORBA::Double MinSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
114                                             CORBA::Double theUParam,
115                                             CORBA::Double theVParam);
116
117   CORBA::Double MinSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
118                                             GEOM::GEOM_Object_ptr thePoint);
119
120   ::GEOMImpl_IMeasureOperations* GetOperations()
121   { return (::GEOMImpl_IMeasureOperations*)GetImpl(); }
122 };
123
124 #endif