Version: 9.16.0
GEOMImpl_IConformity.hxx
Go to the documentation of this file.
1// Copyright (C) 2013-2026 CEA, EDF, OPEN CASCADE
2//
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.
7//
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.
12//
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
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef _GEOMImpl_IConformity_HXX_
21#define _GEOMImpl_IConformity_HXX_
22
23#include "GEOM_Function.hxx"
24#include <TColStd_HArray2OfInteger.hxx>
25#include <TColStd_HArray2OfTransient.hxx>
26
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
31
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
38
40{
41public:
42 GEOMImpl_IConformity(Handle(GEOM_Function) theFunction)
43 : _func(theFunction)
44 {
45 }
46
47 void SetShape(Handle(GEOM_Function) theRef)
48 {
49 _func->SetReference(CHECKCONFORMITY_ARG_SHAPE, theRef);
50 }
51 Handle(GEOM_Function) GetShape()
52 {
53 return _func->GetReference(CHECKCONFORMITY_ARG_SHAPE);
54 }
55
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); }
62
63 void SetListOfShapesIndices(const Handle(TColStd_HArray2OfInteger)& theArrayOfIndexes);
64 Handle(TColStd_HArray2OfInteger) GetListOfShapesIndices();
65
66private:
67 Handle(GEOM_Function) _func;
68};
69
70#endif // _GEOMImpl_IConformity_HXX_
#define CHECKCONFORMITY_ARG_SHAPETYPE_1
Definition: GEOMImpl_IConformity.hxx:28
#define CHECKCONFORMITY_ARG_SHAPETYPE_2
Definition: GEOMImpl_IConformity.hxx:29
#define CHECKCONFORMITY_ARG_TOLERANCE
Definition: GEOMImpl_IConformity.hxx:30
#define CHECKCONFORMITY_ARG_SHAPE
Definition: GEOMImpl_IConformity.hxx:27
Definition: GEOMImpl_IConformity.hxx:40
void SetShapeType1(int theShapeType)
Definition: GEOMImpl_IConformity.hxx:56
Handle(GEOM_Function) _func
void SetTolerance(double theTolerance)
Definition: GEOMImpl_IConformity.hxx:60
Standard_Real GetTolerance()
Definition: GEOMImpl_IConformity.hxx:61
Handle(TColStd_HArray2OfInteger) GetListOfShapesIndices()
Standard_Integer GetShapeType1()
Definition: GEOMImpl_IConformity.hxx:57
void SetShape(Handle(GEOM_Function) theRef)
Definition: GEOMImpl_IConformity.hxx:47
void SetListOfShapesIndices(const Handle(TColStd_HArray2OfInteger)&theArrayOfIndexes)
Definition: GEOMImpl_IConformity.cxx:27
Handle(GEOM_Function) GetShape()
Definition: GEOMImpl_IConformity.hxx:51
void SetShapeType2(int theShapeType)
Definition: GEOMImpl_IConformity.hxx:58
GEOMImpl_IConformity(Handle(GEOM_Function) theFunction)
Definition: GEOMImpl_IConformity.hxx:42
Standard_Integer GetShapeType2()
Definition: GEOMImpl_IConformity.hxx:59