Open CASCADE Technology 6.6.0
Public Member Functions
StdSelect_ViewerSelector3d Class Reference

Selector Usable by Viewers from V3d

#include <StdSelect_ViewerSelector3d.hxx>

Inheritance diagram for StdSelect_ViewerSelector3d:
Inheritance graph
[legend]

Public Member Functions

 StdSelect_ViewerSelector3d ()
 Constructs an empty 3D selector object.

 StdSelect_ViewerSelector3d (const Handle< Select3D_Projector > &aProj)
 Constructs a 3D selector object defined by the projector aProj.

void Convert (const Handle< SelectMgr_Selection > &aSelection)
 Processes the projection of the sensitive primitives
in the active view ; to be done before the selection action...

void Set (const Handle< Select3D_Projector > &aProj)
 Sets the new projector aProj to replace the one used at construction time.

void SetSensitivityMode (const StdSelect_SensitivityMode aMode)
 Sets the selection sensitivity mode. SM_WINDOW mode
uses the specified pixel tolerance to compute the sensitivity
value, SM_VIEW mode allows to define the sensitivity manually.

StdSelect_SensitivityMode SensitivityMode () const
 Returns the selection sensitivity mode.

void SetPixelTolerance (const Standard_Integer aTolerance)
 Sets the pixel tolerance aTolerance.

Standard_Integer PixelTolerance () const
 Returns the pixel tolerance.

void Pick (const Standard_Integer XPix, const Standard_Integer YPix, const Handle< V3d_View > &aView)
 Picks the sensitive entity at the pixel coordinates of
the mouse Xpix and Ypix. The selector looks for touched areas and owners.

void Pick (const Standard_Integer XPMin, const Standard_Integer YPMin, const Standard_Integer XPMax, const Standard_Integer YPMax, const Handle< V3d_View > &aView)
 Picks the sensitive entity according to the minimum
and maximum pixel values XPMin, YPMin, XPMax
and YPMax defining a 2D area for selection in the 3D view aView.

void Pick (const TColgp_Array1OfPnt2d &Polyline, const Handle< V3d_View > &aView)
 pick action - input pixel values for polyline selection for selection.

const Handle_Select3D_Projector & Projector () const
 Returns the current Projector.

void ReactivateProjector ()
 Puts back the address of the current projector in sensitive primitives...

void DisplayAreas (const Handle< V3d_View > &aView)
 Displays sensitive areas found in the view aView.

void ClearAreas (const Handle< V3d_View > &aView)
 Clears the view aView of sensitive areas found in it.

void DisplaySensitive (const Handle< V3d_View > &aView)
 Displays the selection aSel found in the view aView.

void ClearSensitive (const Handle< V3d_View > &aView)
void DisplaySensitive (const Handle< SelectMgr_Selection > &aSel, const Handle< V3d_View > &aView, const Standard_Boolean ClearOthers=Standard_True)
void DisplayAreas (const Handle< SelectMgr_Selection > &aSel, const Handle< V3d_View > &aView, const Standard_Boolean ClearOthers=Standard_True)

Constructor & Destructor Documentation

StdSelect_ViewerSelector3d::StdSelect_ViewerSelector3d ( )
StdSelect_ViewerSelector3d::StdSelect_ViewerSelector3d ( const Handle< Select3D_Projector > &  aProj)

Member Function Documentation

void StdSelect_ViewerSelector3d::ClearAreas ( const Handle< V3d_View > &  aView)
void StdSelect_ViewerSelector3d::ClearSensitive ( const Handle< V3d_View > &  aView)
void StdSelect_ViewerSelector3d::Convert ( const Handle< SelectMgr_Selection > &  aSelection) [virtual]

Reimplemented from SelectMgr_ViewerSelector.

void StdSelect_ViewerSelector3d::DisplayAreas ( const Handle< SelectMgr_Selection > &  aSel,
const Handle< V3d_View > &  aView,
const Standard_Boolean  ClearOthers = Standard_True 
)
void StdSelect_ViewerSelector3d::DisplayAreas ( const Handle< V3d_View > &  aView)
void StdSelect_ViewerSelector3d::DisplaySensitive ( const Handle< SelectMgr_Selection > &  aSel,
const Handle< V3d_View > &  aView,
const Standard_Boolean  ClearOthers = Standard_True 
)
void StdSelect_ViewerSelector3d::DisplaySensitive ( const Handle< V3d_View > &  aView)
void StdSelect_ViewerSelector3d::Pick ( const TColgp_Array1OfPnt2d Polyline,
const Handle< V3d_View > &  aView 
)
void StdSelect_ViewerSelector3d::Pick ( const Standard_Integer  XPMin,
const Standard_Integer  YPMin,
const Standard_Integer  XPMax,
const Standard_Integer  YPMax,
const Handle< V3d_View > &  aView 
)
void StdSelect_ViewerSelector3d::Pick ( const Standard_Integer  XPix,
const Standard_Integer  YPix,
const Handle< V3d_View > &  aView 
)
Standard_Integer StdSelect_ViewerSelector3d::PixelTolerance ( ) const
const Handle_Select3D_Projector& StdSelect_ViewerSelector3d::Projector ( ) const
void StdSelect_ViewerSelector3d::ReactivateProjector ( )
StdSelect_SensitivityMode StdSelect_ViewerSelector3d::SensitivityMode ( ) const
void StdSelect_ViewerSelector3d::Set ( const Handle< Select3D_Projector > &  aProj)
void StdSelect_ViewerSelector3d::SetPixelTolerance ( const Standard_Integer  aTolerance)
void StdSelect_ViewerSelector3d::SetSensitivityMode ( const StdSelect_SensitivityMode  aMode)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines