-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020 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
#include "SALOME_GenericObj.idl"
#include "GEOM_Gen.idl"
#include "SMESH_Mesh.idl"
+#include "SMESH_smIdType.idl"
module SMESH
{
FT_MultiConnection2D,
FT_Length,
FT_Length2D,
+ FT_Length3D,
FT_Deflection2D,
FT_NodeConnectivityNumber,
FT_BelongToMeshGroup,
*/
struct HistogramRectangle
{
- long nbEvents;
+ smIdType nbEvents;
double min;
double max;
};
*/
interface NumericalFunctor: Functor
{
- double GetValue( in long theElementId );
+ double GetValue ( in smIdType theElementId );
+ boolean IsApplicable( in smIdType theElementId );
Histogram GetHistogram ( in short nbIntervals, in boolean isLogarithmic );
Histogram GetLocalHistogram( in short nbIntervals, in boolean isLogarithmic,
* Set precision for calculation. It is a position after point which is
* used to functor value after calculation.
*/
- void SetPrecision( in long thePrecision );
- long GetPrecision();
+ void SetPrecision( in smIdType thePrecision );
+ smIdType GetPrecision();
};
interface MinimumAngle : NumericalFunctor{};
interface AspectRatio : NumericalFunctor{};
struct Value
{
double myLength;
- long myPnt1, myPnt2;
+ smIdType myPnt1, myPnt2;
};
typedef sequence<Value> Values;
Values GetValues();
};
+ interface Length3D : NumericalFunctor{};
interface Deflection2D : NumericalFunctor{};
interface MultiConnection : NumericalFunctor{};
interface MultiConnection2D : NumericalFunctor
{
struct Value
{
- long myNbConnects;
- long myPnt1, myPnt2;
+ smIdType myNbConnects;
+ smIdType myPnt1, myPnt2;
};
typedef sequence<Value> Values;
*/
interface Predicate: Functor
{
- boolean IsSatisfy( in long thEntityId );
- long NbSatisfying( in SMESH::SMESH_IDSource obj );
+ boolean IsSatisfy( in smIdType thEntityId );
+ smIdType NbSatisfying( in SMESH::SMESH_IDSource obj );
};
/*!
{
struct Border
{
- long myElemId;
- long myPnt1, myPnt2;
+ smIdType myElemId;
+ smIdType myPnt1, myPnt2;
};
typedef sequence<Border> Borders;
Borders GetBorders();
* if normal of a face has angle with the threshold face less than a tolerance.
*/
interface CoplanarFaces : Predicate {
- void SetFace ( in long theFaceID );
+ void SetFace ( in smIdType theFaceID );
void SetTolerance( in double theToler );
};
void SetElementType( in ElementType type );
void SetPoint ( in double x, in double y, in double z );
void SetVertex ( in GEOM::GEOM_Object vertex );
- void SetNode ( in long nodeID );
+ void SetNode ( in smIdType nodeID );
string GetThreshold ( out ThresholdType type );
void SetThreshold ( in string threshold, in ThresholdType type )
raises (SALOME::SALOME_Exception);
*/
struct Criterion
{
- long Type;
- long Compare;
+ smIdType Type;
+ smIdType Compare;
double Threshold;
string ThresholdStr;
string ThresholdID;
- long UnaryOp;
- long BinaryOp;
+ smIdType UnaryOp;
+ smIdType BinaryOp;
double Tolerance;
ElementType TypeOfElement;
- long Precision;
+ smIdType Precision;
};
typedef sequence<Criterion> Criteria;
void SetMesh( in SMESH_Mesh theMesh );
long_array GetElementsId( in SMESH_Mesh theMesh );
+ long_array GetElementsIdFromParts( in ListOfIDSources theParts );
ElementType GetElementType();
Predicate GetPredicate();
* Query methods
*/
boolean IsPresent( in string aFilterName );
- long NbFilters( in ElementType aType );
+ smIdType NbFilters( in ElementType aType );
string_array GetNames( in ElementType aType );
string_array GetAllNames();
void SetFileName( in string aFilterName );
MaxElementLength3D CreateMaxElementLength3D();
Length CreateLength();
Length2D CreateLength2D();
+ Length3D CreateLength3D();
Deflection2D CreateDeflection2D();
MultiConnection CreateMultiConnection();
MultiConnection2D CreateMultiConnection2D();