00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOM_IMeasureOperations_i_HeaderFile
00024 #define _GEOM_IMeasureOperations_i_HeaderFile
00025
00026 #include "GEOMImpl_Gen.hxx"
00027
00028 #include <SALOMEconfig.h>
00029
00030 #include CORBA_SERVER_HEADER(GEOM_Gen)
00031 #include "GEOM_IOperations_i.hh"
00032 #include "GEOM_Object_i.hh"
00033
00034 #include "GEOMImpl_IMeasureOperations.hxx"
00035
00036 class GEOM_I_EXPORT GEOM_IMeasureOperations_i :
00037 public virtual POA_GEOM::GEOM_IMeasureOperations,
00038 public virtual GEOM_IOperations_i
00039 {
00040 public:
00041 GEOM_IMeasureOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
00042 ::GEOMImpl_IMeasureOperations* theImpl);
00043 ~GEOM_IMeasureOperations_i();
00044
00045 GEOM::GEOM_IKindOfShape::shape_kind KindOfShape (GEOM::GEOM_Object_ptr theShape,
00046 GEOM::ListOfLong_out theIntegers,
00047 GEOM::ListOfDouble_out theDoubles);
00048
00049 void GetPosition (GEOM::GEOM_Object_ptr theShape,
00050 CORBA::Double& Ox, CORBA::Double& Oy, CORBA::Double& Oz,
00051 CORBA::Double& Zx, CORBA::Double& Zy, CORBA::Double& Zz,
00052 CORBA::Double& Xx, CORBA::Double& Xy, CORBA::Double& Xz);
00053
00054 void GetBasicProperties (GEOM::GEOM_Object_ptr theShape,
00055 CORBA::Double& theLength,
00056 CORBA::Double& theSurfArea,
00057 CORBA::Double& theVolume);
00058
00059 GEOM::GEOM_Object_ptr GetCentreOfMass (GEOM::GEOM_Object_ptr theShape);
00060
00061 GEOM::GEOM_Object_ptr GetNormal (GEOM::GEOM_Object_ptr theFace,
00062 GEOM::GEOM_Object_ptr theOptionalPoint);
00063
00064 GEOM::GEOM_Object_ptr GetVertexByIndex (GEOM::GEOM_Object_ptr theObject,
00065 CORBA::Long theIndex);
00066
00067 void GetInertia (GEOM::GEOM_Object_ptr theShape,
00068 CORBA::Double& I11, CORBA::Double& I12, CORBA::Double& I13,
00069 CORBA::Double& I21, CORBA::Double& I22, CORBA::Double& I23,
00070 CORBA::Double& I31, CORBA::Double& I32, CORBA::Double& I33,
00071 CORBA::Double& Ix , CORBA::Double& Iy , CORBA::Double& Iz);
00072
00073 void GetBoundingBox (GEOM::GEOM_Object_ptr theShape,
00074 CORBA::Double& Xmin, CORBA::Double& Xmax,
00075 CORBA::Double& Ymin, CORBA::Double& Ymax,
00076 CORBA::Double& Zmin, CORBA::Double& Zmax);
00077
00078 void GetTolerance (GEOM::GEOM_Object_ptr theShape,
00079 CORBA::Double& FaceMin, CORBA::Double& FaceMax,
00080 CORBA::Double& EdgeMin, CORBA::Double& EdgeMax,
00081 CORBA::Double& VertMin, CORBA::Double& VertMax);
00082
00083 CORBA::Boolean CheckShape (GEOM::GEOM_Object_ptr theShape,
00084 CORBA::String_out theDescription);
00085
00086 CORBA::Boolean CheckShapeWithGeometry (GEOM::GEOM_Object_ptr theShape,
00087 CORBA::String_out theDescription);
00088
00089 char* IsGoodForSolid (GEOM::GEOM_Object_ptr theShape);
00090
00091 char* WhatIs (GEOM::GEOM_Object_ptr theShape);
00092
00093 GEOM::ListOfBool* AreCoordsInside (GEOM::GEOM_Object_ptr theShape,
00094 const GEOM::ListOfDouble& theCoords,
00095 CORBA::Double theTolerance);
00096
00097 CORBA::Double GetMinDistance (GEOM::GEOM_Object_ptr theShape1,
00098 GEOM::GEOM_Object_ptr theShape2,
00099 CORBA::Double& X1, CORBA::Double& Y1, CORBA::Double& Z1,
00100 CORBA::Double& X2, CORBA::Double& Y2, CORBA::Double& Z2);
00101
00102 void PointCoordinates (GEOM::GEOM_Object_ptr theShape,
00103 CORBA::Double& X, CORBA::Double& Y, CORBA::Double& Z);
00104
00105 CORBA::Double GetAngle (GEOM::GEOM_Object_ptr theShape1,
00106 GEOM::GEOM_Object_ptr theShape2);
00107
00108 CORBA::Double GetAngleBtwVectors (GEOM::GEOM_Object_ptr theShape1,
00109 GEOM::GEOM_Object_ptr theShape2);
00110
00111
00112
00113 CORBA::Double CurveCurvatureByParam (GEOM::GEOM_Object_ptr theCurve,
00114 CORBA::Double theParam);
00115
00116 CORBA::Double CurveCurvatureByPoint (GEOM::GEOM_Object_ptr theCurve,
00117 GEOM::GEOM_Object_ptr thePoint);
00118
00119 CORBA::Double MaxSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
00120 CORBA::Double theUParam,
00121 CORBA::Double theVParam);
00122
00123 CORBA::Double MaxSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
00124 GEOM::GEOM_Object_ptr thePoint);
00125
00126 CORBA::Double MinSurfaceCurvatureByParam (GEOM::GEOM_Object_ptr theSurf,
00127 CORBA::Double theUParam,
00128 CORBA::Double theVParam);
00129
00130 CORBA::Double MinSurfaceCurvatureByPoint (GEOM::GEOM_Object_ptr theSurf,
00131 GEOM::GEOM_Object_ptr thePoint);
00132
00133 ::GEOMImpl_IMeasureOperations* GetOperations()
00134 { return (::GEOMImpl_IMeasureOperations*)GetImpl(); }
00135 };
00136
00137 #endif