0024623: Visualization - improve selection mechanism
[occt.git] / src / SelectBasics / SelectBasics_SensitiveEntity.cxx
index e047985..d69189c 100644 (file)
 // commercial license or contractual agreement.
 
 #include <SelectBasics_SensitiveEntity.ixx>
+#include <TColStd_HArray1OfBoolean.hxx>
 
+//=======================================================================
+// function : SelectBasics_SensitiveEntity
+// purpose  : Creates new empty sensitive entity instance
+//=======================================================================
+SelectBasics_SensitiveEntity::SelectBasics_SensitiveEntity (const Handle(SelectBasics_EntityOwner)& theOwnerId,
+                                                            const Standard_Real theSensFactor)
+: myOwnerId (theOwnerId),
+  mySFactor (theSensFactor) {}
 
+//=======================================================================
+// function : Set
+// purpose  : Sets owner of the entity
+//=======================================================================
+void SelectBasics_SensitiveEntity::Set (const Handle(SelectBasics_EntityOwner)& theOwnerId)
+{
+  myOwnerId = theOwnerId;
+}
 
-//==================================
-//function : Initialize
-//purpose  : 
-//==================================
-SelectBasics_SensitiveEntity
-::SelectBasics_SensitiveEntity(const Handle(SelectBasics_EntityOwner)& OwnerId,
-                              const Standard_ShortReal aFactor):
-myOwnerId(OwnerId),
-mySFactor(aFactor)
-{}
-
-
-void SelectBasics_SensitiveEntity
-::Set (const Handle(SelectBasics_EntityOwner)& TheOwnerId) { myOwnerId = TheOwnerId;}
-
-const Handle(SelectBasics_EntityOwner)&  SelectBasics_SensitiveEntity
-::OwnerId() const {return myOwnerId;}
+//=======================================================================
+// function : OwnerId
+// purpose  : Returns pointer to owner of the entity
+//=======================================================================
+const Handle(SelectBasics_EntityOwner)& SelectBasics_SensitiveEntity::OwnerId() const
+{
+  return myOwnerId;
+}