0029938: Visualization - SelectMgr_ViewerSelector::PickedPoint() should return point...
[occt.git] / src / SelectBasics / SelectBasics_SensitiveEntity.cxx
index d69189c..99fc2a4 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <SelectBasics_SensitiveEntity.ixx>
+#include <SelectBasics_SensitiveEntity.hxx>
+
+#include <SelectBasics_EntityOwner.hxx>
 #include <TColStd_HArray1OfBoolean.hxx>
 
+IMPLEMENT_STANDARD_RTTIEXT(SelectBasics_SensitiveEntity, Standard_Transient)
+
 //=======================================================================
 // function : SelectBasics_SensitiveEntity
 // purpose  : Creates new empty sensitive entity instance
 //=======================================================================
-SelectBasics_SensitiveEntity::SelectBasics_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId,
-                                                            const Standard_Real theSensFactor)
+SelectBasics_SensitiveEntity::SelectBasics_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId)
 : myOwnerId (theOwnerId),
-  mySFactor (theSensFactor) {}
+  mySFactor (2) {}
 
 //=======================================================================
 // function : Set
@@ -34,12 +37,3 @@ void SelectBasics_SensitiveEntity::Set (const Handle(SelectBasics_EntityOwner)&
 {
   myOwnerId = theOwnerId;
 }
-
-//=======================================================================
-// function : OwnerId
-// purpose  : Returns pointer to owner of the entity
-//=======================================================================
-const Handle(SelectBasics_EntityOwner)& SelectBasics_SensitiveEntity::OwnerId() const
-{
-  return myOwnerId;
-}