OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKBO
IntTools


IntTools_Context Class Reference

The class is to provide direct access
to the frequently using objects like
IntTools_FClass2d,
GeomAPI_ProjectPointOnSurf, etc.
The instance of the class allows to avoid repeated
computations by mapping internal objects in the
instance.
.

#include <IntTools_Context.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IntTools_Context ()
 Empty constructor
.
Standard_EXPORT void Destroy ()
 Destructor
.
Standard_EXPORT ~IntTools_Context ()
Standard_EXPORT IntTools_FClass2dFClass2d (const TopoDS_Face &aF)
 Returns a reference to point classifier
for given face
.
Standard_EXPORT GeomAPI_ProjectPointOnSurfProjPS (const TopoDS_Face &aF)
 Returns a reference to point projector
for given face
.
Standard_EXPORT GeomAPI_ProjectPointOnCurveProjPC (const TopoDS_Edge &aE)
 Returns a reference to point projector
for given edge
.
Standard_EXPORT GeomAPI_ProjectPointOnCurveProjPT (const Handle(Geom_Curve)&aC)
 Returns a reference to point projector
for given curve
.
Standard_EXPORT IntTools_SurfaceRangeLocalizeDataSurfaceData (const TopoDS_Face &aF)
 Returns a reference to surface localization data
for given face
.
Standard_EXPORT BRepClass3d_SolidClassifierSolidClassifier (const TopoDS_Solid &aSolid)
 Returns a reference to solid classifier
for given solid
.
Standard_EXPORT Standard_Integer ComputeVE (const TopoDS_Vertex &aV, const TopoDS_Edge &aE, Standard_Real &aT)
 Computes parameter of the vertex aV on
the edge aE.
Returns zero if the distance between vertex
and edge is less than sum of tolerances,
otherwise and for following conditions returns
negative value
1. the edge is degenerated (-1)
2. the edge does not contain 3d curve and pcurves (-2)
3. projection algorithm failed (-3)
.
Standard_EXPORT Standard_Integer ComputeVS (const TopoDS_Vertex &aV, const TopoDS_Face &aF, Standard_Real &U, Standard_Real &V)
 Computes UV parameters of the vertex aV on face aF
Returns zero if the distance between vertex and face is
less than or equal the sum of tolerances and the projection
point lays inside boundaries of the face.
For following conditions returns negative value
1. projection algorithm failed (-1)
2. distance is more than sum of tolerances (-2)
3. projection point out or on the boundaries of face (-3)

.
Standard_EXPORT TopAbs_State StatePointFace (const TopoDS_Face &aF, const gp_Pnt2d &aP2D)
 Returns the state of the point aP2D
relative to face aF
.
Standard_EXPORT Standard_Boolean IsPointInFace (const TopoDS_Face &aF, const gp_Pnt2d &aP2D)
 Returns true if the point aP2D is
inside the boundaries of the face aF,
otherwise returns false
.
Standard_EXPORT Standard_Boolean IsPointInOnFace (const TopoDS_Face &aF, const gp_Pnt2d &aP2D)
 Returns true if the point aP2D is
inside or on the boundaries of aF
.
Standard_EXPORT Standard_Boolean IsValidPointForFace (const gp_Pnt &aP3D, const TopoDS_Face &aF, const Standard_Real aTol)
 Returns true if the distance between point aP3D
and face aF is less or equal to tolerance aTol
and projection point is inside or on the boundaries
of the face aF
.
Standard_EXPORT Standard_Boolean IsValidPointForFaces (const gp_Pnt &aP3D, const TopoDS_Face &aF1, const TopoDS_Face &aF2, const Standard_Real aTol)
 Returns true if IsValidPointForFace returns true
for both face aF1 and aF2
.
Standard_EXPORT Standard_Boolean IsValidBlockForFace (const Standard_Real aT1, const Standard_Real aT2, const IntTools_Curve &aIC, const TopoDS_Face &aF, const Standard_Real aTol)
 Returns true if IsValidPointForFace returns true
for some 3d point that lay on the curve aIC bounded by
parameters aT1 and aT2
.
Standard_EXPORT Standard_Boolean IsValidBlockForFaces (const Standard_Real aT1, const Standard_Real aT2, const IntTools_Curve &aIC, const TopoDS_Face &aF1, const TopoDS_Face &aF2, const Standard_Real aTol)
 Returns true if IsValidBlockForFace returns true
for both faces aF1 and aF2
.
Standard_EXPORT Standard_Boolean IsVertexOnLine (const TopoDS_Vertex &aV, const IntTools_Curve &aIC, const Standard_Real aTolC, Standard_Real &aT)
 Computes parameter of the vertex aV on
the curve aIC.
Returns true if the distance between vertex and
curve is less than sum of tolerance of aV and aTolC,
otherwise or if projection algorithm failed
returns false (in this case aT isn't significant)

.
Standard_EXPORT Standard_Boolean IsVertexOnLine (const TopoDS_Vertex &aV, const Standard_Real aTolV, const IntTools_Curve &aIC, const Standard_Real aTolC, Standard_Real &aT)
 Computes parameter of the vertex aV on
the curve aIC.
Returns true if the distance between vertex and
curve is less than sum of tolerance of aV and aTolC,
otherwise or if projection algorithm failed
returns false (in this case aT isn't significant)

.
Standard_EXPORT Standard_Boolean ProjectPointOnEdge (const gp_Pnt &aP, const TopoDS_Edge &aE, Standard_Real &aT)
 Computes parameter of the point aP on
the edge aE.
Returns false if projection algorithm failed
other wiese returns true.
.

Private Attributes

IntTools_IndexedDataMapOfShapeAddress myFClass2dMap
IntTools_IndexedDataMapOfShapeAddress myProjPSMap
IntTools_IndexedDataMapOfShapeAddress myProjPCMap
IntTools_IndexedDataMapOfTransientAddress myProjPTMap
IntTools_IndexedDataMapOfShapeAddress mySClassMap
IntTools_IndexedDataMapOfShapeAddress myProjSDataMap


Constructor & Destructor Documentation

Standard_EXPORT IntTools_Context::IntTools_Context  ) 
 

Standard_EXPORT IntTools_Context::~IntTools_Context  )  [inline]
 


Member Function Documentation

Standard_EXPORT Standard_Integer IntTools_Context::ComputeVE const TopoDS_Vertex &  aV,
const TopoDS_Edge &  aE,
Standard_Real &  aT
 

Standard_EXPORT Standard_Integer IntTools_Context::ComputeVS const TopoDS_Vertex &  aV,
const TopoDS_Face &  aF,
Standard_Real &  U,
Standard_Real &  V
 

Standard_EXPORT void IntTools_Context::Destroy  ) 
 

Standard_EXPORT IntTools_FClass2d& IntTools_Context::FClass2d const TopoDS_Face &  aF  ) 
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsPointInFace const TopoDS_Face &  aF,
const gp_Pnt2d &  aP2D
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsPointInOnFace const TopoDS_Face &  aF,
const gp_Pnt2d &  aP2D
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsValidBlockForFace const Standard_Real  aT1,
const Standard_Real  aT2,
const IntTools_Curve aIC,
const TopoDS_Face &  aF,
const Standard_Real  aTol
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsValidBlockForFaces const Standard_Real  aT1,
const Standard_Real  aT2,
const IntTools_Curve aIC,
const TopoDS_Face &  aF1,
const TopoDS_Face &  aF2,
const Standard_Real  aTol
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsValidPointForFace const gp_Pnt &  aP3D,
const TopoDS_Face &  aF,
const Standard_Real  aTol
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsValidPointForFaces const gp_Pnt &  aP3D,
const TopoDS_Face &  aF1,
const TopoDS_Face &  aF2,
const Standard_Real  aTol
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsVertexOnLine const TopoDS_Vertex &  aV,
const Standard_Real  aTolV,
const IntTools_Curve aIC,
const Standard_Real  aTolC,
Standard_Real &  aT
 

Standard_EXPORT Standard_Boolean IntTools_Context::IsVertexOnLine const TopoDS_Vertex &  aV,
const IntTools_Curve aIC,
const Standard_Real  aTolC,
Standard_Real &  aT
 

void IntTools_Context::operator delete void *  anAddress  )  [inline]
 

void* IntTools_Context::operator new size_t  size  )  [inline]
 

void* IntTools_Context::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT Standard_Boolean IntTools_Context::ProjectPointOnEdge const gp_Pnt &  aP,
const TopoDS_Edge &  aE,
Standard_Real &  aT
 

Standard_EXPORT GeomAPI_ProjectPointOnCurve& IntTools_Context::ProjPC const TopoDS_Edge &  aE  ) 
 

Standard_EXPORT GeomAPI_ProjectPointOnSurf& IntTools_Context::ProjPS const TopoDS_Face &  aF  ) 
 

Standard_EXPORT GeomAPI_ProjectPointOnCurve& IntTools_Context::ProjPT const Handle(Geom_Curve)&  aC  ) 
 

Standard_EXPORT BRepClass3d_SolidClassifier& IntTools_Context::SolidClassifier const TopoDS_Solid &  aSolid  ) 
 

Standard_EXPORT TopAbs_State IntTools_Context::StatePointFace const TopoDS_Face &  aF,
const gp_Pnt2d &  aP2D
 

Standard_EXPORT IntTools_SurfaceRangeLocalizeData& IntTools_Context::SurfaceData const TopoDS_Face &  aF  ) 
 


Field Documentation

IntTools_IndexedDataMapOfShapeAddress IntTools_Context::myFClass2dMap [private]
 

IntTools_IndexedDataMapOfShapeAddress IntTools_Context::myProjPCMap [private]
 

IntTools_IndexedDataMapOfShapeAddress IntTools_Context::myProjPSMap [private]
 

IntTools_IndexedDataMapOfTransientAddress IntTools_Context::myProjPTMap [private]
 

IntTools_IndexedDataMapOfShapeAddress IntTools_Context::myProjSDataMap [private]
 

IntTools_IndexedDataMapOfShapeAddress IntTools_Context::mySClassMap [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:19 2008 for OpenCASCADE by  doxygen 1.4.1