Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions

SelectBasics_PickResult Struct Reference

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. More...
 
 SelectBasics_PickResult (Standard_Real theDepth, Standard_Real theDistToCenter, const gp_Pnt &theObjPickedPnt)
 Constructor with initialization. More...
 
Standard_Boolean IsValid () const
 Return TRUE if result was been defined. More...
 
void Invalidate ()
 Reset depth value. More...
 
Standard_Real Depth () const
 Return depth along picking ray. More...
 
void SetDepth (Standard_Real theDepth)
 Set depth along picking ray. More...
 
Standard_Boolean HasPickedPoint () const
 Return TRUE if Picked Point lying on detected entity was set. More...
 
const gp_PntPickedPoint () 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! More...
 
void SetPickedPoint (const gp_Pnt &theObjPickedPnt)
 Set picked point. More...
 
Standard_Real DistToGeomCenter () const
 Return distance to geometry center (auxiliary value for comparing results). More...
 
void SetDistToGeomCenter (Standard_Real theDistToCenter)
 Set distance to geometry center. More...
 

Static Public Member Functions

static const SelectBasics_PickResultMin (const SelectBasics_PickResult &thePickResult1, const SelectBasics_PickResult &thePickResult2)
 Return closest result between two Pick Results according to Depth value. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SelectBasics_PickResult() [1/2]

SelectBasics_PickResult::SelectBasics_PickResult ( )
inline

Empty constructor defining an invalid result.

◆ SelectBasics_PickResult() [2/2]

SelectBasics_PickResult::SelectBasics_PickResult ( Standard_Real  theDepth,
Standard_Real  theDistToCenter,
const gp_Pnt theObjPickedPnt 
)
inline

Constructor with initialization.

Member Function Documentation

◆ Depth()

Standard_Real SelectBasics_PickResult::Depth ( ) const
inline

Return depth along picking ray.

◆ DistToGeomCenter()

Standard_Real SelectBasics_PickResult::DistToGeomCenter ( ) const
inline

Return distance to geometry center (auxiliary value for comparing results).

◆ HasPickedPoint()

Standard_Boolean SelectBasics_PickResult::HasPickedPoint ( ) const
inline

Return TRUE if Picked Point lying on detected entity was set.

◆ Invalidate()

void SelectBasics_PickResult::Invalidate ( )
inline

Reset depth value.

◆ IsValid()

Standard_Boolean SelectBasics_PickResult::IsValid ( ) const
inline

Return TRUE if result was been defined.

◆ Min()

static const SelectBasics_PickResult& SelectBasics_PickResult::Min ( const SelectBasics_PickResult thePickResult1,
const SelectBasics_PickResult thePickResult2 
)
inlinestatic

Return closest result between two Pick Results according to Depth value.

◆ PickedPoint()

const gp_Pnt& SelectBasics_PickResult::PickedPoint ( ) const
inline

Return picked point lying on detected entity. WARNING! Point is defined in local coordinate system and should be translated into World System before usage!

◆ SetDepth()

void SelectBasics_PickResult::SetDepth ( Standard_Real  theDepth)
inline

Set depth along picking ray.

◆ SetDistToGeomCenter()

void SelectBasics_PickResult::SetDistToGeomCenter ( Standard_Real  theDistToCenter)
inline

Set distance to geometry center.

◆ SetPickedPoint()

void SelectBasics_PickResult::SetPickedPoint ( const gp_Pnt theObjPickedPnt)
inline

Set picked point.


The documentation for this struct was generated from the following file: