Open CASCADE Technology 7.8.0
|
This structure provides unified access to the results of Matches() method in all sensitive entities, so that it defines a Depth (distance to the entity along picking ray) and a closest Point on entity. More...
#include <SelectBasics_PickResult.hxx>
Public Member Functions | |
SelectBasics_PickResult () | |
Empty constructor defining an invalid result. | |
SelectBasics_PickResult (Standard_Real theDepth, Standard_Real theDistToCenter, const gp_Pnt &theObjPickedPnt) | |
Constructor with initialization. | |
Standard_Boolean | IsValid () const |
Return TRUE if result was been defined. | |
void | Invalidate () |
Reset depth value. | |
Standard_Real | Depth () const |
Return depth along picking ray. | |
void | SetDepth (Standard_Real theDepth) |
Set depth along picking ray. | |
Standard_Boolean | HasPickedPoint () const |
Return TRUE if Picked Point lying on detected entity was set. | |
const gp_Pnt & | PickedPoint () const |
Return picked point lying on detected entity. WARNING! Point is defined in local coordinate system and should be translated into World System before usage! | |
void | SetPickedPoint (const gp_Pnt &theObjPickedPnt) |
Set picked point. | |
Standard_Real | DistToGeomCenter () const |
Return distance to geometry center (auxiliary value for comparing results). | |
void | SetDistToGeomCenter (Standard_Real theDistToCenter) |
Set distance to geometry center. | |
const NCollection_Vec3< float > & | SurfaceNormal () const |
Return (unnormalized) surface normal at picked point or zero vector if undefined. WARNING! Normal is defined in local coordinate system and should be translated into World System before usage! | |
void | SetSurfaceNormal (const NCollection_Vec3< float > &theNormal) |
Set surface normal at picked point. | |
void | SetSurfaceNormal (const gp_Vec &theNormal) |
Set surface normal at picked point. | |
Static Public Member Functions | |
static const SelectBasics_PickResult & | Min (const SelectBasics_PickResult &thePickResult1, const SelectBasics_PickResult &thePickResult2) |
Return closest result between two Pick Results according to Depth value. | |
This structure provides unified access to the results of Matches() method in all sensitive entities, so that it defines a Depth (distance to the entity along picking ray) and a closest Point on entity.
|
inline |
Empty constructor defining an invalid result.
|
inline |
Constructor with initialization.
|
inline |
Return depth along picking ray.
|
inline |
Return distance to geometry center (auxiliary value for comparing results).
|
inline |
Return TRUE if Picked Point lying on detected entity was set.
|
inline |
Reset depth value.
|
inline |
Return TRUE if result was been defined.
|
inlinestatic |
Return closest result between two Pick Results according to Depth value.
Return picked point lying on detected entity. WARNING! Point is defined in local coordinate system and should be translated into World System before usage!
|
inline |
Set depth along picking ray.
|
inline |
Set distance to geometry center.
Set picked point.
Set surface normal at picked point.
|
inline |
Set surface normal at picked point.
|
inline |
Return (unnormalized) surface normal at picked point or zero vector if undefined. WARNING! Normal is defined in local coordinate system and should be translated into World System before usage!