22#define PROXIMITY_ARG_SHAPE1 1
23#define PROXIMITY_ARG_SHAPE2 2
24#define PROXIMITY_ARG_SAMPLES1 3
25#define PROXIMITY_ARG_SAMPLES2 4
26#define PROXIMITY_ARG_POINT1 5
27#define PROXIMITY_ARG_POINT2 6
28#define PROXIMITY_ARG_VALUE 7
29#define PROXIMITY_ARG_STATUS1 8
30#define PROXIMITY_ARG_STATUS2 9
50 void SetNbSamples(
const Standard_Integer thePosition,
const Standard_Integer theNbSamples)
const
52 _func->SetInteger(thePosition, theNbSamples);
55 Standard_Integer
GetNbSamples(
const Standard_Integer thePosition)
const
57 return _func->GetInteger(thePosition);
66 void SetStatusOfPoints(
const Standard_Integer theStatus1,
const Standard_Integer theStatus2)
95 void setPoint(
const Standard_Integer thePosition,
const gp_Pnt& thePoint)
97 Handle(TColStd_HArray1OfReal) aCoords =
new TColStd_HArray1OfReal(1, 3);
98 aCoords->SetValue(1, thePoint.X());
99 aCoords->SetValue(2, thePoint.Y());
100 aCoords->SetValue(3, thePoint.Z());
101 _func->SetRealArray(thePosition, aCoords);
104 void setStatus(
const Standard_Integer thePosition,
const Standard_Integer theStatus)
106 _func->SetInteger(thePosition, theStatus);
109 gp_Pnt
getPoint(
const Standard_Integer thePosition)
111 Handle(TColStd_HArray1OfReal) aCoords = _func->GetRealArray(thePosition);
112 return gp_Pnt(aCoords->Value(1), aCoords->Value(2), aCoords->Value(3));
115 Standard_Integer
getStatus(
const Standard_Integer thePosition)
117 return _func->GetInteger(thePosition);
#define PROXIMITY_ARG_POINT1
Definition: GEOMImpl_IProximity.hxx:26
#define PROXIMITY_ARG_VALUE
Definition: GEOMImpl_IProximity.hxx:28
#define PROXIMITY_ARG_STATUS2
Definition: GEOMImpl_IProximity.hxx:30
#define PROXIMITY_ARG_SHAPE1
Definition: GEOMImpl_IProximity.hxx:22
#define PROXIMITY_ARG_POINT2
Definition: GEOMImpl_IProximity.hxx:27
#define PROXIMITY_ARG_STATUS1
Definition: GEOMImpl_IProximity.hxx:29
#define PROXIMITY_ARG_SHAPE2
Definition: GEOMImpl_IProximity.hxx:23
Definition: GEOMImpl_IProximity.hxx:33
void SetProximityPoints(const gp_Pnt &thePoint1, const gp_Pnt &thePoint2)
Definition: GEOMImpl_IProximity.hxx:60
Standard_Integer getStatus(const Standard_Integer thePosition)
Definition: GEOMImpl_IProximity.hxx:115
void setStatus(const Standard_Integer thePosition, const Standard_Integer theStatus)
Definition: GEOMImpl_IProximity.hxx:104
void GetShapes(Handle(GEOM_Function)&theShape1, Handle(GEOM_Function)&theShape2) const
Definition: GEOMImpl_IProximity.hxx:44
void SetStatusOfPoints(const Standard_Integer theStatus1, const Standard_Integer theStatus2)
Definition: GEOMImpl_IProximity.hxx:66
void SetShapes(Handle(GEOM_Function) theShape1, Handle(GEOM_Function) theShape2)
Definition: GEOMImpl_IProximity.hxx:38
void GetProximityPoints(gp_Pnt &thePoint1, gp_Pnt &thePoint2)
Definition: GEOMImpl_IProximity.hxx:72
void SetNbSamples(const Standard_Integer thePosition, const Standard_Integer theNbSamples) const
Definition: GEOMImpl_IProximity.hxx:50
void SetValue(const Standard_Real theValue)
Definition: GEOMImpl_IProximity.hxx:84
Handle(GEOM_Function) _func
void GetStatusOfPoints(Standard_Integer &theStatus1, Standard_Integer &theStatus2)
Definition: GEOMImpl_IProximity.hxx:78
GEOMImpl_IProximity(Handle(GEOM_Function) theFunction)
Definition: GEOMImpl_IProximity.hxx:36
void setPoint(const Standard_Integer thePosition, const gp_Pnt &thePoint)
Definition: GEOMImpl_IProximity.hxx:95
Standard_Real GetValue() const
Definition: GEOMImpl_IProximity.hxx:89
Standard_Integer GetNbSamples(const Standard_Integer thePosition) const
Definition: GEOMImpl_IProximity.hxx:55
gp_Pnt getPoint(const Standard_Integer thePosition)
Definition: GEOMImpl_IProximity.hxx:109