0028778: Coding Rules - clean up confusing code from Select3D
[occt.git] / src / Select3D / Select3D_SensitiveTriangulation.hxx
index 5f212cd..7950ced 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-//Modified      Thur Apr 09 98 by rob : No more computation of free edges.
-//                                      fix bug on Compute Depth (don't forget
-//                                      Location...)
-
 #ifndef _Select3D_SensitiveTriangulation_Header
 #define _Select3D_SensitiveTriangulation_Header
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-#include <Standard_Type.hxx>
-
 #include <TopLoc_Location.hxx>
 #include <gp_Trsf.hxx>
 #include <gp_Pnt.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
-#include <TColStd_HArray1OfInteger.hxx>
-#include <Standard_Boolean.hxx>
-#include <TColgp_HArray1OfPnt.hxx>
 #include <Select3D_SensitiveEntity.hxx>
 #include <SelectMgr_SelectingVolumeManager.hxx>
-#include <Standard_OStream.hxx>
 #include <Select3D_SensitiveSet.hxx>
-#include <NCollection_Handle.hxx>
 
 class Poly_Triangulation;
-class SelectBasics_EntityOwner;
-class TopLoc_Location;
-class gp_Pnt;
-class Select3D_SensitiveEntity;
 
 //! A framework to define selection of a sensitive entity made of a set of triangles.
 class Select3D_SensitiveTriangulation : public Select3D_SensitiveSet
 {
-
+  DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation, Select3D_SensitiveSet)
 public:
 
   //! Constructs a sensitive triangulation object defined by
@@ -76,7 +59,7 @@ public:
 
   Standard_EXPORT Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
 
-  const Handle(Poly_Triangulation)& Triangulation() const;
+  const Handle(Poly_Triangulation)& Triangulation() const { return myTriangul; }
 
   //! Returns the length of array of triangles or edges
   Standard_EXPORT virtual Standard_Integer Size() const Standard_OVERRIDE;
@@ -108,10 +91,7 @@ public:
   //! to this entity has init location set. Otherwise, returns identity matrix.
   Standard_EXPORT virtual gp_GTrsf InvInitLocation() const Standard_OVERRIDE;
 
-  inline const TopLoc_Location& GetInitLocation() const;
-
-public:
-  DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation,Select3D_SensitiveSet)
+  const TopLoc_Location& GetInitLocation() const { return myInitLocation; }
 
 protected:
 
@@ -119,7 +99,6 @@ protected:
   //! box of the triangulation
   Select3D_BndBox3d applyTransformation();
 
-
 private:
 
   //! Checks whether the element with index theIdx overlaps the current selecting volume
@@ -149,7 +128,4 @@ private:
 
 DEFINE_STANDARD_HANDLE(Select3D_SensitiveTriangulation, Select3D_SensitiveSet)
 
-#include <Select3D_SensitiveTriangulation.lxx>
-
-
 #endif // _Select3D_SensitiveTriangulation_Header