Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
SelectMgr_SelectingVolumeManager Class Reference

This class is used to switch between active selecting volumes depending on selection type chosen by the user. The sample of correct selection volume initialization procedure: More...

#include <SelectMgr_SelectingVolumeManager.hxx>

Inheritance diagram for SelectMgr_SelectingVolumeManager:
Inheritance graph
[legend]

Public Member Functions

 SelectMgr_SelectingVolumeManager ()
 Creates instances of all available selecting volume types.
 
 ~SelectMgr_SelectingVolumeManager () override=default
 
void InitPointSelectingVolume (const gp_Pnt2d &thePoint)
 Creates, initializes and activates rectangular selecting frustum for point selection.
 
void InitBoxSelectingVolume (const gp_Pnt2d &theMinPt, const gp_Pnt2d &theMaxPt)
 Creates, initializes and activates rectangular selecting frustum for box selection.
 
void InitPolylineSelectingVolume (const NCollection_Array1< gp_Pnt2d > &thePoints)
 Creates, initializes and activates set of triangular selecting frustums for polyline selection.
 
void InitAxisSelectingVolume (const gp_Ax1 &theAxis)
 Creates and activates axis selector for point selection.
 
void InitSelectingVolume (const occ::handle< SelectMgr_BaseIntersector > &theVolume)
 Sets as active the custom selecting volume.
 
void BuildSelectingVolume ()
 Builds previously initialized selecting volume.
 
const occ::handle< SelectMgr_BaseIntersector > & ActiveVolume () const
 Returns active selecting volume that was built during last run of OCCT selection mechanism.
 
int GetActiveSelectionType () const override
 Return selection type.
 
virtual SelectMgr_SelectingVolumeManager ScaleAndTransform (const int theScaleFactor, const gp_GTrsf &theTrsf, const occ::handle< SelectMgr_FrustumBuilder > &theBuilder) const
 IMPORTANT: Scaling makes sense only for frustum built on a single point! Note that this method does not perform any checks on type of the frustum.
 
virtual SelectMgr_SelectingVolumeManager CopyWithBuilder (const occ::handle< SelectMgr_FrustumBuilder > &theBuilder) const
 Returns a copy of the selecting volume manager and its active frustum re-constructed using the passed builder. Builder is an argument that represents corresponding settings for re-constructing transformed frustum from scratch.
 
const occ::handle< Graphic3d_Camera > & Camera () const
 Returns current camera definition.
 
void SetCamera (const occ::handle< Graphic3d_Camera > &theCamera)
 Updates camera projection and orientation matrices in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.
 
void SetViewport (const double theX, const double theY, const double theWidth, const double theHeight)
 Updates viewport in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.
 
void SetPixelTolerance (const int theTolerance)
 Updates pixel tolerance in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.
 
void WindowSize (int &theWidth, int &theHeight) const
 Returns window size.
 
void SetWindowSize (const int theWidth, const int theHeight)
 Updates window size in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.
 
bool OverlapsBox (const NCollection_Vec3< double > &theBoxMin, const NCollection_Vec3< double > &theBoxMax, SelectBasics_PickResult &thePickResult) const override
 SAT intersection test between defined volume and given axis-aligned box.
 
bool OverlapsBox (const NCollection_Vec3< double > &theBoxMin, const NCollection_Vec3< double > &theBoxMax, bool *theInside=nullptr) const override
 Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt.
 
bool OverlapsPoint (const gp_Pnt &thePnt, SelectBasics_PickResult &thePickResult) const override
 Intersection test between defined volume and given point.
 
bool OverlapsPoint (const gp_Pnt &thePnt) const override
 Intersection test between defined volume and given point.
 
bool OverlapsPolygon (const NCollection_Array1< gp_Pnt > &theArrayOfPts, int theSensType, SelectBasics_PickResult &thePickResult) const override
 SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type.
 
bool OverlapsSegment (const gp_Pnt &thePnt1, const gp_Pnt &thePnt2, SelectBasics_PickResult &thePickResult) const override
 Checks if line segment overlaps selecting frustum.
 
bool OverlapsTriangle (const gp_Pnt &thePnt1, const gp_Pnt &thePnt2, const gp_Pnt &thePnt3, int theSensType, SelectBasics_PickResult &thePickResult) const override
 SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type.
 
bool OverlapsSphere (const gp_Pnt &theCenter, const double theRadius, SelectBasics_PickResult &thePickResult) const override
 Intersection test between defined volume and given sphere.
 
bool OverlapsSphere (const gp_Pnt &theCenter, const double theRadius, bool *theInside=nullptr) const override
 Intersection test between defined volume and given sphere.
 
bool OverlapsCylinder (const double theBottomRad, const double theTopRad, const double theHeight, const gp_Trsf &theTrsf, const bool theIsHollow, SelectBasics_PickResult &thePickResult) const override
 Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
 
bool OverlapsCylinder (const double theBottomRad, const double theTopRad, const double theHeight, const gp_Trsf &theTrsf, const bool theIsHollow, bool *theInside=nullptr) const override
 Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.
 
bool OverlapsCircle (const double theBottomRad, const gp_Trsf &theTrsf, const bool theIsFilled, SelectBasics_PickResult &thePickResult) const override
 Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
 
bool OverlapsCircle (const double theBottomRad, const gp_Trsf &theTrsf, const bool theIsFilled, bool *theInside=nullptr) const override
 Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().
 
double DistToGeometryCenter (const gp_Pnt &theCOG) const override
 Measures distance between 3d projection of user-picked screen point and given point theCOG.
 
gp_Pnt DetectedPoint (const double theDepth) const override
 Calculates the point on a view ray that was detected during the run of selection algo by given depth. Throws exception if active selection type is not Point.
 
virtual void AllowOverlapDetection (const bool theIsToAllow)
 If theIsToAllow is false, only fully included sensitives will be detected, otherwise the algorithm will mark both included and overlapped entities as matched.
 
bool IsOverlapAllowed () const override
 Returns flag indicating if partial overlapping of entities is allowed or should be rejected.
 
const occ::handle< Graphic3d_SequenceOfHClipPlane > & ViewClipping () const
 Return view clipping planes.
 
const occ::handle< Graphic3d_SequenceOfHClipPlane > & ObjectClipping () const
 Return object clipping planes.
 
void SetViewClipping (const occ::handle< Graphic3d_SequenceOfHClipPlane > &theViewPlanes, const occ::handle< Graphic3d_SequenceOfHClipPlane > &theObjPlanes, const SelectMgr_SelectingVolumeManager *theWorldSelMgr)
 Valid for point selection only! Computes depth range for clipping planes.
 
void SetViewClipping (const SelectMgr_SelectingVolumeManager &theOther)
 Copy clipping planes from another volume manager.
 
const SelectMgr_ViewClipRangeViewClipRanges () const
 Return clipping range.
 
void SetViewClipRanges (const SelectMgr_ViewClipRange &theRange)
 Set clipping range.
 
const gp_PntGetVertices () const
 A set of helper functions that return rectangular selecting frustum data.
 
gp_Pnt GetNearPickedPnt () const override
 Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto near view frustum plane.
 
gp_Pnt GetFarPickedPnt () const override
 Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto far view frustum plane.
 
gp_Dir GetViewRayDirection () const override
 Valid only for point and rectangular selection. Returns view ray direction.
 
bool IsScalableActiveVolume () const override
 Checks if it is possible to scale current active selecting volume.
 
gp_Pnt2d GetMousePosition () const override
 Returns mouse coordinates for Point selection mode.
 
void GetPlanes (NCollection_DynamicArray< NCollection_Vec4< double > > &thePlaneEquations) const override
 Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector.
 
void DumpJson (Standard_OStream &theOStream, int theDepth=-1) const override
 Dumps the content of me into the stream.
 
Deprecated method InitPointSelectingVolume () and Build() methods should be used instead") 1 void BuildSelectingVolume( const gp_Pnt2d & thePoint)
 
Deprecated method InitBoxSelectingVolume () and Build() should be used instead") 1 void BuildSelectingVolume( const gp_Pnt2d & theMinPt
 
Deprecated method InitPolylineSelectingVolume () and Build() should be used instead") 1 void BuildSelectingVolume( const NCollection_Array1<gp_Pnt2d> & thePoints)
 
- Public Member Functions inherited from SelectBasics_SelectingVolumeManager
 SelectBasics_SelectingVolumeManager ()
 Empty constructor.
 
virtual ~SelectBasics_SelectingVolumeManager ()
 Destructor.
 
bool Overlaps (const NCollection_Vec3< double > &theBoxMin, const NCollection_Vec3< double > &theBoxMax, SelectBasics_PickResult &thePickResult) const
 
bool Overlaps (const NCollection_Vec3< double > &theBoxMin, const NCollection_Vec3< double > &theBoxMax, bool *theInside=nullptr) const
 
bool Overlaps (const gp_Pnt &thePnt, SelectBasics_PickResult &thePickResult) const
 
bool Overlaps (const gp_Pnt &thePnt) const
 
bool Overlaps (const occ::handle< NCollection_HArray1< gp_Pnt > > &theArrayOfPts, int theSensType, SelectBasics_PickResult &thePickResult) const
 
bool Overlaps (const NCollection_Array1< gp_Pnt > &theArrayOfPts, int theSensType, SelectBasics_PickResult &thePickResult) const
 
bool Overlaps (const gp_Pnt &thePnt1, const gp_Pnt &thePnt2, SelectBasics_PickResult &thePickResult) const
 
bool Overlaps (const gp_Pnt &thePnt1, const gp_Pnt &thePnt2, const gp_Pnt &thePnt3, int theSensType, SelectBasics_PickResult &thePickResult) const
 

Data Fields

Deprecated method const gp_Pnt2dtheMaxPt
 

Additional Inherited Members

- Static Public Attributes inherited from SelectBasics_SelectingVolumeManager
static const SelectMgr_SelectionType Point = SelectMgr_SelectionType_Point
 Deprecated static const class members aren't supported for Visual Studio prior to 2015 (vc14) and GCC >= 5.0 and GCC < 6.3 (due to bug when warning was raised without member usage).
 
static const SelectMgr_SelectionType Box = SelectMgr_SelectionType_Box
 
static const SelectMgr_SelectionType Polyline = SelectMgr_SelectionType_Polyline
 
static const SelectMgr_SelectionType Unknown = SelectMgr_SelectionType_Unknown
 

Detailed Description

This class is used to switch between active selecting volumes depending on selection type chosen by the user. The sample of correct selection volume initialization procedure:

aMgr.InitPointSelectingVolume (aMousePos);
aMgr.SetPixelTolerance (aTolerance);
aMgr.SetCamera (aCamera);
aMgr.SetWindowSize (aWidth, aHeight);
aMgr.BuildSelectingVolume();
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142

Constructor & Destructor Documentation

◆ SelectMgr_SelectingVolumeManager()

SelectMgr_SelectingVolumeManager::SelectMgr_SelectingVolumeManager ( )

Creates instances of all available selecting volume types.

◆ ~SelectMgr_SelectingVolumeManager()

SelectMgr_SelectingVolumeManager::~SelectMgr_SelectingVolumeManager ( )
overridedefault

Member Function Documentation

◆ ActiveVolume()

const occ::handle< SelectMgr_BaseIntersector > & SelectMgr_SelectingVolumeManager::ActiveVolume ( ) const
inline

Returns active selecting volume that was built during last run of OCCT selection mechanism.

◆ AllowOverlapDetection()

virtual void SelectMgr_SelectingVolumeManager::AllowOverlapDetection ( const bool theIsToAllow)
virtual

If theIsToAllow is false, only fully included sensitives will be detected, otherwise the algorithm will mark both included and overlapped entities as matched.

◆ BuildSelectingVolume()

void SelectMgr_SelectingVolumeManager::BuildSelectingVolume ( )

Builds previously initialized selecting volume.

◆ Camera()

const occ::handle< Graphic3d_Camera > & SelectMgr_SelectingVolumeManager::Camera ( ) const

Returns current camera definition.

◆ CopyWithBuilder()

virtual SelectMgr_SelectingVolumeManager SelectMgr_SelectingVolumeManager::CopyWithBuilder ( const occ::handle< SelectMgr_FrustumBuilder > & theBuilder) const
virtual

Returns a copy of the selecting volume manager and its active frustum re-constructed using the passed builder. Builder is an argument that represents corresponding settings for re-constructing transformed frustum from scratch.

◆ DetectedPoint()

gp_Pnt SelectMgr_SelectingVolumeManager::DetectedPoint ( const double theDepth) const
overridevirtual

Calculates the point on a view ray that was detected during the run of selection algo by given depth. Throws exception if active selection type is not Point.

Implements SelectBasics_SelectingVolumeManager.

◆ DistToGeometryCenter()

double SelectMgr_SelectingVolumeManager::DistToGeometryCenter ( const gp_Pnt & theCOG) const
overridevirtual

Measures distance between 3d projection of user-picked screen point and given point theCOG.

Implements SelectBasics_SelectingVolumeManager.

◆ DumpJson()

void SelectMgr_SelectingVolumeManager::DumpJson ( Standard_OStream & theOStream,
int theDepth = -1 ) const
overridevirtual

Dumps the content of me into the stream.

Reimplemented from SelectBasics_SelectingVolumeManager.

◆ GetActiveSelectionType()

int SelectMgr_SelectingVolumeManager::GetActiveSelectionType ( ) const
overridevirtual

Return selection type.

Implements SelectBasics_SelectingVolumeManager.

◆ GetFarPickedPnt()

gp_Pnt SelectMgr_SelectingVolumeManager::GetFarPickedPnt ( ) const
overridevirtual

Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto far view frustum plane.

Implements SelectBasics_SelectingVolumeManager.

◆ GetMousePosition()

gp_Pnt2d SelectMgr_SelectingVolumeManager::GetMousePosition ( ) const
overridevirtual

Returns mouse coordinates for Point selection mode.

Returns
infinite point in case of unsupport of mouse position for this active selection volume.

Implements SelectBasics_SelectingVolumeManager.

◆ GetNearPickedPnt()

gp_Pnt SelectMgr_SelectingVolumeManager::GetNearPickedPnt ( ) const
overridevirtual

Valid only for point and rectangular selection. Returns projection of 2d mouse picked point or projection of center of 2d rectangle (for point and rectangular selection correspondingly) onto near view frustum plane.

Implements SelectBasics_SelectingVolumeManager.

◆ GetPlanes()

void SelectMgr_SelectingVolumeManager::GetPlanes ( NCollection_DynamicArray< NCollection_Vec4< double > > & thePlaneEquations) const
overridevirtual

Stores plane equation coefficients (in the following form: Ax + By + Cz + D = 0) to the given vector.

Implements SelectBasics_SelectingVolumeManager.

◆ GetVertices()

const gp_Pnt * SelectMgr_SelectingVolumeManager::GetVertices ( ) const

A set of helper functions that return rectangular selecting frustum data.

◆ GetViewRayDirection()

gp_Dir SelectMgr_SelectingVolumeManager::GetViewRayDirection ( ) const
overridevirtual

Valid only for point and rectangular selection. Returns view ray direction.

Implements SelectBasics_SelectingVolumeManager.

◆ InitAxisSelectingVolume()

void SelectMgr_SelectingVolumeManager::InitAxisSelectingVolume ( const gp_Ax1 & theAxis)

Creates and activates axis selector for point selection.

◆ InitBoxSelectingVolume() [1/2]

Deprecated method SelectMgr_SelectingVolumeManager::InitBoxSelectingVolume ( ) const &

◆ InitBoxSelectingVolume() [2/2]

void SelectMgr_SelectingVolumeManager::InitBoxSelectingVolume ( const gp_Pnt2d & theMinPt,
const gp_Pnt2d & theMaxPt )

Creates, initializes and activates rectangular selecting frustum for box selection.

◆ InitPointSelectingVolume() [1/2]

Deprecated method SelectMgr_SelectingVolumeManager::InitPointSelectingVolume ( ) const &

◆ InitPointSelectingVolume() [2/2]

void SelectMgr_SelectingVolumeManager::InitPointSelectingVolume ( const gp_Pnt2d & thePoint)

Creates, initializes and activates rectangular selecting frustum for point selection.

◆ InitPolylineSelectingVolume() [1/2]

Deprecated method SelectMgr_SelectingVolumeManager::InitPolylineSelectingVolume ( ) const &

◆ InitPolylineSelectingVolume() [2/2]

void SelectMgr_SelectingVolumeManager::InitPolylineSelectingVolume ( const NCollection_Array1< gp_Pnt2d > & thePoints)

Creates, initializes and activates set of triangular selecting frustums for polyline selection.

◆ InitSelectingVolume()

void SelectMgr_SelectingVolumeManager::InitSelectingVolume ( const occ::handle< SelectMgr_BaseIntersector > & theVolume)

Sets as active the custom selecting volume.

◆ IsOverlapAllowed()

bool SelectMgr_SelectingVolumeManager::IsOverlapAllowed ( ) const
overridevirtual

Returns flag indicating if partial overlapping of entities is allowed or should be rejected.

Implements SelectBasics_SelectingVolumeManager.

◆ IsScalableActiveVolume()

bool SelectMgr_SelectingVolumeManager::IsScalableActiveVolume ( ) const
overridevirtual

Checks if it is possible to scale current active selecting volume.

Implements SelectBasics_SelectingVolumeManager.

◆ ObjectClipping()

const occ::handle< Graphic3d_SequenceOfHClipPlane > & SelectMgr_SelectingVolumeManager::ObjectClipping ( ) const
inline

Return object clipping planes.

◆ OverlapsBox() [1/2]

bool SelectMgr_SelectingVolumeManager::OverlapsBox ( const NCollection_Vec3< double > & theBoxMin,
const NCollection_Vec3< double > & theBoxMax,
bool * theInside = nullptr ) const
overridevirtual

Returns true if selecting volume is overlapped by axis-aligned bounding box with minimum corner at point theMinPt and maximum at point theMaxPt.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsBox() [2/2]

bool SelectMgr_SelectingVolumeManager::OverlapsBox ( const NCollection_Vec3< double > & theBoxMin,
const NCollection_Vec3< double > & theBoxMax,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

SAT intersection test between defined volume and given axis-aligned box.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsCircle() [1/2]

bool SelectMgr_SelectingVolumeManager::OverlapsCircle ( const double theBottomRad,
const gp_Trsf & theTrsf,
const bool theIsFilled,
bool * theInside = nullptr ) const
overridevirtual

Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsCircle() [2/2]

bool SelectMgr_SelectingVolumeManager::OverlapsCircle ( const double theBottomRad,
const gp_Trsf & theTrsf,
const bool theIsFilled,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

Returns true if selecting volume is overlapped by circle with radius theRadius, boolean theIsFilled and transformation to apply theTrsf. The position and orientation of the circle are specified via theTrsf transformation for gp::XOY() with center in gp::Origin().

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsCylinder() [1/2]

bool SelectMgr_SelectingVolumeManager::OverlapsCylinder ( const double theBottomRad,
const double theTopRad,
const double theHeight,
const gp_Trsf & theTrsf,
const bool theIsHollow,
bool * theInside = nullptr ) const
overridevirtual

Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsCylinder() [2/2]

bool SelectMgr_SelectingVolumeManager::OverlapsCylinder ( const double theBottomRad,
const double theTopRad,
const double theHeight,
const gp_Trsf & theTrsf,
const bool theIsHollow,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

Returns true if selecting volume is overlapped by cylinder (or cone) with radiuses theBottomRad and theTopRad, height theHeight and transformation to apply theTrsf.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsPoint() [1/2]

bool SelectMgr_SelectingVolumeManager::OverlapsPoint ( const gp_Pnt & thePnt) const
overridevirtual

Intersection test between defined volume and given point.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsPoint() [2/2]

bool SelectMgr_SelectingVolumeManager::OverlapsPoint ( const gp_Pnt & thePnt,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

Intersection test between defined volume and given point.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsPolygon()

bool SelectMgr_SelectingVolumeManager::OverlapsPolygon ( const NCollection_Array1< gp_Pnt > & theArrayOfPts,
int theSensType,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

SAT intersection test between defined volume and given ordered set of points, representing line segments. The test may be considered of interior part or boundary line defined by segments depending on given sensitivity type.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsSegment()

bool SelectMgr_SelectingVolumeManager::OverlapsSegment ( const gp_Pnt & thePnt1,
const gp_Pnt & thePnt2,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

Checks if line segment overlaps selecting frustum.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsSphere() [1/2]

bool SelectMgr_SelectingVolumeManager::OverlapsSphere ( const gp_Pnt & theCenter,
const double theRadius,
bool * theInside = nullptr ) const
overridevirtual

Intersection test between defined volume and given sphere.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsSphere() [2/2]

bool SelectMgr_SelectingVolumeManager::OverlapsSphere ( const gp_Pnt & theCenter,
const double theRadius,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

Intersection test between defined volume and given sphere.

Implements SelectBasics_SelectingVolumeManager.

◆ OverlapsTriangle()

bool SelectMgr_SelectingVolumeManager::OverlapsTriangle ( const gp_Pnt & thePnt1,
const gp_Pnt & thePnt2,
const gp_Pnt & thePnt3,
int theSensType,
SelectBasics_PickResult & thePickResult ) const
overridevirtual

SAT intersection test between defined volume and given triangle. The test may be considered of interior part or boundary line defined by triangle vertices depending on given sensitivity type.

Implements SelectBasics_SelectingVolumeManager.

◆ ScaleAndTransform()

virtual SelectMgr_SelectingVolumeManager SelectMgr_SelectingVolumeManager::ScaleAndTransform ( const int theScaleFactor,
const gp_GTrsf & theTrsf,
const occ::handle< SelectMgr_FrustumBuilder > & theBuilder ) const
virtual

IMPORTANT: Scaling makes sense only for frustum built on a single point! Note that this method does not perform any checks on type of the frustum.

Returns a copy of the frustum resized according to the scale factor given and transforms it using the matrix given. There are no default parameters, but in case if:

  • transformation only is needed: @theScaleFactor must be initialized as any negative value;
  • scale only is needed: @theTrsf must be set to gp_Identity. Builder is an optional argument that represents corresponding settings for re-constructing transformed frustum from scratch. Can be null if reconstruction is not expected furthermore.

◆ SetCamera()

void SelectMgr_SelectingVolumeManager::SetCamera ( const occ::handle< Graphic3d_Camera > & theCamera)

Updates camera projection and orientation matrices in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.

◆ SetPixelTolerance()

void SelectMgr_SelectingVolumeManager::SetPixelTolerance ( const int theTolerance)

Updates pixel tolerance in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.

◆ SetViewClipping() [1/2]

void SelectMgr_SelectingVolumeManager::SetViewClipping ( const occ::handle< Graphic3d_SequenceOfHClipPlane > & theViewPlanes,
const occ::handle< Graphic3d_SequenceOfHClipPlane > & theObjPlanes,
const SelectMgr_SelectingVolumeManager * theWorldSelMgr )

Valid for point selection only! Computes depth range for clipping planes.

Parameters
[in]theViewPlanesglobal view planes
[in]theObjPlanesobject planes
[in]theWorldSelMgrselection volume in world space for computing clipping plane ranges

◆ SetViewClipping() [2/2]

void SelectMgr_SelectingVolumeManager::SetViewClipping ( const SelectMgr_SelectingVolumeManager & theOther)

Copy clipping planes from another volume manager.

◆ SetViewClipRanges()

void SelectMgr_SelectingVolumeManager::SetViewClipRanges ( const SelectMgr_ViewClipRange & theRange)
inline

Set clipping range.

◆ SetViewport()

void SelectMgr_SelectingVolumeManager::SetViewport ( const double theX,
const double theY,
const double theWidth,
const double theHeight )

Updates viewport in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.

◆ SetWindowSize()

void SelectMgr_SelectingVolumeManager::SetWindowSize ( const int theWidth,
const int theHeight )

Updates window size in all selecting volumes Note: this method should be called after selection volume building else exception will be thrown.

◆ ViewClipping()

const occ::handle< Graphic3d_SequenceOfHClipPlane > & SelectMgr_SelectingVolumeManager::ViewClipping ( ) const
inline

Return view clipping planes.

◆ ViewClipRanges()

const SelectMgr_ViewClipRange & SelectMgr_SelectingVolumeManager::ViewClipRanges ( ) const
inline

Return clipping range.

◆ WindowSize()

void SelectMgr_SelectingVolumeManager::WindowSize ( int & theWidth,
int & theHeight ) const

Returns window size.

Field Documentation

◆ theMaxPt

Deprecated method const gp_Pnt2d& SelectMgr_SelectingVolumeManager::theMaxPt

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