1 // Copyright (C) 2013-2024 CEA, EDF, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMImpl_IConformity_HXX_
21 #define _GEOMImpl_IConformity_HXX_
23 #include "GEOM_Function.hxx"
24 #include <TColStd_HArray2OfInteger.hxx>
25 #include <TColStd_HArray2OfTransient.hxx>
27 #define CHECKCONFORMITY_ARG_SHAPE 1
28 #define CHECKCONFORMITY_ARG_SHAPETYPE_1 2
29 #define CHECKCONFORMITY_ARG_SHAPETYPE_2 3
30 #define CHECKCONFORMITY_ARG_TOLERANCE 4
32 #define CHECKCONFORMITY_RET_TOLERANCE 5
33 #define CHECKCONFORMITY_RET_ISVALID 6
34 #define CHECKCONFORMITY_RET_SHAPES_IDS 7
35 #define CHECKCONFORMITY_RET_TYPES_CHECKS 8
36 #define CHECKCONFORMITY_RET_LIST_OF_INDEXES 9
37 #define CHECKCONFORMITY_RET_LIST_SHAPES 10
39 class GEOMImpl_IConformity
42 GEOMImpl_IConformity(Handle(GEOM_Function) theFunction)
47 void SetShape(Handle(GEOM_Function) theRef)
49 _func->SetReference(CHECKCONFORMITY_ARG_SHAPE, theRef);
51 Handle(GEOM_Function) GetShape()
53 return _func->GetReference(CHECKCONFORMITY_ARG_SHAPE);
56 void SetShapeType1(int theShapeType) { _func->SetInteger(CHECKCONFORMITY_ARG_SHAPETYPE_1, theShapeType); }
57 Standard_Integer GetShapeType1() { return _func->GetInteger(CHECKCONFORMITY_ARG_SHAPETYPE_1); }
58 void SetShapeType2(int theShapeType) { _func->SetInteger(CHECKCONFORMITY_ARG_SHAPETYPE_2, theShapeType); }
59 Standard_Integer GetShapeType2() { return _func->GetInteger(CHECKCONFORMITY_ARG_SHAPETYPE_2); }
60 void SetTolerance(double theTolerance) { _func->SetReal(CHECKCONFORMITY_ARG_TOLERANCE, theTolerance); }
61 Standard_Real GetTolerance() { return _func->GetReal(CHECKCONFORMITY_ARG_TOLERANCE); }
63 void SetListOfShapesIndices(const Handle(TColStd_HArray2OfInteger)& theArrayOfIndexes);
64 Handle(TColStd_HArray2OfInteger) GetListOfShapesIndices();
67 Handle(GEOM_Function) _func;
70 #endif // _GEOMImpl_IConformity_HXX_