mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0030687: Visualization - remove redundant interfaces SelectBasics_EntityOwner and SelectBasics_SensitiveEntity
SelectBasics_EntityOwner has been merged into SelectMgr_EntityOwner. Unused property SelectMgr_EntityOwner::ResetLocation() has been removed. SelectBasics package has been moved from TKService to TKV3d. SelectBasics_SensitiveEntity has been merged into Select3D_SensitiveEntity.
This commit is contained in:
@@ -86,7 +86,7 @@ private:
|
||||
// purpose : Splits the given point set thePoints onto planar convex
|
||||
// polygons
|
||||
// =======================================================================
|
||||
Select3D_InteriorSensitivePointSet::Select3D_InteriorSensitivePointSet (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_InteriorSensitivePointSet::Select3D_InteriorSensitivePointSet (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints)
|
||||
: Select3D_SensitiveSet (theOwnerId)
|
||||
{
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <Select3D_SensitiveSet.hxx>
|
||||
|
||||
class gp_Pnt;
|
||||
class SelectBasics_EntityOwner;
|
||||
class SelectMgr_EntityOwner;
|
||||
|
||||
typedef NCollection_Vector<Handle(Select3D_SensitivePoly)> Select3D_VectorOfHPoly;
|
||||
|
||||
@@ -37,7 +37,7 @@ class Select3D_InteriorSensitivePointSet : public Select3D_SensitiveSet
|
||||
public:
|
||||
|
||||
//! Splits the given point set thePoints onto planar convex polygons
|
||||
Standard_EXPORT Select3D_InteriorSensitivePointSet (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_InteriorSensitivePointSet (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints);
|
||||
|
||||
//! Initializes the given array theHArrayOfPnt by 3d coordinates of vertices of the
|
||||
|
@@ -22,7 +22,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveBox,Select3D_SensitiveEntity)
|
||||
// Function: Select3D_SensitiveBox
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveBox::Select3D_SensitiveBox (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveBox::Select3D_SensitiveBox (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Bnd_Box& theBox)
|
||||
: Select3D_SensitiveEntity (theOwnerId)
|
||||
{
|
||||
@@ -40,7 +40,7 @@ Select3D_SensitiveBox::Select3D_SensitiveBox (const Handle(SelectBasics_EntityOw
|
||||
// Purpose :
|
||||
//==================================================
|
||||
|
||||
Select3D_SensitiveBox::Select3D_SensitiveBox (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveBox::Select3D_SensitiveBox (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Real theXMin,
|
||||
const Standard_Real theYMin,
|
||||
const Standard_Real theZMin,
|
||||
|
@@ -28,7 +28,7 @@ public:
|
||||
|
||||
//! Constructs a sensitive box object defined by the
|
||||
//! owner theOwnerId, and the box theBox.
|
||||
Standard_EXPORT Select3D_SensitiveBox (const Handle(SelectBasics_EntityOwner)& theOwnerId, const Bnd_Box& theBox);
|
||||
Standard_EXPORT Select3D_SensitiveBox (const Handle(SelectMgr_EntityOwner)& theOwnerId, const Bnd_Box& theBox);
|
||||
|
||||
//! Constructs a sensitive box object defined by the
|
||||
//! owner theOwnerId, and the coordinates theXmin, theYMin, theZMin, theXMax, theYMax, theZMax.
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
//! the front lower left hand corner of the box,
|
||||
//! and theXMax, theYMax and theZMax define the maximum
|
||||
//! point in the back upper right hand corner of the box.
|
||||
Standard_EXPORT Select3D_SensitiveBox (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveBox (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Real theXMin,
|
||||
const Standard_Real theYMin,
|
||||
const Standard_Real theZMin,
|
||||
|
@@ -58,7 +58,7 @@ namespace
|
||||
//function : Select3D_SensitiveCircle (constructor)
|
||||
//purpose : Definition of a sensitive circle
|
||||
//=======================================================================
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Circle)& theCircle,
|
||||
const Standard_Boolean theIsFilled,
|
||||
const Standard_Integer theNbPnts)
|
||||
@@ -116,7 +116,7 @@ Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectBasics_Ent
|
||||
//function : Select3D_SensitiveCircle (constructor)
|
||||
//purpose : Definition of a sensitive arc
|
||||
//=======================================================================
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Circle)& theCircle,
|
||||
const Standard_Real theU1,
|
||||
const Standard_Real theU2,
|
||||
@@ -174,7 +174,7 @@ Select3D_SensitiveCircle::Select3D_SensitiveCircle (const Handle(SelectBasics_En
|
||||
//function : Select3D_SensitiveCircle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePnts3d,
|
||||
const Standard_Boolean theIsFilled)
|
||||
: Select3D_SensitivePoly (theOwnerId, thePnts3d, static_cast<Standard_Boolean> (!theIsFilled)),
|
||||
@@ -199,7 +199,7 @@ Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectBasics_Ent
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCircle::Select3D_SensitiveCircle(const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePnts3d,
|
||||
const Standard_Boolean theIsFilled)
|
||||
: Select3D_SensitivePoly (theOwnerId, thePnts3d, !theIsFilled),
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
//! Constructs the sensitive circle object defined by the
|
||||
//! owner theOwnerId, the circle theCircle, the boolean
|
||||
//! theIsFilled and the number of points theNbPnts.
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Circle)& theCircle,
|
||||
const Standard_Boolean theIsFilled = Standard_False,
|
||||
const Standard_Integer theNbPnts = 12);
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
//! owner theOwnerId, the circle theCircle, the parameters theU1
|
||||
//! and theU2, the boolean theIsFilled and the number of points theNbPnts.
|
||||
//! theU1 and theU2 define the first and last points of the arc on theCircle.
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Circle)& theCircle,
|
||||
const Standard_Real theU1,
|
||||
const Standard_Real theU2,
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
//! circle. The triangle i+1 lies on the intersection of the
|
||||
//! tangents to the circle of i and i+2. Note, that the first point of thePnts3d
|
||||
//! must be equal to the last point of thePnts3d.
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePnts3d,
|
||||
const Standard_Boolean theIsFilled = Standard_False);
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
//! owner theOwnerId, the array of points thePnts3d, and the boolean theIsFilled.
|
||||
//! If the length of thePnts3d is more then 1, the first point of thePnts3d
|
||||
//! must be equal to the last point of thePnts3d.
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCircle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePnts3d,
|
||||
const Standard_Boolean theIsFilled = Standard_False);
|
||||
|
||||
|
@@ -25,7 +25,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveCurve,Select3D_SensitivePoly)
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Curve)& theCurve,
|
||||
const Standard_Integer theNbPnts)
|
||||
: Select3D_SensitivePoly (theOwnerId, Standard_True, theNbPnts),
|
||||
@@ -39,7 +39,7 @@ Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectBasics_Enti
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints)
|
||||
: Select3D_SensitivePoly (theOwnerId, thePoints, Standard_True)
|
||||
|
||||
@@ -51,7 +51,7 @@ Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectBasics_Enti
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveCurve::Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints)
|
||||
: Select3D_SensitivePoly (theOwnerId, thePoints, Standard_True)
|
||||
{
|
||||
|
@@ -36,18 +36,18 @@ public:
|
||||
//! Constructs a sensitive curve object defined by the
|
||||
//! owner theOwnerId, the curve theCurve, and the
|
||||
//! maximum number of points on the curve: theNbPnts.
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Geom_Curve)& theCurve,
|
||||
const Standard_Integer theNbPnts = 17);
|
||||
|
||||
//! Constructs a sensitive curve object defined by the
|
||||
//! owner theOwnerId and the set of points ThePoints.
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints);
|
||||
|
||||
//! Creation of Sensitive Curve from Points.
|
||||
//! Warning : This Method should disappear in the next version...
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveCurve (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints);
|
||||
|
||||
//! Returns the copy of this
|
||||
|
@@ -16,74 +16,17 @@
|
||||
|
||||
#include <Select3D_SensitiveEntity.hxx>
|
||||
|
||||
#include <Precision.hxx>
|
||||
#include <SelectBasics_EntityOwner.hxx>
|
||||
#include <SelectMgr_EntityOwner.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity, Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : Select3D_SensitiveEntity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveEntity::Select3D_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
: SelectBasics_SensitiveEntity (theOwnerId) {}
|
||||
|
||||
//=======================================================================
|
||||
// function : Matches
|
||||
// purpose : Checks whether sensitive overlaps current selecting volume.
|
||||
// Stores minimum depth, distance to center of geometry and
|
||||
// closest point detected into thePickResult
|
||||
//=======================================================================
|
||||
Standard_Boolean Select3D_SensitiveEntity::Matches (SelectBasics_SelectingVolumeManager& /*theMgr*/,
|
||||
SelectBasics_PickResult& /*thePickResult*/)
|
||||
Select3D_SensitiveEntity::Select3D_SensitiveEntity (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
: myOwnerId (theOwnerId),
|
||||
mySFactor (2)
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetConnected
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Select3D_SensitiveEntity) Select3D_SensitiveEntity::GetConnected()
|
||||
{
|
||||
Handle(Select3D_SensitiveEntity) aNewEntity;
|
||||
return aNewEntity;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BVH
|
||||
// purpose : Builds BVH tree for a sensitive if needed
|
||||
//=======================================================================
|
||||
void Select3D_SensitiveEntity::BVH()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Clear
|
||||
// purpose : Cleans up resources and memory
|
||||
//=======================================================================
|
||||
void Select3D_SensitiveEntity::Clear()
|
||||
{
|
||||
Set (NULL);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasInitLocation
|
||||
// purpose : Returns true if the shape corresponding to the entity has init location
|
||||
//=======================================================================
|
||||
Standard_Boolean Select3D_SensitiveEntity::HasInitLocation() const
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InvInitLocation
|
||||
// purpose : Returns inversed location transformation matrix if the shape corresponding
|
||||
// to this entity has init location set. Otherwise, returns identity matrix.
|
||||
//=======================================================================
|
||||
gp_GTrsf Select3D_SensitiveEntity::InvInitLocation() const
|
||||
{
|
||||
return gp_GTrsf();
|
||||
//
|
||||
}
|
||||
|
@@ -17,72 +17,94 @@
|
||||
#ifndef _Select3D_SensitiveEntity_HeaderFile
|
||||
#define _Select3D_SensitiveEntity_HeaderFile
|
||||
|
||||
#include <gp_GTrsf.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <Standard_Assert.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Select3D_BndBox3d.hxx>
|
||||
#include <SelectBasics_SelectingVolumeManager.hxx>
|
||||
#include <SelectBasics_PickResult.hxx>
|
||||
#include <SelectBasics_SensitiveEntity.hxx>
|
||||
#include <SelectMgr_SelectingVolumeManager.hxx>
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
class SelectBasics_EntityOwner;
|
||||
class SelectMgr_EntityOwner;
|
||||
|
||||
//! Abstract framework to define 3D sensitive entities.
|
||||
//! As the selection process uses the principle of a
|
||||
//! projection of 3D shapes onto a 2D view where
|
||||
//! nearness to a rectangle determines whether a shape
|
||||
//! is picked or not, all 3D shapes need to be converted
|
||||
//! into 2D ones in order to be selected.
|
||||
class Select3D_SensitiveEntity : public SelectBasics_SensitiveEntity
|
||||
//! Abstract framework to define 3D sensitive entities.
|
||||
class Select3D_SensitiveEntity : public Standard_Transient
|
||||
{
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveEntity, Standard_Transient)
|
||||
public:
|
||||
|
||||
//! Originally this method intended to return sensitive
|
||||
//! entity with new location aLocation, but currently sensitive
|
||||
//! entities do not hold a location, instead HasLocation() and
|
||||
//! Location() methods call corresponding entity owner's methods.
|
||||
//! Thus all entities returned by GetConnected() share the same
|
||||
//! location propagated from corresponding selectable object.
|
||||
//! You must redefine this function for any type of
|
||||
//! sensitive entity which can accept another connected
|
||||
//! sensitive entity.//can be connected to another sensitive entity.
|
||||
Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected();
|
||||
//! Returns pointer to owner of the entity
|
||||
const Handle(SelectMgr_EntityOwner)& OwnerId() const { return myOwnerId; }
|
||||
|
||||
//! Sets owner of the entity
|
||||
virtual void Set (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
{
|
||||
myOwnerId = theOwnerId;
|
||||
}
|
||||
|
||||
//! allows a better sensitivity for a specific entity in selection algorithms useful for small sized entities.
|
||||
Standard_Integer SensitivityFactor() const { return mySFactor; }
|
||||
|
||||
//! Allows to manage sensitivity of a particular sensitive entity
|
||||
void SetSensitivityFactor (const Standard_Integer theNewSens)
|
||||
{
|
||||
Standard_ASSERT_RAISE (theNewSens > 0, "Error! Selection sensitivity have positive value.");
|
||||
mySFactor = theNewSens;
|
||||
}
|
||||
|
||||
//! Originally this method intended to return sensitive entity with new location aLocation,
|
||||
//! but currently sensitive entities do not hold a location,
|
||||
//! instead HasLocation() and Location() methods call corresponding entity owner's methods.
|
||||
//! Thus all entities returned by GetConnected() share the same location propagated from corresponding selectable object.
|
||||
//! You must redefine this function for any type of sensitive entity which can accept another connected sensitive entity.
|
||||
virtual Handle(Select3D_SensitiveEntity) GetConnected() { return Handle(Select3D_SensitiveEntity)(); }
|
||||
|
||||
//! Checks whether sensitive overlaps current selecting volume.
|
||||
//! Stores minimum depth, distance to center of geometry and
|
||||
//! closest point detected into thePickResult
|
||||
Standard_EXPORT virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
|
||||
SelectBasics_PickResult& thePickResult) Standard_OVERRIDE;
|
||||
//! Stores minimum depth, distance to center of geometry and closest point detected into thePickResult
|
||||
virtual Standard_Boolean Matches (SelectBasics_SelectingVolumeManager& theMgr,
|
||||
SelectBasics_PickResult& thePickResult) = 0;
|
||||
|
||||
//! Returns the number of sub-entities or elements in
|
||||
//! sensitive entity. Is used to determine if entity is
|
||||
//! complex and needs to pre-build BVH at the creation of
|
||||
//! sensitive entity step or is light-weighted so the tree
|
||||
//! can be build on demand with unnoticeable delay
|
||||
virtual Standard_Integer NbSubElements() Standard_OVERRIDE = 0;
|
||||
//! Returns the number of sub-entities or elements in sensitive entity.
|
||||
//! Is used to determine if entity is complex and needs to pre-build BVH at the creation of sensitive entity step
|
||||
//! or is light-weighted so the tree can be build on demand with unnoticeable delay.
|
||||
virtual Standard_Integer NbSubElements() = 0;
|
||||
|
||||
//! Returns bounding box of a sensitive with transformation applied
|
||||
virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE = 0;
|
||||
virtual Select3D_BndBox3d BoundingBox() = 0;
|
||||
|
||||
//! Returns center of a sensitive with transformation applied
|
||||
virtual gp_Pnt CenterOfGeometry() const = 0;
|
||||
|
||||
//! Builds BVH tree for a sensitive if needed
|
||||
Standard_EXPORT virtual void BVH() Standard_OVERRIDE;
|
||||
virtual void BVH() {}
|
||||
|
||||
//! Clears up all resources and memory
|
||||
Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
|
||||
virtual void Clear() { Set (Handle(SelectMgr_EntityOwner)()); }
|
||||
|
||||
//! Returns true if the shape corresponding to the entity has init location
|
||||
Standard_EXPORT virtual Standard_Boolean HasInitLocation() const Standard_OVERRIDE;
|
||||
virtual Standard_Boolean HasInitLocation() const { return Standard_False; }
|
||||
|
||||
//! Returns inversed location transformation matrix if the shape corresponding
|
||||
//! to this entity has init location set. Otherwise, returns identity matrix.
|
||||
Standard_EXPORT virtual gp_GTrsf InvInitLocation() const Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
|
||||
//! Returns inversed location transformation matrix if the shape corresponding to this entity has init location set.
|
||||
//! Otherwise, returns identity matrix.
|
||||
virtual gp_GTrsf InvInitLocation() const { return gp_GTrsf(); }
|
||||
|
||||
protected:
|
||||
|
||||
Standard_EXPORT Select3D_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId);
|
||||
Standard_EXPORT Select3D_SensitiveEntity (const Handle(SelectMgr_EntityOwner)& theOwnerId);
|
||||
|
||||
protected:
|
||||
|
||||
Handle(SelectMgr_EntityOwner) myOwnerId;
|
||||
Standard_Integer mySFactor;
|
||||
|
||||
};
|
||||
|
||||
DEFINE_STANDARD_HANDLE(Select3D_SensitiveEntity, SelectBasics_SensitiveEntity)
|
||||
DEFINE_STANDARD_HANDLE(Select3D_SensitiveEntity, Standard_Transient)
|
||||
|
||||
// for porting old code
|
||||
typedef Select3D_SensitiveEntity SelectBasics_SensitiveEntity;
|
||||
|
||||
#endif // _Select3D_SensitiveEntity_HeaderFile
|
||||
|
@@ -25,7 +25,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveFace,Select3D_SensitiveEntity)
|
||||
// Function: Hide this constructor to the next version...
|
||||
// Purpose : simply avoid interfering with the version update
|
||||
//==================================================
|
||||
Select3D_SensitiveFace::Select3D_SensitiveFace (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveFace::Select3D_SensitiveFace (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints,
|
||||
const Select3D_TypeOfSensitivity theType)
|
||||
: Select3D_SensitiveEntity (theOwnerId),
|
||||
@@ -45,7 +45,7 @@ Select3D_SensitiveFace::Select3D_SensitiveFace (const Handle(SelectBasics_Entity
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveFace::Select3D_SensitiveFace (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveFace::Select3D_SensitiveFace (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints,
|
||||
const Select3D_TypeOfSensitivity theType)
|
||||
: Select3D_SensitiveEntity (theOwnerId),
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
//! owner theOwnerId, the array of points thePoints, and
|
||||
//! the sensitivity type theType.
|
||||
//! The array of points is the outer polygon of the geometric face.
|
||||
Standard_EXPORT Select3D_SensitiveFace (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveFace (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints,
|
||||
const Select3D_TypeOfSensitivity theType);
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
//! owner theOwnerId, the array of points thePoints, and
|
||||
//! the sensitivity type theType.
|
||||
//! The array of points is the outer polygon of the geometric face.
|
||||
Standard_EXPORT Select3D_SensitiveFace (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveFace (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints,
|
||||
const Select3D_TypeOfSensitivity theType);
|
||||
|
||||
|
@@ -24,7 +24,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveGroup,Select3D_SensitiveSet)
|
||||
//function : Creation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveGroup::Select3D_SensitiveGroup (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveGroup::Select3D_SensitiveGroup (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Boolean theIsMustMatchAll)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
myMustMatchAll (theIsMustMatchAll),
|
||||
@@ -35,7 +35,7 @@ Select3D_SensitiveGroup::Select3D_SensitiveGroup (const Handle(SelectBasics_Enti
|
||||
//function : Creation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveGroup::Select3D_SensitiveGroup (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveGroup::Select3D_SensitiveGroup (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
Select3D_EntitySequence& theEntities,
|
||||
const Standard_Boolean theIsMustMatchAll)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
@@ -236,7 +236,7 @@ Standard_Boolean Select3D_SensitiveGroup::Matches (SelectBasics_SelectingVolumeM
|
||||
//function : Set
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void Select3D_SensitiveGroup::Set (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
void Select3D_SensitiveGroup::Set (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
{
|
||||
Select3D_SensitiveEntity::Set (theOwnerId);
|
||||
for (Select3D_IndexedMapOfEntity::Iterator anEntityIter (myEntities); anEntityIter.More(); anEntityIter.Next())
|
||||
|
@@ -39,12 +39,12 @@ public:
|
||||
//! This is a set of sensitive 3D entities. The sensitive
|
||||
//! entities will be defined using the function Add to fill
|
||||
//! the entity owner OwnerId. If MatchAll is false, nothing can be added.
|
||||
Standard_EXPORT Select3D_SensitiveGroup (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveGroup (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Boolean theIsMustMatchAll = Standard_True);
|
||||
|
||||
//! Constructs a sensitive group object defined by the list
|
||||
//! TheList and the entity owner OwnerId. If MatchAll is false, nothing is done.
|
||||
Standard_EXPORT Select3D_SensitiveGroup (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveGroup (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
Select3D_EntitySequence& theEntities,
|
||||
const Standard_Boolean theIsMustMatchAll = Standard_True);
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
|
||||
|
||||
//! Sets the owner for all entities in group
|
||||
Standard_EXPORT void Set (const Handle(SelectBasics_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
Standard_EXPORT void Set (const Handle(SelectMgr_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
|
||||
//! Returns bounding box of the group. If location transformation
|
||||
//! is set, it will be applied
|
||||
|
@@ -22,7 +22,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitivePoint,Select3D_SensitiveEntity)
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitivePoint::Select3D_SensitivePoint (const Handle(SelectBasics_EntityOwner)& theOwner,
|
||||
Select3D_SensitivePoint::Select3D_SensitivePoint (const Handle(SelectMgr_EntityOwner)& theOwner,
|
||||
const gp_Pnt& thePoint)
|
||||
: Select3D_SensitiveEntity (theOwner)
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@ public:
|
||||
|
||||
//! Constructs a sensitive point object defined by the
|
||||
//! owner OwnerId and the point Point.
|
||||
Standard_EXPORT Select3D_SensitivePoint (const Handle(SelectBasics_EntityOwner)& theOwnerId, const gp_Pnt& thePoint);
|
||||
Standard_EXPORT Select3D_SensitivePoint (const Handle(SelectMgr_EntityOwner)& theOwnerId, const gp_Pnt& thePoint);
|
||||
|
||||
//! Returns the amount of sub-entities in sensitive
|
||||
Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
|
||||
|
@@ -19,7 +19,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitivePoly,Select3D_SensitiveSet)
|
||||
// Function: Select3D_SensitivePoly
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints,
|
||||
const Standard_Boolean theIsBVHEnabled)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
@@ -60,7 +60,7 @@ Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectBasics_Entity
|
||||
// Function: Select3D_SensitivePoly
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints,
|
||||
const Standard_Boolean theIsBVHEnabled)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
@@ -101,7 +101,7 @@ Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectBasics_Entity
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitivePoly::Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Boolean theIsBVHEnabled,
|
||||
const Standard_Integer theNbPnts)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
|
@@ -36,7 +36,7 @@ public:
|
||||
//! owner OwnerId, the array of points ThePoints, and
|
||||
//! the sensitivity type Sensitivity.
|
||||
//! The array of points is the outer polygon of the geometric face.
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const TColgp_Array1OfPnt& thePoints,
|
||||
const Standard_Boolean theIsBVHEnabled);
|
||||
|
||||
@@ -44,14 +44,14 @@ public:
|
||||
//! owner OwnerId, the array of points ThePoints, and
|
||||
//! the sensitivity type Sensitivity.
|
||||
//! The array of points is the outer polygon of the geometric face.
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(TColgp_HArray1OfPnt)& thePoints,
|
||||
const Standard_Boolean theIsBVHEnabled);
|
||||
|
||||
//! Constructs the sensitive circle object defined by the
|
||||
//! owner OwnerId, the circle Circle, the Boolean
|
||||
//! FilledCircle and the number of points NbOfPoints.
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitivePoly (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Standard_Boolean theIsBVHEnabled,
|
||||
const Standard_Integer theNbPnts = 6);
|
||||
|
||||
|
@@ -155,7 +155,7 @@ private:
|
||||
// function : Select3D_SensitivePrimitiveArray
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Select3D_SensitivePrimitiveArray::Select3D_SensitivePrimitiveArray (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
Select3D_SensitivePrimitiveArray::Select3D_SensitivePrimitiveArray (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
myPosData (NULL),
|
||||
myPosStride (Standard_Size(-1)),
|
||||
@@ -610,7 +610,7 @@ Handle(Select3D_SensitiveEntity) Select3D_SensitivePrimitiveArray::GetConnected(
|
||||
//function : Set
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void Select3D_SensitivePrimitiveArray::Set (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
void Select3D_SensitivePrimitiveArray::Set (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
{
|
||||
base_type::Set (theOwnerId);
|
||||
if (!myGroups.IsNull())
|
||||
|
@@ -33,7 +33,7 @@ class Select3D_SensitivePrimitiveArray : public Select3D_SensitiveSet
|
||||
public:
|
||||
|
||||
//! Constructs an empty sensitive object.
|
||||
Standard_EXPORT Select3D_SensitivePrimitiveArray (const Handle(SelectBasics_EntityOwner)& theOwnerId);
|
||||
Standard_EXPORT Select3D_SensitivePrimitiveArray (const Handle(SelectMgr_EntityOwner)& theOwnerId);
|
||||
|
||||
//! Return patch size limit (1 by default).
|
||||
Standard_Integer PatchSizeMax() const { return myPatchSizeMax; }
|
||||
@@ -251,7 +251,7 @@ public:
|
||||
}
|
||||
|
||||
//! Sets the owner for all entities in group
|
||||
Standard_EXPORT virtual void Set (const Handle(SelectBasics_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Set (const Handle(SelectMgr_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
|
||||
//! Builds BVH tree for sensitive set.
|
||||
Standard_EXPORT virtual void BVH() Standard_OVERRIDE;
|
||||
|
@@ -26,7 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveSegment,Select3D_SensitiveEntity)
|
||||
// Function : Create
|
||||
// Purpose : Constructor
|
||||
//=====================================================
|
||||
Select3D_SensitiveSegment::Select3D_SensitiveSegment (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveSegment::Select3D_SensitiveSegment (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const gp_Pnt& theFirstPnt,
|
||||
const gp_Pnt& theLastPnt)
|
||||
: Select3D_SensitiveEntity (theOwnerId)
|
||||
|
@@ -29,7 +29,7 @@ public:
|
||||
|
||||
//! Constructs the sensitive segment object defined by
|
||||
//! the owner theOwnerId, the points theFirstPnt, theLastPnt
|
||||
Standard_EXPORT Select3D_SensitiveSegment (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveSegment (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const gp_Pnt& theFirstPnt,
|
||||
const gp_Pnt& theLastPnt);
|
||||
|
||||
|
@@ -47,7 +47,7 @@ void Select3D_SensitiveSet::SetDefaultBVHBuilder (const Handle(Select3D_BVHBuild
|
||||
// function : Select3D_SensitiveSet
|
||||
// purpose : Creates new empty sensitive set and its content
|
||||
//=======================================================================
|
||||
Select3D_SensitiveSet::Select3D_SensitiveSet (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
Select3D_SensitiveSet::Select3D_SensitiveSet (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
: Select3D_SensitiveEntity (theOwnerId),
|
||||
myDetectedIdx (-1)
|
||||
{
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <Select3D_BndBox3d.hxx>
|
||||
#include <Select3D_BVHBuilder3d.hxx>
|
||||
#include <Select3D_SensitiveEntity.hxx>
|
||||
#include <SelectBasics_EntityOwner.hxx>
|
||||
|
||||
//! This class is base class for handling overlap detection of complex sensitive
|
||||
//! entities. It provides an interface for building BVH tree for some set of entities.
|
||||
@@ -44,7 +43,7 @@ public:
|
||||
public:
|
||||
|
||||
//! Creates new empty sensitive set and its content
|
||||
Standard_EXPORT Select3D_SensitiveSet (const Handle(SelectBasics_EntityOwner)& theOwnerId);
|
||||
Standard_EXPORT Select3D_SensitiveSet (const Handle(SelectMgr_EntityOwner)& theOwnerId);
|
||||
|
||||
public:
|
||||
|
||||
|
@@ -26,7 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveTriangle,Select3D_SensitiveEntity)
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
//==================================================
|
||||
Select3D_SensitiveTriangle::Select3D_SensitiveTriangle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveTriangle::Select3D_SensitiveTriangle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const gp_Pnt& thePnt0,
|
||||
const gp_Pnt& thePnt1,
|
||||
const gp_Pnt& thePnt2,
|
||||
|
@@ -34,7 +34,7 @@ public:
|
||||
|
||||
//! Constructs a sensitive triangle object defined by the
|
||||
//! owner theOwnerId, the points P1, P2, P3, and the type of sensitivity Sensitivity.
|
||||
Standard_EXPORT Select3D_SensitiveTriangle (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveTriangle (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const gp_Pnt& thePnt0,
|
||||
const gp_Pnt& thePnt1,
|
||||
const gp_Pnt& thePnt2,
|
||||
|
@@ -53,7 +53,7 @@ namespace
|
||||
//function : Select3D_SensitiveTriangulation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveTriangulation::Select3D_SensitiveTriangulation (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveTriangulation::Select3D_SensitiveTriangulation (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Poly_Triangulation)& theTrg,
|
||||
const TopLoc_Location& theInitLoc,
|
||||
const Standard_Boolean theIsInterior)
|
||||
@@ -140,7 +140,7 @@ Select3D_SensitiveTriangulation::Select3D_SensitiveTriangulation (const Handle(S
|
||||
//function : Select3D_SensitiveTriangulation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Select3D_SensitiveTriangulation::Select3D_SensitiveTriangulation (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Select3D_SensitiveTriangulation::Select3D_SensitiveTriangulation (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Poly_Triangulation)& theTrg,
|
||||
const TopLoc_Location& theInitLoc,
|
||||
const Handle(TColStd_HArray1OfInteger)& theFreeEdges,
|
||||
|
@@ -36,7 +36,7 @@ public:
|
||||
//! Constructs a sensitive triangulation object defined by
|
||||
//! the owner theOwnerId, the triangulation theTrg,
|
||||
//! the location theInitLoc, and the flag theIsInterior.
|
||||
Standard_EXPORT Select3D_SensitiveTriangulation (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveTriangulation (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Poly_Triangulation)& theTrg,
|
||||
const TopLoc_Location& theInitLoc,
|
||||
const Standard_Boolean theIsInterior = Standard_True);
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
//! theFreeEdges, the center of gravity theCOG, and the flag theIsInterior.
|
||||
//! As free edges and the center of gravity do not have
|
||||
//! to be computed later, this syntax reduces computation time.
|
||||
Standard_EXPORT Select3D_SensitiveTriangulation (const Handle(SelectBasics_EntityOwner)& theOwnerId,
|
||||
Standard_EXPORT Select3D_SensitiveTriangulation (const Handle(SelectMgr_EntityOwner)& theOwnerId,
|
||||
const Handle(Poly_Triangulation)& theTrg,
|
||||
const TopLoc_Location& theInitLoc,
|
||||
const Handle(TColStd_HArray1OfInteger)& theFreeEdges,
|
||||
|
@@ -28,7 +28,7 @@ IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveWire,Select3D_SensitiveSet)
|
||||
// Function : Select3D_SensitiveWire
|
||||
// Purpose :
|
||||
//=====================================================
|
||||
Select3D_SensitiveWire::Select3D_SensitiveWire (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
Select3D_SensitiveWire::Select3D_SensitiveWire (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
: Select3D_SensitiveSet (theOwnerId),
|
||||
myCenter (0.0, 0.0, 0.0)
|
||||
{}
|
||||
@@ -188,7 +188,7 @@ Handle(Select3D_SensitiveEntity) Select3D_SensitiveWire::GetLastDetected() const
|
||||
//function : Set
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void Select3D_SensitiveWire::Set (const Handle(SelectBasics_EntityOwner)& theOwnerId)
|
||||
void Select3D_SensitiveWire::Set (const Handle(SelectMgr_EntityOwner)& theOwnerId)
|
||||
{
|
||||
Select3D_SensitiveEntity::Set (theOwnerId);
|
||||
|
||||
|
@@ -27,7 +27,7 @@ public:
|
||||
|
||||
//! Constructs a sensitive wire object defined by the
|
||||
//! owner theOwnerId
|
||||
Standard_EXPORT Select3D_SensitiveWire (const Handle(SelectBasics_EntityOwner)& theOwnerId);
|
||||
Standard_EXPORT Select3D_SensitiveWire (const Handle(SelectMgr_EntityOwner)& theOwnerId);
|
||||
|
||||
//! Adds the sensitive entity theSensitive to this framework.
|
||||
Standard_EXPORT void Add (const Handle(Select3D_SensitiveEntity)& theSensitive);
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
Standard_EXPORT const NCollection_Vector<Handle(Select3D_SensitiveEntity)>& GetEdges();
|
||||
|
||||
//! Sets the owner for all entities in wire
|
||||
Standard_EXPORT void Set (const Handle(SelectBasics_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Set (const Handle(SelectMgr_EntityOwner)& theOwnerId) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT Handle(Select3D_SensitiveEntity) GetLastDetected() const;
|
||||
|
||||
|
Reference in New Issue
Block a user